commit c7e5de8f1b5344497b40803a80efabc8f09bb230 Author: Spaso1 Date: Fri Jun 12 12:58:31 2026 +0800 155 diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..35410ca --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/editor.xml b/.idea/editor.xml new file mode 100644 index 0000000..bfce97c --- /dev/null +++ b/.idea/editor.xml @@ -0,0 +1,111 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..58ade7e --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/sdgb155.iml b/.idea/sdgb155.iml new file mode 100644 index 0000000..bc2cd87 --- /dev/null +++ b/.idea/sdgb155.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Assembly-CSharp.sln b/Assembly-CSharp.sln new file mode 100644 index 0000000..2273f6e --- /dev/null +++ b/Assembly-CSharp.sln @@ -0,0 +1,34 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp\Assembly-CSharp.csproj", "{BACC7FFE-E92C-42A1-8309-139CD2E40ED2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms + Debug|x64 = Debug|x64 + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Debug|Any CPU.ActiveCfg = Debug|x64 + {BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Debug|Any CPU.Build.0 = Debug|x64 + {BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Debug|Mixed Platforms.ActiveCfg = Debug|x64 + {BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Debug|Mixed Platforms.Build.0 = Debug|x64 + {BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Debug|x64.ActiveCfg = Debug|x64 + {BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Debug|x64.Build.0 = Debug|x64 + {BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Release|Any CPU.ActiveCfg = Release|x64 + {BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Release|Any CPU.Build.0 = Release|x64 + {BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Release|Mixed Platforms.ActiveCfg = Release|x64 + {BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Release|Mixed Platforms.Build.0 = Release|x64 + {BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Release|x64.ActiveCfg = Release|x64 + {BACC7FFE-E92C-42A1-8309-139CD2E40ED2}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Assembly-CSharp/AchieveNumSheet.cs b/Assembly-CSharp/AchieveNumSheet.cs new file mode 100644 index 0000000..00534b4 --- /dev/null +++ b/Assembly-CSharp/AchieveNumSheet.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using UnityEngine; + +// Token: 0x02000025 RID: 37 +[CreateAssetMenu(menuName = "Mai2Data/AchieveNumTable", fileName = "ParameterTable")] +public class AchieveNumSheet : ScriptableObject +{ + // Token: 0x1700001D RID: 29 + // (get) Token: 0x060000C4 RID: 196 RVA: 0x00004C68 File Offset: 0x00003E68 + public List AchieveIntSprites + { + get + { + return this._achieveIntSprite; + } + } + + // Token: 0x1700001E RID: 30 + // (get) Token: 0x060000C5 RID: 197 RVA: 0x00004C70 File Offset: 0x00003E70 + public List AchieveDecimalSprites + { + get + { + return this._achieveDecimalSprite; + } + } + + // Token: 0x04000075 RID: 117 + public const int AchieveImageIndex = 14; + + // Token: 0x04000076 RID: 118 + public const int AchievePattern = 3; + + // Token: 0x04000077 RID: 119 + [SerializeField] + [Header("達成率整数画像")] + private List _achieveIntSprite = new List(3); + + // Token: 0x04000078 RID: 120 + [SerializeField] + [Header("達成率画少数像")] + private List _achieveDecimalSprite = new List(3); +} diff --git a/Assembly-CSharp/AddFriendButtonController.cs b/Assembly-CSharp/AddFriendButtonController.cs new file mode 100644 index 0000000..721af74 --- /dev/null +++ b/Assembly-CSharp/AddFriendButtonController.cs @@ -0,0 +1,43 @@ +using System; +using Manager; +using UI; +using UnityEngine; + +// Token: 0x0200004C RID: 76 +public class AddFriendButtonController : ButtonControllerBase +{ + // Token: 0x06000257 RID: 599 RVA: 0x0000831C File Offset: 0x0000751C + public override void Initialize(int monitorIndex) + { + base.Initialize(monitorIndex); + this.CommonButtons = new CommonButtonObject[this._positions.Length]; + this.CommonButtons[3] = Object.Instantiate(CommonPrefab.GetFlatButtonObject(), this._positions[3]); + this.CommonButtons[3].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Yes).LedColor); + this.CommonButtons[3].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Yes).Image, false); + this.CommonButtons[3].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Yes).Cue); + this.CommonButtons[4] = Object.Instantiate(CommonPrefab.GetFlatButtonObject(), this._positions[4]); + this.CommonButtons[4].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button05, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).LedColor); + this.CommonButtons[4].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).Image, false); + this.CommonButtons[4].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).Cue); + } + + // Token: 0x06000258 RID: 600 RVA: 0x00008418 File Offset: 0x00007618 + public void ChangeFlatButtonSymbol(int index, ButtonControllerBase.FlatButtonType buttonType) + { + if (this.CommonButtons[index] != null) + { + this.CommonButtons[index].SetSymbol(ButtonControllerBase.GetFlatButtonParam(buttonType).Image, false); + this.CommonButtons[index].ChangeColor(ButtonControllerBase.GetFlatButtonParam(buttonType).LedColor, true); + this.CommonButtons[index].SetSE(ButtonControllerBase.GetFlatButtonParam(buttonType).Cue); + } + } + + // Token: 0x0200095F RID: 2399 + public enum ButtonId + { + // Token: 0x04005F5D RID: 24413 + Yes, + // Token: 0x04005F5E RID: 24414 + No + } +} diff --git a/Assembly-CSharp/AddFriendUserDataUI.cs b/Assembly-CSharp/AddFriendUserDataUI.cs new file mode 100644 index 0000000..67828e6 --- /dev/null +++ b/Assembly-CSharp/AddFriendUserDataUI.cs @@ -0,0 +1,70 @@ +using System; +using Manager; +using Manager.UserDatas; +using Process; +using TMPro; +using UI; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x0200004D RID: 77 +public class AddFriendUserDataUI : MonoBehaviour +{ + // Token: 0x0600025A RID: 602 RVA: 0x00008488 File Offset: 0x00007688 + public void Initialize(Texture2D userIcon, UserDetail userData, int playerIndex, bool isMyMonitor) + { + UdemaeID classRank = (UdemaeID)userData.ClassRank; + uint courseRank = userData.CourseRank; + this._playerIcon.texture = userIcon; + this._playerName.SetText(userData.UserName); + this._playerRating.ChangeText(userData.Rating.ToString().PadLeft(5)); + this._playerRatingBase.sprite = Resources.Load("Common/Sprites/DXRating/UI_CMN_DXRating_S_" + ResultProcess.GetRatePlate(userData.Rating)); + this._playerClass.sprite = Resources.Load(string.Format("Common/Sprites/Class/UI_CMN_Class_S_{0:00}", classRank.GetEnumValue())); + this._playerUdemae.sprite = Resources.Load("Process/Course/Sprites/DaniPlate/UI_DNM_DaniPlate_" + courseRank.ToString("00")); + this._playerImage.ChangeSprite(playerIndex); + this._playerImage.gameObject.SetActive(isMyMonitor); + this._playerBaseImage.ChangeSprite(playerIndex); + } + + // Token: 0x0600025B RID: 603 RVA: 0x00008579 File Offset: 0x00007779 + public void SetActiveDecideObject(int playerIndex, bool isActive) + { + this._decideObject[playerIndex].SetActive(isActive); + } + + // Token: 0x04000182 RID: 386 + [SerializeField] + private RawImage _playerIcon; + + // Token: 0x04000183 RID: 387 + [SerializeField] + private TextMeshProUGUI _playerName; + + // Token: 0x04000184 RID: 388 + [SerializeField] + private Image _playerRatingBase; + + // Token: 0x04000185 RID: 389 + [SerializeField] + private SpriteCounter _playerRating; + + // Token: 0x04000186 RID: 390 + [SerializeField] + private Image _playerClass; + + // Token: 0x04000187 RID: 391 + [SerializeField] + private Image _playerUdemae; + + // Token: 0x04000188 RID: 392 + [SerializeField] + private MultipleImage _playerBaseImage; + + // Token: 0x04000189 RID: 393 + [SerializeField] + private MultipleImage _playerImage; + + // Token: 0x0400018A RID: 394 + [SerializeField] + private GameObject[] _decideObject; +} diff --git a/Assembly-CSharp/AdjustButtonController.cs b/Assembly-CSharp/AdjustButtonController.cs new file mode 100644 index 0000000..c4e1723 --- /dev/null +++ b/Assembly-CSharp/AdjustButtonController.cs @@ -0,0 +1,53 @@ +using System; +using Mai2.Mai2Cue; +using Manager; +using UI; +using UnityEngine; + +// Token: 0x0200012C RID: 300 +public class AdjustButtonController : ButtonControllerBase +{ + // Token: 0x060009F4 RID: 2548 RVA: 0x0002A074 File Offset: 0x00029274 + public override void Initialize(int monitorIndex) + { + base.Initialize(monitorIndex); + this.CommonButtons = new CommonButtonObject[this._frameAdjustButtons.Length]; + for (int i = 0; i < this.CommonButtons.Length; i++) + { + if (this._frameAdjustButtons[i] != null) + { + this.CommonButtons[i] = this._frameAdjustButtons[i]; + this.CommonButtons[i].Initialize(monitorIndex, (InputManager.ButtonSetting)i, CommonButtonObject.LedColors.None); + this.CommonButtons[i].SetSE(Cue.SE_SYS_CURSOR); + } + } + } + + // Token: 0x060009F5 RID: 2549 RVA: 0x0002A0F0 File Offset: 0x000292F0 + public void SetTopImage(bool isNormal, params int[] ids) + { + for (int i = 0; i < ids.Length; i++) + { + if (this.CommonButtons[ids[i]] is FrameAdjustButton) + { + ((FrameAdjustButton)this.CommonButtons[ids[i]]).SetTopSprite(isNormal); + } + } + } + + // Token: 0x060009F6 RID: 2550 RVA: 0x0002A134 File Offset: 0x00029334 + public void SetLoopButton() + { + foreach (CommonButtonObject commonButtonObject in this.CommonButtons) + { + if (commonButtonObject != null && commonButtonObject is FrameAdjustButton && commonButtonObject.gameObject.activeSelf && commonButtonObject.gameObject.activeInHierarchy) + { + commonButtonObject.SetLoop(); + } + } + } + + // Token: 0x0400082E RID: 2094 + [SerializeField] + private FrameAdjustButton[] _frameAdjustButtons; +} diff --git a/Assembly-CSharp/AdvRankingParts.cs b/Assembly-CSharp/AdvRankingParts.cs new file mode 100644 index 0000000..836baa3 --- /dev/null +++ b/Assembly-CSharp/AdvRankingParts.cs @@ -0,0 +1,39 @@ +using System; +using UI; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x0200004E RID: 78 +public class AdvRankingParts : MonoBehaviour +{ + // Token: 0x0600025D RID: 605 RVA: 0x00008589 File Offset: 0x00007789 + public void SetMusic(Texture2D tex, string musicName, int rank, bool isNew) + { + this._ranking.ChangeSprite(rank); + this._jacket.texture = tex; + this._musicTitle.SetData(musicName); + this._new.SetActive(isNew); + } + + // Token: 0x0600025E RID: 606 RVA: 0x000085BC File Offset: 0x000077BC + public void ViewUpdate() + { + this._musicTitle.ViewUpdate(); + } + + // Token: 0x0400018B RID: 395 + [SerializeField] + private MultipleImage _ranking; + + // Token: 0x0400018C RID: 396 + [SerializeField] + private CustomTextScroll _musicTitle; + + // Token: 0x0400018D RID: 397 + [SerializeField] + private RawImage _jacket; + + // Token: 0x0400018E RID: 398 + [SerializeField] + private GameObject _new; +} diff --git a/Assembly-CSharp/AnimationParts.cs b/Assembly-CSharp/AnimationParts.cs new file mode 100644 index 0000000..942bdbe --- /dev/null +++ b/Assembly-CSharp/AnimationParts.cs @@ -0,0 +1,85 @@ +using System; +using UnityEngine; + +// Token: 0x0200010B RID: 267 +public class AnimationParts : MonoBehaviour +{ + // Token: 0x0600085F RID: 2143 RVA: 0x000205F7 File Offset: 0x0001F7F7 + private void Awake() + { + if (this._animator != null) + { + this._controller = this._animator.GetBehaviour(); + } + } + + // Token: 0x06000860 RID: 2144 RVA: 0x00020618 File Offset: 0x0001F818 + public bool isNull() + { + bool flag; + if (this._controller != null) + { + if (this._controller != null) + { + flag = true; + } + else + { + flag = false; + this._controller = null; + } + } + else + { + flag = this._controller != null; + } + return !flag; + } + + // Token: 0x06000861 RID: 2145 RVA: 0x00020664 File Offset: 0x0001F864 + public void Play(string animName, Action next, bool isSameState = false) + { + if (this.isNull()) + { + this._controller = this._animator.GetBehaviour(); + } + if (this._animator != null) + { + this._animator.Play(animName, 0, 0f); + } + if (next == null) + { + return; + } + int num = Animator.StringToHash("Base Layer." + animName); + if (!this.isNull()) + { + this._controller.SetExitParts(next, num, isSameState); + } + } + + // Token: 0x06000862 RID: 2146 RVA: 0x000206D5 File Offset: 0x0001F8D5 + public void Play(string animName) + { + if (this._animator != null) + { + this._animator.Play(animName, 0, 0f); + } + } + + // Token: 0x06000863 RID: 2147 RVA: 0x000206F7 File Offset: 0x0001F8F7 + public void ResetExitParts() + { + if (!this.isNull()) + { + this._controller.ResetExitParts(); + } + } + + // Token: 0x040006AC RID: 1708 + [SerializeField] + private Animator _animator; + + // Token: 0x040006AD RID: 1709 + private StateAnimController _controller; +} diff --git a/Assembly-CSharp/AnimatorExtensions.cs b/Assembly-CSharp/AnimatorExtensions.cs new file mode 100644 index 0000000..25d93d4 --- /dev/null +++ b/Assembly-CSharp/AnimatorExtensions.cs @@ -0,0 +1,27 @@ +using System; +using UnityEngine; + +// Token: 0x0200018F RID: 399 +public static class AnimatorExtensions +{ + // Token: 0x06000E15 RID: 3605 RVA: 0x00042F8C File Offset: 0x0004218C + public static void PlayendAction(this Animator animator, int layer, int fullPathHash, Action playend) + { + AnimatorStateInfo currentAnimatorStateInfo = animator.GetCurrentAnimatorStateInfo(layer); + if (currentAnimatorStateInfo.fullPathHash != fullPathHash) + { + return; + } + if (currentAnimatorStateInfo.normalizedTime < 1f) + { + return; + } + playend(); + } + + // Token: 0x06000E16 RID: 3606 RVA: 0x00042FC1 File Offset: 0x000421C1 + public static void PlayendAction(this Animator animator, int layer, string fullPath, Action playend) + { + animator.PlayendAction(layer, Animator.StringToHash(fullPath), playend); + } +} diff --git a/Assembly-CSharp/Assembly-CSharp.csproj b/Assembly-CSharp/Assembly-CSharp.csproj new file mode 100644 index 0000000..47588b0 --- /dev/null +++ b/Assembly-CSharp/Assembly-CSharp.csproj @@ -0,0 +1,2426 @@ + + + + + Debug + x64 + {BACC7FFE-E92C-42A1-8309-139CD2E40ED2} + Library + Assembly-CSharp + Assembly-CSharp + v4.0 + 512 + + + x64 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + true + + + x64 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Assembly-CSharp/AssetBundleManager.cs b/Assembly-CSharp/AssetBundleManager.cs new file mode 100644 index 0000000..8182b88 --- /dev/null +++ b/Assembly-CSharp/AssetBundleManager.cs @@ -0,0 +1,151 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using MAI2.Util; +using Manager; +using UnityEngine; + +// Token: 0x0200001D RID: 29 +[ProjectPrefs("AssetBundleRootDirectory", "アセットバンドルの対象となるルートディレクトリへのPath", "AssetBundle", typeof(string))] +public class AssetBundleManager +{ + // Token: 0x06000091 RID: 145 RVA: 0x00003E38 File Offset: 0x00003038 + public AssetBundleManager(string assetbundleDirectoryPath, MonoBehaviour coroutineObject) + { + this.coroutineObject = coroutineObject; + this.cacheAssetBundleDic = new Dictionary(); + string assetBundlePath = Singleton.Instance.GetAssetBundlePath("AssetBundleImages"); + if (File.Exists(assetBundlePath)) + { + AssetBundle assetBundle = AssetBundle.LoadFromFile(assetBundlePath); + this.manifest = assetBundle.LoadAsset("assetbundlemanifest"); + } + } + + // Token: 0x06000092 RID: 146 RVA: 0x00003E8D File Offset: 0x0000308D + public float GetLoadProgress() + { + return this.progress; + } + + // Token: 0x06000093 RID: 147 RVA: 0x00003E95 File Offset: 0x00003095 + public string[] GetAllAssetBundlePathNames() + { + if (this.manifest != null) + { + return this.manifest.GetAllAssetBundles(); + } + return null; + } + + // Token: 0x06000094 RID: 148 RVA: 0x00003EB4 File Offset: 0x000030B4 + public void LoadAllAssetBundle() + { + if (this.manifest != null) + { + this.queue = new Queue(this.manifest.GetAllAssetBundles()); + this.totalNumber = this.queue.Count; + for (int i = 0; i < 16; i++) + { + this.coroutineObject.StartCoroutine(this.LoadAssetBundleAsync(this.queue, new Action(this.OnSucess))); + } + this.coroutineObject.StartCoroutine(this.CheckAllLoadEnded(this.queue)); + return; + } + throw new Exception("Manifestが存在していません"); + } + + // Token: 0x06000095 RID: 149 RVA: 0x00003F4A File Offset: 0x0000314A + private IEnumerator CheckAllLoadEnded(Queue queue) + { + yield return new WaitWhile(delegate + { + this.progress = 1f - (float)queue.Count / (float)this.totalNumber; + return queue.Count > 0; + }); + this.isDone = true; + yield break; + } + + // Token: 0x06000096 RID: 150 RVA: 0x00003F60 File Offset: 0x00003160 + private IEnumerator LoadAssetBundleAsync(Queue queue, Action onSucess) + { + while (queue.Count > 0) + { + AssetBundleManager.<>c__DisplayClass15_0 CS$<>8__locals1 = new AssetBundleManager.<>c__DisplayClass15_0(); + string path = queue.Dequeue(); + CS$<>8__locals1.requeset = AssetBundle.LoadFromFileAsync(Singleton.Instance.GetAssetBundlePath(path)); + yield return new WaitWhile(() => !CS$<>8__locals1.requeset.isDone); + this.OnSucess(path, CS$<>8__locals1.requeset.assetBundle); + CS$<>8__locals1 = null; + path = null; + } + yield break; + } + + // Token: 0x06000097 RID: 151 RVA: 0x00003F78 File Offset: 0x00003178 + private void OnSucess(string name, AssetBundle loadedAssetBundle) + { + try + { + string text = name.ToLower(); + string extension = Path.GetExtension(text); + this.cacheAssetBundleDic.Add(text.Replace(extension, string.Empty), loadedAssetBundle); + } + catch + { + } + } + + // Token: 0x06000098 RID: 152 RVA: 0x00003FC0 File Offset: 0x000031C0 + public T LoadAsset(string assetPath) where T : Object + { + string text = "Assets/" + ProjectPrefs.GetString("AssetBundleRootDirectory") + assetPath; + string text2 = assetPath.ToLower(); + string extension = Path.GetExtension(text2); + text2 = text2.Replace(extension, string.Empty); + if (this.cacheAssetBundleDic.ContainsKey(text2)) + { + return this.cacheAssetBundleDic[text2].LoadAsset(text); + } + return default(T); + } + + // Token: 0x06000099 RID: 153 RVA: 0x00004028 File Offset: 0x00003228 + public AssetBundleRequest LoadAssetAsync(string assetPath) where T : Object + { + string text = "Assets/" + ProjectPrefs.GetString("AssetBundleRootDirectory") + assetPath; + return this.cacheAssetBundleDic[assetPath].LoadAssetAsync(text); + } + + // Token: 0x0400004E RID: 78 + public const string ASSETBUNDLE_ROOT_DIRECTORY = "AssetBundleRootDirectory"; + + // Token: 0x0400004F RID: 79 + private const int threadCount = 16; + + // Token: 0x04000050 RID: 80 + public bool isDone; + + // Token: 0x04000051 RID: 81 + private MonoBehaviour coroutineObject; + + // Token: 0x04000052 RID: 82 + private Dictionary cacheAssetBundleDic; + + // Token: 0x04000053 RID: 83 + private AssetBundleManifest manifest; + + // Token: 0x04000054 RID: 84 + private Queue queue; + + // Token: 0x04000055 RID: 85 + private string directoryPath; + + // Token: 0x04000056 RID: 86 + private int totalNumber; + + // Token: 0x04000057 RID: 87 + private float progress; +} diff --git a/Assembly-CSharp/AssetManager.cs b/Assembly-CSharp/AssetManager.cs new file mode 100644 index 0000000..1972f2b --- /dev/null +++ b/Assembly-CSharp/AssetManager.cs @@ -0,0 +1,664 @@ +using System; +using System.IO; +using MAI2.Util; +using Manager; +using UnityEngine; +using Util; + +// Token: 0x0200003B RID: 59 +public class AssetManager +{ + // Token: 0x06000188 RID: 392 RVA: 0x000063C9 File Offset: 0x000055C9 + public static void SetInstance(AssetManager asset) + { + AssetManager._instance = asset; + } + + // Token: 0x06000189 RID: 393 RVA: 0x000063D1 File Offset: 0x000055D1 + public static AssetManager Instance() + { + return AssetManager._instance; + } + + // Token: 0x0600018A RID: 394 RVA: 0x000063D8 File Offset: 0x000055D8 + public AssetManager(MonoBehaviour monoBehaviour) + { + string fullPath = Path.GetFullPath(Path.Combine(Application.streamingAssetsPath, "A000/AssetBundleImages/")); + this.assetBundleManager = new AssetBundleManager(fullPath, monoBehaviour); + } + + // Token: 0x0600018B RID: 395 RVA: 0x0000640D File Offset: 0x0000560D + public void Initialize() + { + this.assetBundleManager.LoadAllAssetBundle(); + } + + // Token: 0x0600018C RID: 396 RVA: 0x0000641A File Offset: 0x0000561A + public bool IsDone() + { + return this.assetBundleManager.isDone; + } + + // Token: 0x0600018D RID: 397 RVA: 0x00006427 File Offset: 0x00005627 + public float GetProgress() + { + return this.assetBundleManager.GetLoadProgress(); + } + + // Token: 0x0600018E RID: 398 RVA: 0x00006434 File Offset: 0x00005634 + public string[] GetAllAssetBundlePathNames() + { + return this.assetBundleManager.GetAllAssetBundlePathNames(); + } + + // Token: 0x0600018F RID: 399 RVA: 0x00006441 File Offset: 0x00005641 + public T LoadAsset(string dataPath) where T : Object + { + dataPath = dataPath.ToLower(); + return this.assetBundleManager.LoadAsset(dataPath); + } + + // Token: 0x06000190 RID: 400 RVA: 0x00006457 File Offset: 0x00005657 + public AssetBundleRequest LoadAssetAcync(string dataPath) where T : Object + { + dataPath = dataPath.ToLower(); + return this.assetBundleManager.LoadAssetAsync(dataPath); + } + + // Token: 0x06000191 RID: 401 RVA: 0x0000646D File Offset: 0x0000566D + public Texture2D GetJacketTexture2D(int id) + { + if (Singleton.Instance.GetMusic(id) == null) + { + return this.GetJacketTexture2D("Jacket/UI_Jacket_000000.png"); + } + return this.GetJacketTexture2D(Singleton.Instance.GetMusic(id).jacketFile); + } + + // Token: 0x06000192 RID: 402 RVA: 0x000064A0 File Offset: 0x000056A0 + public Texture2D GetJacketTexture2D(string filename) + { + filename = Singleton.Instance.ReplaceIfDresscode(filename); + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("Jacket/UI_Jacket_000000.png"); + } + return texture2D; + } + + // Token: 0x06000193 RID: 403 RVA: 0x000064D8 File Offset: 0x000056D8 + public Texture2D GetJacketThumbTexture2D(int id) + { + if (Singleton.Instance.GetMusic(id) == null) + { + return this.GetJacketThumbTexture2D("Jacket_S/UI_Jacket_000000_S.png"); + } + return this.GetJacketThumbTexture2D(Singleton.Instance.GetMusic(id).thumbnailName); + } + + // Token: 0x06000194 RID: 404 RVA: 0x0000650C File Offset: 0x0000570C + public Texture2D GetJacketThumbTexture2D(string filename) + { + filename = Singleton.Instance.ReplaceIfDresscode(filename); + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("Jacket_S/UI_Jacket_000000_S.png"); + } + return texture2D; + } + + // Token: 0x06000195 RID: 405 RVA: 0x00006544 File Offset: 0x00005744 + public Texture2D GetIconTexture2D(int playerIndex, int id) + { + if (id == 10 && playerIndex < 2 && playerIndex >= 0 && null != GameManager.FaceIconTexture[playerIndex]) + { + return GameManager.FaceIconTexture[playerIndex]; + } + if (Singleton.Instance.GetIcon(id) != null) + { + return this.GetIconTexture2D(Singleton.Instance.GetIcon(id).fileName); + } + if (!GameCommonSetting.IsRandom(id)) + { + return this.GetIconTexture2D("Icon/UI_Icon_000000.png"); + } + return this.GetIconTexture2D(string.Format("Icon/UI_Icon_00000{0}.png", id)); + } + + // Token: 0x06000196 RID: 406 RVA: 0x000065C4 File Offset: 0x000057C4 + private Texture2D GetIconTexture2D(string filename) + { + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("Icon/UI_Icon_000000.png"); + } + return texture2D; + } + + // Token: 0x06000197 RID: 407 RVA: 0x000065F0 File Offset: 0x000057F0 + public Texture2D GetPlateTexture2D(int id) + { + if (Singleton.Instance.GetPlate(id) != null) + { + return this.GetPlateTexture2D(Singleton.Instance.GetPlate(id).fileName); + } + if (!GameCommonSetting.IsRandom(id)) + { + return this.GetPlateTexture2D("NamePlate/UI_Plate_000000.png"); + } + return this.GetIconTexture2D(string.Format("NamePlate/UI_Plate_00000{0}.png", id)); + } + + // Token: 0x06000198 RID: 408 RVA: 0x0000664C File Offset: 0x0000584C + public Texture2D GetPlateTexture2D(string filename) + { + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("NamePlate/UI_Plate_000000.png"); + } + return texture2D; + } + + // Token: 0x06000199 RID: 409 RVA: 0x00006677 File Offset: 0x00005877 + public Texture2D GetPartnerTexture2D(int id) + { + if (Singleton.Instance.GetPartner(id) == null) + { + return this.GetPartnerTexture2D("Partner/UI_PartnerIcon_000000.png"); + } + return this.GetPartnerTexture2D(Singleton.Instance.GetPartner(id).fileName); + } + + // Token: 0x0600019A RID: 410 RVA: 0x000066A8 File Offset: 0x000058A8 + public Texture2D GetPartnerTexture2D(string filename) + { + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("Partner/UI_PartnerIcon_000000.png"); + } + return texture2D; + } + + // Token: 0x0600019B RID: 411 RVA: 0x000066D4 File Offset: 0x000058D4 + public Texture2D GetFrameTexture2D(int id) + { + if (Singleton.Instance.GetFrame(id) != null) + { + return this.GetFrameTexture2D(Singleton.Instance.GetFrame(id).fileName); + } + if (!GameCommonSetting.IsRandom(id)) + { + return this.GetFrameTexture2D("Frame/UI_Frame_000000.png"); + } + return this.GetIconTexture2D(string.Format("Frame/UI_Frame_00000{0}.png", id)); + } + + // Token: 0x0600019C RID: 412 RVA: 0x00006730 File Offset: 0x00005930 + public Texture2D GetFrameTexture2D(string filename) + { + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("Frame/UI_Frame_000000.png"); + } + return texture2D; + } + + // Token: 0x0600019D RID: 413 RVA: 0x0000675B File Offset: 0x0000595B + public Texture2D GetFrameMaskTexture2D(int id) + { + if (Singleton.Instance.GetFrame(id) == null) + { + return this.GetFrameMaskTexture2D("FrameMask/UI_FrameMask_000000.png"); + } + return this.GetFrameMaskTexture2D(Singleton.Instance.GetFrame(id).maskName); + } + + // Token: 0x0600019E RID: 414 RVA: 0x0000678C File Offset: 0x0000598C + public Texture2D GetFrameMaskTexture2D(string filename) + { + Texture2D texture2D = null; + if (filename.Length > 0) + { + texture2D = this.LoadAsset(filename); + } + if (texture2D == null) + { + texture2D = this.LoadAsset("FrameMask/UI_FrameMask_000000.png"); + } + return texture2D; + } + + // Token: 0x0600019F RID: 415 RVA: 0x000067C2 File Offset: 0x000059C2 + public Texture2D GetFramePatternTexture2D(int id) + { + if (Singleton.Instance.GetFrame(id) == null) + { + return this.GetFramePatternTexture2D("FramePattern/UI_FramePattern_000000.png"); + } + return this.GetFramePatternTexture2D(Singleton.Instance.GetFrame(id).patternName); + } + + // Token: 0x060001A0 RID: 416 RVA: 0x000067F4 File Offset: 0x000059F4 + public Texture2D GetFramePatternTexture2D(string filename) + { + Texture2D texture2D = null; + if (filename.Length > 0) + { + texture2D = this.LoadAsset(filename); + } + if (texture2D == null) + { + texture2D = this.LoadAsset("FramePattern/UI_FramePattern_000000.png"); + } + return texture2D; + } + + // Token: 0x060001A1 RID: 417 RVA: 0x0000682C File Offset: 0x00005A2C + public Texture2D GetFrameThumbTexture2D(int id) + { + if (Singleton.Instance.GetFrame(id) != null) + { + return this.GetFrameThumbTexture2D(Singleton.Instance.GetFrame(id).thumbnailName); + } + if (!GameCommonSetting.IsRandom(id)) + { + return this.GetFrameThumbTexture2D("Frame_S/UI_Frame_000000_S.png"); + } + return this.GetIconTexture2D(string.Format("Frame_S/UI_Frame_00000{0}_S.png", id)); + } + + // Token: 0x060001A2 RID: 418 RVA: 0x00006888 File Offset: 0x00005A88 + public Texture2D GetFrameThumbTexture2D(string filename) + { + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("Frame_S/UI_Frame_000000_S.png"); + } + return texture2D; + } + + // Token: 0x060001A3 RID: 419 RVA: 0x000068B3 File Offset: 0x00005AB3 + public Texture2D GetCharacterTexture2D(int id) + { + if (Singleton.Instance.GetChara(id) == null) + { + return this.GetCharacterTexture2D("Chara/UI_Chara_000000.png"); + } + return this.GetCharacterTexture2D(Singleton.Instance.GetChara(id).imageFile); + } + + // Token: 0x060001A4 RID: 420 RVA: 0x000068E4 File Offset: 0x00005AE4 + public Texture2D GetCharacterTexture2D(string filename) + { + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("Chara/UI_Chara_000000.png"); + } + return texture2D; + } + + // Token: 0x060001A5 RID: 421 RVA: 0x00006910 File Offset: 0x00005B10 + public Texture2D GetPartnerResultTexture2D(int id) + { + string text = "Partner/UI_PartnerResult_" + id.ToString("000000") + ".png"; + Texture2D texture2D = this.LoadAsset(text); + if (texture2D == null) + { + texture2D = this.LoadAsset("Partner/UI_PartnerResult_000001.png"); + } + return texture2D; + } + + // Token: 0x060001A6 RID: 422 RVA: 0x00006957 File Offset: 0x00005B57 + public Texture2D GetPhotoFrameTexture2D(int id) + { + return this.GetPhotoFrameTexture2D(Singleton.Instance.GetPhotoFrame(id).imageFile); + } + + // Token: 0x060001A7 RID: 423 RVA: 0x00006970 File Offset: 0x00005B70 + public Texture2D GetPhotoFrameTexture2D(string filename) + { + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("PhotoFrame/UI_PhotoFrame_000000.png"); + } + return texture2D; + } + + // Token: 0x060001A8 RID: 424 RVA: 0x0000699B File Offset: 0x00005B9B + public Texture2D GetRightTexture2D(int id) + { + return this.GetRightTexture2D(Singleton.Instance.GetMusic(id).rightFile); + } + + // Token: 0x060001A9 RID: 425 RVA: 0x000069B4 File Offset: 0x00005BB4 + public Texture2D GetRightTexture2D(string filename) + { + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("Rights/UI_Rights_000000.png"); + } + return texture2D; + } + + // Token: 0x060001AA RID: 426 RVA: 0x000069DF File Offset: 0x00005BDF + public Texture2D GetSilhouetteTexture2D(int id) + { + return this.GetSilhouetteTexture2D(Singleton.Instance.GetMapSilhouetteData(id).fileName); + } + + // Token: 0x060001AB RID: 427 RVA: 0x000069F8 File Offset: 0x00005BF8 + public Texture2D GetSilhouetteTexture2D(string filename) + { + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("Silhouette/UI_Silhouette_000000.png"); + } + return texture2D; + } + + // Token: 0x060001AC RID: 428 RVA: 0x00006A23 File Offset: 0x00005C23 + public Texture2D GetCardCharaTexture2D(int id) + { + return this.GetCardCharaTexture2D(Singleton.Instance.GetCardChara(id).thumbnailName); + } + + // Token: 0x060001AD RID: 429 RVA: 0x00006A3C File Offset: 0x00005C3C + public Texture2D GetCardCharaTexture2D(string filename) + { + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("CardChara_S/UI_CardChara_000000_S.png"); + } + return texture2D; + } + + // Token: 0x060001AE RID: 430 RVA: 0x00006A68 File Offset: 0x00005C68 + public Texture2D GetCardBaseTexture2D(int id, int effectId) + { + string text = "CardBase_S/UI_CardBase_" + string.Format("{0:D7}_", id) + string.Format("{0:D6}", effectId) + "_S.png"; + return this.GetCardBaseTexture2D(text); + } + + // Token: 0x060001AF RID: 431 RVA: 0x00006AAC File Offset: 0x00005CAC + private Texture2D GetCardBaseTexture2D(string filename) + { + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("CardBase_S/UI_CardBase_0000000_000000_S.png"); + } + return texture2D; + } + + // Token: 0x060001B0 RID: 432 RVA: 0x00006AD7 File Offset: 0x00005CD7 + public Texture2D GetCardFrameTexture2D(int id) + { + return this.GetCardFrameTexture2D(Singleton.Instance.GetCardType(id).frameThumbnailName); + } + + // Token: 0x060001B1 RID: 433 RVA: 0x00006AF0 File Offset: 0x00005CF0 + public Texture2D GetCardFrameTexture2D(string filename) + { + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("CardFrame_S/UI_CardFrame_0000000_S.png"); + } + return texture2D; + } + + // Token: 0x060001B2 RID: 434 RVA: 0x00006B1B File Offset: 0x00005D1B + public Texture2D GetScoreRankingTexture2D(int id) + { + return this.GetScoreRankingTexture2D(Singleton.Instance.GetScoreRanking(id).FileName); + } + + // Token: 0x060001B3 RID: 435 RVA: 0x00006B34 File Offset: 0x00005D34 + public Texture2D GetScoreRankingTexture2D(string filename) + { + Texture2D texture2D = this.LoadAsset(filename); + if (texture2D == null) + { + texture2D = this.LoadAsset("Frame_S/UI_Frame_000000_S.png"); + } + return texture2D; + } + + // Token: 0x060001B4 RID: 436 RVA: 0x00006B60 File Offset: 0x00005D60 + public GameObject GetIslandPrefab(int id) + { + string text = "Map/Prefab/Island/UI_" + string.Format("{0:D6}", id) + ".prefab"; + GameObject gameObject = this.LoadAsset(text); + if (gameObject == null) + { + id = 1; + text = "Map/Prefab/Island/UI_" + string.Format("{0:D6}", id) + ".prefab"; + gameObject = this.LoadAsset(text); + } + return gameObject; + } + + // Token: 0x060001B5 RID: 437 RVA: 0x00006BCC File Offset: 0x00005DCC + public GameObject GetIslandPrefab(string _filename) + { + string text = "Map/Prefab/Island/" + _filename + ".prefab"; + GameObject gameObject = this.LoadAsset(text); + gameObject == null; + return gameObject; + } + + // Token: 0x060001B6 RID: 438 RVA: 0x00006BFC File Offset: 0x00005DFC + public Texture2D GetIslandBgTexture(string filename) + { + string text = "Map/Sprite/BG" + filename + ".png"; + Texture2D texture2D = this.LoadAsset(text); + texture2D == null; + return texture2D; + } + + // Token: 0x060001B7 RID: 439 RVA: 0x00006C2C File Offset: 0x00005E2C + public GameObject GetNaviCharaPrefab(int id) + { + string text = "NaviChara/Prefab/UI_Navichara_" + string.Format("{0:D2}", id) + ".prefab"; + GameObject gameObject = this.LoadAsset(text); + if (gameObject == null) + { + id = 1; + text = "NaviChara/Prefab/UI_Navichara_" + string.Format("{0:D2}", id) + ".prefab"; + gameObject = this.LoadAsset(text); + } + return gameObject; + } + + // Token: 0x060001B8 RID: 440 RVA: 0x00006C98 File Offset: 0x00005E98 + public Texture2D GetNaviCharaIcon(int id) + { + string text = "NaviChara/Icon/UI_CMN_NaviChara_Icon_" + string.Format("{0:D2}", id) + ".png"; + Texture2D texture2D = this.LoadAsset(text); + if (texture2D == null) + { + id = 1; + text = "NaviChara/Icon/UI_CMN_NaviChara_Icon_" + string.Format("{0:D2}", id) + ".png"; + texture2D = this.LoadAsset(text); + } + return texture2D; + } + + // Token: 0x060001B9 RID: 441 RVA: 0x00006D04 File Offset: 0x00005F04 + public Sprite GetMapBgSprite(int mapId, string filename) + { + string text = string.Concat(new string[] + { + "Map/Sprite/BG/", + mapId.ToString("000000"), + "/", + filename, + ".png" + }); + Sprite sprite = this.LoadAsset(text); + if (sprite == null) + { + mapId = (Singleton.Instance.IsCollaboMap(mapId) ? 990001 : 999999); + text = string.Concat(new string[] + { + "Map/Sprite/BG/", + mapId.ToString("000000"), + "/", + filename, + ".png" + }); + sprite = this.LoadAsset(text); + } + return sprite; + } + + // Token: 0x060001BA RID: 442 RVA: 0x00006DB4 File Offset: 0x00005FB4 + public Texture2D GetMapBgTexture2D(int mapId, string filename) + { + string text = string.Concat(new string[] + { + "Map/Sprite/BG/", + mapId.ToString("000000"), + "/", + filename, + ".png" + }); + Texture2D texture2D = this.LoadAsset(text); + if (texture2D == null) + { + mapId = 1; + text = string.Concat(new string[] + { + "Map/Sprite/BG/", + mapId.ToString("000000"), + "/", + filename, + ".png" + }); + texture2D = this.LoadAsset(text); + } + return texture2D; + } + + // Token: 0x060001BB RID: 443 RVA: 0x00006E4C File Offset: 0x0000604C + public Sprite GetTabTitleSprite(string filename) + { + string text = SelectorTab.CategoryTabImagePath + filename; + Sprite sprite = Resources.Load(text); + if (sprite == null) + { + text = "TabTitle/" + filename + ".png"; + sprite = this.LoadAsset(text); + sprite == null; + } + return sprite; + } + + // Token: 0x060001BC RID: 444 RVA: 0x00006E98 File Offset: 0x00006098 + public Texture2D GetTabTitleTexture2D(string filename) + { + string text = SelectorTab.CategoryTabImagePath + filename; + Texture2D texture2D = Resources.Load(text); + if (texture2D == null) + { + text = "TabTitle/" + filename + ".png"; + texture2D = this.LoadAsset(text); + texture2D == null; + } + return texture2D; + } + + // Token: 0x060001BD RID: 445 RVA: 0x00006EE4 File Offset: 0x000060E4 + public GameObject GetSpecialEffectPrefab(string _filename) + { + string text = "SpecialEffect/Prefab/" + _filename + ".prefab"; + GameObject gameObject = this.LoadAsset(text); + gameObject == null; + return gameObject; + } + + // Token: 0x0400010C RID: 268 + private AssetBundleManager assetBundleManager; + + // Token: 0x0400010D RID: 269 + public const string IconDummyName = "Icon/UI_Icon_000000.png"; + + // Token: 0x0400010E RID: 270 + public const string PlateDummyName = "NamePlate/UI_Plate_000000.png"; + + // Token: 0x0400010F RID: 271 + public const string PartnerDummyName = "Partner/UI_PartnerIcon_000000.png"; + + // Token: 0x04000110 RID: 272 + public const string FrameDummyName = "Frame/UI_Frame_000000.png"; + + // Token: 0x04000111 RID: 273 + public const string FrameMaskDummyName = "FrameMask/UI_FrameMask_000000.png"; + + // Token: 0x04000112 RID: 274 + public const string FramePatternDummyName = "FramePattern/UI_FramePattern_000000.png"; + + // Token: 0x04000113 RID: 275 + public const string FrameThumbDummyName = "Frame_S/UI_Frame_000000_S.png"; + + // Token: 0x04000114 RID: 276 + public const string CharaDummyName = "Chara/UI_Chara_000000.png"; + + // Token: 0x04000115 RID: 277 + public const string PartnerResultDummyName = "Partner/UI_PartnerResult_000001.png"; + + // Token: 0x04000116 RID: 278 + public const string JacketDummyName = "Jacket/UI_Jacket_000000.png"; + + // Token: 0x04000117 RID: 279 + public const string JacketThumbDummyName = "Jacket_S/UI_Jacket_000000_S.png"; + + // Token: 0x04000118 RID: 280 + public const string RightDummyName = "Rights/UI_Rights_000000.png"; + + // Token: 0x04000119 RID: 281 + public const string SilhouetDummyName = "Silhouette/UI_Silhouette_000000.png"; + + // Token: 0x0400011A RID: 282 + public const string SilhouetBossName = "Silhouette/UI_Silhouette_000100.png"; + + // Token: 0x0400011B RID: 283 + public const string PhotoFrameDummyName = "PhotoFrame/UI_PhotoFrame_000000.png"; + + // Token: 0x0400011C RID: 284 + public const string CardCharaThumbDummyName = "CardChara_S/UI_CardChara_000000_S.png"; + + // Token: 0x0400011D RID: 285 + public const string CardBaseThumbDummyName = "CardBase_S/UI_CardBase_0000000_000000_S.png"; + + // Token: 0x0400011E RID: 286 + public const string CardFrameThumbDummyName = "CardFrame_S/UI_CardFrame_0000000_S.png"; + + // Token: 0x0400011F RID: 287 + public const string IconRandomFileName = "Icon/UI_Icon_00000{0}.png"; + + // Token: 0x04000120 RID: 288 + public const string PlateRandomFileName = "NamePlate/UI_Plate_00000{0}.png"; + + // Token: 0x04000121 RID: 289 + public const string FrameRandomFileName = "Frame/UI_Frame_00000{0}.png"; + + // Token: 0x04000122 RID: 290 + public const string FrameThumbRandomFileName = "Frame_S/UI_Frame_00000{0}_S.png"; + + // Token: 0x04000123 RID: 291 + private static AssetManager _instance; +} diff --git a/Assembly-CSharp/AwakeCenterIcon.cs b/Assembly-CSharp/AwakeCenterIcon.cs new file mode 100644 index 0000000..dc67b8a --- /dev/null +++ b/Assembly-CSharp/AwakeCenterIcon.cs @@ -0,0 +1,268 @@ +using System; +using UI; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x020000EA RID: 234 +public class AwakeCenterIcon : MonoBehaviour +{ + // Token: 0x0600078D RID: 1933 RVA: 0x0001CBB8 File Offset: 0x0001BDB8 + public void Prepare(int awakeNum, float gaugeAmount) + { + if (this._starEffectGenerator != null && this._starEffectAnimator == null) + { + this._starEffectAnimator = this._starEffectGenerator.Instantiate(); + Animator starEffectAnimator = this._starEffectAnimator; + if (starEffectAnimator != null) + { + starEffectAnimator.gameObject.SetActive(false); + } + } + if (this._awakeEffectGenerator != null && this._awakeEffectAnimator == null) + { + this._awakeEffectAnimator = this._awakeEffectGenerator.Instantiate(); + Animator awakeEffectAnimator = this._awakeEffectAnimator; + if (awakeEffectAnimator != null) + { + awakeEffectAnimator.gameObject.SetActive(false); + } + } + this._baseImage.ChangeSprite(awakeNum); + this.SetGaugeAmount(gaugeAmount); + this.SetVisibleStar(false); + } + + // Token: 0x0600078E RID: 1934 RVA: 0x0001CC5B File Offset: 0x0001BE5B + public void ChangeBaseImage(int awakeNum) + { + this._baseImage.ChangeSprite(awakeNum); + } + + // Token: 0x0600078F RID: 1935 RVA: 0x0001CC6C File Offset: 0x0001BE6C + public void AwakePrepare(int awakeNum, float gaugeAmount) + { + this._isCharaSelectCenterChain = false; + if (this._starEffectGenerator != null && this._starEffectAnimator == null) + { + this._starEffectAnimator = this._starEffectGenerator.Instantiate(); + Animator starEffectAnimator = this._starEffectAnimator; + if (starEffectAnimator != null) + { + starEffectAnimator.gameObject.SetActive(false); + } + } + if (this._awakeEffectGenerator != null && this._awakeEffectAnimator == null) + { + this._awakeEffectAnimator = this._awakeEffectGenerator.Instantiate(); + Animator awakeEffectAnimator = this._awakeEffectAnimator; + if (awakeEffectAnimator != null) + { + awakeEffectAnimator.gameObject.SetActive(false); + } + } + this._animator = base.gameObject.GetComponent(); + this._baseImage.ChangeSprite(awakeNum); + this.SetGaugeAmount(gaugeAmount); + this.SetVisibleStar(false); + this.HideStar(); + } + + // Token: 0x06000790 RID: 1936 RVA: 0x0001CD2D File Offset: 0x0001BF2D + public void SetGaugeAmount(float currentValue) + { + this._maskImage.fillAmount = currentValue; + } + + // Token: 0x06000791 RID: 1937 RVA: 0x0001CD3C File Offset: 0x0001BF3C + public void SetVisibleStar(bool isActive) + { + this._isStarActive = isActive; + this._starObj.gameObject.SetActive(true); + if (this._isCharaSelectCenterChain) + { + this._baseImage.gameObject.SetActive(true); + } + if (!isActive && this._animator != null) + { + this._animator.Play("Idle"); + return; + } + this._starObj.gameObject.SetActive(isActive); + if (isActive) + { + if (this._isCharaSelectCenterChain) + { + Animator starEffectAnimator = this._starEffectAnimator; + if (starEffectAnimator != null && !starEffectAnimator.gameObject.activeSelf) + { + this._starEffectAnimator.gameObject.SetActive(true); + } + Animator starEffectAnimator2 = this._starEffectAnimator; + if (starEffectAnimator2 == null) + { + return; + } + starEffectAnimator2.Play(Animator.StringToHash("GetStar_Eff")); + return; + } + } + else + { + Animator starEffectAnimator3 = this._starEffectAnimator; + if (starEffectAnimator3 == null) + { + return; + } + starEffectAnimator3.gameObject.SetActive(false); + } + } + + // Token: 0x06000792 RID: 1938 RVA: 0x0001CE16 File Offset: 0x0001C016 + public void SetStarType(bool isCounterStop) + { + this._starObj.sprite = (isCounterStop ? this._counterStopStarSprite : this._awakeingStarSprite); + } + + // Token: 0x06000793 RID: 1939 RVA: 0x0001CE34 File Offset: 0x0001C034 + public void AnimCenterSpark() + { + Animator awakeEffectAnimator = this._awakeEffectAnimator; + if (awakeEffectAnimator != null) + { + awakeEffectAnimator.gameObject.SetActive(true); + } + Animator awakeEffectAnimator2 = this._awakeEffectAnimator; + if (awakeEffectAnimator2 == null) + { + return; + } + awakeEffectAnimator2.Play("SpartkStar_Eff"); + } + + // Token: 0x06000794 RID: 1940 RVA: 0x0001CE64 File Offset: 0x0001C064 + public void OnCenterIn() + { + if (this._isStarActive) + { + Animator starEffectAnimator = this._starEffectAnimator; + if (starEffectAnimator != null && !starEffectAnimator.gameObject.activeSelf) + { + this._starEffectAnimator.gameObject.SetActive(true); + } + Animator starEffectAnimator2 = this._starEffectAnimator; + if (starEffectAnimator2 != null) + { + starEffectAnimator2.Play(Animator.StringToHash("GetStar_Eff"), 0, 0f); + } + if (null != this._animator) + { + Animator animator = this._animator; + if (animator == null) + { + return; + } + animator.Play(Animator.StringToHash("GetStar"), 0, 0f); + } + } + } + + // Token: 0x06000795 RID: 1941 RVA: 0x00003598 File Offset: 0x00002798 + public void OnCenterOut() + { + } + + // Token: 0x06000796 RID: 1942 RVA: 0x0001CEF5 File Offset: 0x0001C0F5 + public void HideStar() + { + Image starObj = this._starObj; + if (starObj == null) + { + return; + } + starObj.gameObject.SetActive(false); + } + + // Token: 0x06000797 RID: 1943 RVA: 0x0001CF10 File Offset: 0x0001C110 + public void AwakeStar() + { + Animator starEffectAnimator = this._starEffectAnimator; + if (starEffectAnimator != null && !starEffectAnimator.gameObject.activeSelf) + { + this._starEffectAnimator.gameObject.SetActive(true); + } + Image starObj = this._starObj; + if (starObj != null) + { + starObj.gameObject.SetActive(true); + } + Animator starEffectAnimator2 = this._starEffectAnimator; + if (starEffectAnimator2 != null) + { + starEffectAnimator2.Play(Animator.StringToHash("GetStar_Eff"), 0, 0f); + } + Animator animator = this._animator; + if (animator == null) + { + return; + } + animator.Play(Animator.StringToHash("GetStar"), 0, 0f); + } + + // Token: 0x06000798 RID: 1944 RVA: 0x0001CFA2 File Offset: 0x0001C1A2 + public void AwakeStarDisp(float gaugeAmount) + { + this.SetGaugeAmount(gaugeAmount); + } + + // Token: 0x040005A7 RID: 1447 + [SerializeField] + [Header("Base")] + private MultipleImage _baseImage; + + // Token: 0x040005A8 RID: 1448 + [SerializeField] + [Header("覚醒ゲージ")] + private Image _maskImage; + + // Token: 0x040005A9 RID: 1449 + [SerializeField] + [Header("星")] + private Image _starObj; + + // Token: 0x040005AA RID: 1450 + [SerializeField] + private Animator _animator; + + // Token: 0x040005AB RID: 1451 + [SerializeField] + [Header("星演出")] + private InstantiateGenerator _starEffectGenerator; + + // Token: 0x040005AC RID: 1452 + [SerializeField] + [Header("覚醒時演出")] + private InstantiateGenerator _awakeEffectGenerator; + + // Token: 0x040005AD RID: 1453 + [SerializeField] + private bool _isCharaSelectCenterChain; + + // Token: 0x040005AE RID: 1454 + [SerializeField] + [Header("覚醒星")] + private Sprite _awakeingStarSprite; + + // Token: 0x040005AF RID: 1455 + [SerializeField] + [Header("カンスト星")] + private Sprite _counterStopStarSprite; + + // Token: 0x040005B0 RID: 1456 + private bool _isStarActive; + + // Token: 0x040005B1 RID: 1457 + private Animator _starEffectAnimator; + + // Token: 0x040005B2 RID: 1458 + private Animator _awakeEffectAnimator; +} diff --git a/Assembly-CSharp/AwakeIcon.cs b/Assembly-CSharp/AwakeIcon.cs new file mode 100644 index 0000000..531d2fa --- /dev/null +++ b/Assembly-CSharp/AwakeIcon.cs @@ -0,0 +1,229 @@ +using System; +using UI; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x020000EB RID: 235 +public class AwakeIcon : MonoBehaviour +{ + // Token: 0x0600079A RID: 1946 RVA: 0x0001CFAC File Offset: 0x0001C1AC + public void Prepare(int awakeNum, bool isActive) + { + if (this._starEffectGenerator != null && this._starEffectAnimator == null) + { + this._starEffectAnimator = this._starEffectGenerator.Instantiate(); + Animator starEffectAnimator = this._starEffectAnimator; + if (starEffectAnimator != null) + { + starEffectAnimator.gameObject.SetActive(false); + } + } + Animator starEffectAnimator2 = this._starEffectAnimator; + if (starEffectAnimator2 != null) + { + starEffectAnimator2.gameObject.SetActive(false); + } + this._baseImage.ChangeSprite(awakeNum); + this.SetStarType(false); + this.SetVisible(isActive); + } + + // Token: 0x0600079B RID: 1947 RVA: 0x0001D028 File Offset: 0x0001C228 + public void ChangeBaseImage(int awakeNum) + { + this._baseImage.ChangeSprite(awakeNum); + } + + // Token: 0x0600079C RID: 1948 RVA: 0x0001D038 File Offset: 0x0001C238 + public void AwakePrepare(int awakeNum, bool isActive) + { + this._isCharaSelectCenterChain = false; + if (this._starEffectGenerator != null && this._starEffectAnimator == null) + { + this._starEffectAnimator = this._starEffectGenerator.Instantiate(); + Animator starEffectAnimator = this._starEffectAnimator; + if (starEffectAnimator != null) + { + starEffectAnimator.gameObject.SetActive(false); + } + } + this._animator = base.gameObject.GetComponent(); + Animator starEffectAnimator2 = this._starEffectAnimator; + if (starEffectAnimator2 != null) + { + starEffectAnimator2.gameObject.SetActive(false); + } + this._baseImage.ChangeSprite(awakeNum); + this.SetStarType(false); + this.SetVisible(isActive); + if (!isActive) + { + this.HideStar(); + } + } + + // Token: 0x0600079D RID: 1949 RVA: 0x0001D0D8 File Offset: 0x0001C2D8 + public void SetVisible(bool isActive) + { + this._isStarActive = isActive; + base.gameObject.SetActive(true); + if (this._starObject != null) + { + this._starObject.gameObject.SetActive(true); + } + if (this._isCharaSelectCenterChain) + { + this._baseImage.gameObject.SetActive(true); + } + if (!isActive && this._animator != null) + { + this._animator.Play("Idle"); + return; + } + if (!isActive) + { + base.gameObject.SetActive(isActive); + return; + } + if (this._starObject != null) + { + this._starObject.gameObject.SetActive(isActive); + } + if (this._isCharaSelectCenterChain) + { + this._baseImage.gameObject.SetActive(isActive); + } + if (this._isCharaSelectCenterChain) + { + Animator starEffectAnimator = this._starEffectAnimator; + if (starEffectAnimator != null && !starEffectAnimator.gameObject.activeSelf) + { + this._starEffectAnimator.gameObject.SetActive(true); + } + Animator starEffectAnimator2 = this._starEffectAnimator; + if (starEffectAnimator2 == null) + { + return; + } + starEffectAnimator2.Play(Animator.StringToHash("GetStar_Eff")); + } + } + + // Token: 0x0600079E RID: 1950 RVA: 0x0001D1E9 File Offset: 0x0001C3E9 + public void SetStarType(bool isCounterStop) + { + this._starObject.sprite = (isCounterStop ? this._counterStopStarSprite : this._awakeingStarSprite); + } + + // Token: 0x0600079F RID: 1951 RVA: 0x0001D208 File Offset: 0x0001C408 + public void OnCenterIn() + { + if (!this._isStarActive) + { + return; + } + if (this._starObject == null || !this._starObject.gameObject.activeSelf) + { + return; + } + Animator starEffectAnimator = this._starEffectAnimator; + if (starEffectAnimator != null && !starEffectAnimator.gameObject.activeSelf) + { + this._starEffectAnimator.gameObject.SetActive(true); + } + Animator starEffectAnimator2 = this._starEffectAnimator; + if (starEffectAnimator2 != null) + { + starEffectAnimator2.Play(Animator.StringToHash("GetStar_Eff"), 0, 0f); + } + if (null != this._animator) + { + Animator animator = this._animator; + if (animator == null) + { + return; + } + animator.Play(Animator.StringToHash("GetStar"), 0, 0f); + } + } + + // Token: 0x060007A0 RID: 1952 RVA: 0x00003598 File Offset: 0x00002798 + public void OnCenterOut() + { + } + + // Token: 0x060007A1 RID: 1953 RVA: 0x0001D2BB File Offset: 0x0001C4BB + public void HideStar() + { + Image starObject = this._starObject; + if (starObject == null) + { + return; + } + starObject.gameObject.SetActive(false); + } + + // Token: 0x060007A2 RID: 1954 RVA: 0x0001D2D4 File Offset: 0x0001C4D4 + public void AwakeStar() + { + Animator starEffectAnimator = this._starEffectAnimator; + if (starEffectAnimator != null) + { + starEffectAnimator.gameObject.SetActive(true); + } + Animator starEffectAnimator2 = this._starEffectAnimator; + if (starEffectAnimator2 != null) + { + starEffectAnimator2.Play(Animator.StringToHash("GetStar_Eff"), 0, 0f); + } + Image starObject = this._starObject; + if (starObject != null) + { + starObject.gameObject.SetActive(true); + } + Animator animator = this._animator; + if (animator == null) + { + return; + } + animator.Play(Animator.StringToHash("GetStar"), 0, 0f); + } + + // Token: 0x040005B3 RID: 1459 + [SerializeField] + private MultipleImage _baseImage; + + // Token: 0x040005B4 RID: 1460 + [SerializeField] + [Header("星")] + private Image _starObject; + + // Token: 0x040005B5 RID: 1461 + [SerializeField] + private Animator _animator; + + // Token: 0x040005B6 RID: 1462 + [SerializeField] + [Header("キャラセット用")] + private InstantiateGenerator _starEffectGenerator; + + // Token: 0x040005B7 RID: 1463 + [SerializeField] + private bool _isCharaSelectCenterChain; + + // Token: 0x040005B8 RID: 1464 + [SerializeField] + [Header("覚醒星")] + private Sprite _awakeingStarSprite; + + // Token: 0x040005B9 RID: 1465 + [SerializeField] + [Header("カンスト星")] + private Sprite _counterStopStarSprite; + + // Token: 0x040005BA RID: 1466 + private bool _isStarActive; + + // Token: 0x040005BB RID: 1467 + private Animator _starEffectAnimator; +} diff --git a/Assembly-CSharp/AwakeIconController.cs b/Assembly-CSharp/AwakeIconController.cs new file mode 100644 index 0000000..a93879f --- /dev/null +++ b/Assembly-CSharp/AwakeIconController.cs @@ -0,0 +1,131 @@ +using System; +using UnityEngine; + +// Token: 0x020000EC RID: 236 +public class AwakeIconController : MonoBehaviour +{ + // Token: 0x060007A4 RID: 1956 RVA: 0x0001D350 File Offset: 0x0001C550 + public void Prepare(float gaugeAmount, int awakeNum) + { + for (int i = 0; i < this._awakeIcons.Length; i++) + { + this._awakeIcons[i].Prepare(awakeNum, i < awakeNum); + if (awakeNum >= 5) + { + if (awakeNum >= 6) + { + this._awakeIcons[i].SetStarType(true); + } + else + { + this._awakeIcons[i].SetStarType(false); + } + } + } + this._centerIcon.Prepare(awakeNum, gaugeAmount); + if (awakeNum >= 5) + { + if (awakeNum >= 6) + { + this._centerIcon.SetStarType(true); + } + else + { + this._centerIcon.SetStarType(false); + } + this._centerIcon.SetVisibleStar(true); + return; + } + this._centerIcon.SetStarType(false); + } + + // Token: 0x060007A5 RID: 1957 RVA: 0x0001D3F0 File Offset: 0x0001C5F0 + public void ChangeBaseImage(int awakeNum) + { + for (int i = 0; i < this._awakeIcons.Length; i++) + { + this._awakeIcons[i].ChangeBaseImage(awakeNum); + } + this._centerIcon.ChangeBaseImage(awakeNum); + } + + // Token: 0x060007A6 RID: 1958 RVA: 0x0001D42C File Offset: 0x0001C62C + public void AwakePrepare(float gaugeAmount, int awakeNum) + { + for (int i = 0; i < this._awakeIcons.Length; i++) + { + this._awakeIcons[i].AwakePrepare(awakeNum, i < awakeNum); + } + this._centerIcon.AwakePrepare(awakeNum, gaugeAmount); + if (awakeNum >= 5) + { + if (awakeNum >= 6) + { + this._centerIcon.SetStarType(true); + } + else + { + this._centerIcon.SetStarType(false); + } + this._centerIcon.SetVisibleStar(true); + return; + } + this._centerIcon.SetStarType(false); + } + + // Token: 0x060007A7 RID: 1959 RVA: 0x0001D4A8 File Offset: 0x0001C6A8 + public void OnCenterIn() + { + AwakeIcon[] awakeIcons = this._awakeIcons; + for (int i = 0; i < awakeIcons.Length; i++) + { + awakeIcons[i].OnCenterIn(); + } + this._centerIcon.OnCenterIn(); + } + + // Token: 0x060007A8 RID: 1960 RVA: 0x0001D4E0 File Offset: 0x0001C6E0 + public void OnCenterOut() + { + AwakeIcon[] awakeIcons = this._awakeIcons; + for (int i = 0; i < awakeIcons.Length; i++) + { + awakeIcons[i].OnCenterOut(); + } + this._centerIcon.OnCenterOut(); + } + + // Token: 0x060007A9 RID: 1961 RVA: 0x0001D515 File Offset: 0x0001C715 + public void AnimCenterSpark() + { + this._centerIcon.AnimCenterSpark(); + } + + // Token: 0x060007AA RID: 1962 RVA: 0x0001D522 File Offset: 0x0001C722 + public void AnimStarGet(int awakeNum) + { + if (awakeNum >= 4) + { + this._centerIcon.AwakeStar(); + return; + } + this._awakeIcons[awakeNum].AwakeStar(); + } + + // Token: 0x060007AB RID: 1963 RVA: 0x0001D541 File Offset: 0x0001C741 + public void PutStar(float gaugeAmount) + { + this._centerIcon.AwakeStarDisp(gaugeAmount); + } + + // Token: 0x040005BC RID: 1468 + private const int MaxIconNum = 5; + + // Token: 0x040005BD RID: 1469 + [SerializeField] + private AwakeIcon[] _awakeIcons; + + // Token: 0x040005BE RID: 1470 + [SerializeField] + private AwakeCenterIcon _centerIcon; +} diff --git a/Assembly-CSharp/Balance/BalanceCommon.cs b/Assembly-CSharp/Balance/BalanceCommon.cs new file mode 100644 index 0000000..ce76a70 --- /dev/null +++ b/Assembly-CSharp/Balance/BalanceCommon.cs @@ -0,0 +1,2828 @@ +using System; +using System.Collections.Generic; +using AMDaemon; +using MAI2.Util; +using Manager; +using Monitor.ModeSelect; +using Monitor.TicketSelect; +using TMPro; +using UI; +using UnityEngine; +using UnityEngine.UI; + +namespace Balance +{ + // Token: 0x02000356 RID: 854 + public class BalanceCommon + { + // Token: 0x060019D4 RID: 6612 RVA: 0x000A6D60 File Offset: 0x000A5F60 + public BalanceCommon() + { + this._nEMoneyCreditIconNum = 5; + this._nEMoneyCreditIconCursorID = 0; + this._nEMoneyCreditRate = 100; + this._nEMoneyCreditCoins = 1; + this._isRightLimits = false; + this._isLeftLimits = false; + this._nEMoneyBrandIconNum = 6; + this._nEMoneyBrandIconCursorID = 0; + this._isEMoneyReaderSuccess = false; + this._isEMoneyReaderFailed = false; + this._isOwnBalanceError01 = false; + this._isOwnBalanceError02 = false; + } + + // Token: 0x060019D5 RID: 6613 RVA: 0x000A6E38 File Offset: 0x000A6038 + public void Initialize(int monIndex, GameObject credit, GameObject emoney, ButtonControllerBase button) + { + this._monitorID = monIndex; + this._creditWindow = credit; + this._emoneyWindow = emoney; + this._buttonController = button; + this._emoneyWindow.transform.GetChild(0).GetChild(0).gameObject.transform.GetChild(4).gameObject.transform.GetChild(0).GetChild(0).GetChild(0) + .GetChild(0) + .GetChild(1) + .GetChild(2) + .gameObject.GetComponent().ChangeSprite(1); + this._emoneyWindow.transform.GetChild(0).GetChild(1).gameObject.transform.GetChild(3).gameObject.transform.GetChild(0).GetChild(0).GetChild(0) + .GetChild(0) + .GetChild(1) + .GetChild(2) + .gameObject.GetComponent().ChangeSprite(1); + } + + // Token: 0x060019D6 RID: 6614 RVA: 0x000A6F2C File Offset: 0x000A612C + public void SetMode(BalanceCommon.ParentMode mode, ModeSelectMonitor mode_select, TicketSelectMonitor ticket_select) + { + this._parent_mode = mode; + this._monitor_mode_select = mode_select; + this._monitor_ticket_select = ticket_select; + } + + // Token: 0x060019D7 RID: 6615 RVA: 0x000A6F44 File Offset: 0x000A6144 + public bool IsEndAnim(Animator anim) + { + return anim == null || anim.GetCurrentAnimatorStateInfo(0).normalizedTime >= 1f; + } + + // Token: 0x060019D8 RID: 6616 RVA: 0x000A6F74 File Offset: 0x000A6174 + public void SetActiveChildren(GameObject obj, bool active) + { + int childCount = obj.transform.childCount; + for (int i = 0; i < childCount; i++) + { + obj.transform.GetChild(i).gameObject.SetActive(active); + } + } + + // Token: 0x060019D9 RID: 6617 RVA: 0x000A6FB0 File Offset: 0x000A61B0 + public void CreditMoveRight() + { + if (this._isLeftLimits) + { + this._buttonController.SetVisibleImmediate(true, new int[] { 6 }); + this._isLeftLimits = false; + } + this._nEMoneyCreditIconCursorID++; + this._nEMoneyCreditIconCursorID %= this._nEMoneyCreditIconNum; + if (this._nEMoneyCreditIconCursorID >= this._nEMoneyCreditIconNum - 1) + { + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + this._isRightLimits = true; + } + } + + // Token: 0x060019DA RID: 6618 RVA: 0x000A7030 File Offset: 0x000A6230 + public void CreditMoveLeft() + { + if (this._isRightLimits) + { + this._buttonController.SetVisibleImmediate(true, new int[] { 5 }); + this._isRightLimits = false; + } + this._nEMoneyCreditIconCursorID += this._nEMoneyCreditIconNum; + this._nEMoneyCreditIconCursorID--; + this._nEMoneyCreditIconCursorID %= this._nEMoneyCreditIconNum; + if (this._nEMoneyCreditIconCursorID <= 0) + { + this._buttonController.SetVisibleImmediate(false, new int[] { 6 }); + this._isLeftLimits = true; + } + } + + // Token: 0x060019DB RID: 6619 RVA: 0x000A70BC File Offset: 0x000A62BC + public void BrandMoveRight() + { + if (this._isLeftLimits) + { + this._buttonController.SetVisibleImmediate(true, new int[] { 6 }); + this._isLeftLimits = false; + } + this._nEMoneyBrandIconCursorID++; + this._nEMoneyBrandIconCursorID %= this._nEMoneyBrandIconNum; + if (this._nEMoneyBrandIconCursorID >= this._nEMoneyBrandIconNum - 1) + { + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + this._isRightLimits = true; + } + this._nEMoneyCurrentBrandTypeID = this._valueListEMoneyBrandTypeID[this._nEMoneyBrandIconCursorID]; + } + + // Token: 0x060019DC RID: 6620 RVA: 0x000A7154 File Offset: 0x000A6354 + public void BrandMoveLeft() + { + if (this._isRightLimits) + { + this._buttonController.SetVisibleImmediate(true, new int[] { 5 }); + this._isRightLimits = false; + } + this._nEMoneyBrandIconCursorID += this._nEMoneyBrandIconNum; + this._nEMoneyBrandIconCursorID--; + this._nEMoneyBrandIconCursorID %= this._nEMoneyBrandIconNum; + if (this._nEMoneyBrandIconCursorID <= 0) + { + this._buttonController.SetVisibleImmediate(false, new int[] { 6 }); + this._isLeftLimits = true; + } + this._nEMoneyCurrentBrandTypeID = this._valueListEMoneyBrandTypeID[this._nEMoneyBrandIconCursorID]; + } + + // Token: 0x060019DD RID: 6621 RVA: 0x000A71F7 File Offset: 0x000A63F7 + public bool IsEnd() + { + return this._state == BalanceCommon.BalanceCommonState.End; + } + + // Token: 0x060019DE RID: 6622 RVA: 0x000A7204 File Offset: 0x000A6404 + public bool IsBalanceNetworkDisconnection() + { + bool flag = false; + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode == BalanceCommon.ParentMode.ParentModeTicketSelect) + { + if (this._monitor_ticket_select != null) + { + flag = this._monitor_ticket_select._isBalanceNetworkDisconnection; + } + } + } + else if (this._monitor_mode_select != null) + { + flag = this._monitor_mode_select._isBalanceNetworkDisconnection; + } + return flag; + } + + // Token: 0x060019DF RID: 6623 RVA: 0x000A725C File Offset: 0x000A645C + public void OKStart() + { + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode != BalanceCommon.ParentMode.ParentModeTicketSelect) + { + return; + } + if (this._monitor_ticket_select != null) + { + this._monitor_ticket_select.OKStart(); + } + } + else if (this._monitor_mode_select != null) + { + this._monitor_mode_select.OKStart(false); + return; + } + } + + // Token: 0x060019E0 RID: 6624 RVA: 0x000A72AC File Offset: 0x000A64AC + public void ResetOKStart() + { + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode != BalanceCommon.ParentMode.ParentModeTicketSelect) + { + return; + } + if (this._monitor_ticket_select != null) + { + this._monitor_ticket_select.ResetOKStart(); + } + } + else if (this._monitor_mode_select != null) + { + this._monitor_mode_select.ResetOKStart(); + return; + } + } + + // Token: 0x060019E1 RID: 6625 RVA: 0x000A72FC File Offset: 0x000A64FC + public void BackStart() + { + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode != BalanceCommon.ParentMode.ParentModeTicketSelect) + { + return; + } + if (this._monitor_ticket_select != null) + { + this._monitor_ticket_select.BackStart(); + } + } + else if (this._monitor_mode_select != null) + { + this._monitor_mode_select.BackStart(); + return; + } + } + + // Token: 0x060019E2 RID: 6626 RVA: 0x000A734C File Offset: 0x000A654C + public void ResetBackStart() + { + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode != BalanceCommon.ParentMode.ParentModeTicketSelect) + { + return; + } + if (this._monitor_ticket_select != null) + { + this._monitor_ticket_select.ResetBackStart(); + } + } + else if (this._monitor_mode_select != null) + { + this._monitor_mode_select.ResetBackStart(); + return; + } + } + + // Token: 0x060019E3 RID: 6627 RVA: 0x000A739C File Offset: 0x000A659C + public void BalanceStart() + { + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode != BalanceCommon.ParentMode.ParentModeTicketSelect) + { + return; + } + if (this._monitor_ticket_select != null) + { + this._monitor_ticket_select.BalanceStart(); + } + } + else if (this._monitor_mode_select != null) + { + this._monitor_mode_select.BalanceStart(); + return; + } + } + + // Token: 0x060019E4 RID: 6628 RVA: 0x000A73EC File Offset: 0x000A65EC + public void ResetBalanceStart() + { + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode != BalanceCommon.ParentMode.ParentModeTicketSelect) + { + return; + } + if (this._monitor_ticket_select != null) + { + this._monitor_ticket_select.ResetBalanceStart(); + } + } + else if (this._monitor_mode_select != null) + { + this._monitor_mode_select.ResetBalanceStart(); + return; + } + } + + // Token: 0x060019E5 RID: 6629 RVA: 0x000A743C File Offset: 0x000A663C + public bool IsOK() + { + bool flag = false; + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode == BalanceCommon.ParentMode.ParentModeTicketSelect) + { + if (this._monitor_ticket_select != null) + { + flag = this._monitor_ticket_select._isOK; + } + } + } + else if (this._monitor_mode_select != null) + { + flag = this._monitor_mode_select._isOK; + } + return flag; + } + + // Token: 0x060019E6 RID: 6630 RVA: 0x000A7494 File Offset: 0x000A6694 + public bool IsBack() + { + bool flag = false; + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode == BalanceCommon.ParentMode.ParentModeTicketSelect) + { + if (this._monitor_ticket_select != null) + { + flag = this._monitor_ticket_select._isBack; + } + } + } + else if (this._monitor_mode_select != null) + { + flag = this._monitor_mode_select._isBack; + } + return flag; + } + + // Token: 0x060019E7 RID: 6631 RVA: 0x000A74EC File Offset: 0x000A66EC + public bool IsTimeUp() + { + bool flag = false; + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode == BalanceCommon.ParentMode.ParentModeTicketSelect) + { + if (this._monitor_ticket_select != null) + { + flag = this._monitor_ticket_select._isTimeUp; + } + } + } + else if (this._monitor_mode_select != null) + { + flag = this._monitor_mode_select._isTimeUp; + } + return flag; + } + + // Token: 0x060019E8 RID: 6632 RVA: 0x000A7544 File Offset: 0x000A6744 + public bool IsBalance() + { + bool flag = false; + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode == BalanceCommon.ParentMode.ParentModeTicketSelect) + { + if (this._monitor_ticket_select != null) + { + flag = this._monitor_ticket_select._isBalance; + } + } + } + else if (this._monitor_mode_select != null) + { + flag = this._monitor_mode_select._isBalance; + } + return flag; + } + + // Token: 0x060019E9 RID: 6633 RVA: 0x000A759C File Offset: 0x000A679C + public bool IsRight() + { + bool flag = false; + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode == BalanceCommon.ParentMode.ParentModeTicketSelect) + { + if (this._monitor_ticket_select != null) + { + flag = this._monitor_ticket_select._isRight; + } + } + } + else if (this._monitor_mode_select != null) + { + flag = this._monitor_mode_select._isRight; + } + return flag; + } + + // Token: 0x060019EA RID: 6634 RVA: 0x000A75F4 File Offset: 0x000A67F4 + public bool IsLeft() + { + bool flag = false; + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode == BalanceCommon.ParentMode.ParentModeTicketSelect) + { + if (this._monitor_ticket_select != null) + { + flag = this._monitor_ticket_select._isLeft; + } + } + } + else if (this._monitor_mode_select != null) + { + flag = this._monitor_mode_select._isLeft; + } + return flag; + } + + // Token: 0x060019EB RID: 6635 RVA: 0x000A764C File Offset: 0x000A684C + private void SetParentRightFlag(bool flag) + { + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode != BalanceCommon.ParentMode.ParentModeTicketSelect) + { + return; + } + if (this._monitor_ticket_select != null) + { + this._monitor_ticket_select._isRight = flag; + } + } + else if (this._monitor_mode_select != null) + { + this._monitor_mode_select._isRight = flag; + return; + } + } + + // Token: 0x060019EC RID: 6636 RVA: 0x000A76A0 File Offset: 0x000A68A0 + private void SetParentLeftFlag(bool flag) + { + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode != BalanceCommon.ParentMode.ParentModeTicketSelect) + { + return; + } + if (this._monitor_ticket_select != null) + { + this._monitor_ticket_select._isLeft = flag; + } + } + else if (this._monitor_mode_select != null) + { + this._monitor_mode_select._isLeft = flag; + return; + } + } + + // Token: 0x060019ED RID: 6637 RVA: 0x000A76F4 File Offset: 0x000A68F4 + private void SetParentCheckLRFlag(bool flag) + { + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode != BalanceCommon.ParentMode.ParentModeTicketSelect) + { + return; + } + if (this._monitor_ticket_select != null) + { + this._monitor_ticket_select._isCheckLR = flag; + } + } + else if (this._monitor_mode_select != null) + { + this._monitor_mode_select._isCheckLR = flag; + return; + } + } + + // Token: 0x060019EE RID: 6638 RVA: 0x000A7748 File Offset: 0x000A6948 + public void RequestParentChangeOKButton(bool isGray, bool flag = true) + { + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode != BalanceCommon.ParentMode.ParentModeTicketSelect) + { + return; + } + if (this._monitor_ticket_select != null) + { + this._monitor_ticket_select._isSetGrayOKButton = isGray; + this._monitor_ticket_select._isRequestChangeOKButtonColor = flag; + this._isGrayOKButton = isGray; + } + } + else if (this._monitor_mode_select != null) + { + this._monitor_mode_select._isSetGrayOKButton = isGray; + this._monitor_mode_select._isRequestChangeOKButtonColor = flag; + this._isGrayOKButton = isGray; + return; + } + } + + // Token: 0x060019EF RID: 6639 RVA: 0x000A77C0 File Offset: 0x000A69C0 + public void RequestParentChangeBackButton(bool isGray, bool flag = true) + { + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode != BalanceCommon.ParentMode.ParentModeTicketSelect) + { + return; + } + if (this._monitor_ticket_select != null) + { + this._monitor_ticket_select._isSetGrayBackButton = isGray; + this._monitor_ticket_select._isRequestChangeBackButtonColor = flag; + } + } + else if (this._monitor_mode_select != null) + { + this._monitor_mode_select._isSetGrayBackButton = isGray; + this._monitor_mode_select._isRequestChangeBackButtonColor = flag; + return; + } + } + + // Token: 0x060019F0 RID: 6640 RVA: 0x000A782C File Offset: 0x000A6A2C + public void RequestParentChangeBalanceButton(bool isGray, bool flag = true) + { + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode != BalanceCommon.ParentMode.ParentModeTicketSelect) + { + return; + } + if (this._monitor_ticket_select != null) + { + this._monitor_ticket_select._isSetGrayBalanceButton = isGray; + this._monitor_ticket_select._isRequestChangeBalanceButtonColor = flag; + } + } + else if (this._monitor_mode_select != null) + { + this._monitor_mode_select._isSetGrayBalanceButton = isGray; + this._monitor_mode_select._isRequestChangeBalanceButtonColor = flag; + return; + } + } + + // Token: 0x060019F1 RID: 6641 RVA: 0x000A7898 File Offset: 0x000A6A98 + public void ChangeButtonType(ButtonControllerBase.FlatButtonType type) + { + BalanceCommon.ParentMode parent_mode = this._parent_mode; + if (parent_mode != BalanceCommon.ParentMode.ParentModeModeSelect) + { + if (parent_mode != BalanceCommon.ParentMode.ParentModeTicketSelect) + { + return; + } + if (this._monitor_ticket_select != null) + { + this._monitor_ticket_select._buttonController.ChangeButtonType(type); + } + } + else if (this._monitor_mode_select != null) + { + this._monitor_mode_select._buttonController.ChangeButtonType(type); + return; + } + } + + // Token: 0x060019F2 RID: 6642 RVA: 0x000A78F3 File Offset: 0x000A6AF3 + public void InitDefaultIconNum() + { + this._nEMoneyCreditIconNum = 5; + this._nEMoneyCreditIconCursorID = 0; + } + + // Token: 0x060019F3 RID: 6643 RVA: 0x000A7903 File Offset: 0x000A6B03 + public void InitDefaultBrandNum() + { + this._nEMoneyBrandIconNum = 6; + this._nEMoneyBrandIconCursorID = 0; + } + + // Token: 0x060019F4 RID: 6644 RVA: 0x000A7914 File Offset: 0x000A6B14 + public void SetPriceIconNum() + { + this._nEMoneyCreditCoins = SingletonStateMachine.Instance.Credit.CoinToCredit; + this._nEMoneyCreditRate = (int)Credit.Config.CoinAmount; + int num = this._maxCreditValue / (this._nEMoneyCreditCoins * this._nEMoneyCreditRate); + int num2 = 24 - SingletonStateMachine.Instance.Credit.NowCredit; + int coinToCredit = SingletonStateMachine.Instance.Credit.CoinToCredit; + int remain = SingletonStateMachine.Instance.Credit.Remain; + if (coinToCredit > 1 && remain > 0) + { + num2--; + } + if (num2 < 0) + { + num2 = 0; + } + if (num > num2) + { + num = num2; + } + this._nEMoneyCreditIconNum = 0; + if (num > 0) + { + this._nEMoneyCreditIconNum = num; + if (this._nEMoneyCreditIconNum > 5) + { + this._nEMoneyCreditIconNum = 5; + return; + } + } + else + { + this._nEMoneyCreditIconNum = -1; + } + } + + // Token: 0x060019F5 RID: 6645 RVA: 0x000A79D0 File Offset: 0x000A6BD0 + public void SetBrandIconNum(bool isBalance = false) + { + bool flag = false; + this._valueListEMoneyBrandTypeID.Clear(); + this._valueListEMoneyBrandEnable.Clear(); + this._nEMoneyBrandIconNum = EMoney.AvailableBrandCount; + if (this._nEMoneyBrandIconNum <= 0) + { + flag = true; + } + else + { + if (SingletonStateMachine.Instance.IsCheckDisableEmoneyBrandID) + { + bool flag2 = false; + int num = 0; + if (!isBalance) + { + for (int i = 0; i < this._nEMoneyBrandIconNum; i++) + { + if (EMoney.AvailableBrands[i].Id != 6) + { + this._valueListEMoneyBrandTypeID.Add(EMoney.AvailableBrands[i].Id); + bool flag3 = EMoney.IsBrandAvailable(EMoney.AvailableBrands[i].Id); + this._valueListEMoneyBrandEnable.Add(flag3); + } + else + { + flag2 = true; + num++; + } + } + if (flag2) + { + this._nEMoneyBrandIconNum -= num; + } + } + else if (isBalance) + { + for (int j = 0; j < this._nEMoneyBrandIconNum; j++) + { + if (EMoney.AvailableBrands[j].Id != 6 && SingletonStateMachine.Instance.Emoney.IsAvalilableBalance(EMoney.AvailableBrands[j].Id)) + { + this._valueListEMoneyBrandTypeID.Add(EMoney.AvailableBrands[j].Id); + bool flag4 = EMoney.IsBrandAvailable(EMoney.AvailableBrands[j].Id); + this._valueListEMoneyBrandEnable.Add(flag4); + } + else + { + flag2 = true; + num++; + } + } + if (flag2) + { + this._nEMoneyBrandIconNum -= num; + } + } + } + int num2 = this._valueListEMoneyBrandTypeID.FindIndex((EMoneyBrandId m) => m == this._nEMoneyCurrentBrandTypeID); + if (!this._isSetPreviousBrandTypeID) + { + if (this._nEMoneyPreviousBrandTypeID >= 0) + { + this._nEMoneyCurrentBrandTypeID = this._nEMoneyPreviousBrandTypeID; + num2 = this._valueListEMoneyBrandTypeID.FindIndex((EMoneyBrandId m) => m == this._nEMoneyCurrentBrandTypeID); + } + else + { + num2 = -1; + } + this._isSetPreviousBrandTypeID = true; + } + if (this._nEMoneyBrandIconNum <= 0) + { + flag = true; + } + else if (num2 < 0) + { + this._nEMoneyBrandIconCursorID = 0; + this._nEMoneyCurrentBrandTypeID = this._valueListEMoneyBrandTypeID[0]; + } + else + { + this._nEMoneyBrandIconCursorID = num2; + this._nEMoneyCurrentBrandTypeID = this._valueListEMoneyBrandTypeID[num2]; + } + } + if (flag) + { + this._nEMoneyBrandIconNum = -1; + this._nEMoneyBrandIconCursorID = 0; + this._nEMoneyCurrentBrandTypeID = 0; + } + } + + // Token: 0x060019F6 RID: 6646 RVA: 0x000A7C20 File Offset: 0x000A6E20 + public bool IsEnableBaranceBrand(bool isBalance = true) + { + int availableBrandCount = EMoney.AvailableBrandCount; + bool flag; + if (availableBrandCount <= 0) + { + flag = false; + } + else + { + flag = false; + if (SingletonStateMachine.Instance.IsCheckDisableEmoneyBrandID) + { + if (isBalance) + { + for (int i = 0; i < availableBrandCount; i++) + { + if (EMoney.AvailableBrands[i].Id != 6 && SingletonStateMachine.Instance.Emoney.IsAvalilableBalance(EMoney.AvailableBrands[i].Id)) + { + flag = true; + break; + } + } + } + else if (!isBalance) + { + for (int j = 0; j < availableBrandCount; j++) + { + if (EMoney.AvailableBrands[j].Id != 6 && SingletonStateMachine.Instance.Emoney.IsAvalilable(EMoney.AvailableBrands[j].Id)) + { + flag = true; + break; + } + } + } + } + } + return flag; + } + + // Token: 0x060019F7 RID: 6647 RVA: 0x000A7CE4 File Offset: 0x000A6EE4 + public int GetBrandTextureID(EMoneyBrandId brand_id) + { + int num = 0; + switch (brand_id) + { + case 0: + num = 2; + break; + case 1: + num = 3; + break; + case 2: + num = 1; + break; + case 3: + num = 0; + break; + case 4: + num = 4; + break; + case 5: + num = 5; + break; + case 6: + num = 1; + break; + } + return num; + } + + // Token: 0x060019F8 RID: 6648 RVA: 0x000A7D34 File Offset: 0x000A6F34 + public void ChangeCreditIconColor(GameObject obj, bool isGray = false) + { + if (obj != null) + { + for (int i = 0; i < obj.transform.childCount; i++) + { + Image image = obj.transform.GetChild(i).gameObject.GetComponent(); + if (image != null) + { + if (isGray) + { + image.color = new Color(0.5019608f, 0.5019608f, 0.5019608f, 1f); + } + else + { + image.color = new Color(1f, 1f, 1f, 1f); + } + } + } + for (int j = 0; j < obj.transform.GetChild(0).childCount; j++) + { + Image image = obj.transform.GetChild(0).GetChild(j).gameObject.GetComponent(); + if (image != null) + { + if (isGray) + { + image.color = new Color(0.5019608f, 0.5019608f, 0.5019608f, 1f); + } + else + { + image.color = new Color(1f, 1f, 1f, 1f); + } + } + } + } + } + + // Token: 0x060019F9 RID: 6649 RVA: 0x000A7E50 File Offset: 0x000A7050 + public void ChangeBrandIconColor(GameObject obj, bool isGray = false) + { + if (obj != null) + { + for (int i = 0; i < obj.transform.childCount; i++) + { + Image component = obj.transform.GetChild(i).gameObject.GetComponent(); + if (component != null) + { + if (isGray) + { + component.color = new Color(0.5019608f, 0.5019608f, 0.5019608f, 1f); + } + else + { + component.color = new Color(1f, 1f, 1f, 1f); + } + } + } + } + } + + // Token: 0x060019FA RID: 6650 RVA: 0x000A7EE4 File Offset: 0x000A70E4 + public void SetCreditIcon(bool active_list = true) + { + GameObject gameObject = this._emoneyWindow.transform.GetChild(0).GetChild(0).GetChild(3) + .gameObject; + GameObject gameObject2 = null; + int num = 0; + if (!active_list) + { + this.SetActiveChildren(gameObject, false); + } + if (this._nEMoneyCreditIconNum - 1 >= 0) + { + gameObject2 = gameObject.transform.GetChild(this._nEMoneyCreditIconNum - 1).gameObject; + gameObject2.SetActive(active_list); + } + this._isRightLimits = false; + this._isLeftLimits = false; + if (this._nEMoneyCreditIconCursorID >= this._nEMoneyCreditIconNum - 1) + { + this._nEMoneyCreditIconCursorID = this._nEMoneyCreditIconNum - 1; + if (this._nEMoneyCreditIconCursorID < 0) + { + this._nEMoneyCreditIconCursorID = 0; + } + } + if (this._nEMoneyCreditIconCursorID >= this._nEMoneyCreditIconNum - 1) + { + this._isRightLimits = true; + } + if (this._nEMoneyCreditIconCursorID <= 0) + { + this._isLeftLimits = true; + } + if (active_list) + { + if (!this._isRightLimits) + { + this._buttonController.SetVisibleImmediate(true, new int[] { 5 }); + } + if (!this._isLeftLimits) + { + this._buttonController.SetVisibleImmediate(true, new int[] { 6 }); + } + } + if (active_list) + { + bool flag = this.IsEnableRequest() && !this._isGrayOKButton; + for (int i = 0; i < this._nEMoneyCreditIconNum; i++) + { + if (gameObject2 != null) + { + GameObject gameObject3 = gameObject2.transform.GetChild(i).GetChild(0).gameObject; + Animator component = gameObject3.GetComponent(); + num = this._nEMoneyCreditRate * this._nEMoneyCreditCoins * (i + 1); + if (this._nEMoneyCreditIconCursorID == i) + { + component.Play("Select", 0, 0f); + if (flag) + { + this.ChangeCreditIconColor(component.gameObject, false); + } + else + { + this.ChangeCreditIconColor(component.gameObject, true); + } + gameObject3.transform.GetChild(3).GetChild(0).gameObject.SetActive(true); + gameObject3.transform.GetChild(3).GetChild(1).gameObject.SetActive(true); + if (this._isRightLimits || this._isLeftLimits) + { + if (this._isRightLimits) + { + gameObject3.transform.GetChild(3).GetChild(0).gameObject.SetActive(false); + } + if (this._isLeftLimits) + { + gameObject3.transform.GetChild(3).GetChild(1).gameObject.SetActive(false); + } + } + } + else if (flag) + { + component.Play("Active", 0, 0f); + this.ChangeCreditIconColor(component.gameObject, false); + } + else + { + component.Play("Active", 0, 0f); + this.ChangeCreditIconColor(component.gameObject, true); + } + } + int num2 = i; + if (num2 >= this._nEMoneyCreditIconNum - 1) + { + num2 = this._nEMoneyCreditIconNum - 1; + } + gameObject2.transform.GetChild(i).GetChild(0).GetChild(1) + .GetComponent() + .ChangeSprite(num2); + string text; + if (flag) + { + text = "" + num.ToString("0") + ""; + } + else + { + text = "" + num.ToString("0") + ""; + } + gameObject2.transform.GetChild(i).GetChild(0).GetChild(2) + .GetComponent() + .text = text; + } + } + } + + // Token: 0x060019FB RID: 6651 RVA: 0x000A823C File Offset: 0x000A743C + public void SetBrandIcon01(bool active_list = true) + { + GameObject gameObject = this._emoneyWindow.transform.GetChild(0).GetChild(0).GetChild(2) + .gameObject; + GameObject gameObject2 = null; + if (!active_list) + { + this.SetActiveChildren(gameObject, false); + } + if (this._nEMoneyBrandIconNum - 1 >= 0) + { + gameObject2 = gameObject.transform.GetChild(this._nEMoneyBrandIconNum - 1).gameObject; + gameObject2.SetActive(active_list); + } + this._isRightLimits = false; + this._isLeftLimits = false; + if (this._nEMoneyBrandIconCursorID >= this._nEMoneyBrandIconNum - 1) + { + this._isRightLimits = true; + } + if (this._nEMoneyBrandIconCursorID <= 0) + { + this._isLeftLimits = true; + } + if (active_list) + { + if (!this._isRightLimits) + { + this._buttonController.SetVisibleImmediate(true, new int[] { 5 }); + } + if (!this._isLeftLimits) + { + this._buttonController.SetVisibleImmediate(true, new int[] { 6 }); + } + bool flag = this.IsEnableRequest() && !this._isGrayOKButton; + for (int i = 0; i < this._nEMoneyBrandIconNum; i++) + { + if (gameObject2 != null) + { + GameObject gameObject3 = gameObject2.transform.GetChild(i).GetChild(0).gameObject; + Animator component = gameObject3.GetComponent(); + if (this._nEMoneyBrandIconCursorID == i) + { + component.Play("Selected", 0, 0f); + gameObject3.transform.GetChild(4).GetChild(1).gameObject.SetActive(true); + gameObject3.transform.GetChild(4).GetChild(0).gameObject.SetActive(true); + if (this._isRightLimits || this._isLeftLimits) + { + if (this._isRightLimits) + { + gameObject3.transform.GetChild(4).GetChild(1).gameObject.SetActive(false); + } + if (this._isLeftLimits) + { + gameObject3.transform.GetChild(4).GetChild(0).gameObject.SetActive(false); + } + } + } + else + { + component.Play("NotSelected_01", 0, 0f); + } + int num = this.GetBrandTextureID(this._valueListEMoneyBrandTypeID[i]); + if (num > this._maxBrandTexID) + { + num = this.GetBrandTextureID(this._valueListEMoneyBrandTypeID[0]); + } + gameObject3.transform.GetChild(3).GetComponent().ChangeSprite(num); + if (this._valueListEMoneyBrandEnable[i] && flag) + { + this.ChangeBrandIconColor(component.gameObject, false); + } + else + { + this.ChangeBrandIconColor(component.gameObject, true); + } + } + } + } + } + + // Token: 0x060019FC RID: 6652 RVA: 0x000A84C0 File Offset: 0x000A76C0 + public void SetBrandIcon02(bool active_list = true) + { + GameObject gameObject = this._emoneyWindow.transform.GetChild(0).GetChild(1).GetChild(2) + .gameObject; + GameObject gameObject2 = null; + if (!active_list) + { + this.SetActiveChildren(gameObject, false); + } + if (this._nEMoneyBrandIconNum - 1 >= 0) + { + gameObject2 = gameObject.transform.GetChild(this._nEMoneyBrandIconNum - 1).gameObject; + gameObject2.SetActive(active_list); + } + this._isRightLimits = false; + this._isLeftLimits = false; + if (this._nEMoneyBrandIconCursorID >= this._nEMoneyBrandIconNum - 1) + { + this._isRightLimits = true; + } + if (this._nEMoneyBrandIconCursorID <= 0) + { + this._isLeftLimits = true; + } + if (active_list) + { + if (!this._isRightLimits) + { + this._buttonController.SetVisibleImmediate(true, new int[] { 5 }); + } + if (!this._isLeftLimits) + { + this._buttonController.SetVisibleImmediate(true, new int[] { 6 }); + } + bool flag = this.IsEnableRequest() && !this._isGrayOKButton; + for (int i = 0; i < this._nEMoneyBrandIconNum; i++) + { + if (gameObject2 != null) + { + GameObject gameObject3 = gameObject2.transform.GetChild(i).GetChild(0).gameObject; + Animator component = gameObject3.GetComponent(); + if (this._nEMoneyBrandIconCursorID == i) + { + component.Play("Selected", 0, 0f); + gameObject3.transform.GetChild(4).GetChild(1).gameObject.SetActive(true); + gameObject3.transform.GetChild(4).GetChild(0).gameObject.SetActive(true); + if (this._isRightLimits || this._isLeftLimits) + { + if (this._isRightLimits) + { + gameObject3.transform.GetChild(4).GetChild(1).gameObject.SetActive(false); + } + if (this._isLeftLimits) + { + gameObject3.transform.GetChild(4).GetChild(0).gameObject.SetActive(false); + } + } + } + else + { + component.Play("NotSelected_02", 0, 0f); + } + int num = this.GetBrandTextureID(this._valueListEMoneyBrandTypeID[i]); + if (num > this._maxBrandTexID) + { + num = this.GetBrandTextureID(this._valueListEMoneyBrandTypeID[0]); + } + gameObject3.transform.GetChild(3).GetComponent().ChangeSprite(num); + if (this._valueListEMoneyBrandEnable[i] && flag) + { + this.ChangeBrandIconColor(component.gameObject, false); + } + else + { + this.ChangeBrandIconColor(component.gameObject, true); + } + } + } + } + } + + // Token: 0x060019FD RID: 6653 RVA: 0x000A8744 File Offset: 0x000A7944 + public void BrandBottomInfo(bool disp_brand_icon, bool disp_credit_info = false) + { + GameObject gameObject = this._emoneyWindow.transform.GetChild(0).GetChild(0).gameObject; + GameObject gameObject2 = gameObject.transform.GetChild(4).gameObject; + GameObject gameObject3 = gameObject.transform.GetChild(5).gameObject; + GameObject gameObject4 = gameObject.transform.GetChild(6).gameObject; + if (disp_brand_icon) + { + gameObject2.SetActive(disp_credit_info); + gameObject3.SetActive(false); + this.SetActiveChildren(gameObject3, false); + gameObject4.SetActive(true); + this.SetActiveChildren(gameObject4, true); + } + else + { + gameObject2.SetActive(disp_credit_info); + gameObject3.SetActive(true); + this.SetActiveChildren(gameObject3, true); + gameObject4.SetActive(false); + this.SetActiveChildren(gameObject4, false); + } + int num = this._nEMoneyCreditRate * this._nEMoneyCreditCoins * (this._nEMoneyCreditIconCursorID + 1); + if (disp_brand_icon) + { + string text = "お支払い金額\u3000¥"; + gameObject4.transform.GetChild(0).GetChild(0).gameObject.GetComponent().text = text; + text = num.ToString("000"); + gameObject4.transform.GetChild(0).GetChild(1).gameObject.GetComponent().text = text; + gameObject4.transform.GetChild(1).gameObject.SetActive(true); + gameObject4.transform.GetChild(1).GetChild(0).GetComponent() + .Play("NotSelected_01", 0, 0f); + int num2 = this._nEMoneyBrandIconCursorID; + if (num2 > this._nEMoneyBrandIconNum - 1) + { + num2 = 0; + } + int num3 = this.GetBrandTextureID(this._valueListEMoneyBrandTypeID[num2]); + if (num3 > this._maxBrandTexID) + { + num3 = this.GetBrandTextureID(this._valueListEMoneyBrandTypeID[0]); + } + gameObject4.transform.GetChild(1).GetChild(0).GetChild(3) + .GetComponent() + .ChangeSprite(num3); + if (disp_brand_icon && disp_credit_info) + { + GameObject gameObject5 = gameObject4.transform.GetChild(1).GetChild(0).gameObject; + if (SingletonStateMachine.Instance.Emoney.IsAvalilable(this._valueListEMoneyBrandTypeID[num2]) && this.IsEnableRequest()) + { + this.ChangeBrandIconColor(gameObject5, false); + return; + } + this.ChangeBrandIconColor(gameObject5, true); + return; + } + } + else + { + string text = "お支払い金額\u3000¥"; + gameObject3.transform.GetChild(0).GetChild(0).gameObject.GetComponent().text = text; + text = num.ToString("000"); + gameObject3.transform.GetChild(0).GetChild(1).gameObject.GetComponent().text = text; + } + } + + // Token: 0x060019FE RID: 6654 RVA: 0x000A89DB File Offset: 0x000A7BDB + public void ResetError() + { + this.ResetError01(); + this.ResetError02(); + } + + // Token: 0x060019FF RID: 6655 RVA: 0x000A89EC File Offset: 0x000A7BEC + public void ResetError01() + { + if (this._isOwnBalanceError01) + { + GameObject gameObject = this._creditWindow.transform.GetChild(0).GetChild(1).gameObject; + Animator component = gameObject.transform.GetChild(3).gameObject.GetComponent(); + if (!this._isOwnBalanceError02) + { + component.Play("Out", 0, 0f); + gameObject.transform.GetChild(5).gameObject.SetActive(true); + } + else + { + component.Play("Out", 0, 1f); + } + this._isOwnBalanceError01 = false; + } + } + + // Token: 0x06001A00 RID: 6656 RVA: 0x000A8A88 File Offset: 0x000A7C88 + public void ResetError02() + { + if (this._isOwnBalanceError02) + { + GameObject gameObject = this._creditWindow.transform.GetChild(0).GetChild(1).gameObject; + Animator component = gameObject.transform.GetChild(4).gameObject.GetComponent(); + if (!this._isOwnBalanceError01) + { + component.Play("Out", 0, 0f); + gameObject.transform.GetChild(5).gameObject.SetActive(true); + } + else + { + component.Play("Out", 0, 1f); + this._isOwnBalanceError01 = false; + } + this._isOwnBalanceError02 = false; + } + } + + // Token: 0x06001A01 RID: 6657 RVA: 0x000A8B2C File Offset: 0x000A7D2C + public void SetBalanceText(int mode, int type) + { + string text = ""; + if (mode == 0) + { + switch (type) + { + case 0: + text = "お支払い金額を選択してください"; + break; + case 1: + text = "お支払い方法を選択してください"; + break; + case 2: + text = "タッチ式カードリーダーにタッチしてください"; + break; + case 3: + text = "タッチ式カードリーダー上部の画面をご確認ください"; + break; + } + this._emoneyWindow.transform.GetChild(0).GetChild(0).GetChild(1) + .gameObject.GetComponent().text = text; + return; + } + if (mode != 1) + { + return; + } + switch (type) + { + case 0: + text = "残高照会を行う電子決済を選択してください"; + break; + case 1: + text = "タッチ式カードリーダーにタッチしてください\r\n残高はタッチ式カードリーダー上部の画面をご確認ください"; + break; + case 2: + text = "残高はタッチ式カードリーダー上部の画面をご確認ください"; + break; + } + this._emoneyWindow.transform.GetChild(0).GetChild(1).GetChild(1) + .gameObject.GetComponent().text = text; + } + + // Token: 0x06001A02 RID: 6658 RVA: 0x000A8C04 File Offset: 0x000A7E04 + public bool IsEnableRequest() + { + return !SingletonStateMachine.Instance.Credit.IsFreePlay() && Singleton.Instance.IsCoinAcceptable() && !this.IsBalanceNetworkDisconnection() && EMoney.IsAuthCompleted && EMoney.IsServiceAlive && EMoney.Operation.CanOperateDeal; + } + + // Token: 0x06001A03 RID: 6659 RVA: 0x000A8C5C File Offset: 0x000A7E5C + public void ViewUpdate() + { + if (SingletonStateMachine.Instance.IsEnableEmoneyExecute) + { + this._buttonController.SyncButtonViewUpdate((float)GameManager.GetGameMSecAdd(), ButtonControllerBase.SyncButtonType.BalanceCommon); + switch (this._state) + { + case BalanceCommon.BalanceCommonState.None: + break; + case BalanceCommon.BalanceCommonState.EMoney01Init: + { + Animator component = this._creditWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component)) + { + this._creditWindow.SetActive(false); + this.InitDefaultIconNum(); + this.SetPriceIconNum(); + this.InitDefaultBrandNum(); + this.SetBrandIconNum(false); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditFadeIn; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney01CreditBackedFadeIn: + this._emoneyWindow.SetActive(true); + this._emoneyWindow.transform.GetChild(0).GetComponent().Play("Price_In", 0, 1f); + this.SetPriceIconNum(); + if (!this.IsEnableBaranceBrand(false) || !this.IsEnableRequest()) + { + this._isGrayOKButton = true; + } + this.SetCreditIcon(true); + this.SetBalanceText(0, 0); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditFadeInWait; + return; + case BalanceCommon.BalanceCommonState.EMoney01CreditFadeIn: + this._emoneyWindow.SetActive(true); + this._emoneyWindow.transform.GetChild(0).GetComponent().Play("Price_In", 0, 0f); + if (!this.IsEnableBaranceBrand(false) || !this.IsEnableRequest()) + { + this._isGrayOKButton = true; + } + this.SetCreditIcon(false); + this.SetBalanceText(0, 0); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditFadeInWait; + return; + case BalanceCommon.BalanceCommonState.EMoney01CreditFadeInWait: + { + Animator component2 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component2)) + { + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + this.SetParentCheckLRFlag(true); + this.ChangeButtonType(ButtonControllerBase.FlatButtonType.Back); + this.OKStart(); + this.BackStart(); + if (this._nEMoneyCreditIconNum == -1 || !this.IsEnableBaranceBrand(false) || !this.IsEnableRequest()) + { + this.RequestParentChangeOKButton(true, true); + } + this.BalanceStart(); + if (!this.IsEnableBaranceBrand(true) || !this.IsEnableRequest()) + { + this.RequestParentChangeBalanceButton(true, true); + } + this.SetCreditIcon(true); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditWait; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney01CreditWait: + if (this.IsOK() || this.IsBack() || this.IsTimeUp()) + { + if (this.IsOK()) + { + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + this.SetParentCheckLRFlag(false); + this._isRightLimits = false; + this._isLeftLimits = false; + this.ResetOKStart(); + this.ResetBackStart(); + this.ResetBalanceStart(); + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + this._buttonController.SetVisibleImmediate(false, new int[] { 6 }); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditNextFadeOut; + return; + } + if (this.IsBack()) + { + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + this.SetParentCheckLRFlag(false); + this._isRightLimits = false; + this._isLeftLimits = false; + this.ResetOKStart(); + this.ResetBackStart(); + this.ResetBalanceStart(); + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + this._buttonController.SetVisibleImmediate(false, new int[] { 6 }); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditBackFadeOut; + return; + } + if (this.IsTimeUp()) + { + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + this.SetParentCheckLRFlag(false); + this._isRightLimits = false; + this._isLeftLimits = false; + this.ResetOKStart(); + this.ResetBackStart(); + this.ResetBalanceStart(); + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + this._buttonController.SetVisibleImmediate(false, new int[] { 6 }); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditBackFadeOut; + return; + } + } + else + { + if (this.IsBalance()) + { + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + this.SetParentCheckLRFlag(false); + this._isRightLimits = false; + this._isLeftLimits = false; + this.ResetOKStart(); + this.ResetBackStart(); + this.ResetBalanceStart(); + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + this._buttonController.SetVisibleImmediate(false, new int[] { 6 }); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditBalanceFadeOut; + return; + } + if (this.IsRight()) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditMoveRight; + return; + } + if (this.IsLeft()) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditMoveLeft; + return; + } + } + break; + case BalanceCommon.BalanceCommonState.EMoney01CreditMoveRight: + case BalanceCommon.BalanceCommonState.EMoney01CreditMoveLeft: + if (this.IsRight()) + { + this.CreditMoveRight(); + } + else if (this.IsLeft()) + { + this.CreditMoveLeft(); + } + if (this.IsRight() || this.IsLeft()) + { + this.SetCreditIcon(true); + } + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditWait; + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + return; + case BalanceCommon.BalanceCommonState.EMoney01CreditBackFadeOut: + this._emoneyWindow.transform.GetChild(0).GetComponent().Play("Price_Back", 0, 0f); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditBackFadeOutWait; + return; + case BalanceCommon.BalanceCommonState.EMoney01CreditBackFadeOutWait: + { + Animator component3 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component3)) + { + this.RequestParentChangeOKButton(false, true); + this.RequestParentChangeBalanceButton(false, true); + this._state = BalanceCommon.BalanceCommonState.End; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney01CreditNextFadeOut: + this._emoneyWindow.transform.GetChild(0).GetComponent().Play("Price_Ok", 0, 0f); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditNextFadeOutWait; + this._timer = 8; + return; + case BalanceCommon.BalanceCommonState.EMoney01CreditNextFadeOutWait: + { + Animator component4 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this._timer == 0 || this.IsEndAnim(component4)) + { + GameObject gameObject = this._emoneyWindow.transform.GetChild(0).GetChild(0).GetChild(3) + .gameObject; + this.SetActiveChildren(gameObject, false); + this.RequestParentChangeOKButton(false, true); + this.RequestParentChangeBalanceButton(false, true); + this._state = BalanceCommon.BalanceCommonState.EMoney01BrandFadeIn; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney01CreditBalanceFadeOut: + this.SetBrandIconNum(false); + this._emoneyWindow.transform.GetChild(0).GetComponent().Play("BalanceInquires_In", 0, 0f); + if (this._nEMoneyBrandIconNum == -1 || !this.IsEnableRequest()) + { + this._isGrayOKButton = true; + } + this.SetBrandIconNum(true); + this.SetBrandIcon02(false); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditBalanceFadeOutWait; + this._timer = 2; + this._sub_count = 0; + return; + case BalanceCommon.BalanceCommonState.EMoney01CreditBalanceFadeOutWait: + { + Animator component5 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component5)) + { + this.RequestParentChangeOKButton(false, true); + this.RequestParentChangeBalanceButton(false, true); + this._state = BalanceCommon.BalanceCommonState.EMoney02Init; + this._sub_count = 0; + return; + } + if (this._timer == 0 && this._sub_count == 0) + { + this.SetBalanceText(1, 0); + if (this._nEMoneyBrandIconNum == -1 || !this.IsEnableRequest()) + { + this._isGrayOKButton = true; + } + this.SetBrandIcon02(true); + this._sub_count++; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney01BrandFadeIn: + { + this.SetBrandIconNum(false); + this._emoneyWindow.transform.GetChild(0).GetComponent().Play("BrandUI_In", 0, 0f); + bool flag = true; + if (this._nEMoneyCreditIconNum == -1) + { + flag = false; + } + else if (this._nEMoneyCreditIconNum != -1 && this._nEMoneyCreditIconCursorID + 1 + SingletonStateMachine.Instance.Credit.NowCredit > 24) + { + flag = false; + } + if (this._nEMoneyBrandIconNum == -1 || !flag || !this.IsEnableRequest()) + { + this._isGrayOKButton = true; + } + this.SetBrandIcon01(false); + this.BrandBottomInfo(false, false); + this.SetBalanceText(0, 1); + this._state = BalanceCommon.BalanceCommonState.EMoney01BrandFadeInWait; + this._timer = 2; + this._sub_count = 0; + return; + } + case BalanceCommon.BalanceCommonState.EMoney01BrandFadeInWait: + { + Animator component6 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component6)) + { + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + this.SetParentCheckLRFlag(true); + bool flag2 = true; + if (this._nEMoneyCreditIconNum == -1) + { + flag2 = false; + } + else if (this._nEMoneyCreditIconNum != -1 && this._nEMoneyCreditIconCursorID + 1 + SingletonStateMachine.Instance.Credit.NowCredit > 24) + { + flag2 = false; + } + this.OKStart(); + this.BackStart(); + if (this._nEMoneyBrandIconNum == -1 || !flag2 || !this.IsEnableRequest()) + { + this.RequestParentChangeOKButton(true, true); + } + component6.Play("BrandUI_Loop", 0, 0f); + this.SetBrandIcon01(true); + this.BrandBottomInfo(false, false); + this._state = BalanceCommon.BalanceCommonState.EMoney01BrandWait; + this._sub_count = 0; + return; + } + if (this._timer == 0 && this._sub_count == 0) + { + this.SetBrandIcon01(true); + this._sub_count++; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney01BrandWait: + if (this.IsOK() || this.IsBack() || this.IsTimeUp()) + { + if (this.IsOK()) + { + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + this.SetParentCheckLRFlag(false); + this._isRightLimits = false; + this._isLeftLimits = false; + this.ResetOKStart(); + this.ResetBackStart(); + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + this._buttonController.SetVisibleImmediate(false, new int[] { 6 }); + this._state = BalanceCommon.BalanceCommonState.EMoney01BrandNextFadeOut; + return; + } + if (this.IsBack()) + { + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + this.SetParentCheckLRFlag(false); + this._isRightLimits = false; + this._isLeftLimits = false; + this.ResetOKStart(); + this.ResetBackStart(); + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + this._buttonController.SetVisibleImmediate(false, new int[] { 6 }); + this._state = BalanceCommon.BalanceCommonState.EMoney01BrandBackFadeOut; + return; + } + if (this.IsTimeUp()) + { + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + this.SetParentCheckLRFlag(false); + this._isRightLimits = false; + this._isLeftLimits = false; + this.ResetOKStart(); + this.ResetBackStart(); + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + this._buttonController.SetVisibleImmediate(false, new int[] { 6 }); + this._state = BalanceCommon.BalanceCommonState.EMoney01BrandBackFadeOut; + return; + } + } + else + { + if (this.IsRight()) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01BrandMoveRight; + return; + } + if (this.IsLeft()) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01BrandMoveLeft; + return; + } + } + break; + case BalanceCommon.BalanceCommonState.EMoney01BrandMoveRight: + case BalanceCommon.BalanceCommonState.EMoney01BrandMoveLeft: + if (this.IsRight()) + { + this.BrandMoveRight(); + } + else if (this.IsLeft()) + { + this.BrandMoveLeft(); + } + if (this.IsRight() || this.IsLeft()) + { + this.SetBrandIcon01(true); + this.BrandBottomInfo(false, false); + } + this._state = BalanceCommon.BalanceCommonState.EMoney01BrandWait; + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + return; + case BalanceCommon.BalanceCommonState.EMoney01BrandBackFadeOut: + this._emoneyWindow.transform.GetChild(0).GetComponent().Play("BrandUI_Ok", 0, 0f); + this._state = BalanceCommon.BalanceCommonState.EMoney01BrandBackFadeOutWait; + return; + case BalanceCommon.BalanceCommonState.EMoney01BrandBackFadeOutWait: + { + Animator component7 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component7)) + { + this.RequestParentChangeOKButton(false, true); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditBackedFadeIn; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney01BrandNextFadeOut: + { + Animator component8 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component8)) + { + component8.Play("BrandUI_Ok", 0, 0f); + this.BrandBottomInfo(false, false); + this._state = BalanceCommon.BalanceCommonState.EMoney01BrandNextFadeOutWait; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney01BrandNextFadeOutWait: + { + Animator component9 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component9)) + { + this.BrandBottomInfo(false, false); + this._isEMoneyReaderSuccess = false; + this._isEMoneyReaderFailed = false; + this.RequestParentChangeOKButton(false, true); + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderFadeIn; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney01ReaderFadeIn: + this._emoneyWindow.transform.GetChild(0).GetComponent().Play("PaymentUI_In", 0, 0f); + this.BrandBottomInfo(true, true); + this.SetBalanceText(0, 2); + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderFadeInWait; + this._timer = 2; + this._sub_count = 0; + return; + case BalanceCommon.BalanceCommonState.EMoney01ReaderFadeInWait: + { + Animator animator = this._emoneyWindow.transform.GetChild(0).GetComponent(); + bool flag3 = true; + bool flag4 = false; + if (this.IsEndAnim(animator)) + { + int num = this._maxCreditValue / (this._nEMoneyCreditCoins * this._nEMoneyCreditRate); + int num2 = this._nEMoneyCreditCoins * (this._nEMoneyCreditIconCursorID + 1); + bool flag5 = true; + if (this._nEMoneyCreditIconCursorID + 1 + SingletonStateMachine.Instance.Credit.NowCredit > 24) + { + flag5 = false; + } + if (SingletonStateMachine.Instance.Emoney.IsAvalilable(this._nEMoneyCurrentBrandTypeID) && this.IsEnableRequest()) + { + if (this._nEMoneyCreditIconCursorID + 1 <= num && flag5) + { + SingletonStateMachine.Instance.Emoney.Config = new EMoney.EConfig(num2, this._nEMoneyCurrentBrandTypeID); + if (SingletonStateMachine.Instance.Emoney.Pay()) + { + flag3 = true; + } + } + else + { + flag4 = true; + flag3 = false; + } + } + else + { + flag4 = true; + flag3 = false; + } + this._isHeldOver = false; + this.BrandBottomInfo(true, true); + if (flag3) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderPreWait; + } + else if (flag4) + { + this._isNotCallCancel = true; + this.RequestParentChangeBackButton(true, true); + this.ResetBackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderBackFadeOut; + } + this._timer = this._requestWaitTime; + this._sub_count = 0; + return; + } + if (this._timer == 0 && this._sub_count == 0) + { + animator = this._emoneyWindow.transform.GetChild(0).GetChild(0).gameObject.transform.GetChild(4).gameObject.transform.GetChild(0).GetComponent(); + animator.Play("TouchAime", 0, 0f); + this._sub_count++; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney01ReaderPreWait: + { + bool flag6 = this._sub_count >= this._requestMinTime && EMoney.Operation.IsCancellable; + bool flag7 = this._sub_count >= this._requestMinTime && !SingletonStateMachine.Instance.Emoney.IsInOperating; + if (this._timer == 0 || flag6 || flag7) + { + if (flag7) + { + this._requestInvalid = true; + } + this.BackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderWait; + this._sub_count = 0; + } + this._sub_count++; + return; + } + case BalanceCommon.BalanceCommonState.EMoney01ReaderWait: + if (!this._requestInvalid && SingletonStateMachine.Instance.Emoney.IsAvalilable(this._nEMoneyCurrentBrandTypeID)) + { + EMoneyOperation operation = EMoney.Operation; + EMoneyResultStatus status = EMoney.Operation.Result.Status; + if (!this._isHeldOver && operation.IsHeldOver) + { + this._emoneyWindow.transform.GetChild(0).GetChild(0).gameObject.transform.GetChild(4).gameObject.transform.GetChild(0).GetComponent().Play("VFD", 0, 0f); + this.SetBalanceText(0, 3); + this._isHeldOver = true; + this.RequestParentChangeBackButton(true, true); + } + else if (!operation.IsCancellable) + { + this._emoneyWindow.transform.GetChild(0).GetChild(0).gameObject.transform.GetChild(4).gameObject.transform.GetChild(0).GetComponent().Play("VFD", 0, 0f); + this.SetBalanceText(0, 3); + this.RequestParentChangeBackButton(true, true); + } + if (!operation.IsBusy && operation.HasResult) + { + switch (status) + { + case 0: + this._isEMoneyReaderFailed = true; + break; + case 1: + this._isEMoneyReaderSuccess = true; + Singleton.Instance.GetUserData((long)this._monitorID).Detail.LastSelectEMoney = this._nEMoneyCurrentBrandTypeID + 1; + break; + case 2: + this._isEMoneyUnconfirm = true; + SingletonStateMachine.Instance.IsEmoneyUnconfirm = true; + break; + case 3: + this._isEMoneyReaderFailed = true; + break; + } + } + } + else + { + this._requestInvalid = false; + this.BrandBottomInfo(true, true); + this.ResetBackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderBackFadeOut; + } + if (this._isEMoneyUnconfirm || this._isEMoneyReaderSuccess || this._isEMoneyReaderFailed || this.IsBack() || this.IsTimeUp()) + { + this._requestInvalid = false; + if (this._isEMoneyUnconfirm) + { + this.ResetBackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderResultFadeIn; + return; + } + if (this._isEMoneyReaderSuccess) + { + this.ResetBackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderResultFadeIn; + return; + } + if (this._isEMoneyReaderFailed) + { + this.ResetBackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderResultFadeIn; + return; + } + if (this.IsBack()) + { + this.RequestParentChangeBackButton(true, true); + this.ResetBackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderBackFadeOut; + return; + } + this.IsTimeUp(); + return; + } + break; + case BalanceCommon.BalanceCommonState.EMoney01ReaderBackFadeOut: + this._emoneyWindow.transform.GetChild(0).GetComponent(); + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderBackFadeOutWait; + this._sub_count = 0; + return; + case BalanceCommon.BalanceCommonState.EMoney01ReaderBackFadeOutWait: + { + Animator component10 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component10)) + { + bool flag8 = true; + if (this._isNotCallCancel) + { + flag8 = true; + } + else if (SingletonStateMachine.Instance.Emoney.Cancel()) + { + flag8 = true; + } + this._sub_count++; + if (this._sub_count >= this._requestOverTime) + { + flag8 = true; + } + if (flag8) + { + this._timer = this._requestMinTime; + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderBackPreWait; + this._sub_count = 0; + return; + } + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney01ReaderBackPreWait: + if (this._timer == 0) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderBackWait; + this._sub_count = 0; + return; + } + break; + case BalanceCommon.BalanceCommonState.EMoney01ReaderBackWait: + { + bool flag9 = false; + if (this._isNotCallCancel) + { + flag9 = true; + } + else + { + EMoneyOperation operation2 = EMoney.Operation; + EMoneyResultStatus status2 = EMoney.Operation.Result.Status; + switch (SingletonStateMachine.Instance.Emoney.GetStatus()) + { + case EMoney.Status.Idle: + flag9 = true; + break; + } + } + this._sub_count++; + if (this._sub_count >= this._requestOverTime) + { + flag9 = true; + } + if (flag9) + { + this._isNotCallCancel = false; + this._isEMoneyReaderSuccess = false; + this._isEMoneyReaderFailed = false; + this.RequestParentChangeOKButton(false, true); + this.RequestParentChangeBackButton(false, true); + this._state = BalanceCommon.BalanceCommonState.EMoney01BrandFadeIn; + this._sub_count = 0; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney01ReaderResultFadeIn: + if (this._isEMoneyUnconfirm) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderResultFadeInWait; + return; + } + if (this._isEMoneyReaderSuccess) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderResultFadeInWait; + return; + } + if (this._isEMoneyReaderFailed) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderResultFadeInWait; + return; + } + break; + case BalanceCommon.BalanceCommonState.EMoney01ReaderResultFadeInWait: + if (this._isEMoneyUnconfirm) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderResultPreWait; + return; + } + if (this._isEMoneyReaderSuccess) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderResultPreWait; + return; + } + if (this._isEMoneyReaderFailed) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderResultPreWait; + return; + } + break; + case BalanceCommon.BalanceCommonState.EMoney01ReaderResultPreWait: + if (this._timer == 0) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderResultWait; + return; + } + break; + case BalanceCommon.BalanceCommonState.EMoney01ReaderResultWait: + if (true) + { + if (this._isEMoneyUnconfirm) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderNextFadeOut; + return; + } + if (this._isEMoneyReaderSuccess) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderNextFadeOut; + return; + } + if (this._isEMoneyReaderFailed) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderNextFadeOut; + return; + } + } + break; + case BalanceCommon.BalanceCommonState.EMoney01ReaderNextFadeOut: + if (this._isEMoneyUnconfirm || this._isEMoneyReaderSuccess || this._isEMoneyReaderFailed) + { + this._emoneyWindow.transform.GetChild(0).GetComponent().Play("PaymentUI_Out", 0, 0f); + this.BrandBottomInfo(true, true); + } + if (this._isEMoneyUnconfirm) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderNextFadeOutWait; + return; + } + if (this._isEMoneyReaderSuccess) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderNextFadeOutWait; + return; + } + if (this._isEMoneyReaderFailed) + { + this._state = BalanceCommon.BalanceCommonState.EMoney01ReaderNextFadeOutWait; + return; + } + break; + case BalanceCommon.BalanceCommonState.EMoney01ReaderNextFadeOutWait: + { + Animator component11 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this._timer == 0 || this.IsEndAnim(component11)) + { + this._emoneyWindow.SetActive(false); + this._isEMoneyReaderSuccess = false; + this._isEMoneyReaderFailed = false; + this.RequestParentChangeBackButton(false, true); + this._state = BalanceCommon.BalanceCommonState.End; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney02Init: + this._state = BalanceCommon.BalanceCommonState.EMoney02BrandFadeIn; + return; + case BalanceCommon.BalanceCommonState.EMoney02BrandFadeIn: + this._state = BalanceCommon.BalanceCommonState.EMoney02BrandFadeInWait; + return; + case BalanceCommon.BalanceCommonState.EMoney02BrandFadeInWait: + { + Animator component12 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component12)) + { + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + this.SetParentCheckLRFlag(true); + this.ChangeButtonType(ButtonControllerBase.FlatButtonType.Cancel); + this.OKStart(); + this.BackStart(); + if (this._nEMoneyBrandIconNum == -1 || !this.IsEnableRequest()) + { + this.RequestParentChangeOKButton(true, true); + } + this.SetBrandIcon02(true); + component12.Play("BalanceInquires_Loop", 0, 0f); + this._state = BalanceCommon.BalanceCommonState.EMoney02BrandWait; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney02BrandWait: + if (this.IsOK() || this.IsBack() || this.IsTimeUp()) + { + if (this.IsOK()) + { + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + this.SetParentCheckLRFlag(false); + this._isRightLimits = false; + this._isLeftLimits = false; + this.ResetOKStart(); + this.ResetBackStart(); + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + this._buttonController.SetVisibleImmediate(false, new int[] { 6 }); + this._state = BalanceCommon.BalanceCommonState.EMoney02BrandNextFadeOut; + return; + } + if (this.IsBack()) + { + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + this.SetParentCheckLRFlag(false); + this._isRightLimits = false; + this._isLeftLimits = false; + this.ResetOKStart(); + this.ResetBackStart(); + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + this._buttonController.SetVisibleImmediate(false, new int[] { 6 }); + this._state = BalanceCommon.BalanceCommonState.EMoney02BrandCancelFadeOut; + return; + } + if (this.IsTimeUp()) + { + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + this.SetParentCheckLRFlag(false); + this._isRightLimits = false; + this._isLeftLimits = false; + this.ResetOKStart(); + this.ResetBackStart(); + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + this._buttonController.SetVisibleImmediate(false, new int[] { 6 }); + this._state = BalanceCommon.BalanceCommonState.EMoney02BrandCancelFadeOut; + return; + } + } + else + { + if (this.IsRight()) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02BrandMoveRight; + return; + } + if (this.IsLeft()) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02BrandMoveLeft; + return; + } + } + break; + case BalanceCommon.BalanceCommonState.EMoney02BrandMoveRight: + case BalanceCommon.BalanceCommonState.EMoney02BrandMoveLeft: + if (this.IsRight()) + { + this.BrandMoveRight(); + } + else if (this.IsLeft()) + { + this.BrandMoveLeft(); + } + if (this.IsRight() || this.IsLeft()) + { + this.SetBrandIcon02(true); + } + this._state = BalanceCommon.BalanceCommonState.EMoney02BrandWait; + this.SetParentRightFlag(false); + this.SetParentLeftFlag(false); + return; + case BalanceCommon.BalanceCommonState.EMoney02BrandCancelFadeOut: + this._emoneyWindow.transform.GetChild(0).GetComponent().Play("BalanceInquires_Cancel", 0, 0f); + this._state = BalanceCommon.BalanceCommonState.EMoney02BrandCancelFadeOutWait; + return; + case BalanceCommon.BalanceCommonState.EMoney02BrandCancelFadeOutWait: + { + Animator component13 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component13)) + { + this._isEMoneyReaderSuccess = false; + this._isEMoneyReaderFailed = false; + this.RequestParentChangeOKButton(false, true); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditBackedFadeIn; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney02BrandNextFadeOut: + { + Animator component14 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component14)) + { + component14.Play("BalanceInquires_Out", 0, 0f); + this._state = BalanceCommon.BalanceCommonState.EMoney02BrandNextFadeOutWait; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney02BrandNextFadeOutWait: + { + Animator component15 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component15)) + { + this._isEMoneyReaderSuccess = false; + this._isEMoneyReaderFailed = false; + this.RequestParentChangeOKButton(false, true); + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderFadeIn; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney02ReaderFadeIn: + this._emoneyWindow.transform.GetChild(0).GetComponent().Play("GuidanceUI_In", 0, 0f); + this.SetBalanceText(1, 1); + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderFadeInWait; + this._timer = 2; + this._sub_count = 0; + return; + case BalanceCommon.BalanceCommonState.EMoney02ReaderFadeInWait: + { + Animator animator2 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + bool flag10 = true; + bool flag11 = false; + if (this.IsEndAnim(animator2)) + { + if (SingletonStateMachine.Instance.Emoney.IsAvalilableBalance(this._nEMoneyCurrentBrandTypeID) && this.IsEnableRequest()) + { + SingletonStateMachine.Instance.Emoney.Config = new EMoney.EConfig(0, this._nEMoneyCurrentBrandTypeID); + if (SingletonStateMachine.Instance.Emoney.RequestBalance()) + { + flag10 = true; + } + } + else + { + flag11 = true; + flag10 = false; + } + this._isHeldOver = false; + if (flag10) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderPreWait; + } + else if (flag11) + { + this._isNotCallCancel = true; + this.RequestParentChangeBackButton(true, true); + this.ResetBackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderCancelFadeOut; + } + this._timer = this._requestWaitTime; + this._sub_count = 0; + return; + } + if (this._timer == 0 && this._sub_count == 0) + { + animator2 = this._emoneyWindow.transform.GetChild(0).GetChild(1).gameObject.transform.GetChild(3).gameObject.transform.GetChild(0).GetComponent(); + animator2.Play("TouchAime", 0, 0f); + this._sub_count++; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney02ReaderPreWait: + { + bool flag12 = this._sub_count >= this._requestMinTime && EMoney.Operation.IsCancellable; + bool flag13 = this._sub_count >= this._requestMinTime && !SingletonStateMachine.Instance.Emoney.IsInOperating; + if (this._timer == 0 || flag12 || flag13) + { + if (flag13) + { + this._requestInvalid = true; + } + this.BackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderWait; + this._sub_count = 0; + } + this._sub_count++; + return; + } + case BalanceCommon.BalanceCommonState.EMoney02ReaderWait: + if (!this._requestInvalid && SingletonStateMachine.Instance.Emoney.IsAvalilableBalance(this._nEMoneyCurrentBrandTypeID)) + { + EMoneyOperation operation3 = EMoney.Operation; + EMoneyResultStatus status3 = EMoney.Operation.Result.Status; + if (!this._isHeldOver && operation3.IsHeldOver) + { + this._emoneyWindow.transform.GetChild(0).GetChild(1).gameObject.transform.GetChild(3).gameObject.transform.GetChild(0).GetComponent().Play("VFD", 0, 0f); + this.SetBalanceText(1, 2); + this._isHeldOver = true; + this.RequestParentChangeBackButton(true, true); + } + else if (!operation3.IsCancellable) + { + this._emoneyWindow.transform.GetChild(0).GetChild(1).gameObject.transform.GetChild(3).gameObject.transform.GetChild(0).GetComponent().Play("VFD", 0, 0f); + this.SetBalanceText(1, 2); + this.RequestParentChangeBackButton(true, true); + } + if (!operation3.IsBusy && operation3.HasResult) + { + switch (status3) + { + case 0: + this._isEMoneyReaderFailed = true; + break; + case 1: + this._isEMoneyReaderSuccess = true; + break; + case 2: + this._isEMoneyUnconfirm = true; + SingletonStateMachine.Instance.IsEmoneyUnconfirm = true; + break; + case 3: + this._isEMoneyReaderFailed = true; + break; + } + } + } + else + { + this._requestInvalid = false; + this.ResetBackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderCancelFadeOut; + } + if (this._isEMoneyUnconfirm || this._isEMoneyReaderSuccess || this._isEMoneyReaderFailed || this.IsBack() || this.IsTimeUp()) + { + this._requestInvalid = false; + if (this._isEMoneyUnconfirm) + { + this.ResetBackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderResultFadeIn; + return; + } + if (this._isEMoneyReaderSuccess) + { + this.ResetBackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderResultFadeIn; + return; + } + if (this._isEMoneyReaderFailed) + { + this.ResetBackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderResultFadeIn; + return; + } + if (this.IsBack()) + { + this.RequestParentChangeBackButton(true, true); + this.ResetBackStart(); + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderCancelFadeOut; + return; + } + this.IsTimeUp(); + return; + } + break; + case BalanceCommon.BalanceCommonState.EMoney02ReaderCancelFadeOut: + this._emoneyWindow.transform.GetChild(0).GetComponent().Play("BalanceInquires_Cancel", 0, 0f); + this.SetBrandIcon02(false); + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderCancelFadeOutWait; + this._sub_count = 0; + return; + case BalanceCommon.BalanceCommonState.EMoney02ReaderCancelFadeOutWait: + { + Animator component16 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component16)) + { + bool flag14 = true; + if (this._isNotCallCancel) + { + flag14 = true; + } + else if (SingletonStateMachine.Instance.Emoney.Cancel()) + { + flag14 = true; + } + this._sub_count++; + if (this._sub_count >= this._requestOverTime) + { + flag14 = true; + } + if (flag14) + { + this._timer = this._requestMinTime; + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderCancelPreWait; + this._sub_count = 0; + return; + } + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney02ReaderCancelPreWait: + if (this._timer == 0) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderCancelWait; + this._sub_count = 0; + return; + } + break; + case BalanceCommon.BalanceCommonState.EMoney02ReaderCancelWait: + { + bool flag15 = false; + if (this._isNotCallCancel) + { + flag15 = true; + } + else + { + EMoneyOperation operation4 = EMoney.Operation; + EMoneyResultStatus status4 = EMoney.Operation.Result.Status; + switch (SingletonStateMachine.Instance.Emoney.GetStatus()) + { + case EMoney.Status.Idle: + flag15 = true; + break; + } + } + this._sub_count++; + if (this._sub_count >= this._requestOverTime) + { + flag15 = true; + } + if (flag15) + { + this._isNotCallCancel = false; + this._isEMoneyReaderSuccess = false; + this._isEMoneyReaderFailed = false; + this.RequestParentChangeOKButton(false, true); + this.RequestParentChangeBackButton(false, true); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditBackedFadeIn; + return; + } + break; + } + case BalanceCommon.BalanceCommonState.EMoney02ReaderResultFadeIn: + if (this._isEMoneyUnconfirm) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderResultFadeInWait; + return; + } + if (this._isEMoneyReaderSuccess) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderResultFadeInWait; + return; + } + if (this._isEMoneyReaderFailed) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderResultFadeInWait; + return; + } + break; + case BalanceCommon.BalanceCommonState.EMoney02ReaderResultFadeInWait: + if (this._isEMoneyUnconfirm) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderResultWait; + return; + } + if (this._isEMoneyReaderSuccess) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderResultWait; + return; + } + if (this._isEMoneyReaderFailed) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderResultWait; + return; + } + break; + case BalanceCommon.BalanceCommonState.EMoney02ReaderResultPreWait: + if (this._timer == 0) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderResultWait; + return; + } + break; + case BalanceCommon.BalanceCommonState.EMoney02ReaderResultWait: + if (true) + { + if (this._isEMoneyUnconfirm) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderNextFadeOut; + return; + } + if (this._isEMoneyReaderSuccess) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderNextFadeOut; + return; + } + if (this._isEMoneyReaderFailed) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderNextFadeOut; + return; + } + } + break; + case BalanceCommon.BalanceCommonState.EMoney02ReaderNextFadeOut: + if (this._isEMoneyUnconfirm || this._isEMoneyReaderSuccess || this._isEMoneyReaderFailed) + { + this._emoneyWindow.transform.GetChild(0).GetComponent().Play("BalanceInquires_Cancel", 0, 0f); + this.SetBrandIcon02(false); + } + if (this._isEMoneyUnconfirm) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderNextFadeOutWait; + return; + } + if (this._isEMoneyReaderSuccess) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderNextFadeOutWait; + return; + } + if (this._isEMoneyReaderFailed) + { + this._state = BalanceCommon.BalanceCommonState.EMoney02ReaderNextFadeOutWait; + return; + } + break; + case BalanceCommon.BalanceCommonState.EMoney02ReaderNextFadeOutWait: + { + Animator component17 = this._emoneyWindow.transform.GetChild(0).GetComponent(); + if (this.IsEndAnim(component17)) + { + this._isEMoneyReaderSuccess = false; + this._isEMoneyReaderFailed = false; + this.RequestParentChangeBackButton(false, true); + this._state = BalanceCommon.BalanceCommonState.EMoney01CreditBackedFadeIn; + } + break; + } + default: + return; + } + } + } + + // Token: 0x04001568 RID: 5480 + public BalanceCommon.BalanceCommonState _state = BalanceCommon.BalanceCommonState.End; + + // Token: 0x04001569 RID: 5481 + private int _monitorID; + + // Token: 0x0400156A RID: 5482 + public BalanceCommon.ParentMode _parent_mode; + + // Token: 0x0400156B RID: 5483 + public ModeSelectMonitor _monitor_mode_select; + + // Token: 0x0400156C RID: 5484 + public TicketSelectMonitor _monitor_ticket_select; + + // Token: 0x0400156D RID: 5485 + public GameObject _creditWindow; + + // Token: 0x0400156E RID: 5486 + public GameObject _emoneyWindow; + + // Token: 0x0400156F RID: 5487 + public ButtonControllerBase _buttonController; + + // Token: 0x04001570 RID: 5488 + public bool _isSetPreviousBrandTypeID; + + // Token: 0x04001571 RID: 5489 + public int _timer; + + // Token: 0x04001572 RID: 5490 + private int _sub_count; + + // Token: 0x04001573 RID: 5491 + public int _nEMoneyCreditIconNum = 5; + + // Token: 0x04001574 RID: 5492 + public int _nEMoneyCreditIconCursorID; + + // Token: 0x04001575 RID: 5493 + public int _nEMoneyCreditRate = 100; + + // Token: 0x04001576 RID: 5494 + public int _nEMoneyCreditCoins = 1; + + // Token: 0x04001577 RID: 5495 + public bool _isRightLimits; + + // Token: 0x04001578 RID: 5496 + public bool _isLeftLimits; + + // Token: 0x04001579 RID: 5497 + public int _nEMoneyBrandIconNum = 6; + + // Token: 0x0400157A RID: 5498 + public int _nEMoneyBrandIconCursorID; + + // Token: 0x0400157B RID: 5499 + public int _nEMoneyPreviousBrandTypeID = -1; + + // Token: 0x0400157C RID: 5500 + private EMoneyBrandId _nEMoneyCurrentBrandTypeID; + + // Token: 0x0400157D RID: 5501 + private List _valueListEMoneyBrandTypeID = new List(); + + // Token: 0x0400157E RID: 5502 + private List _valueListEMoneyBrandEnable = new List(); + + // Token: 0x0400157F RID: 5503 + public bool _isEMoneyReaderSuccess; + + // Token: 0x04001580 RID: 5504 + public bool _isEMoneyReaderFailed; + + // Token: 0x04001581 RID: 5505 + public bool _isEMoneyUnconfirm; + + // Token: 0x04001582 RID: 5506 + public bool _isHeldOver; + + // Token: 0x04001583 RID: 5507 + public bool _isNotCallCancel; + + // Token: 0x04001584 RID: 5508 + public bool _isOwnBalanceError01; + + // Token: 0x04001585 RID: 5509 + public bool _isOwnBalanceError02; + + // Token: 0x04001586 RID: 5510 + public int _maxCreditValue = 500; + + // Token: 0x04001587 RID: 5511 + public int _maxBrandTexID = 5; + + // Token: 0x04001588 RID: 5512 + public bool _requestInvalid; + + // Token: 0x04001589 RID: 5513 + public int _requestMinTime = 5; + + // Token: 0x0400158A RID: 5514 + public int _requestWaitTime = 30; + + // Token: 0x0400158B RID: 5515 + public int _requestOverTime = 900; + + // Token: 0x0400158C RID: 5516 + public bool _isGrayOKButton; + + // Token: 0x02000B40 RID: 2880 + public enum BalanceCommonState + { + // Token: 0x0400685D RID: 26717 + None, + // Token: 0x0400685E RID: 26718 + EMoney01Init, + // Token: 0x0400685F RID: 26719 + EMoney01CreditBackedFadeIn, + // Token: 0x04006860 RID: 26720 + EMoney01CreditFadeIn, + // Token: 0x04006861 RID: 26721 + EMoney01CreditFadeInWait, + // Token: 0x04006862 RID: 26722 + EMoney01CreditWait, + // Token: 0x04006863 RID: 26723 + EMoney01CreditMoveRight, + // Token: 0x04006864 RID: 26724 + EMoney01CreditMoveLeft, + // Token: 0x04006865 RID: 26725 + EMoney01CreditBackFadeOut, + // Token: 0x04006866 RID: 26726 + EMoney01CreditBackFadeOutWait, + // Token: 0x04006867 RID: 26727 + EMoney01CreditNextFadeOut, + // Token: 0x04006868 RID: 26728 + EMoney01CreditNextFadeOutWait, + // Token: 0x04006869 RID: 26729 + EMoney01CreditBalanceFadeOut, + // Token: 0x0400686A RID: 26730 + EMoney01CreditBalanceFadeOutWait, + // Token: 0x0400686B RID: 26731 + EMoney01BrandFadeIn, + // Token: 0x0400686C RID: 26732 + EMoney01BrandFadeInWait, + // Token: 0x0400686D RID: 26733 + EMoney01BrandWait, + // Token: 0x0400686E RID: 26734 + EMoney01BrandMoveRight, + // Token: 0x0400686F RID: 26735 + EMoney01BrandMoveLeft, + // Token: 0x04006870 RID: 26736 + EMoney01BrandBackFadeOut, + // Token: 0x04006871 RID: 26737 + EMoney01BrandBackFadeOutWait, + // Token: 0x04006872 RID: 26738 + EMoney01BrandNextFadeOut, + // Token: 0x04006873 RID: 26739 + EMoney01BrandNextFadeOutWait, + // Token: 0x04006874 RID: 26740 + EMoney01ReaderFadeIn, + // Token: 0x04006875 RID: 26741 + EMoney01ReaderFadeInWait, + // Token: 0x04006876 RID: 26742 + EMoney01ReaderPreWait, + // Token: 0x04006877 RID: 26743 + EMoney01ReaderWait, + // Token: 0x04006878 RID: 26744 + EMoney01ReaderBackFadeOut, + // Token: 0x04006879 RID: 26745 + EMoney01ReaderBackFadeOutWait, + // Token: 0x0400687A RID: 26746 + EMoney01ReaderBackPreWait, + // Token: 0x0400687B RID: 26747 + EMoney01ReaderBackWait, + // Token: 0x0400687C RID: 26748 + EMoney01ReaderResultFadeIn, + // Token: 0x0400687D RID: 26749 + EMoney01ReaderResultFadeInWait, + // Token: 0x0400687E RID: 26750 + EMoney01ReaderResultPreWait, + // Token: 0x0400687F RID: 26751 + EMoney01ReaderResultWait, + // Token: 0x04006880 RID: 26752 + EMoney01ReaderNextFadeOut, + // Token: 0x04006881 RID: 26753 + EMoney01ReaderNextFadeOutWait, + // Token: 0x04006882 RID: 26754 + EMoney02Init, + // Token: 0x04006883 RID: 26755 + EMoney02BrandFadeIn, + // Token: 0x04006884 RID: 26756 + EMoney02BrandFadeInWait, + // Token: 0x04006885 RID: 26757 + EMoney02BrandWait, + // Token: 0x04006886 RID: 26758 + EMoney02BrandMoveRight, + // Token: 0x04006887 RID: 26759 + EMoney02BrandMoveLeft, + // Token: 0x04006888 RID: 26760 + EMoney02BrandCancelFadeOut, + // Token: 0x04006889 RID: 26761 + EMoney02BrandCancelFadeOutWait, + // Token: 0x0400688A RID: 26762 + EMoney02BrandNextFadeOut, + // Token: 0x0400688B RID: 26763 + EMoney02BrandNextFadeOutWait, + // Token: 0x0400688C RID: 26764 + EMoney02ReaderFadeIn, + // Token: 0x0400688D RID: 26765 + EMoney02ReaderFadeInWait, + // Token: 0x0400688E RID: 26766 + EMoney02ReaderPreWait, + // Token: 0x0400688F RID: 26767 + EMoney02ReaderWait, + // Token: 0x04006890 RID: 26768 + EMoney02ReaderCancelFadeOut, + // Token: 0x04006891 RID: 26769 + EMoney02ReaderCancelFadeOutWait, + // Token: 0x04006892 RID: 26770 + EMoney02ReaderCancelPreWait, + // Token: 0x04006893 RID: 26771 + EMoney02ReaderCancelWait, + // Token: 0x04006894 RID: 26772 + EMoney02ReaderResultFadeIn, + // Token: 0x04006895 RID: 26773 + EMoney02ReaderResultFadeInWait, + // Token: 0x04006896 RID: 26774 + EMoney02ReaderResultPreWait, + // Token: 0x04006897 RID: 26775 + EMoney02ReaderResultWait, + // Token: 0x04006898 RID: 26776 + EMoney02ReaderNextFadeOut, + // Token: 0x04006899 RID: 26777 + EMoney02ReaderNextFadeOutWait, + // Token: 0x0400689A RID: 26778 + Finish, + // Token: 0x0400689B RID: 26779 + End + } + + // Token: 0x02000B41 RID: 2881 + public enum ParentMode + { + // Token: 0x0400689D RID: 26781 + ParentModeModeSelect, + // Token: 0x0400689E RID: 26782 + ParentModeTicketSelect + } + + // Token: 0x02000B42 RID: 2882 + public enum GotoBalanceCredit + { + // Token: 0x040068A0 RID: 26784 + GotoBalanceEnableCredit = 14, + // Token: 0x040068A1 RID: 26785 + GotoBalanceCoinBlockCredit, + // Token: 0x040068A2 RID: 26786 + GotoBalanceMaxCredit = 24 + } + } +} diff --git a/Assembly-CSharp/BaloonMessage.cs b/Assembly-CSharp/BaloonMessage.cs new file mode 100644 index 0000000..24e06e3 --- /dev/null +++ b/Assembly-CSharp/BaloonMessage.cs @@ -0,0 +1,35 @@ +using System; +using TMPro; +using UnityEngine; + +// Token: 0x02000120 RID: 288 +public class BaloonMessage : MonoBehaviour +{ + // Token: 0x0600098B RID: 2443 RVA: 0x00024075 File Offset: 0x00023275 + public void SetSerif(string serif) + { + this._serifText.text = serif; + } + + // Token: 0x0600098C RID: 2444 RVA: 0x00024084 File Offset: 0x00023284 + public void Play(string serif) + { + this.SetSerif(serif); + int num = Animator.StringToHash("Base Layer.Loop"); + this._animator.Play(num, 0, 0f); + } + + // Token: 0x0600098D RID: 2445 RVA: 0x000240B5 File Offset: 0x000232B5 + public void PlayNonActive() + { + this._animator.Play("NonActive"); + } + + // Token: 0x04000772 RID: 1906 + [SerializeField] + private TextMeshProUGUI _serifText; + + // Token: 0x04000773 RID: 1907 + [SerializeField] + private Animator _animator; +} diff --git a/Assembly-CSharp/BlackOutObject.cs b/Assembly-CSharp/BlackOutObject.cs new file mode 100644 index 0000000..6302972 --- /dev/null +++ b/Assembly-CSharp/BlackOutObject.cs @@ -0,0 +1,53 @@ +using System; +using Mai2.Mai2Cue; +using Manager; +using UnityEngine; + +// Token: 0x02000041 RID: 65 +public class BlackOutObject : SpecialEffectObjBase +{ + // Token: 0x060001ED RID: 493 RVA: 0x00007687 File Offset: 0x00006887 + public void Initialize(Action action, int monitorIndex) + { + this._blackOutStartAction = action; + this.SetMonitorIndex(monitorIndex); + } + + // Token: 0x060001EE RID: 494 RVA: 0x00007697 File Offset: 0x00006897 + public override void SetActive(bool isActive) + { + this.StartAnimation(); + } + + // Token: 0x060001EF RID: 495 RVA: 0x0000769F File Offset: 0x0000689F + private void StartAnimation() + { + this._blackOutStartAction(); + SoundManager.PlaySE(Cue.SE_KALEID_INTERRUPT_2, base.MonitorIndex); + this._animator.SetTrigger(Animator.StringToHash("In")); + } + + // Token: 0x060001F0 RID: 496 RVA: 0x000076D4 File Offset: 0x000068D4 + private void Update() + { + if (base.IsEnd) + { + return; + } + AnimatorStateInfo currentAnimatorStateInfo = this._animator.GetCurrentAnimatorStateInfo(0); + if (currentAnimatorStateInfo.shortNameHash == BlackOutObject.hashInout && currentAnimatorStateInfo.normalizedTime >= 1f) + { + this.SetIsEnd(true); + } + } + + // Token: 0x04000141 RID: 321 + [SerializeField] + private Animator _animator; + + // Token: 0x04000142 RID: 322 + private static readonly int hashInout = Animator.StringToHash("inout"); + + // Token: 0x04000143 RID: 323 + private Action _blackOutStartAction; +} diff --git a/Assembly-CSharp/BonusCharaObject.cs b/Assembly-CSharp/BonusCharaObject.cs new file mode 100644 index 0000000..31c0c78 --- /dev/null +++ b/Assembly-CSharp/BonusCharaObject.cs @@ -0,0 +1,64 @@ +using System; +using UI; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x020000D5 RID: 213 +public class BonusCharaObject : BonusObject +{ + // Token: 0x06000716 RID: 1814 RVA: 0x0001BA9C File Offset: 0x0001AC9C + public void SetBGImage(int awakeNum) + { + this._multiImageMapBG.ChangeSprite(awakeNum); + } + + // Token: 0x06000717 RID: 1815 RVA: 0x0001BAAA File Offset: 0x0001ACAA + public void SetCharaBaseImage(Sprite sprite) + { + if (sprite != null) + { + this._charaBaseImage.sprite = sprite; + } + } + + // Token: 0x06000718 RID: 1816 RVA: 0x0001BAC1 File Offset: 0x0001ACC1 + public void SetCharaImage(Sprite sprite) + { + if (sprite != null) + { + this._charaImage.sprite = sprite; + } + } + + // Token: 0x06000719 RID: 1817 RVA: 0x0001BAD8 File Offset: 0x0001ACD8 + public void SetFrameImage(int awakeNum) + { + this._frameImage.ChangeSprite(awakeNum); + } + + // Token: 0x0600071A RID: 1818 RVA: 0x0001BAE6 File Offset: 0x0001ACE6 + public void SetActiveMask(bool isActive) + { + this._maskObject.SetActive(isActive); + } + + // Token: 0x04000541 RID: 1345 + [SerializeField] + private MultipleImage _multiImageMapBG; + + // Token: 0x04000542 RID: 1346 + [SerializeField] + private Image _charaBaseImage; + + // Token: 0x04000543 RID: 1347 + [SerializeField] + private MultiImage _charaImage; + + // Token: 0x04000544 RID: 1348 + [SerializeField] + private MultipleImage _frameImage; + + // Token: 0x04000545 RID: 1349 + [SerializeField] + private GameObject _maskObject; +} diff --git a/Assembly-CSharp/BonusMedalObject.cs b/Assembly-CSharp/BonusMedalObject.cs new file mode 100644 index 0000000..b7e8522 --- /dev/null +++ b/Assembly-CSharp/BonusMedalObject.cs @@ -0,0 +1,20 @@ +using System; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x020000D6 RID: 214 +public class BonusMedalObject : BonusObject +{ + // Token: 0x0600071C RID: 1820 RVA: 0x0001BAFC File Offset: 0x0001ACFC + public void SetMedalImage(Sprite sprite) + { + if (sprite != null) + { + this._medalImage.sprite = sprite; + } + } + + // Token: 0x04000546 RID: 1350 + [SerializeField] + private Image _medalImage; +} diff --git a/Assembly-CSharp/BonusObject.cs b/Assembly-CSharp/BonusObject.cs new file mode 100644 index 0000000..d3b159e --- /dev/null +++ b/Assembly-CSharp/BonusObject.cs @@ -0,0 +1,16 @@ +using System; +using UnityEngine; + +// Token: 0x020000D4 RID: 212 +public class BonusObject : MonoBehaviour +{ + // Token: 0x06000714 RID: 1812 RVA: 0x0001BA94 File Offset: 0x0001AC94 + public GameObject GetNumBonusObject() + { + return this._numBonusObject; + } + + // Token: 0x04000540 RID: 1344 + [SerializeField] + private GameObject _numBonusObject; +} diff --git a/Assembly-CSharp/BonusParts.cs b/Assembly-CSharp/BonusParts.cs new file mode 100644 index 0000000..e723e21 --- /dev/null +++ b/Assembly-CSharp/BonusParts.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using UnityEngine; + +// Token: 0x020000D7 RID: 215 +public class BonusParts : MonoBehaviour +{ + // Token: 0x0600071E RID: 1822 RVA: 0x0001BB13 File Offset: 0x0001AD13 + public BonusObject GetBonusObject(int index) + { + return this._bonusObjectList[index]; + } + + // Token: 0x0600071F RID: 1823 RVA: 0x0001BB21 File Offset: 0x0001AD21 + public GameObject GetNumBonusObject(int index) + { + return this._bonusObjectList[index].GetNumBonusObject(); + } + + // Token: 0x06000720 RID: 1824 RVA: 0x0001BB34 File Offset: 0x0001AD34 + public void SetActiveBonusObjectChild(bool isActive) + { + for (int i = 0; i < this._bonusObjectList.Count; i++) + { + this._bonusObjectList[i].gameObject.SetActive(isActive); + } + } + + // Token: 0x06000721 RID: 1825 RVA: 0x0001BB6E File Offset: 0x0001AD6E + public void SetActiveBonusObject(bool isActive, int index) + { + this._bonusObjectList[index].gameObject.SetActive(isActive); + } + + // Token: 0x06000722 RID: 1826 RVA: 0x0001BB87 File Offset: 0x0001AD87 + public void SetActiveEffect(bool isActive) + { + this._effectObject.SetActive(isActive); + } + + // Token: 0x06000723 RID: 1827 RVA: 0x0001BB95 File Offset: 0x0001AD95 + public void PlayBonusParts(string key, int layer, float normalizedTime) + { + this._animator.Play(key, layer, normalizedTime); + } + + // Token: 0x04000547 RID: 1351 + [SerializeField] + private Animator _animator; + + // Token: 0x04000548 RID: 1352 + [SerializeField] + private List _bonusObjectList; + + // Token: 0x04000549 RID: 1353 + [SerializeField] + private GameObject _effectObject; +} diff --git a/Assembly-CSharp/BonusTicketObject.cs b/Assembly-CSharp/BonusTicketObject.cs new file mode 100644 index 0000000..b06a939 --- /dev/null +++ b/Assembly-CSharp/BonusTicketObject.cs @@ -0,0 +1,31 @@ +using System; +using TMPro; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x020000D8 RID: 216 +public class BonusTicketObject : BonusObject +{ + // Token: 0x06000725 RID: 1829 RVA: 0x0001BBA5 File Offset: 0x0001ADA5 + public void SetTicketImage(Sprite sprite) + { + if (sprite != null) + { + this._ticketImage.sprite = sprite; + } + } + + // Token: 0x06000726 RID: 1830 RVA: 0x0001BBBC File Offset: 0x0001ADBC + public void SetTextNumBonus(string text) + { + this._numBonusText.text = text; + } + + // Token: 0x0400054A RID: 1354 + [SerializeField] + private Image _ticketImage; + + // Token: 0x0400054B RID: 1355 + [SerializeField] + private TextMeshProUGUI _numBonusText; +} diff --git a/Assembly-CSharp/BonusTrackObject.cs b/Assembly-CSharp/BonusTrackObject.cs new file mode 100644 index 0000000..0c131e6 --- /dev/null +++ b/Assembly-CSharp/BonusTrackObject.cs @@ -0,0 +1,27 @@ +using System; +using TMPro; +using UnityEngine; + +// Token: 0x020000D9 RID: 217 +public class BonusTrackObject : BonusObject +{ + // Token: 0x06000728 RID: 1832 RVA: 0x0001BBCA File Offset: 0x0001ADCA + public void SetTextNumTrack(string text) + { + this._numTrackText.text = text; + } + + // Token: 0x06000729 RID: 1833 RVA: 0x0001BBD8 File Offset: 0x0001ADD8 + public void SetTextNumBonus(string text) + { + this._numBonusText.text = text; + } + + // Token: 0x0400054C RID: 1356 + [SerializeField] + private TextMeshProUGUI _numTrackText; + + // Token: 0x0400054D RID: 1357 + [SerializeField] + private TextMeshProUGUI _numBonusText; +} diff --git a/Assembly-CSharp/BonusWindow.cs b/Assembly-CSharp/BonusWindow.cs new file mode 100644 index 0000000..1499ab3 --- /dev/null +++ b/Assembly-CSharp/BonusWindow.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using UnityEngine; + +// Token: 0x020000DA RID: 218 +public class BonusWindow : MonoBehaviour +{ + // Token: 0x0600072B RID: 1835 RVA: 0x0001BBE6 File Offset: 0x0001ADE6 + public int GetBonusPartsCount() + { + return this._BonusPartsObjList.Count; + } + + // Token: 0x0600072C RID: 1836 RVA: 0x0001BBF3 File Offset: 0x0001ADF3 + public Animator GetAnimater() + { + return this._Animator; + } + + // Token: 0x0600072D RID: 1837 RVA: 0x0001BBFB File Offset: 0x0001ADFB + public BonusObject GetBonusObject(int index, int type) + { + return this._BonusPartsObjList[index].GetBonusObject(type); + } + + // Token: 0x0600072E RID: 1838 RVA: 0x0001BC0F File Offset: 0x0001AE0F + public GameObject GetNumBonusObject(int index, int NumBonusObjIndex) + { + return this._BonusPartsObjList[index].GetNumBonusObject(NumBonusObjIndex); + } + + // Token: 0x0600072F RID: 1839 RVA: 0x0001BC23 File Offset: 0x0001AE23 + public void Play(string key, int layer, float normalizedTime) + { + this._Animator.Play(key, layer, normalizedTime); + } + + // Token: 0x06000730 RID: 1840 RVA: 0x0001BC33 File Offset: 0x0001AE33 + public void SetActiveBonusObjectChild(bool isActive, int index) + { + this._BonusPartsObjList[index].SetActiveBonusObjectChild(isActive); + } + + // Token: 0x06000731 RID: 1841 RVA: 0x0001BC47 File Offset: 0x0001AE47 + public void SetActiveBonusObject(bool isActive, int index) + { + this._BonusPartsObjList[index].SetActiveBonusObject(isActive, index); + } + + // Token: 0x06000732 RID: 1842 RVA: 0x0001BC5C File Offset: 0x0001AE5C + public void SetActiveEffect(bool isActive, int index) + { + this._BonusPartsObjList[index].SetActiveEffect(isActive); + } + + // Token: 0x06000733 RID: 1843 RVA: 0x0001BC70 File Offset: 0x0001AE70 + public void PlayAnimationBonusParts(int index, string key, int layer, float normalizedTime) + { + this._BonusPartsObjList[index].PlayBonusParts(key, layer, normalizedTime); + } + + // Token: 0x0400054E RID: 1358 + [SerializeField] + private Animator _Animator; + + // Token: 0x0400054F RID: 1359 + [SerializeField] + private List _BonusPartsObjList; +} diff --git a/Assembly-CSharp/ButtonControllerBase.cs b/Assembly-CSharp/ButtonControllerBase.cs new file mode 100644 index 0000000..d3ad1e6 --- /dev/null +++ b/Assembly-CSharp/ButtonControllerBase.cs @@ -0,0 +1,442 @@ +using System; +using Mai2.Mai2Cue; +using Manager; +using UI; +using UnityEngine; + +// Token: 0x02000057 RID: 87 +public class ButtonControllerBase : MonoBehaviour +{ + // Token: 0x06000281 RID: 641 RVA: 0x000089D7 File Offset: 0x00007BD7 + public static ButtonControllerBase.ButtonInformation GetFlatButtonParam(int index) + { + int num = ButtonControllerBase.FlatButtonParam.Length; + return ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)index); + } + + // Token: 0x06000282 RID: 642 RVA: 0x000089E9 File Offset: 0x00007BE9 + public static ButtonControllerBase.ButtonInformation GetFlatButtonParam(ButtonControllerBase.FlatButtonType type) + { + int num = ButtonControllerBase.FlatButtonParam.Length; + return ButtonControllerBase.FlatButtonParam[(int)type]; + } + + // Token: 0x06000283 RID: 643 RVA: 0x00008A00 File Offset: 0x00007C00 + protected void SetCommonButtons(params CommonButtonObject[] buttons) + { + this.CommonButtons = new CommonButtonObject[buttons.Length]; + this.CommonButtons = buttons; + this.SetAnimationActive(true); + } + + // Token: 0x06000284 RID: 644 RVA: 0x00008A1E File Offset: 0x00007C1E + public virtual void Initialize(int monitorIndex) + { + this.MonitorIndex = monitorIndex; + this.SetAnimationActive(true); + } + + // Token: 0x06000285 RID: 645 RVA: 0x00008A30 File Offset: 0x00007C30 + public static void LoadDefaultResources() + { + if (!ButtonControllerBase._isFlatButtonLoaded) + { + for (int i = 0; i < ButtonControllerBase.FlatButtonParam.Length; i++) + { + ButtonControllerBase.FlatButtonParam[i].Image = Resources.Load(ButtonControllerBase.FlatButtonParam[i].FileName); + } + ButtonControllerBase.ArrowSprite = Resources.Load("Common/Sprites/Button/UI_CMN_Arrow"); + ButtonControllerBase.ArrowSelectorSprite = Resources.Load("Common/Sprites/Button/UI_MDS_Btn_Arrow"); + ButtonControllerBase._isFlatButtonLoaded = true; + } + } + + // Token: 0x06000286 RID: 646 RVA: 0x00008A9F File Offset: 0x00007C9F + protected void SetAnimationActive(bool isActive) + { + this.IsActive = isActive; + } + + // Token: 0x06000287 RID: 647 RVA: 0x00008AA8 File Offset: 0x00007CA8 + public virtual void ViewUpdate(float gameMsecAdd) + { + if (this.IsActive) + { + this.SyncTimer += gameMsecAdd / 1000f; + for (int i = 0; i < this.CommonButtons.Length; i++) + { + if (this.CommonButtons[i] != null) + { + this.CommonButtons[i].ViewUpdate(this.SyncTimer); + } + } + if (this.SyncTimer > 1f) + { + this.SyncTimer = 0f; + } + } + } + + // Token: 0x06000288 RID: 648 RVA: 0x00008B20 File Offset: 0x00007D20 + public virtual void SetVisible(bool visible, params int[] ids) + { + if (!this.IsActive) + { + return; + } + foreach (int num in ids) + { + CommonButtonObject commonButtonObject = this.CommonButtons[num]; + if (commonButtonObject != null) + { + commonButtonObject.SetActiveButton(visible); + } + } + } + + // Token: 0x06000289 RID: 649 RVA: 0x00008B60 File Offset: 0x00007D60 + public virtual void SetVisibleFlip(bool visible, bool isFlip = false, params int[] ids) + { + if (!this.IsActive) + { + return; + } + foreach (int num in ids) + { + CommonButtonObject commonButtonObject = this.CommonButtons[num]; + if (commonButtonObject != null) + { + commonButtonObject.SetActiveButtonFlip(visible, isFlip); + } + } + } + + // Token: 0x0600028A RID: 650 RVA: 0x00008BA0 File Offset: 0x00007DA0 + public void SetVisible(bool visible, params InputManager.ButtonSetting[] buttons) + { + if (!this.IsActive) + { + return; + } + foreach (int num in buttons) + { + if (this.CommonButtons[num] != null) + { + this.CommonButtons[num].SetActiveButton(visible); + } + } + } + + // Token: 0x0600028B RID: 651 RVA: 0x00008BE8 File Offset: 0x00007DE8 + public void SetVisibleFlip(bool visible, bool isFlip = false, params InputManager.ButtonSetting[] buttons) + { + if (!this.IsActive) + { + return; + } + foreach (int num in buttons) + { + if (this.CommonButtons[num] != null) + { + this.CommonButtons[num].SetActiveButtonFlip(visible, isFlip); + } + } + } + + // Token: 0x0600028C RID: 652 RVA: 0x00008C34 File Offset: 0x00007E34 + public void SetVisibleImmediate(bool isVisible, params int[] ids) + { + if (!this.IsActive) + { + return; + } + foreach (int num in ids) + { + if (this.CommonButtons[num] != null) + { + this.CommonButtons[num].SetActiveImmediateButton(isVisible); + } + } + } + + // Token: 0x0600028D RID: 653 RVA: 0x00008C7C File Offset: 0x00007E7C + public void SetShow(bool isShow, params int[] ids) + { + if (!this.IsActive) + { + return; + } + foreach (int num in ids) + { + if (this.CommonButtons[num] != null) + { + this.CommonButtons[num].SetNonActive(isShow); + } + } + } + + // Token: 0x0600028E RID: 654 RVA: 0x00008CC4 File Offset: 0x00007EC4 + public virtual void SetAnimationActive(int index) + { + if (!this.IsActive) + { + return; + } + if (this.CommonButtons[index] != null) + { + this.CommonButtons[index].Pressed(); + } + } + + // Token: 0x0600028F RID: 655 RVA: 0x00008CEC File Offset: 0x00007EEC + public virtual void SetAnimationActiveFlip(int index, bool isFlip = false) + { + if (!this.IsActive) + { + return; + } + if (this.CommonButtons[index] != null) + { + if (!isFlip) + { + this.CommonButtons[index].Pressed(); + return; + } + this.CommonButtons[index].PressedFlip(isFlip); + } + } + + // Token: 0x06000290 RID: 656 RVA: 0x00003598 File Offset: 0x00002798 + public virtual void ChangeButtonSymbol(InputManager.ButtonSetting button, int index) + { + } + + // Token: 0x06000291 RID: 657 RVA: 0x00008D28 File Offset: 0x00007F28 + public virtual void SyncButtonViewUpdate(float gameMsecAdd, ButtonControllerBase.SyncButtonType type) + { + if (this.IsActive) + { + this.SyncTimer += gameMsecAdd / 1000f; + switch (type) + { + case ButtonControllerBase.SyncButtonType.BalanceCommon: + { + int num = 5; + if (this.CommonButtons[num] != null) + { + this.CommonButtons[num].ViewUpdate(this.SyncTimer); + } + num = 6; + if (this.CommonButtons[num] != null) + { + this.CommonButtons[num].ViewUpdate(this.SyncTimer); + } + break; + } + } + if (this.SyncTimer > 1f) + { + this.SyncTimer = 0f; + } + } + } + + // Token: 0x040001A8 RID: 424 + protected const string CommonSpritePath = "Common/Sprites/Button/"; + + // Token: 0x040001A9 RID: 425 + protected const string ArrowSpriteName = "UI_CMN_Arrow"; + + // Token: 0x040001AA RID: 426 + protected const string ArrowSelectorSpriteName = "UI_MDS_Btn_Arrow"; + + // Token: 0x040001AB RID: 427 + protected const Cue ScrollCue = Cue.SE_SYS_CURSOR; + + // Token: 0x040001AC RID: 428 + protected const Cue TabCue = Cue.SE_SYS_TAB; + + // Token: 0x040001AD RID: 429 + private static bool _isFlatButtonLoaded = false; + + // Token: 0x040001AE RID: 430 + protected static readonly ButtonControllerBase.ButtonInformation[] FlatButtonParam = new ButtonControllerBase.ButtonInformation[] + { + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Yes", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_No", Cue.SE_SYS_CANCEL), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_OK", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_Cancel", Cue.SE_SYS_CANCEL), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Skip", Cue.SE_SYS_NEXT), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_NameNext", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_Back", Cue.SE_SYS_CANCEL), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Green, "UI_CMN_Btn_TimeSkip", Cue.SE_SYS_SKIP), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_Accesscode", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Agree", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_Disagree", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_ENT_Btn_Freedom", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_GuestPlay", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Purple, "UI_CMN_Btn_Option", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_TrackStart", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_TutorialSkip", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_NameDelete", Cue.SE_SYS_CANCEL), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Orange, "UI_CMN_Btn_Upload", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_VolPlus", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_VolMinus", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Set", Cue.SE_COLLECTION_SET), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_Category", Cue.SE_SYS_CANCEL), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_NameDecide", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_camera", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Custom", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Yes", Cue.SE_ENTRY_BUTTON), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Purple, "UI_CMN_Setting_01_Btn", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Purple, "UI_CMN_Setting_02_Btn", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Orange, "UI_CMN_Btn_Emoney", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_GotoOriginalArea", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Green, "UI_CMN_Btn_GotoCollaboArea", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Green, "UI_CMN_Btn_GotoPartnerCard", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Blue, "UI_CMN_Btn_GotoOtherCard", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Present", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Yellow, "UI_CMN_Btn_Mission_01", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Yellow, "UI_CMN_Btn_Mission_02", Cue.SE_SYS_FIX), + new ButtonControllerBase.ButtonInformation(CommonButtonObject.LedColors.Red, "UI_CMN_Btn_Exchange", Cue.SE_SYS_FIX) + }; + + // Token: 0x040001AF RID: 431 + protected static Sprite ArrowSprite; + + // Token: 0x040001B0 RID: 432 + protected static Sprite ArrowSelectorSprite; + + // Token: 0x040001B1 RID: 433 + [SerializeField] + protected Transform[] _positions; + + // Token: 0x040001B2 RID: 434 + protected CommonButtonObject[] CommonButtons; + + // Token: 0x040001B3 RID: 435 + protected bool IsActive; + + // Token: 0x040001B4 RID: 436 + protected int MonitorIndex; + + // Token: 0x040001B5 RID: 437 + protected float SyncTimer; + + // Token: 0x02000961 RID: 2401 + public struct ButtonInformation + { + // Token: 0x06004C6A RID: 19562 RVA: 0x0019A8DD File Offset: 0x00199ADD + public ButtonInformation(CommonButtonObject.LedColors ledColor, string fileName, Cue cue) + { + this.LedColor = ledColor; + this.FileName = "Common/Sprites/Button/" + fileName; + this.Cue = cue; + this.Image = null; + } + + // Token: 0x04005F63 RID: 24419 + public readonly CommonButtonObject.LedColors LedColor; + + // Token: 0x04005F64 RID: 24420 + public readonly string FileName; + + // Token: 0x04005F65 RID: 24421 + public readonly Cue Cue; + + // Token: 0x04005F66 RID: 24422 + public Sprite Image; + } + + // Token: 0x02000962 RID: 2402 + public enum FlatButtonType + { + // Token: 0x04005F68 RID: 24424 + Yes, + // Token: 0x04005F69 RID: 24425 + No, + // Token: 0x04005F6A RID: 24426 + Ok, + // Token: 0x04005F6B RID: 24427 + Cancel, + // Token: 0x04005F6C RID: 24428 + Skip, + // Token: 0x04005F6D RID: 24429 + Next, + // Token: 0x04005F6E RID: 24430 + Back, + // Token: 0x04005F6F RID: 24431 + TimeSkip, + // Token: 0x04005F70 RID: 24432 + Accesscode, + // Token: 0x04005F71 RID: 24433 + Agree, + // Token: 0x04005F72 RID: 24434 + Disagree, + // Token: 0x04005F73 RID: 24435 + Freedom, + // Token: 0x04005F74 RID: 24436 + GuestPlay, + // Token: 0x04005F75 RID: 24437 + DetailOption, + // Token: 0x04005F76 RID: 24438 + TrackStart, + // Token: 0x04005F77 RID: 24439 + TutorialSkip, + // Token: 0x04005F78 RID: 24440 + NameDelete, + // Token: 0x04005F79 RID: 24441 + Upload, + // Token: 0x04005F7A RID: 24442 + Plus, + // Token: 0x04005F7B RID: 24443 + Minus, + // Token: 0x04005F7C RID: 24444 + Set, + // Token: 0x04005F7D RID: 24445 + Category, + // Token: 0x04005F7E RID: 24446 + Decide, + // Token: 0x04005F7F RID: 24447 + TakeIcon, + // Token: 0x04005F80 RID: 24448 + Custom, + // Token: 0x04005F81 RID: 24449 + Entry, + // Token: 0x04005F82 RID: 24450 + Setting, + // Token: 0x04005F83 RID: 24451 + SettingBack, + // Token: 0x04005F84 RID: 24452 + EMoneyChange, + // Token: 0x04005F85 RID: 24453 + GotoArea01, + // Token: 0x04005F86 RID: 24454 + GotoArea02, + // Token: 0x04005F87 RID: 24455 + StampCard01, + // Token: 0x04005F88 RID: 24456 + StampCard02, + // Token: 0x04005F89 RID: 24457 + GivePresent, + // Token: 0x04005F8A RID: 24458 + Mission, + // Token: 0x04005F8B RID: 24459 + MissionClose, + // Token: 0x04005F8C RID: 24460 + Exchange, + // Token: 0x04005F8D RID: 24461 + End + } + + // Token: 0x02000963 RID: 2403 + public enum SyncButtonType + { + // Token: 0x04005F8F RID: 24463 + None, + // Token: 0x04005F90 RID: 24464 + BalanceCommon, + // Token: 0x04005F91 RID: 24465 + End + } +} diff --git a/Assembly-CSharp/ButtonSelectController.cs b/Assembly-CSharp/ButtonSelectController.cs new file mode 100644 index 0000000..f444b9c --- /dev/null +++ b/Assembly-CSharp/ButtonSelectController.cs @@ -0,0 +1,167 @@ +using System; +using Manager; +using Monitor.MusicSelect.UI; +using UI; +using UnityEngine; + +// Token: 0x020000F3 RID: 243 +public class ButtonSelectController : ButtonControllerBase +{ + // Token: 0x060007CB RID: 1995 RVA: 0x0001DDB0 File Offset: 0x0001CFB0 + public void Initialize(int monitorIndex, bool isActive) + { + this.MonitorIndex = monitorIndex; + this.IsActive = isActive; + if (!isActive) + { + return; + } + this.CommonButtons = new CommonButtonObject[this._buttonPositions.Length]; + this.CommonButtons[2] = Object.Instantiate(CommonPrefab.GetCirclebuButtonObject(), this._buttonPositions[2]); + this.CommonButtons[2].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button03, CommonButtonObject.LedColors.White); + this.CommonButtons[2].SetSymbolSprite(ButtonControllerBase.ArrowSprite, false); + this.CommonButtons[3] = Object.Instantiate(CommonPrefab.GetFlatButtonObject(), this._buttonPositions[3]); + this.CommonButtons[3].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Next).LedColor); + this.CommonButtons[3].SetSymbolSprite(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Next).Image, false); + this.CommonButtons[4] = Object.Instantiate(CommonPrefab.GetFlatButtonObject(), this._buttonPositions[4]); + this.CommonButtons[4].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button05, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Back).LedColor); + this.CommonButtons[4].SetSymbolSprite(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Back).Image, false); + this.CommonButtons[5] = Object.Instantiate(CommonPrefab.GetCirclebuButtonObject(), this._buttonPositions[5]); + this.CommonButtons[5].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button06, CommonButtonObject.LedColors.White); + this.CommonButtons[5].SetSymbolSprite(ButtonControllerBase.ArrowSprite, true); + } + + // Token: 0x060007CC RID: 1996 RVA: 0x0001DF0C File Offset: 0x0001D10C + public void InitializeForInfo(int monitorIndex, bool isActive) + { + this.MonitorIndex = monitorIndex; + this.IsActive = isActive; + this.CommonButtons = new CommonButtonObject[this._buttonPositions.Length]; + if (!isActive) + { + return; + } + this.CommonButtons[3] = Object.Instantiate(CommonPrefab.GetFlatButtonObject(), this._buttonPositions[3]); + this.CommonButtons[3].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Next).LedColor); + this.CommonButtons[3].SetSymbolSprite(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Yes).Image, false); + this.CommonButtons[4] = Object.Instantiate(CommonPrefab.GetFlatButtonObject(), this._buttonPositions[4]); + this.CommonButtons[4].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button05, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Back).LedColor); + this.CommonButtons[4].SetSymbolSprite(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).Image, false); + base.SetVisible(false, new InputManager.ButtonSetting[] + { + InputManager.ButtonSetting.Button04, + InputManager.ButtonSetting.Button05 + }); + } + + // Token: 0x060007CD RID: 1997 RVA: 0x0001DFF8 File Offset: 0x0001D1F8 + public void ViewUpdate() + { + if (this.IsActive) + { + this.SyncTimer += (float)GameManager.GetGameMSecAdd() / 1000f; + for (int i = 0; i < this.CommonButtons.Length; i++) + { + if (this.CommonButtons[i] != null) + { + this.CommonButtons[i].ViewUpdate(this.SyncTimer); + } + } + CommonButtonObject plusButton = this._plusButton; + if (plusButton != null) + { + plusButton.ViewUpdate(this.SyncTimer); + } + CommonButtonObject minusButton = this._minusButton; + if (minusButton != null) + { + minusButton.ViewUpdate(this.SyncTimer); + } + if (this.SyncTimer > 1f) + { + this.SyncTimer = 0f; + } + } + } + + // Token: 0x060007CE RID: 1998 RVA: 0x0001E0A8 File Offset: 0x0001D2A8 + public void Pressed(InputManager.ButtonSetting buttonSetting) + { + if (this.IsActive && this.CommonButtons[(int)buttonSetting] != null) + { + this.CommonButtons[(int)buttonSetting].Pressed(); + } + } + + // Token: 0x060007CF RID: 1999 RVA: 0x0000C3E8 File Offset: 0x0000B5E8 + public bool GetVisible(int id) + { + return this.CommonButtons[id].IsVisible(); + } + + // Token: 0x060007D0 RID: 2000 RVA: 0x0001E0DC File Offset: 0x0001D2DC + public void ChangeButtonImage(InputManager.ButtonSetting buttonSetting, int index) + { + if (!this.IsActive) + { + return; + } + if (buttonSetting < (InputManager.ButtonSetting)this.CommonButtons.Length && index < ButtonControllerBase.FlatButtonParam.Length) + { + this.CommonButtons[(int)buttonSetting].SetSymbol(ButtonControllerBase.GetFlatButtonParam(index).Image, false); + this.CommonButtons[(int)buttonSetting].ChangeColor(ButtonControllerBase.GetFlatButtonParam(index).LedColor, true); + this.CommonButtons[(int)buttonSetting].SetSE(ButtonControllerBase.GetFlatButtonParam(index).Cue); + } + } + + // Token: 0x060007D1 RID: 2001 RVA: 0x0001E153 File Offset: 0x0001D353 + public void PressedTouchPanel(InputManager.TouchPanelArea area) + { + if (area == InputManager.TouchPanelArea.B4) + { + this._plusButton.Pressed(); + return; + } + if (area != InputManager.TouchPanelArea.B5) + { + return; + } + this._minusButton.Pressed(); + } + + // Token: 0x060007D2 RID: 2002 RVA: 0x0001E177 File Offset: 0x0001D377 + public bool IsButtonActive() + { + return this.IsActive; + } + + // Token: 0x040005E6 RID: 1510 + [SerializeField] + [Header("固定難易度変更ボタン")] + private DifficultyButtonObject _difficultyButton01; + + // Token: 0x040005E7 RID: 1511 + [SerializeField] + private DifficultyButtonObject _difficultyButton06; + + // Token: 0x040005E8 RID: 1512 + [SerializeField] + [Header("カテゴリタブボタン")] + private CategorytabButtonObject _categorytabButton00; + + // Token: 0x040005E9 RID: 1513 + [SerializeField] + private CategorytabButtonObject _categorytabButton07; + + // Token: 0x040005EA RID: 1514 + [SerializeField] + private CommonButtonObject _plusButton; + + // Token: 0x040005EB RID: 1515 + [SerializeField] + private CommonButtonObject _minusButton; + + // Token: 0x040005EC RID: 1516 + [SerializeField] + private Transform[] _buttonPositions; +} diff --git a/Assembly-CSharp/CardMakerInfoButtonController.cs b/Assembly-CSharp/CardMakerInfoButtonController.cs new file mode 100644 index 0000000..5b26b94 --- /dev/null +++ b/Assembly-CSharp/CardMakerInfoButtonController.cs @@ -0,0 +1,30 @@ +using System; +using Manager; +using UI; +using UnityEngine; + +// Token: 0x02000052 RID: 82 +public class CardMakerInfoButtonController : ButtonControllerBase +{ + // Token: 0x06000269 RID: 617 RVA: 0x00008680 File Offset: 0x00007880 + public override void Initialize(int monitorIndex) + { + base.Initialize(monitorIndex); + this.CommonButtons = new CommonButtonObject[this._positions.Length]; + this.CommonButtons[3] = Object.Instantiate(CommonPrefab.GetFlatButtonObject(), this._positions[3]); + this.CommonButtons[3].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Skip).LedColor); + this.CommonButtons[3].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Skip).Image, false); + this.CommonButtons[3].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Skip).Cue); + } + + // Token: 0x0600026A RID: 618 RVA: 0x00008714 File Offset: 0x00007914 + public void ChangeFlatButtonSymbol(int index, int spriteNum) + { + if (this.CommonButtons[index] != null) + { + this.CommonButtons[index].SetSymbol(ButtonControllerBase.GetFlatButtonParam(spriteNum).Image, false); + this.CommonButtons[index].ChangeColor(ButtonControllerBase.GetFlatButtonParam(spriteNum).LedColor, false); + this.CommonButtons[index].SetSE(ButtonControllerBase.GetFlatButtonParam(spriteNum).Cue); + } + } +} diff --git a/Assembly-CSharp/CategoryTabObject.cs b/Assembly-CSharp/CategoryTabObject.cs new file mode 100644 index 0000000..7980f66 --- /dev/null +++ b/Assembly-CSharp/CategoryTabObject.cs @@ -0,0 +1,195 @@ +using System; +using Manager; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x020000F1 RID: 241 +public class CategoryTabObject : MonoBehaviour +{ + // Token: 0x060007BD RID: 1981 RVA: 0x0001D8F4 File Offset: 0x0001CAF4 + public void SetTitle(string title) + { + this._title.fontSize = 19; + if (this._currentPosition == CategoryTabPosition.Center) + { + this._title.fontSize = 26; + } + this._title.text = title; + this._tabnameAnimator.Rebind(); + this._tabnameAnimator.Play("Idle"); + } + + // Token: 0x060007BE RID: 1982 RVA: 0x0001D94B File Offset: 0x0001CB4B + public void SetTitle(string title, string element, bool isObjectActive) + { + this.SetTitle(title); + this.SetElement(element); + this.StartActiveAnimation(isObjectActive); + } + + // Token: 0x060007BF RID: 1983 RVA: 0x0001D962 File Offset: 0x0001CB62 + public void StartActiveAnimation(bool isObjectActive) + { + if (isObjectActive) + { + this._tabnameAnimator.SetTrigger("ActiveTrigger"); + } + } + + // Token: 0x060007C0 RID: 1984 RVA: 0x0001D978 File Offset: 0x0001CB78 + public void SetData(Sprite background, Color color) + { + this._background.sprite = background; + Shadow tabNameShadow = this._tabNameShadow; + this._tabnameOutline.effectColor = color; + tabNameShadow.effectColor = color; + } + + // Token: 0x060007C1 RID: 1985 RVA: 0x00003598 File Offset: 0x00002798 + public void SetElement(string element) + { + } + + // Token: 0x060007C2 RID: 1986 RVA: 0x0001D9AC File Offset: 0x0001CBAC + public void Left(Action OnChangeSide) + { + this._isAnimation = true; + this._title.fontSize = 19; + switch (this._currentPosition) + { + case CategoryTabPosition.LeftOver: + this._tabAnimator.SetTrigger("LeftOver2RightOver"); + this._currentPosition = CategoryTabPosition.RightOver; + OnChangeSide(); + break; + case CategoryTabPosition.LeftOut: + this._tabAnimator.SetTrigger("LeftOut2LeftOver"); + this._currentPosition = CategoryTabPosition.LeftOver; + break; + case CategoryTabPosition.Left: + this._tabAnimator.SetTrigger("Left2LeftOut"); + this._currentPosition = CategoryTabPosition.LeftOut; + break; + case CategoryTabPosition.Center: + this._tabAnimator.SetTrigger("Center2Left"); + this._currentPosition = CategoryTabPosition.Left; + break; + case CategoryTabPosition.Right: + this._tabAnimator.SetTrigger("Right2Center"); + this._currentPosition = CategoryTabPosition.Center; + this._title.fontSize = 26; + break; + case CategoryTabPosition.RightOut: + this._tabAnimator.SetTrigger("RightOut2Right"); + this._currentPosition = CategoryTabPosition.Right; + break; + case CategoryTabPosition.RightOver: + this._tabAnimator.SetTrigger("RightOver2RightOut"); + this._currentPosition = CategoryTabPosition.RightOut; + break; + } + this._tabnameAnimator.SetTrigger("NormalTrigger"); + } + + // Token: 0x060007C3 RID: 1987 RVA: 0x0001DAD4 File Offset: 0x0001CCD4 + public void Right(Action OnChangeSide) + { + this._isAnimation = true; + this._title.fontSize = 19; + switch (this._currentPosition) + { + case CategoryTabPosition.LeftOver: + this._tabAnimator.SetTrigger("LeftOver2LeftOut"); + this._currentPosition = CategoryTabPosition.LeftOut; + break; + case CategoryTabPosition.LeftOut: + this._tabAnimator.SetTrigger("LeftOut2Left"); + this._currentPosition = CategoryTabPosition.Left; + break; + case CategoryTabPosition.Left: + this._tabAnimator.SetTrigger("Left2Center"); + this._currentPosition = CategoryTabPosition.Center; + this._title.fontSize = 26; + break; + case CategoryTabPosition.Center: + this._tabAnimator.SetTrigger("Center2Right"); + this._currentPosition = CategoryTabPosition.Right; + break; + case CategoryTabPosition.Right: + this._tabAnimator.SetTrigger("Right2RightOut"); + this._currentPosition = CategoryTabPosition.RightOut; + break; + case CategoryTabPosition.RightOut: + this._tabAnimator.SetTrigger("RightOut2RightOver"); + this._currentPosition = CategoryTabPosition.RightOver; + break; + case CategoryTabPosition.RightOver: + this._tabAnimator.SetTrigger("RightOver2LeftOver"); + this._currentPosition = CategoryTabPosition.LeftOver; + OnChangeSide(); + break; + } + this._tabnameAnimator.SetTrigger("NormalTrigger"); + } + + // Token: 0x060007C4 RID: 1988 RVA: 0x0001DBFC File Offset: 0x0001CDFC + public void ViewUpdate() + { + if (this._isAnimation) + { + this._timer += (float)GameManager.GetGameMSecAdd(); + if (this._timer >= 150f) + { + this._timer = 0f; + this._tabnameAnimator.SetTrigger("ActiveTrigger"); + this._isAnimation = false; + } + } + } + + // Token: 0x040005D4 RID: 1492 + [SerializeField] + private Animator _tabAnimator; + + // Token: 0x040005D5 RID: 1493 + [SerializeField] + private Text _title; + + // Token: 0x040005D6 RID: 1494 + [SerializeField] + private Animator _tabnameAnimator; + + // Token: 0x040005D7 RID: 1495 + [SerializeField] + private Image _background; + + // Token: 0x040005D8 RID: 1496 + [SerializeField] + private Shadow _tabNameShadow; + + // Token: 0x040005D9 RID: 1497 + [SerializeField] + private Outline _tabnameOutline; + + // Token: 0x040005DA RID: 1498 + [SerializeField] + private Image _rightImage; + + // Token: 0x040005DB RID: 1499 + [SerializeField] + private Image _lefetImage; + + // Token: 0x040005DC RID: 1500 + [SerializeField] + private Transform _chainObject; + + // Token: 0x040005DD RID: 1501 + [SerializeField] + private CategoryTabPosition _currentPosition; + + // Token: 0x040005DE RID: 1502 + private bool _isAnimation; + + // Token: 0x040005DF RID: 1503 + private float _timer; +} diff --git a/Assembly-CSharp/CategoryTabPosition.cs b/Assembly-CSharp/CategoryTabPosition.cs new file mode 100644 index 0000000..2cf7e49 --- /dev/null +++ b/Assembly-CSharp/CategoryTabPosition.cs @@ -0,0 +1,20 @@ +using System; + +// Token: 0x020000F0 RID: 240 +public enum CategoryTabPosition +{ + // Token: 0x040005CD RID: 1485 + LeftOver, + // Token: 0x040005CE RID: 1486 + LeftOut, + // Token: 0x040005CF RID: 1487 + Left, + // Token: 0x040005D0 RID: 1488 + Center, + // Token: 0x040005D1 RID: 1489 + Right, + // Token: 0x040005D2 RID: 1490 + RightOut, + // Token: 0x040005D3 RID: 1491 + RightOver +} diff --git a/Assembly-CSharp/CategorytabButtonObject.cs b/Assembly-CSharp/CategorytabButtonObject.cs new file mode 100644 index 0000000..c2cd958 --- /dev/null +++ b/Assembly-CSharp/CategorytabButtonObject.cs @@ -0,0 +1,28 @@ +using System; +using TMPro; +using UI; +using UnityEngine; + +// Token: 0x020000FD RID: 253 +public class CategorytabButtonObject : CommonButtonObject +{ + // Token: 0x0600081F RID: 2079 RVA: 0x0001F939 File Offset: 0x0001EB39 + public void SetTabName(string tabName, string count) + { + this._tabNameText.text = tabName; + } + + // Token: 0x06000820 RID: 2080 RVA: 0x0001F947 File Offset: 0x0001EB47 + public void SetTabColor(Color color) + { + this._tabNameText.color = color; + } + + // Token: 0x04000675 RID: 1653 + [SerializeField] + private TextMeshProUGUI _tabNameText; + + // Token: 0x04000676 RID: 1654 + [SerializeField] + private TextMeshProUGUI _tabCountText; +} diff --git a/Assembly-CSharp/ChangeLifeGauge.cs b/Assembly-CSharp/ChangeLifeGauge.cs new file mode 100644 index 0000000..d4cfbcc --- /dev/null +++ b/Assembly-CSharp/ChangeLifeGauge.cs @@ -0,0 +1,105 @@ +using System; +using System.Collections; +using Mai2.Mai2Cue; +using MAI2.Util; +using Manager; +using Manager.MaiStudio; +using Monitor.Game; +using UnityEngine; + +// Token: 0x02000042 RID: 66 +public class ChangeLifeGauge : SpecialEffectBase +{ + // Token: 0x060001F3 RID: 499 RVA: 0x00007734 File Offset: 0x00006934 + public override void initialize(SpecialEffectManager.EffectType effectType, GameObject gameObject, int monitorIndex) + { + base.initialize(effectType, monitorIndex); + this._animInHash = Animator.StringToHash("In"); + this._isActive = false; + this._gaugeObject[monitorIndex] = gameObject.GetComponent(); + this._gaugeAnimator[monitorIndex] = this._gaugeObject[monitorIndex].GetKaleidxScopeLifeGauge().GetComponent(); + Singleton.Instance.SetEffectSequenceType(SpecialEffectManager.EffectSequenceType.KaleidxLastBoss); + } + + // Token: 0x060001F4 RID: 500 RVA: 0x00007794 File Offset: 0x00006994 + public override void SetActive(bool isActive) + { + if (isActive && !this._isActive) + { + this._isActive = true; + Singleton.Instance.SetPauseGame(true); + for (int i = 0; i < 2; i++) + { + if (this._gaugeAnimator[i] != null) + { + this._gaugeAnimator[i].SetTrigger(this._animInHash); + } + SoundManager.PlaySE(Cue.SE_KALEID_LIFE_RECOVERY, i); + } + this._coroutine = CoroutineHandler.StartStaticCoroutine(this.WaitAnimatorEnd()); + } + } + + // Token: 0x060001F5 RID: 501 RVA: 0x0000780A File Offset: 0x00006A0A + private IEnumerator WaitAnimatorEnd() + { + yield return null; + yield return new WaitUntil(() => this.isEndAnim(0.75f)); + Singleton.Instance.SetChallengeExLifePhase(true); + KaleidxScopeGateExLifePhaseExData exLifePhase = Singleton.Instance.GetExLifePhase(); + for (int i = 0; i < 2; i++) + { + if (!Singleton.Instance.IsLifeGameOver(i) && this._gaugeObject[i] != null) + { + Singleton.Instance.SetLife(i, exLifePhase.life); + this._gaugeObject[i].SetKaleidxScopeLife(exLifePhase.life, exLifePhase.life, i); + this._gaugeObject[i].SetKaleidxScopeLife(); + } + } + yield return new WaitUntil(() => this.isEndAnim(1f)); + this._isEnd = true; + CoroutineHandler.StopStaticCoroutine(this._coroutine); + yield break; + } + + // Token: 0x060001F6 RID: 502 RVA: 0x0000781C File Offset: 0x00006A1C + private bool isEndAnim(float normalizedTime) + { + for (int i = 0; i < 2; i++) + { + if (Singleton.Instance.GetUserData((long)i).IsEntry) + { + AnimatorStateInfo currentAnimatorStateInfo = this._gaugeAnimator[i].GetCurrentAnimatorStateInfo(0); + if (currentAnimatorStateInfo.shortNameHash == this._animInHash && currentAnimatorStateInfo.normalizedTime < normalizedTime) + { + return false; + } + } + } + return true; + } + + // Token: 0x060001F7 RID: 503 RVA: 0x00007873 File Offset: 0x00006A73 + public override bool IsEnd() + { + return this._isEnd; + } + + // Token: 0x04000144 RID: 324 + private GameAchiveNum[] _gaugeObject = new GameAchiveNum[2]; + + // Token: 0x04000145 RID: 325 + private Animator[] _gaugeAnimator = new Animator[2]; + + // Token: 0x04000146 RID: 326 + private bool _isActive; + + // Token: 0x04000147 RID: 327 + private bool _isEnd; + + // Token: 0x04000148 RID: 328 + private int _animInHash; + + // Token: 0x04000149 RID: 329 + private Coroutine _coroutine; +} diff --git a/Assembly-CSharp/CharaAwakeWindow.cs b/Assembly-CSharp/CharaAwakeWindow.cs new file mode 100644 index 0000000..845c8b6 --- /dev/null +++ b/Assembly-CSharp/CharaAwakeWindow.cs @@ -0,0 +1,135 @@ +using System; +using MAI2.Util; +using Manager; +using Manager.MaiStudio; +using UI; +using UnityEngine; + +// Token: 0x020000DB RID: 219 +public class CharaAwakeWindow : EventWindowBase +{ + // Token: 0x06000735 RID: 1845 RVA: 0x0001BC88 File Offset: 0x0001AE88 + public void Set(Sprite chara, int id) + { + int id2 = Singleton.Instance.GetChara(id).color.id; + Color24 colorDark = Singleton.Instance.GetMapColorData(id2).ColorDark; + Color color; + color..ctor((float)colorDark.R / 255f, (float)colorDark.G / 255f, (float)colorDark.B / 255f); + this._charaImage.sprite = chara; + this._shadow.Image2 = chara; + this._shadow.color = color; + if (null == this._awakeIconController) + { + this._awakeIconController = Object.Instantiate(this._awakeStarPrefab, this._awakeRoot.transform).GetComponent(); + this._awakeIconController.name = this._awakeStarPrefab.name; + this._awakeAnimator = this._awakeIconController.gameObject.GetComponent(); + } + } + + // Token: 0x06000736 RID: 1846 RVA: 0x0001BD69 File Offset: 0x0001AF69 + public override void Play(Action onAction) + { + Animator awakeAnimator = this._awakeAnimator; + if (awakeAnimator != null) + { + awakeAnimator.Play(this.HashCodeIn); + } + base.Play(onAction); + } + + // Token: 0x06000737 RID: 1847 RVA: 0x0001BD89 File Offset: 0x0001AF89 + public void Prepare(int meter, float gaugeAmount, int awakeNum) + { + this._odoMeters.SetDistance(meter); + this._awakeIconController.AwakePrepare(gaugeAmount, awakeNum); + } + + // Token: 0x06000738 RID: 1848 RVA: 0x0001BDA4 File Offset: 0x0001AFA4 + public void SetMeter(int meter) + { + this._odoMeters.SetDistance(meter); + } + + // Token: 0x06000739 RID: 1849 RVA: 0x0001BDB2 File Offset: 0x0001AFB2 + public void SetGauge(float gaugeAmount) + { + this._awakeIconController.PutStar(gaugeAmount); + } + + // Token: 0x0600073A RID: 1850 RVA: 0x0001BDC0 File Offset: 0x0001AFC0 + public void FadeIn() + { + this._animator.Play(this.HashCodeIn); + this.IsCanSkip = true; + } + + // Token: 0x0600073B RID: 1851 RVA: 0x0001BDDA File Offset: 0x0001AFDA + public void SparkStar() + { + this._awakeIconController.AnimCenterSpark(); + } + + // Token: 0x0600073C RID: 1852 RVA: 0x0001BDE7 File Offset: 0x0001AFE7 + public void StarGet(int starIndex) + { + this._awakeIconController.AnimStarGet(starIndex); + } + + // Token: 0x0600073D RID: 1853 RVA: 0x0001BDF5 File Offset: 0x0001AFF5 + public override bool Skip() + { + if (this.IsCanSkip) + { + this._stateController.ResetExitParts(); + this._animator.Play("Loop", 0, 0f); + this.IsCanSkip = false; + return true; + } + return false; + } + + // Token: 0x0600073E RID: 1854 RVA: 0x0001BE2A File Offset: 0x0001B02A + private void Close() + { + this._animator.Play("Out"); + } + + // Token: 0x04000550 RID: 1360 + private int HashExitInCode = Animator.StringToHash("Base Layer.In"); + + // Token: 0x04000551 RID: 1361 + private const float LongInterval = 0.5f; + + // Token: 0x04000552 RID: 1362 + private const float ShortInterval = 0.2f; + + // Token: 0x04000553 RID: 1363 + [SerializeField] + private GameObject _awakeStarPrefab; + + // Token: 0x04000554 RID: 1364 + [SerializeField] + private GameObject _awakeRoot; + + // Token: 0x04000555 RID: 1365 + [SerializeField] + private MultiImage _charaImage; + + // Token: 0x04000556 RID: 1366 + [SerializeField] + private MultiImage _shadow; + + // Token: 0x04000557 RID: 1367 + private AwakeIconController _awakeIconController; + + // Token: 0x04000558 RID: 1368 + private Animator _awakeAnimator; + + // Token: 0x04000559 RID: 1369 + [SerializeField] + [Header("ツアー仲間の距離ゲージ")] + private OdoSpriteTexts _odoMeters; + + // Token: 0x0400055A RID: 1370 + private int _monitorIndex; +} diff --git a/Assembly-CSharp/CharaParts.cs b/Assembly-CSharp/CharaParts.cs new file mode 100644 index 0000000..615d23c --- /dev/null +++ b/Assembly-CSharp/CharaParts.cs @@ -0,0 +1,307 @@ +using System; +using System.Collections; +using Monitor.MapResult.Parts; +using UI; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x020000DC RID: 220 +public class CharaParts : MonoBehaviour +{ + // Token: 0x06000740 RID: 1856 RVA: 0x0001BE54 File Offset: 0x0001B054 + public Animator GetLevelAnimator() + { + return this._levelUpAnimator; + } + + // Token: 0x06000741 RID: 1857 RVA: 0x0001BE5C File Offset: 0x0001B05C + public void SetParts(Sprite face, float gaugeAmount, int level, int awakeNum, uint reincarnationNum, bool isLeader = false) + { + this.SetCharacter(face); + this._baseImage.ChangeSprite(awakeNum); + this._frameImage.ChangeSprite(awakeNum); + this._levelImage.ChangeSprite(awakeNum); + this._awakeIconController.Prepare(gaugeAmount, awakeNum); + if (this._levelPopUpAnimator != null) + { + this._levelPopUpAnimator.Play("Idle"); + } + this._stateController = this._animator.GetBehaviour(); + this._frameImage.gameObject.SetActive(true); + this._leaderObject.SetActive(isLeader); + this.SetLevel(level); + this.SetReincarnation(reincarnationNum); + } + + // Token: 0x06000742 RID: 1858 RVA: 0x0001BF04 File Offset: 0x0001B104 + public void SetCharacter(Sprite face) + { + this._leaderObject.SetActive(false); + if (this._faceImage != null) + { + Image faceImage = this._faceImage; + this._effectImage.sprite = face; + faceImage.sprite = face; + } + } + + // Token: 0x06000743 RID: 1859 RVA: 0x0001BF45 File Offset: 0x0001B145 + public void SetRebornVisable(bool visable) + { + this.rebornStarController.SetVisable(visable); + } + + // Token: 0x06000744 RID: 1860 RVA: 0x0001BF53 File Offset: 0x0001B153 + public void SetVisivleMetreArrow(bool isActive) + { + if (this._metreArrowObj != null) + { + this._metreArrowObj.SetActive(isActive); + } + } + + // Token: 0x06000745 RID: 1861 RVA: 0x0001BF70 File Offset: 0x0001B170 + public void SetReleaseMark(GameObject obj, Animator effect, int slotIndex) + { + this._releaseMarkObj = obj; + this._releaseMarkObj.SetActive(false); + this._effectAnim = effect; + if (this._metreArrowObj != null) + { + this._metreArrowObj.transform.localEulerAngles = Vector3.zero; + this._metreArrowObj.transform.Rotate(0f, 0f, 50f + (float)slotIndex * -50f * 0.5f); + } + } + + // Token: 0x06000746 RID: 1862 RVA: 0x0001BFE8 File Offset: 0x0001B1E8 + public void SetLevel(int level) + { + if (this._levelOdoSprite != null) + { + this._levelOdoSprite.SetOdoText(level); + } + } + + // Token: 0x06000747 RID: 1863 RVA: 0x0001C004 File Offset: 0x0001B204 + public void SetReincarnation(uint reincarnationNum) + { + if (reincarnationNum > 0U) + { + this.rebornStarController.SetVisable(true); + this.rebornStarController.SetReincarnationNum(reincarnationNum); + return; + } + this.rebornStarController.SetVisable(false); + } + + // Token: 0x06000748 RID: 1864 RVA: 0x0001C02F File Offset: 0x0001B22F + public void PlayReincarnationFirstTime(uint reincarnationNum) + { + this.SetReincarnation(reincarnationNum); + this.rebornStarController.PlayAnimation(RebornStarController.AnimState.PopUp); + } + + // Token: 0x06000749 RID: 1865 RVA: 0x0001C044 File Offset: 0x0001B244 + public void PlayReincarnation(uint reincarnationNum) + { + this.rebornStarController.PlayAnimation(RebornStarController.AnimState.LevelUp); + base.StartCoroutine(this.ChangeReincarnationNum(reincarnationNum)); + } + + // Token: 0x0600074A RID: 1866 RVA: 0x0001C060 File Offset: 0x0001B260 + private IEnumerator ChangeReincarnationNum(uint reincarnationNum) + { + yield return new WaitForSeconds(0.75f); + this.SetReincarnation(reincarnationNum); + yield break; + } + + // Token: 0x0600074B RID: 1867 RVA: 0x0001C078 File Offset: 0x0001B278 + public void SetVisibleDecorate(bool isVisible) + { + if (this._decorateObject != null) + { + this._decorateObject.SetActive(isVisible); + } + if (isVisible) + { + this._animator.Play(Animator.StringToHash("Chara_Active_Party_Loop"), 0, 0f); + return; + } + this._animator.Play(Animator.StringToHash("Chara_Active_Join_Loop"), 0, 0f); + } + + // Token: 0x0600074C RID: 1868 RVA: 0x0001C0DC File Offset: 0x0001B2DC + public void SetBlank() + { + this._frameImage.gameObject.SetActive(false); + if (this._animator.gameObject.activeSelf && this._animator.gameObject.activeInHierarchy) + { + this._leaderObject.SetActive(false); + this._animator.Play("Chara_NoActive"); + } + } + + // Token: 0x0600074D RID: 1869 RVA: 0x0001C13A File Offset: 0x0001B33A + public void SetNextLevel(int level) + { + this._nextLevel = level; + } + + // Token: 0x0600074E RID: 1870 RVA: 0x0001C143 File Offset: 0x0001B343 + public void PlayLevelUp() + { + this._levelUpAnimator.Play("LevelUP"); + this.SetLevel(this._nextLevel); + } + + // Token: 0x0600074F RID: 1871 RVA: 0x0001C164 File Offset: 0x0001B364 + public void PlayAwake(int awakeNum) + { + this._baseImage.ChangeSprite(awakeNum); + this._frameImage.ChangeSprite(awakeNum); + this._levelImage.ChangeSprite(awakeNum); + this._awakeIconController.ChangeBaseImage(awakeNum); + this._AwakeAnimator.Play("PopUp"); + } + + // Token: 0x06000750 RID: 1872 RVA: 0x0001C1B1 File Offset: 0x0001B3B1 + public void PlayJoinParty() + { + this._animator.Play("Chara_Active_Join_In"); + Animator effectAnim = this._effectAnim; + if (effectAnim == null) + { + return; + } + effectAnim.Play("In"); + } + + // Token: 0x06000751 RID: 1873 RVA: 0x0001C1D8 File Offset: 0x0001B3D8 + public void PlayJoinParty(Action next) + { + this._animator.Play("Chara_Active_Join_In"); + Animator effectAnim = this._effectAnim; + if (effectAnim != null) + { + effectAnim.Play("In"); + } + int num = Animator.StringToHash("Base Layer.Chara_Active_Join_In"); + this.SetExit(num, next); + } + + // Token: 0x06000752 RID: 1874 RVA: 0x0001C21E File Offset: 0x0001B41E + public void SetExit(int hashCode, Action action) + { + this._stateController.SetExitParts(action, hashCode, false); + } + + // Token: 0x06000753 RID: 1875 RVA: 0x0001C22E File Offset: 0x0001B42E + public void Pressed() + { + Animator animator = this._animator; + if (animator == null) + { + return; + } + animator.SetTrigger("Pressed"); + } + + // Token: 0x06000754 RID: 1876 RVA: 0x0001C245 File Offset: 0x0001B445 + public void Loop() + { + Animator animator = this._animator; + if (animator == null) + { + return; + } + animator.SetTrigger("Loop"); + } + + // Token: 0x06000755 RID: 1877 RVA: 0x0001C25C File Offset: 0x0001B45C + public GameObject GetOdoSpriteText() + { + return this._levelOdoSprite.gameObject; + } + + // Token: 0x06000756 RID: 1878 RVA: 0x0001C269 File Offset: 0x0001B469 + public GameObject GetAwakeIconControllerObj() + { + return this._awakeIconController.gameObject; + } + + // Token: 0x0400055B RID: 1371 + [SerializeField] + private MultipleImage _baseImage; + + // Token: 0x0400055C RID: 1372 + [SerializeField] + private MultiImage _faceImage; + + // Token: 0x0400055D RID: 1373 + [SerializeField] + private MultiImage _effectImage; + + // Token: 0x0400055E RID: 1374 + [SerializeField] + private MultipleImage _frameImage; + + // Token: 0x0400055F RID: 1375 + [SerializeField] + private MultipleImage _levelImage; + + // Token: 0x04000560 RID: 1376 + [SerializeField] + [Header("デコレート")] + private GameObject _decorateObject; + + // Token: 0x04000561 RID: 1377 + [SerializeField] + private AwakeIconController _awakeIconController; + + // Token: 0x04000562 RID: 1378 + [SerializeField] + private OdoSpriteText _levelOdoSprite; + + // Token: 0x04000563 RID: 1379 + [SerializeField] + private Animator _levelPopUpAnimator; + + // Token: 0x04000564 RID: 1380 + [SerializeField] + private GameObject _metreArrowObj; + + // Token: 0x04000565 RID: 1381 + [SerializeField] + [Header("本体のアニメーター")] + private Animator _animator; + + // Token: 0x04000566 RID: 1382 + [SerializeField] + private Animator _levelUpAnimator; + + // Token: 0x04000567 RID: 1383 + [SerializeField] + private Animator _AwakeAnimator; + + // Token: 0x04000568 RID: 1384 + [SerializeField] + [Header("リーダー")] + private GameObject _leaderObject; + + // Token: 0x04000569 RID: 1385 + private StateAnimController _stateController; + + // Token: 0x0400056A RID: 1386 + [SerializeField] + private RebornStarController rebornStarController; + + // Token: 0x0400056B RID: 1387 + private GameObject _releaseMarkObj; + + // Token: 0x0400056C RID: 1388 + private Animator _effectAnim; + + // Token: 0x0400056D RID: 1389 + private int _nextLevel; +} diff --git a/Assembly-CSharp/CharaWindow.cs b/Assembly-CSharp/CharaWindow.cs new file mode 100644 index 0000000..4d74c92 --- /dev/null +++ b/Assembly-CSharp/CharaWindow.cs @@ -0,0 +1,34 @@ +using System; +using DB; +using TMPro; +using UI; +using UnityEngine; + +// Token: 0x020000DD RID: 221 +public class CharaWindow : EventWindowBase +{ + // Token: 0x06000758 RID: 1880 RVA: 0x0001C276 File Offset: 0x0001B476 + private void Awake() + { + this._infoText.text = CommonMessageID.GetWindowChara.GetName(); + } + + // Token: 0x06000759 RID: 1881 RVA: 0x0001C28A File Offset: 0x0001B48A + public void Set(Sprite chara, string charaName) + { + this._chara.sprite = chara; + this._charaName.text = charaName; + } + + // Token: 0x0400056E RID: 1390 + [SerializeField] + private MultiImage _chara; + + // Token: 0x0400056F RID: 1391 + [SerializeField] + private TextMeshProUGUI _charaName; + + // Token: 0x04000570 RID: 1392 + [SerializeField] + private TextMeshProUGUI _infoText; +} diff --git a/Assembly-CSharp/CharacterMapColorData.cs b/Assembly-CSharp/CharacterMapColorData.cs new file mode 100644 index 0000000..3aa99dd --- /dev/null +++ b/Assembly-CSharp/CharacterMapColorData.cs @@ -0,0 +1,157 @@ +using System; +using MAI2.Util; +using Manager; +using Manager.MaiStudio; +using UnityEngine; +using Util; + +// Token: 0x02000054 RID: 84 +public class CharacterMapColorData +{ + // Token: 0x17000061 RID: 97 + // (get) Token: 0x06000271 RID: 625 RVA: 0x000087D7 File Offset: 0x000079D7 + public uint ID + { + get + { + return this._id; + } + } + + // Token: 0x17000062 RID: 98 + // (get) Token: 0x06000272 RID: 626 RVA: 0x000087DF File Offset: 0x000079DF + public Sprite Base + { + get + { + return this._base; + } + } + + // Token: 0x17000063 RID: 99 + // (get) Token: 0x06000273 RID: 627 RVA: 0x000087E7 File Offset: 0x000079E7 + public Sprite SmallBase + { + get + { + return this._smallBase; + } + } + + // Token: 0x17000064 RID: 100 + // (get) Token: 0x06000274 RID: 628 RVA: 0x000087EF File Offset: 0x000079EF + public Sprite Level + { + get + { + return this._level; + } + } + + // Token: 0x17000065 RID: 101 + // (get) Token: 0x06000275 RID: 629 RVA: 0x000087F7 File Offset: 0x000079F7 + public Sprite Frame + { + get + { + return this._frame; + } + } + + // Token: 0x17000066 RID: 102 + // (get) Token: 0x06000276 RID: 630 RVA: 0x000087FF File Offset: 0x000079FF + public Sprite SmallFrame + { + get + { + return this._smallFrame; + } + } + + // Token: 0x17000067 RID: 103 + // (get) Token: 0x06000277 RID: 631 RVA: 0x00008807 File Offset: 0x00007A07 + public Sprite SmallAwakeStar + { + get + { + return this._smallAwakeStar; + } + } + + // Token: 0x17000068 RID: 104 + // (get) Token: 0x06000278 RID: 632 RVA: 0x0000880F File Offset: 0x00007A0F + public Sprite AwakeStarBase + { + get + { + return this._awakeStarBase; + } + } + + // Token: 0x17000069 RID: 105 + // (get) Token: 0x06000279 RID: 633 RVA: 0x00008817 File Offset: 0x00007A17 + // (set) Token: 0x0600027A RID: 634 RVA: 0x0000881F File Offset: 0x00007A1F + public Color ShadowColor { get; private set; } + + // Token: 0x0600027B RID: 635 RVA: 0x00008828 File Offset: 0x00007A28 + public CharacterMapColorData(int colorKey, int colorID) + { + this._colorKey = colorKey; + this._colorID = colorID; + } + + // Token: 0x0600027C RID: 636 RVA: 0x00008840 File Offset: 0x00007A40 + public void Load() + { + if (this._base == null) + { + this._base = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_Base"); + this._smallBase = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_Base_S"); + this._frame = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_Frame"); + this._smallFrame = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_Frame_S"); + this._level = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_level_S"); + this._smallAwakeStar = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_Star_S"); + this._awakeStarBase = AssetManager.Instance().GetMapBgSprite(this._colorKey, "UI_Chara_Star"); + MapColorData mapColorData = Singleton.Instance.GetMapColorData(this._colorID); + this.ShadowColor = Utility.ConvertColor(mapColorData.ColorDark); + } + } + + // Token: 0x0400019B RID: 411 + private readonly int _colorKey; + + // Token: 0x0400019C RID: 412 + [SerializeField] + private uint _id; + + // Token: 0x0400019D RID: 413 + [SerializeField] + private Sprite _base; + + // Token: 0x0400019E RID: 414 + [SerializeField] + private Sprite _smallBase; + + // Token: 0x0400019F RID: 415 + [SerializeField] + private Sprite _level; + + // Token: 0x040001A0 RID: 416 + [SerializeField] + private Sprite _frame; + + // Token: 0x040001A1 RID: 417 + [SerializeField] + private Sprite _smallFrame; + + // Token: 0x040001A2 RID: 418 + [SerializeField] + private Sprite _smallAwakeStar; + + // Token: 0x040001A3 RID: 419 + [SerializeField] + private Sprite _awakeStarBase; + + // Token: 0x040001A5 RID: 421 + private int _colorID; +} diff --git a/Assembly-CSharp/CharacterSlotData.cs b/Assembly-CSharp/CharacterSlotData.cs new file mode 100644 index 0000000..7946c4f --- /dev/null +++ b/Assembly-CSharp/CharacterSlotData.cs @@ -0,0 +1,136 @@ +using System; +using Manager.MaiStudio; +using UnityEngine; + +// Token: 0x02000076 RID: 118 +public class CharacterSlotData +{ + // Token: 0x17000070 RID: 112 + // (get) Token: 0x0600040A RID: 1034 RVA: 0x0000F63B File Offset: 0x0000E83B + public Sprite Base + { + get + { + return this._base; + } + } + + // Token: 0x17000071 RID: 113 + // (get) Token: 0x0600040B RID: 1035 RVA: 0x0000F643 File Offset: 0x0000E843 + public Sprite Frame + { + get + { + return this._frame; + } + } + + // Token: 0x17000072 RID: 114 + // (get) Token: 0x0600040C RID: 1036 RVA: 0x0000F64B File Offset: 0x0000E84B + public Sprite LeaderFrame + { + get + { + return this._leaderFrame; + } + } + + // Token: 0x17000073 RID: 115 + // (get) Token: 0x0600040D RID: 1037 RVA: 0x0000F653 File Offset: 0x0000E853 + public Sprite SmallAwakeStar + { + get + { + return this._smallAwakeStar; + } + } + + // Token: 0x17000074 RID: 116 + // (get) Token: 0x0600040E RID: 1038 RVA: 0x0000F65B File Offset: 0x0000E85B + public Sprite AwakeStarBase + { + get + { + return this._awakeStarBase; + } + } + + // Token: 0x17000075 RID: 117 + // (get) Token: 0x0600040F RID: 1039 RVA: 0x0000F663 File Offset: 0x0000E863 + public Sprite AwakeStarFrame + { + get + { + return this._awakeStarFrame; + } + } + + // Token: 0x17000076 RID: 118 + // (get) Token: 0x06000410 RID: 1040 RVA: 0x0000F66B File Offset: 0x0000E86B + public Color24 Color + { + get + { + return this._color; + } + } + + // Token: 0x17000077 RID: 119 + // (get) Token: 0x06000411 RID: 1041 RVA: 0x0000F673 File Offset: 0x0000E873 + public Color24 SubColor + { + get + { + return this._subColor; + } + } + + // Token: 0x06000412 RID: 1042 RVA: 0x0000F67B File Offset: 0x0000E87B + public CharacterSlotData(int colorKey, Color24 color, Color24 subColor) + { + this.Load(colorKey); + this._color = color; + this._subColor = subColor; + } + + // Token: 0x06000413 RID: 1043 RVA: 0x0000F698 File Offset: 0x0000E898 + private void Load(int colorKey) + { + if (this._base == null) + { + this._base = AssetManager.Instance().GetMapBgSprite(colorKey, "UI_Chara_RBase"); + this._frame = AssetManager.Instance().GetMapBgSprite(colorKey, "UI_Chara_RFrame"); + this._leaderFrame = AssetManager.Instance().GetMapBgSprite(colorKey, "UI_Chara_LFrame"); + this._smallAwakeStar = AssetManager.Instance().GetMapBgSprite(colorKey, "UI_Chara_Star_S"); + this._awakeStarBase = AssetManager.Instance().GetMapBgSprite(colorKey, "UI_Chara_Star"); + this._awakeStarFrame = Resources.Load("Common/Sprites/Map/StarGauge/UI_CMN_Chara_Star_Big_Gauge01"); + } + } + + // Token: 0x040002A3 RID: 675 + private const string CharaRootPath = "Common/Sprites/CharacterColor/"; + + // Token: 0x040002A4 RID: 676 + private Sprite _base; + + // Token: 0x040002A5 RID: 677 + private Sprite _frame; + + // Token: 0x040002A6 RID: 678 + private Sprite _leaderFrame; + + // Token: 0x040002A7 RID: 679 + private Sprite _smallAwakeStar; + + // Token: 0x040002A8 RID: 680 + private Sprite _awakeStarBase; + + // Token: 0x040002A9 RID: 681 + private Sprite _awakeStarFrame; + + // Token: 0x040002AA RID: 682 + private Color24 _color; + + // Token: 0x040002AB RID: 683 + private Color24 _subColor; +} diff --git a/Assembly-CSharp/CharacterTabController.cs b/Assembly-CSharp/CharacterTabController.cs new file mode 100644 index 0000000..c2dfa70 --- /dev/null +++ b/Assembly-CSharp/CharacterTabController.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using UnityEngine; + +// Token: 0x02000053 RID: 83 +public class CharacterTabController : TabController +{ + // Token: 0x0600026C RID: 620 RVA: 0x0000877B File Offset: 0x0000797B + public override void Initialize(int monitorId) + { + base.Initialize(monitorId); + this._favoriteStyle = new TabDataBase(CommonScriptable.GetColorSetting().FavoriteColor, this._favoriteSprite, "お気に入りセット", ""); + } + + // Token: 0x0600026D RID: 621 RVA: 0x000087A9 File Offset: 0x000079A9 + public void SlotView2CharacterSelect(List tabDatas, int categoryIndex) + { + base.Set(new List(tabDatas), categoryIndex); + } + + // Token: 0x0600026E RID: 622 RVA: 0x000087B8 File Offset: 0x000079B8 + public void Favorite2Collection(int categoryIndex) + { + base.SetActiveMiniPanels(categoryIndex); + } + + // Token: 0x0600026F RID: 623 RVA: 0x000087C1 File Offset: 0x000079C1 + public void Collection2Favorite() + { + base.SetOnlyMainPanel(this._favoriteStyle); + } + + // Token: 0x04000199 RID: 409 + private TabDataBase _favoriteStyle; + + // Token: 0x0400019A RID: 410 + [SerializeField] + private Sprite _favoriteSprite; +} diff --git a/Assembly-CSharp/CharacterTabData.cs b/Assembly-CSharp/CharacterTabData.cs new file mode 100644 index 0000000..64abf00 --- /dev/null +++ b/Assembly-CSharp/CharacterTabData.cs @@ -0,0 +1,12 @@ +using System; +using UnityEngine; + +// Token: 0x02000055 RID: 85 +public class CharacterTabData : TabDataBase +{ + // Token: 0x0600027D RID: 637 RVA: 0x0000893D File Offset: 0x00007B3D + public CharacterTabData(Color baseColor, Sprite sprite, string title, string subTitle = "") + : base(baseColor, sprite, title, subTitle) + { + } +} diff --git a/Assembly-CSharp/CharactorSlotController.cs b/Assembly-CSharp/CharactorSlotController.cs new file mode 100644 index 0000000..e136026 --- /dev/null +++ b/Assembly-CSharp/CharactorSlotController.cs @@ -0,0 +1,97 @@ +using System; +using UnityEngine; + +// Token: 0x02000077 RID: 119 +public class CharactorSlotController : MonoBehaviour +{ + // Token: 0x17000078 RID: 120 + // (get) Token: 0x06000414 RID: 1044 RVA: 0x0000F734 File Offset: 0x0000E934 + public RectTransform RectTransform + { + get + { + RectTransform rectTransform; + if ((rectTransform = this._rectTransform) == null) + { + rectTransform = (this._rectTransform = base.GetComponent()); + } + return rectTransform; + } + } + + // Token: 0x06000415 RID: 1045 RVA: 0x0000F75C File Offset: 0x0000E95C + public void Awake() + { + for (int i = 0; i < this.characterObjects.Length; i++) + { + GameObject gameObject = Object.Instantiate((i == 0) ? this.leaderCharaSlotPrefab : this.charaSlotPrefab, this.characterObjects[i].transform); + this.characters[i] = gameObject.GetComponent(); + } + } + + // Token: 0x06000416 RID: 1046 RVA: 0x0000F7B0 File Offset: 0x0000E9B0 + public void Initialize() + { + for (int i = 0; i < this.characters.Length; i++) + { + this.SetVisibleCharacterSet(i, false); + } + } + + // Token: 0x06000417 RID: 1047 RVA: 0x0000F7D8 File Offset: 0x0000E9D8 + public void SetSlotData(MessageCharactorInfomationData data) + { + this.characters[data.Index].SetData(data); + } + + // Token: 0x06000418 RID: 1048 RVA: 0x0000F7ED File Offset: 0x0000E9ED + public void SetVisibleCharacterSet(int index, bool isActive) + { + this.characters[index].SetVisibleCharacterSet(isActive); + } + + // Token: 0x06000419 RID: 1049 RVA: 0x00003598 File Offset: 0x00002798 + public void SetTeamSlotData(MessageCharactorInfomationData data) + { + } + + // Token: 0x0600041A RID: 1050 RVA: 0x0000F800 File Offset: 0x0000EA00 + public void ResetCharactor() + { + for (int i = 0; i < this.characters.Length; i++) + { + this.characters[i].ResetData(); + } + } + + // Token: 0x0600041B RID: 1051 RVA: 0x0000F82D File Offset: 0x0000EA2D + public void ResetCharacter(int index) + { + this.characters[index].ResetData(); + } + + // Token: 0x0600041C RID: 1052 RVA: 0x00003598 File Offset: 0x00002798 + public void SetClassicMode(bool isActive) + { + } + + // Token: 0x040002AC RID: 684 + [SerializeField] + [Header("キャラスロットプレハブ")] + private GameObject charaSlotPrefab; + + // Token: 0x040002AD RID: 685 + [SerializeField] + [Header("リーダーキャラプレハブ")] + private GameObject leaderCharaSlotPrefab; + + // Token: 0x040002AE RID: 686 + [SerializeField] + private GameObject[] characterObjects = new GameObject[5]; + + // Token: 0x040002AF RID: 687 + private CharactorSlotObject[] characters = new CharactorSlotObject[5]; + + // Token: 0x040002B0 RID: 688 + private RectTransform _rectTransform; +} diff --git a/Assembly-CSharp/CharactorSlotObject.cs b/Assembly-CSharp/CharactorSlotObject.cs new file mode 100644 index 0000000..acbc9b3 --- /dev/null +++ b/Assembly-CSharp/CharactorSlotObject.cs @@ -0,0 +1,124 @@ +using System; +using TMPro; +using UI; +using UnityEngine; + +// Token: 0x02000079 RID: 121 +public class CharactorSlotObject : MonoBehaviour +{ + // Token: 0x06000430 RID: 1072 RVA: 0x0000F949 File Offset: 0x0000EB49 + public virtual void SetSlotActive(bool isActive) + { + this._levelText.gameObject.SetActive(isActive); + } + + // Token: 0x06000431 RID: 1073 RVA: 0x0000F95C File Offset: 0x0000EB5C + public void SetCurrentSlotCard(bool isSelect) + { + this._faceImage.color = (isSelect ? Color.gray : Color.white); + } + + // Token: 0x06000432 RID: 1074 RVA: 0x0000F978 File Offset: 0x0000EB78 + public void SetData(MessageCharactorInfomationData infoData) + { + this.SetLevel(infoData.Level); + if (!this._maskObject.activeSelf) + { + this._maskObject.SetActive(true); + } + this.SetAwakening(infoData.AwakeRate, (int)infoData.Awakening); + Sprite sprite = Sprite.Create(infoData.Character, new Rect(0f, 0f, (float)infoData.Character.width, (float)infoData.Character.height), new Vector2(0.5f, 0.5f)); + if (!this._isLeader) + { + this._baseImage.ChangeSprite((int)infoData.Awakening); + } + this._frameImage.ChangeSprite((int)infoData.Awakening); + this._faceImage.sprite = sprite; + this.SetReincarnation(infoData.Reincarnation); + this.SetVisibleCharacterSet(true); + } + + // Token: 0x06000433 RID: 1075 RVA: 0x0000FA47 File Offset: 0x0000EC47 + public void SetVisibleCharacterSet(bool isActive) + { + this._baseSetObj.gameObject.SetActive(isActive); + } + + // Token: 0x06000434 RID: 1076 RVA: 0x0000FA5A File Offset: 0x0000EC5A + private void SetAwakening(float gaugeAmount, int awakeNum) + { + this._awakeIconController.Prepare(gaugeAmount, awakeNum); + } + + // Token: 0x06000435 RID: 1077 RVA: 0x0000FA69 File Offset: 0x0000EC69 + public void SetLevel(uint level) + { + if (this._levelText != null) + { + this._levelText.ChangeText(level.ToString().PadRight(4)); + } + } + + // Token: 0x06000436 RID: 1078 RVA: 0x0000FA91 File Offset: 0x0000EC91 + public virtual void ResetData() + { + if (this._levelText != null) + { + this._levelText.ChangeText("0 "); + } + this._maskObject.SetActive(false); + this.SetVisibleCharacterSet(false); + } + + // Token: 0x06000437 RID: 1079 RVA: 0x0000FAC4 File Offset: 0x0000ECC4 + private void SetReincarnation(uint reincarnationNum) + { + this._rebornStarObj.SetActive(reincarnationNum > 0U); + this._rebornStarNumText.SetText(reincarnationNum.ToString()); + } + + // Token: 0x040002B9 RID: 697 + [SerializeField] + private bool _isLeader; + + // Token: 0x040002BA RID: 698 + [SerializeField] + private GameObject _baseSetObj; + + // Token: 0x040002BB RID: 699 + [SerializeField] + [Tooltip("キャラクター背景")] + private MultipleImage _baseImage; + + // Token: 0x040002BC RID: 700 + [SerializeField] + [Tooltip("キャラクターマスク")] + private GameObject _maskObject; + + // Token: 0x040002BD RID: 701 + [SerializeField] + [Tooltip("キャラクター画像")] + private CustomImage _faceImage; + + // Token: 0x040002BE RID: 702 + [SerializeField] + [Tooltip("フレーム")] + private MultipleImage _frameImage; + + // Token: 0x040002BF RID: 703 + [SerializeField] + [Tooltip("レベル数表示")] + private SpriteCounter _levelText; + + // Token: 0x040002C0 RID: 704 + [SerializeField] + private AwakeIconController _awakeIconController; + + // Token: 0x040002C1 RID: 705 + [SerializeField] + private GameObject _rebornStarObj; + + // Token: 0x040002C2 RID: 706 + [SerializeField] + private TextMeshProUGUI _rebornStarNumText; +} diff --git a/Assembly-CSharp/CirclePosition.cs b/Assembly-CSharp/CirclePosition.cs new file mode 100644 index 0000000..009c23e --- /dev/null +++ b/Assembly-CSharp/CirclePosition.cs @@ -0,0 +1,49 @@ +using System; +using UnityEngine; +using UnityEngine.EventSystems; + +// Token: 0x0200016D RID: 365 +[ExecuteAlways] +public class CirclePosition : UIBehaviour +{ + // Token: 0x06000D2D RID: 3373 RVA: 0x0003E8D7 File Offset: 0x0003DAD7 + public void SetRadius(float radius) + { + this.radius = radius; + this.Positioning(); + } + + // Token: 0x06000D2E RID: 3374 RVA: 0x0003E8E6 File Offset: 0x0003DAE6 + public void SetAngle(float angle) + { + this.angle = angle; + this.Positioning(); + } + + // Token: 0x06000D2F RID: 3375 RVA: 0x0003E8F8 File Offset: 0x0003DAF8 + private void Positioning() + { + if (!base.isActiveAndEnabled) + { + return; + } + float num = this.radius * Mathf.Cos(this.angle * 0.017453292f); + float num2 = this.radius * Mathf.Sin(this.angle * 0.017453292f); + base.transform.localPosition = new Vector3(num, num2, 0f); + } + + // Token: 0x06000D30 RID: 3376 RVA: 0x0003E957 File Offset: 0x0003DB57 + protected override void OnDidApplyAnimationProperties() + { + this.Positioning(); + base.OnDidApplyAnimationProperties(); + } + + // Token: 0x04000A25 RID: 2597 + [SerializeField] + private float radius; + + // Token: 0x04000A26 RID: 2598 + [SerializeField] + private float angle; +} diff --git a/Assembly-CSharp/ClassMedalObject.cs b/Assembly-CSharp/ClassMedalObject.cs new file mode 100644 index 0000000..cb0cbe4 --- /dev/null +++ b/Assembly-CSharp/ClassMedalObject.cs @@ -0,0 +1,77 @@ +using System; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x02000099 RID: 153 +public class ClassMedalObject : MonoBehaviour +{ + // Token: 0x170000AD RID: 173 + // (get) Token: 0x0600052C RID: 1324 RVA: 0x0001442C File Offset: 0x0001362C + public Animator MedalAnimator + { + get + { + if (this._medalAnimator == null) + { + this._medalAnimator = base.GetComponent(); + } + return this._medalAnimator; + } + } + + // Token: 0x0600052D RID: 1325 RVA: 0x0001444E File Offset: 0x0001364E + public void SetCurrentMedal(Sprite medal) + { + this._medalImage.sprite = medal; + this._effectLoopMedalImage.sprite = medal; + } + + // Token: 0x0600052E RID: 1326 RVA: 0x00014468 File Offset: 0x00013668 + public void SetNextMedal(Sprite medal) + { + this._nextMedalImage.sprite = medal; + this._nextEffectMedalImage.sprite = medal; + this._nextEffectLoopImage.sprite = medal; + } + + // Token: 0x0600052F RID: 1327 RVA: 0x0001448E File Offset: 0x0001368E + public void Loop() + { + this.MedalAnimator.Play("Loop", 0, 0f); + } + + // Token: 0x06000530 RID: 1328 RVA: 0x000144A6 File Offset: 0x000136A6 + public void ClassUp() + { + this.MedalAnimator.Play("ClassUp", 0, 0f); + } + + // Token: 0x06000531 RID: 1329 RVA: 0x000144BE File Offset: 0x000136BE + public void ClassDown() + { + this.MedalAnimator.Play("ClassDown", 0, 0f); + } + + // Token: 0x040003BD RID: 957 + private Animator _medalAnimator; + + // Token: 0x040003BE RID: 958 + [SerializeField] + private Image _medalImage; + + // Token: 0x040003BF RID: 959 + [SerializeField] + private Image _effectLoopMedalImage; + + // Token: 0x040003C0 RID: 960 + [SerializeField] + private Image _nextMedalImage; + + // Token: 0x040003C1 RID: 961 + [SerializeField] + private Image _nextEffectMedalImage; + + // Token: 0x040003C2 RID: 962 + [SerializeField] + private Image _nextEffectLoopImage; +} diff --git a/Assembly-CSharp/CollectionAcquitionPlate.cs b/Assembly-CSharp/CollectionAcquitionPlate.cs new file mode 100644 index 0000000..1535ceb --- /dev/null +++ b/Assembly-CSharp/CollectionAcquitionPlate.cs @@ -0,0 +1,35 @@ +using System; +using DB; +using TMPro; +using UI; +using UnityEngine; + +// Token: 0x0200005F RID: 95 +public class CollectionAcquitionPlate : MonoBehaviour +{ + // Token: 0x06000302 RID: 770 RVA: 0x0000C06C File Offset: 0x0000B26C + public void Prepare(CollectionProcess.SubSequence sequence, int num = 0) + { + this._titleImage.ChangeSprite((int)sequence); + this.ChangeAcuitionTitle((int)sequence); + this._numText.text = num.ToString(); + } + + // Token: 0x06000303 RID: 771 RVA: 0x0000C0A0 File Offset: 0x0000B2A0 + private void ChangeAcuitionTitle(int index) + { + this._acquitionTitleText.text = ((index == 0) ? CommonMessageID.CollectionTotalNum.GetName() : CommonMessageID.CollectionNum.GetName()); + } + + // Token: 0x040001F9 RID: 505 + [SerializeField] + private MultipleImage _titleImage; + + // Token: 0x040001FA RID: 506 + [SerializeField] + private TextMeshProUGUI _acquitionTitleText; + + // Token: 0x040001FB RID: 507 + [SerializeField] + private TextMeshProUGUI _numText; +} diff --git a/Assembly-CSharp/CollectionButtonController.cs b/Assembly-CSharp/CollectionButtonController.cs new file mode 100644 index 0000000..c03e36d --- /dev/null +++ b/Assembly-CSharp/CollectionButtonController.cs @@ -0,0 +1,99 @@ +using System; +using Mai2.Mai2Cue; +using Manager; +using UI; +using UnityEngine; + +// Token: 0x02000060 RID: 96 +public class CollectionButtonController : ButtonControllerBase +{ + // Token: 0x06000305 RID: 773 RVA: 0x0000C0C0 File Offset: 0x0000B2C0 + public override void Initialize(int monitorIndex) + { + base.Initialize(monitorIndex); + this.CommonButtons = new CommonButtonObject[this._positions.Length]; + this.CommonButtons[0] = Object.Instantiate(CommonPrefab.GetCirclebuButtonObject(), this._positions[0]); + this.CommonButtons[0].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button03, CommonButtonObject.LedColors.White); + this.CommonButtons[0].SetSymbol(ButtonControllerBase.ArrowSprite, false); + this.CommonButtons[0].SetSE(Cue.SE_SYS_CURSOR); + this.CommonButtons[1] = Object.Instantiate(CommonPrefab.GetCirclebuButtonObject(), this._positions[1]); + this.CommonButtons[1].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button06, CommonButtonObject.LedColors.White); + this.CommonButtons[1].SetSymbol(ButtonControllerBase.ArrowSprite, true); + this.CommonButtons[1].SetSE(Cue.SE_SYS_CURSOR); + this.CommonButtons[2] = Object.Instantiate(CommonPrefab.GetFlatButtonObject(), this._positions[2]); + this.CommonButtons[2].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Ok).LedColor); + this.CommonButtons[2].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Ok).Image, false); + this.CommonButtons[2].SetFlatButtonSynbolType(ButtonControllerBase.FlatButtonType.Ok); + this.CommonButtons[2].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Ok).Cue); + this.CommonButtons[3] = Object.Instantiate(CommonPrefab.GetFlatButtonObject(), this._positions[3]); + this.CommonButtons[3].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button05, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.TimeSkip).LedColor); + this.CommonButtons[3].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.TimeSkip).Image, true); + this.CommonButtons[3].SetFlatButtonSynbolType(ButtonControllerBase.FlatButtonType.TimeSkip); + this.CommonButtons[3].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.TimeSkip).Cue); + this.CommonButtons[4] = this.intimateButtonPlus; + this.CommonButtons[4].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button03, CommonButtonObject.LedColors.Red); + this.CommonButtons[4].SetSE(Cue.SE_SYS_FIX); + this.CommonButtons[5] = this.intimateButtonMinus; + this.CommonButtons[5].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button06, CommonButtonObject.LedColors.Blue); + this.CommonButtons[5].SetSE(Cue.SE_SYS_FIX); + } + + // Token: 0x06000306 RID: 774 RVA: 0x0000C2EC File Offset: 0x0000B4EC + public void ChangeFlatButtonSymbol(int index, int spriteNum) + { + if (this.CommonButtons[index] != null) + { + this.CommonButtons[index].SetSymbol(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).Image, false); + this.CommonButtons[index].SetFlatButtonSynbolType((ButtonControllerBase.FlatButtonType)spriteNum); + this.CommonButtons[index].ChangeColor(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).LedColor, true); + this.CommonButtons[index].SetSE(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).Cue); + } + } + + // Token: 0x06000307 RID: 775 RVA: 0x0000C364 File Offset: 0x0000B564 + public void ChangeFlatButtonDefine(int index, int spriteNum) + { + if (this.CommonButtons[index] != null) + { + this.CommonButtons[index].SetSprite(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).Image, false); + this.CommonButtons[index].SetFlatButtonSynbolType((ButtonControllerBase.FlatButtonType)spriteNum); + this.CommonButtons[index].ChangeColor(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).LedColor, true); + this.CommonButtons[index].SetSE(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).Cue); + } + } + + // Token: 0x06000308 RID: 776 RVA: 0x0000C3D9 File Offset: 0x0000B5D9 + public ButtonControllerBase.FlatButtonType GetFlatButtonSymbolType(int index) + { + return this.CommonButtons[index].GetFlatButtonSynbolType(); + } + + // Token: 0x06000309 RID: 777 RVA: 0x0000C3E8 File Offset: 0x0000B5E8 + public bool GetVisible(int id) + { + return this.CommonButtons[id].IsVisible(); + } + + // Token: 0x040001FC RID: 508 + public CommonButtonObject intimateButtonPlus; + + // Token: 0x040001FD RID: 509 + public CommonButtonObject intimateButtonMinus; + + // Token: 0x02000965 RID: 2405 + public enum ButtonId + { + // Token: 0x04005F97 RID: 24471 + ScrollRight, + // Token: 0x04005F98 RID: 24472 + ScrollLeft, + // Token: 0x04005F99 RID: 24473 + Decide, + // Token: 0x04005F9A RID: 24474 + Skip, + // Token: 0x04005F9B RID: 24475 + IntimateItemPlus, + // Token: 0x04005F9C RID: 24476 + IntimateItemMinus + } +} diff --git a/Assembly-CSharp/CollectionChainCard.cs b/Assembly-CSharp/CollectionChainCard.cs new file mode 100644 index 0000000..13151a9 --- /dev/null +++ b/Assembly-CSharp/CollectionChainCard.cs @@ -0,0 +1,707 @@ +using System; +using MAI2.Util; +using Manager; +using Manager.MaiStudio; +using UI; +using UI.DaisyChainList; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x02000058 RID: 88 +public class CollectionChainCard : ChainObject +{ + // Token: 0x06000294 RID: 660 RVA: 0x00009154 File Offset: 0x00008354 + protected override void Awake() + { + base.Awake(); + this._newIconObj = Object.Instantiate(this._originNewIconObj, this._newIconTran); + CollectionOtherParts otherParts = this._otherParts; + if (otherParts != null) + { + otherParts.SetActiveFavoriteCollection(false); + } + this._randomUI.gameObject.SetActive(true); + this._randomUI.SetActive(false); + } + + // Token: 0x06000295 RID: 661 RVA: 0x000091AD File Offset: 0x000083AD + public void ResetExitCardIcon(bool isReset = false) + { + if (this._mainExit != null) + { + this._mainExit.SetActive(isReset); + } + if (this._miniCard != null) + { + this._miniExit.SetActive(isReset); + } + } + + // Token: 0x06000296 RID: 662 RVA: 0x000091E4 File Offset: 0x000083E4 + public void SetCurrentParts(CollectionGenreID type, string itemName, string acquisitionText, bool isHaveNewCard, bool isSpecial) + { + bool flag = true; + this.SetCommonParts(type, itemName, acquisitionText, isHaveNewCard, isSpecial, flag); + if (this._mainCardRect != null) + { + this._mainCardRect.sizeDelta = CollectionChainCard.ShortSize; + } + CollectionTypeParts typeParts = this._typeParts; + if (typeParts != null) + { + typeParts.SetParts((int)type); + } + if (type == CollectionGenreID.Exit || type == CollectionGenreID.ExitLeft) + { + this.ResetExitCardIcon(true); + return; + } + this.ResetExitCardIcon(false); + } + + // Token: 0x06000297 RID: 663 RVA: 0x00009248 File Offset: 0x00008448 + public void SetCurrentParts(CollectionGenreID type, string itemName, string acquisitionText, bool isHaveNewCard, bool isSpecial, int monitorID) + { + this._kldCoverObject.SetActive(false); + if (Singleton.Instance.IsLoseEventWatched(monitorID) && type >= CollectionGenreID.Title && type <= CollectionGenreID.Shop) + { + this._kldCoverObject.SetActive(true); + } + this.SetCurrentParts(type, itemName, acquisitionText, isHaveNewCard, isSpecial); + if (this._miniCard != null) + { + this._miniCard.GetComponent().SetCurrentParts(type, itemName, acquisitionText, isHaveNewCard, isSpecial, monitorID); + } + } + + // Token: 0x06000298 RID: 664 RVA: 0x000092B8 File Offset: 0x000084B8 + public void SetPartsData(CollectionGenreID type, CollectionData data, bool isEquipment, int monitorIndex) + { + string nameStr = data.NameStr; + string normText = data.NormText; + bool isHave = data.IsHave; + bool isNew = data.IsNew; + bool isDisp = data.IsDisp; + bool flag = isHave || !isDisp; + bool isRandom = data.IsRandom; + bool flag2 = false; + bool flag3 = false; + bool isFavorite = data.IsFavorite; + data.GetID(); + if (type == CollectionGenreID.Frame) + { + FrameData frame = Singleton.Instance.GetFrame(data.GetID()); + if (frame != null && frame.isEffect) + { + flag2 = true; + } + } + this.SetCommonParts(type, nameStr, normText, isNew, flag2, flag3); + if (this._mainCardRect != null) + { + this._mainCardRect.sizeDelta = (flag ? CollectionChainCard.DefaultSize : CollectionChainCard.ShortSize); + } + CollectionOtherParts otherParts = this._otherParts; + if (otherParts != null) + { + otherParts.SetOtherParts(isHave, flag, isEquipment, isRandom, flag2, isFavorite, monitorIndex); + } + if (data.IsRandom) + { + this.InitRandomCard(data); + } + if (this._miniCard != null) + { + this._miniCard.GetComponent().SetPartsData(type, data, isEquipment, monitorIndex); + } + } + + // Token: 0x06000299 RID: 665 RVA: 0x000093C0 File Offset: 0x000085C0 + public void SetActiveChildren(GameObject obj, bool active) + { + int childCount = obj.transform.childCount; + for (int i = 0; i < childCount; i++) + { + obj.transform.GetChild(i).gameObject.SetActive(active); + } + } + + // Token: 0x0600029A RID: 666 RVA: 0x000093FC File Offset: 0x000085FC + public void SetOtherParts(bool isHave, bool isActive, bool isEquipment, bool isRandom, bool isSpecial, int monitorIndex) + { + CollectionOtherParts otherParts = this._otherParts; + if (otherParts == null) + { + return; + } + otherParts.SetOtherParts(isHave, isActive, isEquipment, isRandom, isSpecial, monitorIndex); + } + + // Token: 0x0600029B RID: 667 RVA: 0x00009417 File Offset: 0x00008617 + public void SetGenreName(bool isActive) + { + CollectionTypeParts typeParts = this._typeParts; + if (typeParts == null) + { + return; + } + typeParts.SetVisible(isActive); + } + + // Token: 0x0600029C RID: 668 RVA: 0x0000942A File Offset: 0x0000862A + public void SetGenreNameMiniCard(bool isActive) + { + if (this._miniCard != null) + { + this._miniCard.GetComponent().SetGenreName(isActive); + } + } + + // Token: 0x0600029D RID: 669 RVA: 0x0000944C File Offset: 0x0000864C + private void SetCommonParts(CollectionGenreID type, string itemName, string conditionText, bool isNew, bool isSpecial, bool isTypeCard) + { + this.SetCardFrameSprite(type); + CollectionParts collectionParts = this._collectionParts; + if (collectionParts != null) + { + collectionParts.SetVisibleCollectionParts(type, isSpecial); + } + this.SetCollectionNameAndAcquitionCondition(type, itemName, conditionText); + this.SetVisibleNewIcon(isNew); + this.SetGenreName(isTypeCard); + bool flag = !isTypeCard; + if (isSpecial) + { + flag = true; + } + CollectionOtherParts otherParts = this._otherParts; + if (otherParts != null) + { + otherParts.SetVisible(flag); + } + if (this._otherParts != null) + { + this.SetActiveChildren(this._otherParts.gameObject, false); + } + } + + // Token: 0x0600029E RID: 670 RVA: 0x000094CD File Offset: 0x000086CD + public void SetShopTicketVisable() + { + CollectionParts collectionParts = this._collectionParts; + if (collectionParts != null) + { + collectionParts.SetVisibleTicketParts(); + } + CollectionChainCard miniCard = this._miniCard; + if (miniCard == null) + { + return; + } + miniCard.SetShopTicketVisable(); + } + + // Token: 0x0600029F RID: 671 RVA: 0x000094F0 File Offset: 0x000086F0 + public void SetShopIntimateItemVisable() + { + CollectionParts collectionParts = this._collectionParts; + if (collectionParts != null) + { + collectionParts.SetVisibleIntimateItemParts(); + } + CollectionChainCard miniCard = this._miniCard; + if (miniCard == null) + { + return; + } + miniCard.SetShopIntimateItemVisable(); + } + + // Token: 0x060002A0 RID: 672 RVA: 0x00009513 File Offset: 0x00008713 + public void SetCardFrameSprite(CollectionGenreID type) + { + if (this._cardFrameImage != null) + { + this._cardFrameImage.ChangeSprite((int)type); + } + } + + // Token: 0x060002A1 RID: 673 RVA: 0x00009530 File Offset: 0x00008730 + public void SetDetailParts(Texture2D tex, CollectionGenreID type) + { + switch (type) + { + case CollectionGenreID.ExitLeft: + case CollectionGenreID.Icon: + case CollectionGenreID.Exit: + this._collectionParts.SetIconTexture(tex); + break; + case CollectionGenreID.Plate: + { + Sprite sprite = Sprite.Create(tex, new Rect(0f, 0f, (float)tex.width, (float)tex.height), Vector2.zero); + this._collectionParts.SetPlateSprite(sprite); + break; + } + case CollectionGenreID.Frame: + this._collectionParts.SetFrameTexture(tex); + break; + case CollectionGenreID.Partner: + this._collectionParts.SetPartnerTexture(tex); + break; + } + CollectionChainCard miniCard = this._miniCard; + if (miniCard == null) + { + return; + } + miniCard.SetDetailParts(tex, type); + } + + // Token: 0x060002A2 RID: 674 RVA: 0x000095D6 File Offset: 0x000087D6 + public void SetDetailParts(string title, Sprite titleBaseSprite) + { + this._collectionParts.SetTitle(title, titleBaseSprite); + CollectionChainCard miniCard = this._miniCard; + if (miniCard == null) + { + return; + } + miniCard.SetDetailParts(title, titleBaseSprite); + } + + // Token: 0x060002A3 RID: 675 RVA: 0x000095F7 File Offset: 0x000087F7 + public void SetTicketDetailParts(Texture2D tex) + { + this._collectionParts.SetTicketTexture(tex); + CollectionChainCard miniCard = this._miniCard; + if (miniCard == null) + { + return; + } + miniCard.SetTicketDetailParts(tex); + } + + // Token: 0x060002A4 RID: 676 RVA: 0x00009616 File Offset: 0x00008816 + public void SetIntimateItemDetailParts(int index) + { + this._collectionParts.SetIntimateItemTexture(index); + CollectionChainCard miniCard = this._miniCard; + if (miniCard == null) + { + return; + } + miniCard.SetIntimateItemDetailParts(index); + } + + // Token: 0x060002A5 RID: 677 RVA: 0x00009638 File Offset: 0x00008838 + public void SetDetailPartsPartnerPresent(CollectionProcess.SubSequence subSequence, bool isHave, bool isCopyright, int intimate) + { + if (isHave && !isCopyright && subSequence == CollectionProcess.SubSequence.Prtner) + { + this._partnerGauge.gameObject.SetActive(true); + this._partnerGauge.SetIntimateNum(intimate); + if (this._partnerPersentButton != null) + { + this._partnerPersentButton.SetActive(true); + } + if (this._partnerPersentButtonDisable != null) + { + this._partnerPersentButtonDisable.SetActive(false); + } + } + else if (isHave && isCopyright && subSequence == CollectionProcess.SubSequence.Prtner) + { + this._partnerGauge.gameObject.SetActive(false); + if (this._partnerPersentButton != null) + { + this._partnerPersentButton.SetActive(false); + } + if (this._partnerPersentButtonDisable != null) + { + this._partnerPersentButtonDisable.SetActive(true); + } + } + else + { + this._partnerGauge.gameObject.SetActive(false); + if (this._partnerPersentButton != null) + { + this._partnerPersentButton.SetActive(false); + } + if (this._partnerPersentButtonDisable != null) + { + this._partnerPersentButtonDisable.SetActive(false); + } + } + CollectionChainCard miniCard = this._miniCard; + if (miniCard == null) + { + return; + } + miniCard.SetDetailPartsPartnerPresent(subSequence, isHave, isCopyright, intimate); + } + + // Token: 0x060002A6 RID: 678 RVA: 0x00009753 File Offset: 0x00008953 + private void SetCollectionNameAndAcquitionCondition(CollectionGenreID type, string collectionName, string condition) + { + if (this._collectionName != null) + { + this._collectionName.Prepare(type, collectionName, condition); + } + } + + // Token: 0x060002A7 RID: 679 RVA: 0x00009771 File Offset: 0x00008971 + private void SetVisibleNewIcon(bool isActive) + { + if (this._newIconObj != null) + { + this._newIconObj.gameObject.GetComponent().SetView(isActive); + } + } + + // Token: 0x060002A8 RID: 680 RVA: 0x00009798 File Offset: 0x00008998 + public override void ViewUpdate(float gameMsecAdd) + { + base.ViewUpdate(gameMsecAdd); + this._syncTimer += (float)GameManager.GetGameMSecAdd() / 1000f; + if (this._otherParts.IsActive()) + { + this._otherParts.UpdateView(this._syncTimer); + } + if (this._collectionParts.IsActive()) + { + this._collectionParts.UpdateView(this._syncTimer); + } + if (this._collectionName != null) + { + this._collectionName.ViewUpdate(); + } + if (1f < this._syncTimer) + { + this._syncTimer = 0f; + } + } + + // Token: 0x060002A9 RID: 681 RVA: 0x00009832 File Offset: 0x00008A32 + public void ChangeSize(bool isMainActive) + { + if (this._miniCard != null) + { + this._miniCardGroup.alpha = (float)(isMainActive ? 0 : 1); + this._mainCardGroup.alpha = (float)(isMainActive ? 1 : 0); + } + } + + // Token: 0x060002AA RID: 682 RVA: 0x00009868 File Offset: 0x00008A68 + public override void OnCenterIn() + { + this.ChangeSize(true); + this.ResetPosition(); + } + + // Token: 0x060002AB RID: 683 RVA: 0x00009877 File Offset: 0x00008A77 + public override void OnCenterOut() + { + this.ChangeSize(false); + this.ResetPosition(); + } + + // Token: 0x060002AC RID: 684 RVA: 0x00009886 File Offset: 0x00008A86 + private void ResetPosition() + { + if (this._collectionName != null) + { + this._collectionName.ResetPosition(); + } + if (this._collectionParts.IsActive()) + { + this._collectionParts.ResetScrollText(); + } + } + + // Token: 0x060002AD RID: 685 RVA: 0x000098B9 File Offset: 0x00008AB9 + public void SetVisibleSetIcon(bool isEquipment) + { + CollectionOtherParts otherParts = this._otherParts; + if (otherParts != null) + { + otherParts.SetVisibleSetIcon(isEquipment); + } + if (this._miniCard != null) + { + this._miniCard.SetVisibleSetIcon(isEquipment); + } + } + + // Token: 0x060002AE RID: 686 RVA: 0x000098E7 File Offset: 0x00008AE7 + public void SetShopCardVisable(bool visable) + { + this._shopCard.SetVisable(visable); + if (this._miniCard != null) + { + this._miniCard.SetShopCardVisable(visable); + } + } + + // Token: 0x060002AF RID: 687 RVA: 0x0000990F File Offset: 0x00008B0F + public void SetShopDetailVisable(bool visable) + { + this._shopDetail.SetVisable(visable); + if (this._miniCard != null) + { + this._miniCard.SetShopDetailVisable(visable); + } + } + + // Token: 0x060002B0 RID: 688 RVA: 0x00009937 File Offset: 0x00008B37 + public void SetShopItemDetailTitle(string title) + { + this._shopDetail.SetTitle(title); + if (this._miniCard != null) + { + this._miniCard.SetShopItemDetailTitle(title); + } + } + + // Token: 0x060002B1 RID: 689 RVA: 0x0000995F File Offset: 0x00008B5F + public void SetShopItemDetailPrice(int price) + { + this._shopDetail.SetPrice(price); + if (this._miniCard != null) + { + this._miniCard.SetShopItemDetailPrice(price); + } + } + + // Token: 0x060002B2 RID: 690 RVA: 0x00009987 File Offset: 0x00008B87 + public void SetShopItemDetailRemaining(int remaining) + { + this._shopDetail.SetRemaining(remaining); + } + + // Token: 0x060002B3 RID: 691 RVA: 0x00009995 File Offset: 0x00008B95 + public void SetShopItemDetailRemainingVisable(bool visable) + { + this._shopDetail.SetRemainingVisable(visable); + } + + // Token: 0x060002B4 RID: 692 RVA: 0x000099A3 File Offset: 0x00008BA3 + public void SetNetCardVisable(bool visable) + { + this._netCard.gameObject.SetActive(visable); + if (this._miniCard != null) + { + this._miniCard.SetNetCardVisable(visable); + } + } + + // Token: 0x060002B5 RID: 693 RVA: 0x000099D0 File Offset: 0x00008BD0 + public void SetPartnerRoomCardVisable(bool visable) + { + this._partnerRoomCard.gameObject.SetActive(visable); + if (this._miniCard != null) + { + this._miniCard.SetPartnerRoomCardVisable(visable); + } + } + + // Token: 0x060002B6 RID: 694 RVA: 0x000099FD File Offset: 0x00008BFD + public void SetFrameImageCardVisable(bool visable) + { + this._cardFrameImage.gameObject.SetActive(visable); + if (this._miniCard != null) + { + this._miniCard.SetFrameImageCardVisable(visable); + } + } + + // Token: 0x060002B7 RID: 695 RVA: 0x00009A2A File Offset: 0x00008C2A + public void SetShopItemDisable(bool disable) + { + this._shopDisable.SetShopDisableVisable(disable); + if (this._miniCard != null) + { + this._miniCard.SetShopItemDisable(disable); + } + } + + // Token: 0x060002B8 RID: 696 RVA: 0x00009A52 File Offset: 0x00008C52 + public void SetActiveFavoriteCollection(bool isActive) + { + this._otherParts.SetActiveFavoriteCollection(isActive); + if (this._miniCard != null) + { + this._miniCard.SetActiveFavoriteCollection(isActive); + } + } + + // Token: 0x060002B9 RID: 697 RVA: 0x00009A7A File Offset: 0x00008C7A + public void InitRandomCard(CollectionData data) + { + this._randomUI.Initialize(data); + } + + // Token: 0x060002BA RID: 698 RVA: 0x00009A88 File Offset: 0x00008C88 + public void SetActiveRandom(bool isActive) + { + this._randomUI.SetActive(isActive); + this.SetActiveFavoriteCollection(!isActive); + this._collectionParts.SetVisible(!isActive); + if (this._miniCard != null) + { + this._miniCard.SetActiveRandom(isActive); + } + } + + // Token: 0x060002BB RID: 699 RVA: 0x00009AD4 File Offset: 0x00008CD4 + public void UpdateFavoriteCollection(CollectionChainCard.FavoriteType type) + { + this._otherParts.UpdateFavoriteCollection(type); + if (this._miniCard != null) + { + this._miniCard.UpdateFavoriteCollection(type); + } + } + + // Token: 0x060002BC RID: 700 RVA: 0x00009AFC File Offset: 0x00008CFC + public void SetShopDisableText(string text) + { + this._shopDisable.SetShopDisableText(text); + if (this._miniCard != null) + { + this._miniCard.SetShopDisableText(text); + } + } + + // Token: 0x060002BD RID: 701 RVA: 0x00009B24 File Offset: 0x00008D24 + public void SetCollectionNameVisable(bool visable) + { + this._collectionName.SetVisable(visable); + if (this._miniCard != null) + { + this._miniCard.SetCollectionNameVisable(visable); + } + } + + // Token: 0x040001B6 RID: 438 + private static readonly Vector2 DefaultSize = new Vector2(360f, 426f); + + // Token: 0x040001B7 RID: 439 + private static readonly Vector2 ShortSize = new Vector2(360f, 366f); + + // Token: 0x040001B8 RID: 440 + [SerializeField] + [Header("Common")] + private GameObject _originNewIconObj; + + // Token: 0x040001B9 RID: 441 + [SerializeField] + private Transform _newIconTran; + + // Token: 0x040001BA RID: 442 + [SerializeField] + [Header("カードフレーム")] + private MultipleImage _cardFrameImage; + + // Token: 0x040001BB RID: 443 + [SerializeField] + private CollectionTypeParts _typeParts; + + // Token: 0x040001BC RID: 444 + [SerializeField] + private CollectionParts _collectionParts; + + // Token: 0x040001BD RID: 445 + [SerializeField] + private CollectionOtherParts _otherParts; + + // Token: 0x040001BE RID: 446 + [SerializeField] + private CollectionName _collectionName; + + // Token: 0x040001BF RID: 447 + [SerializeField] + private PartnerGauge _partnerGauge; + + // Token: 0x040001C0 RID: 448 + [SerializeField] + private ShopCard _shopCard; + + // Token: 0x040001C1 RID: 449 + [SerializeField] + private ShopDetail _shopDetail; + + // Token: 0x040001C2 RID: 450 + [SerializeField] + private ShopDisable _shopDisable; + + // Token: 0x040001C3 RID: 451 + [SerializeField] + private Image _netCard; + + // Token: 0x040001C4 RID: 452 + [SerializeField] + private GameObject _favoriteUI; + + // Token: 0x040001C5 RID: 453 + [SerializeField] + private RandomCard _randomUI; + + // Token: 0x040001C6 RID: 454 + [SerializeField] + private Image _partnerRoomCard; + + // Token: 0x040001C7 RID: 455 + [SerializeField] + private GameObject _kldCoverObject; + + // Token: 0x040001C8 RID: 456 + [SerializeField] + [Header("MainCardのみ")] + protected CanvasGroup _miniCardGroup; + + // Token: 0x040001C9 RID: 457 + [SerializeField] + private RectTransform _mainCardRect; + + // Token: 0x040001CA RID: 458 + [SerializeField] + protected CanvasGroup _mainCardGroup; + + // Token: 0x040001CB RID: 459 + [SerializeField] + protected CollectionChainCard _miniCard; + + // Token: 0x040001CC RID: 460 + [SerializeField] + private GameObject _mainExit; + + // Token: 0x040001CD RID: 461 + [SerializeField] + private GameObject _miniExit; + + // Token: 0x040001CE RID: 462 + [SerializeField] + private GameObject _partnerPersentButton; + + // Token: 0x040001CF RID: 463 + [SerializeField] + private GameObject _partnerPersentButtonDisable; + + // Token: 0x040001D0 RID: 464 + private float _syncTimer; + + // Token: 0x040001D1 RID: 465 + private GameObject _newIconObj; + + // Token: 0x02000964 RID: 2404 + public enum FavoriteType + { + // Token: 0x04005F93 RID: 24467 + OFF, + // Token: 0x04005F94 RID: 24468 + ON, + // Token: 0x04005F95 RID: 24469 + Dissable + } +} diff --git a/Assembly-CSharp/CollectionChainList.cs b/Assembly-CSharp/CollectionChainList.cs new file mode 100644 index 0000000..2290580 --- /dev/null +++ b/Assembly-CSharp/CollectionChainList.cs @@ -0,0 +1,1010 @@ +using System; +using System.Collections.Generic; +using DB; +using MAI2.Util; +using Manager; +using Manager.MaiStudio; +using Manager.UserDatas; +using UI.DaisyChainList; +using UnityEngine; + +// Token: 0x0200005E RID: 94 +public class CollectionChainList : DaisyChainList +{ + // Token: 0x060002E9 RID: 745 RVA: 0x0000A6C5 File Offset: 0x000098C5 + public virtual void AdvancedInitialize(ICollectionProcess process, AssetManager manager, int monitorId) + { + this._process = process; + this._monitorId = monitorId; + this._assetManager = manager; + this.LoadSprite(); + } + + // Token: 0x060002EA RID: 746 RVA: 0x0000A6E2 File Offset: 0x000098E2 + public bool IsCrossBoundary(Direction direction) + { + return this.SpotArray[(int)(4 + direction)] is SeparateChainObject; + } + + // Token: 0x060002EB RID: 747 RVA: 0x0000A6F8 File Offset: 0x000098F8 + public override void Deploy() + { + this.RemoveAll(); + this._currentSequence = this._process.CurrentSubSequence(this._monitorId); + this._currentCollectionType = this._process.CurrentColletionType(this._monitorId); + if (this._currentSequence == CollectionProcess.SubSequence.SelectCollectionType || this._currentSequence == CollectionProcess.SubSequence.Information) + { + this.DeployOnCollectionType(); + } + else if (this._currentSequence == CollectionProcess.SubSequence.Shop || this._currentSequence == CollectionProcess.SubSequence.ShopPartnerGetWindow || this._currentSequence == CollectionProcess.SubSequence.ShopPartnerSetDialog) + { + this.DeployOnShop(); + } + else if (this._currentSequence != CollectionProcess.SubSequence.PartnerPresent && this._currentSequence != CollectionProcess.SubSequence.PartnerPresentConfirm && this._currentSequence != CollectionProcess.SubSequence.PartnerPresentReward) + { + this.DeployOnCollection(); + } + base.Deploy(); + } + + // Token: 0x060002EC RID: 748 RVA: 0x0000A7A0 File Offset: 0x000099A0 + protected override void Next(int targetIndex, Direction direction) + { + if (this._currentSequence == CollectionProcess.SubSequence.Icon || this._currentSequence == CollectionProcess.SubSequence.Title || this._currentSequence == CollectionProcess.SubSequence.NamePlate || this._currentSequence == CollectionProcess.SubSequence.Prtner || this._currentSequence == CollectionProcess.SubSequence.Frame || this._currentSequence == CollectionProcess.SubSequence.Shop) + { + this.NextOnCollection(targetIndex, direction); + return; + } + if (this._currentSequence == CollectionProcess.SubSequence.SelectCollectionType || this._currentSequence == CollectionProcess.SubSequence.Information) + { + this.NextOnCollectionType(targetIndex, direction); + } + } + + // Token: 0x060002ED RID: 749 RVA: 0x0000A808 File Offset: 0x00009A08 + public void ChangeEquipmentIcon() + { + for (int i = 0; i < 9; i++) + { + if (this.SpotArray[i] != null && this.SpotArray[i] is CollectionChainCard) + { + ((CollectionChainCard)this.SpotArray[i]).SetVisibleSetIcon(i == 4); + } + } + } + + // Token: 0x060002EE RID: 750 RVA: 0x0000A858 File Offset: 0x00009A58 + public override void SetScrollCard(bool isVisible) + { + if (isVisible) + { + CollectionChainCard collectionChainCard = (CollectionChainCard)this.ScrollChainCard; + collectionChainCard.ChangeSize(true); + this.SetPartnerGauge(this._currentSequence, collectionChainCard, 0); + if (this._currentSequence != CollectionProcess.SubSequence.Shop) + { + collectionChainCard.SetNetCardVisable(false); + collectionChainCard.SetPartnerRoomCardVisable(false); + collectionChainCard.SetFrameImageCardVisable(true); + } + this.SetCollectionData(collectionChainCard, 0, 0); + } + base.SetScrollCard(isVisible); + } + + // Token: 0x060002EF RID: 751 RVA: 0x0000A8B8 File Offset: 0x00009AB8 + private void NextOnCollection(int targetIndex, Direction direction) + { + int num = 0; + for (int i = 0; i < 9; i++) + { + if (this.SpotArray[i] is SeparateChainObject) + { + if (i < 4 && direction == Direction.Right) + { + num++; + } + else if (i > 4 && direction == Direction.Left) + { + num--; + } + } + } + int num2 = ((direction == Direction.Right) ? 0 : 8); + int num3; + if (this.IsBoundary((int)((Direction)4 * direction), out num3)) + { + string text = this._process.CategoryName(this._monitorId, num3 - 1); + string text2 = this._process.CategoryName(this._monitorId, num3); + this.SetSpot(num2, base.GetSeparate(text2, text)); + return; + } + CollectionChainCard chain = base.GetChain(); + this.SetCollectionData(chain, targetIndex + num, 0); + chain.ChangeSize(false); + this.SetSpot(num2, chain); + this.SetPartnerGauge(this._currentSequence, chain, targetIndex + num); + } + + // Token: 0x060002F0 RID: 752 RVA: 0x0000A988 File Offset: 0x00009B88 + public void UpdateFavoriteCollection(UserData.Collection collectionType, bool isFavorite) + { + UserData userData = Singleton.Instance.GetUserData((long)this._monitorId); + CollectionChainCard.FavoriteType favoriteType = (isFavorite ? CollectionChainCard.FavoriteType.ON : (userData.IsMaxFavoriteItem(collectionType) ? CollectionChainCard.FavoriteType.Dissable : CollectionChainCard.FavoriteType.OFF)); + ((CollectionChainCard)this.SpotArray[4]).UpdateFavoriteCollection(favoriteType); + } + + // Token: 0x060002F1 RID: 753 RVA: 0x0000A9D0 File Offset: 0x00009BD0 + private void NextOnCollectionType(int targetIndex, Direction direction) + { + int num = (int)this._process.CurrentColletionType(this._monitorId); + int num2 = ((direction == Direction.Right) ? 0 : 8); + int num3 = targetIndex + num; + if (num3 < 0 || 8 <= num3) + { + return; + } + this.SetCollectionData(null, num2, num3); + } + + // Token: 0x060002F2 RID: 754 RVA: 0x0000AA10 File Offset: 0x00009C10 + private void DeployOnCollection() + { + int num = 0; + for (int i = 0; i < 4; i++) + { + int num2 = -4 + i; + int num3; + if (this.IsBoundary(num2, out num3)) + { + num++; + } + } + int num4 = -4 + num; + int num5 = 0; + int num6 = 0; + for (int j = 0; j < 9; j++) + { + int num7 = -4 + j; + CollectionChainCard card = base.GetCard(j); + if (this._currentSequence != CollectionProcess.SubSequence.Exit && this._currentSequence != CollectionProcess.SubSequence.ExitLeft) + { + card.ResetExitCardIcon(false); + } + else + { + card.ResetExitCardIcon(true); + } + int num3; + if (this.IsBoundary(num7, out num3)) + { + string text; + string text2; + if (num7 > 0) + { + text = this._process.CategoryName(this._monitorId, num3 + 1); + text2 = this._process.CategoryName(this._monitorId, num3); + } + else + { + text = this._process.CategoryName(this._monitorId, num3 - 1); + text2 = this._process.CategoryName(this._monitorId, num3); + } + num5++; + this.SetSpot(j, base.GetSeparate(text2, text)); + } + else + { + CollectionChainCard chain = base.GetChain(); + this.SetCollectionData(chain, num4, 0); + chain.ChangeSize(j == 4); + chain.SetShopCardVisable(false); + chain.SetNetCardVisable(false); + chain.SetPartnerRoomCardVisable(false); + chain.SetFrameImageCardVisable(true); + chain.SetShopDetailVisable(false); + chain.SetCollectionNameVisable(true); + this.SetPartnerGauge(this._currentSequence, chain, num4); + this.SetSpot(j, chain); + num6++; + num4++; + } + } + } + + // Token: 0x060002F3 RID: 755 RVA: 0x0000AB90 File Offset: 0x00009D90 + private void DeployOnShop() + { + int num = 0; + for (int i = 0; i < 4; i++) + { + int num2 = -4 + i; + int num3; + if (this.IsBoundary(num2, out num3)) + { + num++; + } + } + int num4 = -4 + num; + int num5 = 0; + int num6 = 0; + for (int j = 0; j < 9; j++) + { + int num7 = -4 + j; + CollectionChainCard card = base.GetCard(j); + if (this._currentSequence != CollectionProcess.SubSequence.Exit && this._currentSequence != CollectionProcess.SubSequence.ExitLeft) + { + card.ResetExitCardIcon(false); + } + else + { + card.ResetExitCardIcon(true); + } + int num3; + if (this.IsBoundary(num7, out num3)) + { + string text; + string text2; + if (num7 > 0) + { + text = this._process.CategoryName(this._monitorId, num3 + 1); + text2 = this._process.CategoryName(this._monitorId, num3); + } + else + { + text = this._process.CategoryName(this._monitorId, num3 - 1); + text2 = this._process.CategoryName(this._monitorId, num3); + } + num5++; + this.SetSpot(j, base.GetSeparate(text2, text)); + } + else + { + CollectionChainCard chain = base.GetChain(); + this.SetCollectionData(chain, num4, 0); + chain.ChangeSize(j == 4); + this.SetPartnerGauge(this._currentSequence, chain, num4); + this.SetSpot(j, chain); + num6++; + num4++; + } + } + } + + // Token: 0x060002F4 RID: 756 RVA: 0x0000ACE0 File Offset: 0x00009EE0 + private void DeployOnCollectionType() + { + int num = (int)this._process.CurrentColletionType(this._monitorId); + int num2 = num - 4; + if (num2 < 0) + { + num2 = 0; + } + int num3 = 4 - num; + if (num3 < 0) + { + num3 = 0; + } + for (int i = num3; i < 9; i++) + { + this.SetChainData(num2, i); + num2++; + if (num2 >= 8) + { + break; + } + } + } + + // Token: 0x060002F5 RID: 757 RVA: 0x0000AD30 File Offset: 0x00009F30 + private void SetChainData(int typeCount, int index) + { + if (8 <= typeCount) + { + return; + } + CollectionChainCard chain = base.GetChain(); + CollectionGenreID collectionGenreID = CollectionGenreID.End; + string text = ""; + bool flag = false; + string text2 = ""; + CollectionData collectionData = null; + bool flag2 = false; + if (chain != null) + { + chain.ResetExitCardIcon(false); + } + chain.SetShopItemDisable(false); + chain.SetActiveRandom(false); + if (typeCount == 1) + { + collectionGenreID = CollectionGenreID.Title; + int equipTitleID = Singleton.Instance.GetUserData((long)this._monitorId).Detail.EquipTitleID; + collectionData = this._process.GetTitleById(this._monitorId, equipTitleID); + if (collectionData != null) + { + text = collectionData.NameStr; + text2 = collectionData.NormText; + flag = this._process.IsHaveNewTitle(this._monitorId); + Sprite sprite = this._trophyTypeSprites[collectionData.TrophyRareType]; + chain.SetDetailParts(text, sprite); + chain.SetShopCardVisable(false); + chain.SetNetCardVisable(false); + chain.SetPartnerRoomCardVisable(false); + chain.SetFrameImageCardVisable(true); + chain.SetShopDetailVisable(false); + chain.SetCollectionNameVisable(true); + this.SetPartnerGauge(this._currentSequence, chain, equipTitleID); + } + } + else if (typeCount == 2) + { + collectionGenreID = CollectionGenreID.Icon; + int equipIconID = Singleton.Instance.GetUserData((long)this._monitorId).Detail.EquipIconID; + collectionData = this._process.GetIconById(this._monitorId, equipIconID); + if (collectionData != null) + { + text = collectionData.NameStr; + text2 = collectionData.NormText; + flag = this._process.IsHaveNewIcon(this._monitorId); + Texture2D iconTexture2D = this._assetManager.GetIconTexture2D(this._monitorId, collectionData.GetID()); + chain.SetDetailParts(iconTexture2D, collectionGenreID); + chain.SetShopCardVisable(false); + chain.SetNetCardVisable(false); + chain.SetPartnerRoomCardVisable(false); + chain.SetFrameImageCardVisable(true); + chain.SetShopDetailVisable(false); + chain.SetCollectionNameVisable(true); + this.SetPartnerGauge(this._currentSequence, chain, equipIconID); + } + } + else if (typeCount == 3) + { + collectionGenreID = CollectionGenreID.Plate; + int equipPlateID = Singleton.Instance.GetUserData((long)this._monitorId).Detail.EquipPlateID; + collectionData = this._process.GetPlateById(this._monitorId, equipPlateID); + if (collectionData != null) + { + text = collectionData.NameStr; + text2 = collectionData.NormText; + flag = this._process.IsHaveNewNamePlate(this._monitorId); + Texture2D plateTexture2D = this._assetManager.GetPlateTexture2D(collectionData.GetID()); + chain.SetDetailParts(plateTexture2D, collectionGenreID); + chain.SetShopCardVisable(false); + chain.SetNetCardVisable(false); + chain.SetPartnerRoomCardVisable(false); + chain.SetFrameImageCardVisable(true); + chain.SetShopDetailVisable(false); + chain.SetCollectionNameVisable(true); + this.SetPartnerGauge(this._currentSequence, chain, equipPlateID); + } + } + else if (typeCount == 5) + { + collectionGenreID = CollectionGenreID.Partner; + int equipPartnerID = Singleton.Instance.GetUserData((long)this._monitorId).Detail.EquipPartnerID; + collectionData = this._process.GetPartnerById(this._monitorId, equipPartnerID); + if (collectionData != null) + { + text = collectionData.NameStr; + text2 = collectionData.NormText; + flag = this._process.IsHaveNewPartner(this._monitorId); + Texture2D partnerTexture2D = this._assetManager.GetPartnerTexture2D(collectionData.GetID()); + chain.SetDetailParts(partnerTexture2D, collectionGenreID); + chain.SetShopCardVisable(false); + chain.SetNetCardVisable(false); + chain.SetPartnerRoomCardVisable(false); + chain.SetFrameImageCardVisable(true); + chain.SetShopDetailVisable(false); + chain.SetCollectionNameVisable(true); + this.SetPartnerGauge(this._currentSequence, chain, equipPartnerID); + } + } + else if (typeCount == 4) + { + collectionGenreID = CollectionGenreID.Frame; + int equipFrameID = Singleton.Instance.GetUserData((long)this._monitorId).Detail.EquipFrameID; + collectionData = this._process.GetFrameById(this._monitorId, equipFrameID); + if (collectionData != null) + { + text = collectionData.NameStr; + text2 = collectionData.NormText; + flag = this._process.IsHaveNewFrame(this._monitorId); + Texture2D frameThumbTexture2D = this._assetManager.GetFrameThumbTexture2D(collectionData.GetID()); + chain.SetDetailParts(frameThumbTexture2D, collectionGenreID); + chain.SetShopCardVisable(false); + chain.SetNetCardVisable(false); + chain.SetPartnerRoomCardVisable(false); + chain.SetFrameImageCardVisable(true); + chain.SetShopDetailVisable(false); + chain.SetCollectionNameVisable(true); + this.SetPartnerGauge(this._currentSequence, chain, equipFrameID); + FrameData frame = Singleton.Instance.GetFrame(collectionData.GetID()); + if (frame != null && frame.isEffect) + { + flag2 = true; + } + } + } + else if (typeCount == 6) + { + collectionGenreID = CollectionGenreID.Shop; + flag = false; + chain.SetShopCardVisable(true); + chain.SetNetCardVisable(false); + chain.SetPartnerRoomCardVisable(false); + chain.SetFrameImageCardVisable(true); + chain.SetShopDetailVisable(false); + chain.SetCollectionNameVisable(true); + this.SetPartnerGauge(this._currentSequence, chain, 0); + } + else if (typeCount == 7) + { + collectionGenreID = CollectionGenreID.Exit; + text = CollectionGenreID.Exit.GetGenreName(); + text2 = CollectionGenreID.Exit.GetGenreName(); + Texture2D texture2D = Resources.Load("Process/Collection/Sprites/UI_CLC_Exit"); + chain.SetDetailParts(texture2D, collectionGenreID); + chain.SetShopCardVisable(false); + chain.SetNetCardVisable(false); + chain.SetPartnerRoomCardVisable(false); + chain.SetFrameImageCardVisable(true); + chain.SetShopDetailVisable(false); + chain.SetCollectionNameVisable(true); + this.SetPartnerGauge(this._currentSequence, chain, 0); + } + else if (typeCount == 0) + { + collectionGenreID = CollectionGenreID.ExitLeft; + text = CollectionGenreID.ExitLeft.GetGenreName(); + text2 = CollectionGenreID.ExitLeft.GetGenreName(); + Texture2D texture2D2 = Resources.Load("Process/Collection/Sprites/UI_CLC_Exit"); + chain.SetDetailParts(texture2D2, collectionGenreID); + chain.SetShopCardVisable(false); + chain.SetNetCardVisable(false); + chain.SetPartnerRoomCardVisable(false); + chain.SetFrameImageCardVisable(true); + chain.SetShopDetailVisable(false); + chain.SetCollectionNameVisable(true); + this.SetPartnerGauge(this._currentSequence, chain, 0); + } + chain.SetCurrentParts(collectionGenreID, text, text2, flag, flag2, this._monitorId); + if (flag2 && collectionData != null) + { + bool flag3 = false; + bool flag4 = true; + bool flag5 = false; + if (collectionGenreID == CollectionGenreID.Frame) + { + chain.SetOtherParts(collectionData.IsHave, collectionData.IsHave || !collectionData.IsDisp, flag3, collectionData.IsRandom, flag2, this._monitorId); + flag5 = true; + } + if (flag5) + { + chain.SetGenreName(flag4); + chain.SetGenreNameMiniCard(flag4); + } + } + chain.ChangeSize(index == 4); + this.SetSpot(index, chain); + } + + // Token: 0x060002F6 RID: 758 RVA: 0x0000B2FC File Offset: 0x0000A4FC + private void SetPartnerGauge(CollectionProcess.SubSequence subSequence, CollectionChainCard card, int index) + { + CollectionData partner = this._process.GetPartner(this._monitorId, index); + bool flag = false; + bool flag2 = false; + int num = 0; + if (partner != null) + { + flag = partner.IsHave; + PartnerData partner2 = Singleton.Instance.GetPartner(partner.ID); + UserPartnerCloseness userPartnerCloseness; + this._process.HasPartnerClosenessData(this._monitorId, partner2.GetID(), out userPartnerCloseness); + if (userPartnerCloseness != null) + { + num = userPartnerCloseness.closeness; + } + flag2 = partner2.isCopyright; + } + card.SetDetailPartsPartnerPresent(subSequence, flag, flag2, num); + } + + // Token: 0x060002F7 RID: 759 RVA: 0x0000B378 File Offset: 0x0000A578 + private void SetCollectionData(CollectionChainCard card, int index, int loadIndex = 0) + { + switch (this._currentSequence) + { + case CollectionProcess.SubSequence.SelectCollectionType: + case CollectionProcess.SubSequence.Information: + this.SetChainData(loadIndex, index); + break; + case CollectionProcess.SubSequence.Title: + { + CollectionData collectionData = this._process.GetTitle(this._monitorId, index); + this.SetTitleData(card, collectionData); + return; + } + case CollectionProcess.SubSequence.Icon: + { + CollectionData collectionData = this._process.GetIcon(this._monitorId, index); + this.SetIconData(card, collectionData); + return; + } + case CollectionProcess.SubSequence.NamePlate: + { + CollectionData collectionData = this._process.GetPlate(this._monitorId, index); + this.SetPlateData(card, collectionData); + return; + } + case CollectionProcess.SubSequence.Frame: + { + CollectionData collectionData = this._process.GetFrame(this._monitorId, index); + this.SetFrameData(card, collectionData); + return; + } + case CollectionProcess.SubSequence.Prtner: + { + CollectionData collectionData = this._process.GetPartner(this._monitorId, index); + this.SetPartnerData(card, collectionData); + return; + } + case CollectionProcess.SubSequence.Shop: + case CollectionProcess.SubSequence.ShopPartnerGetWindow: + case CollectionProcess.SubSequence.ShopPartnerSetDialog: + { + CollectionData collectionData = this._process.GetShopItem(this._monitorId, index); + this.SetShopItemData(card, collectionData, this._monitorId, index); + return; + } + case CollectionProcess.SubSequence.PartnerPresent: + case CollectionProcess.SubSequence.PartnerPresentConfirm: + case CollectionProcess.SubSequence.PartnerPresentReward: + case CollectionProcess.SubSequence.Exit: + case CollectionProcess.SubSequence.ExitLeft: + break; + default: + return; + } + } + + // Token: 0x060002F8 RID: 760 RVA: 0x0000B488 File Offset: 0x0000A688 + private void SetCollectionDataById(CollectionChainCard card, int index, int loadIndex = 0) + { + CollectionProcess.SubSequence currentSequence = this._currentSequence; + switch (currentSequence) + { + case CollectionProcess.SubSequence.SelectCollectionType: + break; + case CollectionProcess.SubSequence.Title: + { + CollectionData collectionData = this._process.GetTitle(this._monitorId, index); + this.SetTitleData(card, collectionData); + return; + } + case CollectionProcess.SubSequence.Icon: + { + CollectionData collectionData = this._process.GetIcon(this._monitorId, index); + this.SetIconData(card, collectionData); + return; + } + case CollectionProcess.SubSequence.NamePlate: + { + CollectionData collectionData = this._process.GetPlate(this._monitorId, index); + this.SetPlateData(card, collectionData); + return; + } + case CollectionProcess.SubSequence.Frame: + { + CollectionData collectionData = this._process.GetFrame(this._monitorId, index); + this.SetFrameData(card, collectionData); + return; + } + case CollectionProcess.SubSequence.Prtner: + { + CollectionData collectionData = this._process.GetPartner(this._monitorId, index); + this.SetPartnerData(card, collectionData); + return; + } + default: + if (currentSequence != CollectionProcess.SubSequence.Information) + { + return; + } + break; + } + this.SetChainData(loadIndex, index); + } + + // Token: 0x060002F9 RID: 761 RVA: 0x0000B55C File Offset: 0x0000A75C + private void SetIconData(CollectionChainCard card, CollectionData data) + { + UserData userData = Singleton.Instance.GetUserData((long)this._monitorId); + int equipIconID = userData.Detail.EquipIconID; + if (data != null) + { + int id = data.GetID(); + bool flag = equipIconID == id; + bool flag2 = userData.IsFavorite(UserData.Collection.Icon, id); + Texture2D iconTexture2D = this._assetManager.GetIconTexture2D(this._monitorId, data.GetID()); + if (card != null) + { + card.SetShopCardVisable(false); + card.SetShopDetailVisable(false); + card.SetCollectionNameVisable(true); + card.SetShopItemDisable(false); + card.SetActiveRandom(data.IsRandom); + card.SetActiveFavoriteCollection(data.IsHave && !data.IsRandom && data.ID != 10); + CollectionChainCard.FavoriteType favoriteType = (flag2 ? CollectionChainCard.FavoriteType.ON : (userData.IsMaxFavoriteItem(UserData.Collection.Icon) ? CollectionChainCard.FavoriteType.Dissable : CollectionChainCard.FavoriteType.OFF)); + card.UpdateFavoriteCollection(favoriteType); + card.SetPartsData(CollectionGenreID.Icon, data, flag, this._monitorId); + card.SetDetailParts(iconTexture2D, CollectionGenreID.Icon); + } + } + } + + // Token: 0x060002FA RID: 762 RVA: 0x0000B650 File Offset: 0x0000A850 + private void SetTitleData(CollectionChainCard card, CollectionData data) + { + UserData userData = Singleton.Instance.GetUserData((long)this._monitorId); + int equipTitleID = userData.Detail.EquipTitleID; + if (data != null) + { + int id = data.GetID(); + TrophyRareType trophyRareType = data.TrophyRareType; + Sprite sprite = this._trophyTypeSprites[trophyRareType]; + bool flag = equipTitleID == id; + string nameStr = data.NameStr; + bool flag2 = userData.IsFavorite(UserData.Collection.Title, id); + if (card != null) + { + card.SetShopCardVisable(false); + card.SetShopDetailVisable(false); + card.SetCollectionNameVisable(true); + card.SetShopItemDisable(false); + card.SetActiveRandom(data.IsRandom); + card.SetActiveFavoriteCollection(data.IsHave && !data.IsRandom); + CollectionChainCard.FavoriteType favoriteType = (flag2 ? CollectionChainCard.FavoriteType.ON : (userData.IsMaxFavoriteItem(UserData.Collection.Title) ? CollectionChainCard.FavoriteType.Dissable : CollectionChainCard.FavoriteType.OFF)); + card.UpdateFavoriteCollection(favoriteType); + card.SetPartsData(CollectionGenreID.Title, data, flag, this._monitorId); + card.SetDetailParts(nameStr, sprite); + } + } + } + + // Token: 0x060002FB RID: 763 RVA: 0x0000B73C File Offset: 0x0000A93C + private void SetPlateData(CollectionChainCard card, CollectionData data) + { + UserData userData = Singleton.Instance.GetUserData((long)this._monitorId); + int equipPlateID = userData.Detail.EquipPlateID; + if (data != null) + { + int id = data.GetID(); + Texture2D plateTexture2D = this._assetManager.GetPlateTexture2D(data.GetID()); + bool flag = equipPlateID == id; + bool flag2 = userData.IsFavorite(UserData.Collection.Plate, id); + if (card != null) + { + card.SetShopCardVisable(false); + card.SetShopDetailVisable(false); + card.SetCollectionNameVisable(true); + card.SetShopItemDisable(false); + card.SetActiveRandom(data.IsRandom); + card.SetActiveFavoriteCollection(data.IsHave && !data.IsRandom); + CollectionChainCard.FavoriteType favoriteType = (flag2 ? CollectionChainCard.FavoriteType.ON : (userData.IsMaxFavoriteItem(UserData.Collection.Plate) ? CollectionChainCard.FavoriteType.Dissable : CollectionChainCard.FavoriteType.OFF)); + card.UpdateFavoriteCollection(favoriteType); + card.SetPartsData(CollectionGenreID.Plate, data, flag, this._monitorId); + card.SetDetailParts(plateTexture2D, CollectionGenreID.Plate); + } + } + } + + // Token: 0x060002FC RID: 764 RVA: 0x0000B81C File Offset: 0x0000AA1C + private void SetPartnerData(CollectionChainCard card, CollectionData data) + { + int equipPartnerID = Singleton.Instance.GetUserData((long)this._monitorId).Detail.EquipPartnerID; + if (data != null) + { + int id = data.GetID(); + Texture2D partnerTexture2D = this._assetManager.GetPartnerTexture2D(data.GetID()); + bool flag = equipPartnerID == id; + if (card != null) + { + card.SetShopCardVisable(false); + card.SetShopDetailVisable(false); + card.SetCollectionNameVisable(true); + card.SetShopItemDisable(false); + card.SetActiveRandom(false); + card.SetActiveFavoriteCollection(false); + card.SetPartsData(CollectionGenreID.Partner, data, flag, this._monitorId); + card.SetDetailParts(partnerTexture2D, CollectionGenreID.Partner); + } + } + } + + // Token: 0x060002FD RID: 765 RVA: 0x0000B8B0 File Offset: 0x0000AAB0 + private void SetFrameData(CollectionChainCard card, CollectionData data) + { + UserData userData = Singleton.Instance.GetUserData((long)this._monitorId); + int equipFrameID = userData.Detail.EquipFrameID; + if (data != null) + { + int id = data.GetID(); + Texture2D frameThumbTexture2D = this._assetManager.GetFrameThumbTexture2D(data.GetID()); + bool flag = equipFrameID == id; + bool flag2 = userData.IsFavorite(UserData.Collection.Frame, id); + if (card != null) + { + card.SetShopCardVisable(false); + card.SetShopDetailVisable(false); + card.SetCollectionNameVisable(true); + card.SetShopItemDisable(false); + card.SetActiveRandom(data.IsRandom); + card.SetActiveFavoriteCollection(data.IsHave && !data.IsRandom); + CollectionChainCard.FavoriteType favoriteType = (flag2 ? CollectionChainCard.FavoriteType.ON : (userData.IsMaxFavoriteItem(UserData.Collection.Frame) ? CollectionChainCard.FavoriteType.Dissable : CollectionChainCard.FavoriteType.OFF)); + card.UpdateFavoriteCollection(favoriteType); + card.SetPartsData(CollectionGenreID.Frame, data, flag, this._monitorId); + card.SetDetailParts(frameThumbTexture2D, CollectionGenreID.Frame); + } + } + } + + // Token: 0x060002FE RID: 766 RVA: 0x0000B990 File Offset: 0x0000AB90 + private void SetShopItemData(CollectionChainCard card, CollectionData data, int monitorId, int index) + { + if (data == null) + { + return; + } + int id = data.GetID(); + card.SetActiveRandom(false); + card.SetActiveFavoriteCollection(false); + if (id == -1) + { + card.SetNetCardVisable(true); + card.SetShopCardVisable(false); + card.SetShopItemDisable(false); + card.SetPartnerRoomCardVisable(false); + card.SetFrameImageCardVisable(false); + card.SetPartsData(CollectionGenreID.Shop, data, false, this._monitorId); + return; + } + if (id == -2) + { + card.SetPartnerRoomCardVisable(true); + card.SetShopCardVisable(false); + card.SetShopItemDisable(false); + card.SetNetCardVisable(false); + card.SetFrameImageCardVisable(false); + card.SetPartsData(CollectionGenreID.Shop, data, false, this._monitorId); + return; + } + card.SetNetCardVisable(false); + card.SetPartnerRoomCardVisable(false); + card.SetFrameImageCardVisable(true); + CollectionProcess.CannotBuyItemReason cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.None; + bool flag = this._process.CanBuyItem(monitorId, index, out cannotBuyItemReason); + card.SetShopItemDisable(!flag); + switch (cannotBuyItemReason) + { + case CollectionProcess.CannotBuyItemReason.NotEnoughMaiMaile: + card.SetShopDisableText(CommonMessageID.ShopNotEnoughMaiMaile.GetName()); + break; + case CollectionProcess.CannotBuyItemReason.ZeroItemStock: + card.SetShopDisableText(CommonMessageID.ShopZeroItemStock.GetName()); + break; + case CollectionProcess.CannotBuyItemReason.UserMaxStock: + card.SetShopDisableText(CommonMessageID.ShopUserMaxStock.GetName()); + break; + } + ShopItemData shopItem = Singleton.Instance.GetShopItem(id); + int itemId = shopItem.itemId; + Singleton.Instance.GetUserData((long)monitorId); + switch (data.Genre.id) + { + case 1: + { + TicketData ticket = Singleton.Instance.GetTicket(itemId); + Texture2D texture = Resources.Load("Common/Sprites/Ticket/" + ticket.filename).texture; + if (card != null) + { + card.SetShopCardVisable(false); + card.SetShopDetailVisable(true); + card.SetCollectionNameVisable(false); + card.SetPartsData(CollectionGenreID.Shop, data, false, this._monitorId); + card.SetTicketDetailParts(texture); + card.SetShopItemDetailTitle(shopItem.name.str); + card.SetShopItemDetailPrice(shopItem.itemCost); + int userItemStock = this._process.GetUserItemStock(id, monitorId); + card.SetShopItemDetailRemaining(userItemStock); + card.SetShopItemDetailRemainingVisable(shopItem.stockVisable); + card.SetShopTicketVisable(); + return; + } + break; + } + case 2: + { + Texture2D partnerTexture2D = this._assetManager.GetPartnerTexture2D(itemId); + if (card != null) + { + card.SetShopCardVisable(false); + card.SetShopDetailVisable(true); + card.SetCollectionNameVisable(false); + card.SetPartsData(CollectionGenreID.Partner, data, false, this._monitorId); + card.SetDetailParts(partnerTexture2D, CollectionGenreID.Partner); + card.SetShopItemDetailTitle(shopItem.name.str); + card.SetShopItemDetailPrice(shopItem.itemCost); + int userItemStock2 = this._process.GetUserItemStock(id, monitorId); + card.SetShopItemDetailRemaining(userItemStock2); + card.SetShopItemDetailRemainingVisable(shopItem.stockVisable); + return; + } + break; + } + case 3: + { + Texture2D iconTexture2D = this._assetManager.GetIconTexture2D(this._monitorId, itemId); + if (card != null) + { + card.SetShopCardVisable(false); + card.SetShopDetailVisable(true); + card.SetCollectionNameVisable(false); + card.SetPartsData(CollectionGenreID.Icon, data, false, this._monitorId); + card.SetDetailParts(iconTexture2D, CollectionGenreID.Icon); + card.SetShopItemDetailTitle(shopItem.name.str); + card.SetShopItemDetailPrice(shopItem.itemCost); + int userItemStock3 = this._process.GetUserItemStock(id, monitorId); + card.SetShopItemDetailRemaining(userItemStock3); + card.SetShopItemDetailRemainingVisable(shopItem.stockVisable); + return; + } + break; + } + case 4: + { + Texture2D plateTexture2D = this._assetManager.GetPlateTexture2D(itemId); + if (card != null) + { + card.SetShopCardVisable(false); + card.SetShopDetailVisable(true); + card.SetCollectionNameVisable(false); + card.SetPartsData(CollectionGenreID.Plate, data, false, this._monitorId); + card.SetDetailParts(plateTexture2D, CollectionGenreID.Plate); + card.SetShopItemDetailTitle(shopItem.name.str); + card.SetShopItemDetailPrice(shopItem.itemCost); + int userItemStock4 = this._process.GetUserItemStock(id, monitorId); + card.SetShopItemDetailRemaining(userItemStock4); + card.SetShopItemDetailRemainingVisable(shopItem.stockVisable); + return; + } + break; + } + case 5: + { + Texture2D frameThumbTexture2D = this._assetManager.GetFrameThumbTexture2D(itemId); + if (card != null) + { + card.SetShopCardVisable(false); + card.SetShopDetailVisable(true); + card.SetCollectionNameVisable(false); + card.SetPartsData(CollectionGenreID.Frame, data, false, this._monitorId); + card.SetDetailParts(frameThumbTexture2D, CollectionGenreID.Frame); + card.SetShopItemDetailTitle(shopItem.name.str); + card.SetShopItemDetailPrice(shopItem.itemCost); + int userItemStock5 = this._process.GetUserItemStock(id, monitorId); + card.SetShopItemDetailRemaining(userItemStock5); + card.SetShopItemDetailRemainingVisable(shopItem.stockVisable); + return; + } + break; + } + case 6: + { + TrophyRareType trophyRareType = data.TrophyRareType; + Sprite sprite = this._trophyTypeSprites[trophyRareType]; + string nameStr = data.NameStr; + if (card != null) + { + card.SetShopCardVisable(false); + card.SetShopDetailVisable(true); + card.SetCollectionNameVisable(false); + card.SetPartsData(CollectionGenreID.Title, data, false, this._monitorId); + card.SetDetailParts(nameStr, sprite); + card.SetShopItemDetailTitle(shopItem.name.str); + card.SetShopItemDetailPrice(shopItem.itemCost); + int userItemStock6 = this._process.GetUserItemStock(id, monitorId); + card.SetShopItemDetailRemaining(userItemStock6); + card.SetShopItemDetailRemainingVisable(shopItem.stockVisable); + return; + } + break; + } + case 7: + if (card != null) + { + card.SetShopCardVisable(false); + card.SetShopDetailVisable(true); + card.SetCollectionNameVisable(false); + card.SetPartsData(CollectionGenreID.Partner, data, false, this._monitorId); + int[] array = new int[] { 1, 10, 100 }; + for (int i = 0; i < array.Length; i++) + { + if (shopItem.exchangeNum == array[i]) + { + card.SetIntimateItemDetailParts(i); + break; + } + } + card.SetShopItemDetailTitle(shopItem.name.str); + card.SetShopItemDetailPrice(shopItem.itemCost); + int userItemStock7 = this._process.GetUserItemStock(id, monitorId); + card.SetShopItemDetailRemaining(userItemStock7); + card.SetShopItemDetailRemainingVisable(shopItem.stockVisable); + card.SetShopIntimateItemVisable(); + } + break; + default: + return; + } + } + + // Token: 0x060002FF RID: 767 RVA: 0x0000BF18 File Offset: 0x0000B118 + private bool IsBoundary(int index, out int overCount) + { + switch (this._currentCollectionType) + { + case CollectionGenreID.Title: + return this._process.IsTitleBoundary(this._monitorId, index, out overCount); + case CollectionGenreID.Icon: + return this._process.IsIconBoundary(this._monitorId, index, out overCount); + case CollectionGenreID.Plate: + return this._process.IsPlateBoundary(this._monitorId, index, out overCount); + case CollectionGenreID.Frame: + return this._process.IsFrameBoundary(this._monitorId, index, out overCount); + case CollectionGenreID.Partner: + return this._process.IsPartnerBoundary(this._monitorId, index, out overCount); + case CollectionGenreID.Shop: + return this._process.IsShopItemBoundary(this._monitorId, index, out overCount); + default: + overCount = -999; + return false; + } + } + + // Token: 0x06000300 RID: 768 RVA: 0x0000BFD0 File Offset: 0x0000B1D0 + private void LoadSprite() + { + foreach (object obj in Enum.GetValues(typeof(TrophyRareType))) + { + TrophyRareType trophyRareType = (TrophyRareType)obj; + Sprite sprite = Resources.Load("Process/Common/Sprites/UpperMonitor/UI_CMN_Shougou_" + trophyRareType.ToString()); + this._trophyTypeSprites[trophyRareType] = sprite; + } + } + + // Token: 0x040001F1 RID: 497 + private const string TITLE_SPRITE_PATH = "Process/Common/Sprites/UpperMonitor/UI_CMN_Shougou_"; + + // Token: 0x040001F2 RID: 498 + private const int ErrorValue = -999; + + // Token: 0x040001F3 RID: 499 + protected ICollectionProcess _process; + + // Token: 0x040001F4 RID: 500 + protected AssetManager _assetManager; + + // Token: 0x040001F5 RID: 501 + protected int _monitorId; + + // Token: 0x040001F6 RID: 502 + private CollectionProcess.SubSequence _currentSequence; + + // Token: 0x040001F7 RID: 503 + private CollectionGenreID _currentCollectionType; + + // Token: 0x040001F8 RID: 504 + private Dictionary _trophyTypeSprites = new Dictionary(); +} diff --git a/Assembly-CSharp/CollectionData.cs b/Assembly-CSharp/CollectionData.cs new file mode 100644 index 0000000..b344f38 --- /dev/null +++ b/Assembly-CSharp/CollectionData.cs @@ -0,0 +1,328 @@ +using System; +using Manager.MaiStudio; + +// Token: 0x02000143 RID: 323 +public class CollectionData +{ + // Token: 0x17000100 RID: 256 + // (get) Token: 0x06000ACE RID: 2766 RVA: 0x0002DF63 File Offset: 0x0002D163 + // (set) Token: 0x06000ACF RID: 2767 RVA: 0x0002DF6B File Offset: 0x0002D16B + public StringID NetOpenName + { + get + { + return this._netOpenName; + } + set + { + this._netOpenName = value; + } + } + + // Token: 0x17000101 RID: 257 + // (get) Token: 0x06000AD0 RID: 2768 RVA: 0x0002DF74 File Offset: 0x0002D174 + // (set) Token: 0x06000AD1 RID: 2769 RVA: 0x0002DF7C File Offset: 0x0002D17C + public StringID ReleaseTagName + { + get + { + return this._releaseTagName; + } + set + { + this._releaseTagName = value; + } + } + + // Token: 0x17000102 RID: 258 + // (get) Token: 0x06000AD2 RID: 2770 RVA: 0x0002DF85 File Offset: 0x0002D185 + // (set) Token: 0x06000AD3 RID: 2771 RVA: 0x0002DF8D File Offset: 0x0002D18D + public bool Disable + { + get + { + return this._disable; + } + set + { + this._disable = value; + } + } + + // Token: 0x17000103 RID: 259 + // (get) Token: 0x06000AD4 RID: 2772 RVA: 0x0002DF96 File Offset: 0x0002D196 + // (set) Token: 0x06000AD5 RID: 2773 RVA: 0x0002DF9E File Offset: 0x0002D19E + public StringID Name + { + get + { + return this._name; + } + set + { + this._name = value; + } + } + + // Token: 0x17000104 RID: 260 + // (get) Token: 0x06000AD6 RID: 2774 RVA: 0x0002DFA7 File Offset: 0x0002D1A7 + // (set) Token: 0x06000AD7 RID: 2775 RVA: 0x0002DFAF File Offset: 0x0002D1AF + public StringID Genre + { + get + { + return this._genre; + } + set + { + this._genre = value; + } + } + + // Token: 0x17000105 RID: 261 + // (get) Token: 0x06000AD8 RID: 2776 RVA: 0x0002DFB8 File Offset: 0x0002D1B8 + // (set) Token: 0x06000AD9 RID: 2777 RVA: 0x0002DFC0 File Offset: 0x0002D1C0 + public bool IsDefault + { + get + { + return this._isDefault; + } + set + { + this._isDefault = value; + } + } + + // Token: 0x17000106 RID: 262 + // (get) Token: 0x06000ADA RID: 2778 RVA: 0x0002DFC9 File Offset: 0x0002D1C9 + public bool IsRandom + { + get + { + return this._id == 2 || this._id == 3; + } + } + + // Token: 0x17000107 RID: 263 + // (get) Token: 0x06000ADB RID: 2779 RVA: 0x0002DFDF File Offset: 0x0002D1DF + // (set) Token: 0x06000ADC RID: 2780 RVA: 0x0002DFE7 File Offset: 0x0002D1E7 + public string NormText + { + get + { + return this._normText; + } + set + { + this._normText = value; + } + } + + // Token: 0x17000108 RID: 264 + // (get) Token: 0x06000ADD RID: 2781 RVA: 0x0002DFF0 File Offset: 0x0002D1F0 + // (set) Token: 0x06000ADE RID: 2782 RVA: 0x0002DFF8 File Offset: 0x0002D1F8 + public TrophyRareType TrophyRareType + { + get + { + return this._rareType; + } + set + { + this._rareType = value; + } + } + + // Token: 0x17000109 RID: 265 + // (get) Token: 0x06000ADF RID: 2783 RVA: 0x0002E001 File Offset: 0x0002D201 + // (set) Token: 0x06000AE0 RID: 2784 RVA: 0x0002E009 File Offset: 0x0002D209 + public string FileName + { + get + { + return this._fileName; + } + set + { + this._fileName = value; + } + } + + // Token: 0x1700010A RID: 266 + // (get) Token: 0x06000AE1 RID: 2785 RVA: 0x0002E012 File Offset: 0x0002D212 + // (set) Token: 0x06000AE2 RID: 2786 RVA: 0x0002E01A File Offset: 0x0002D21A + public bool IsNew + { + get + { + return this._isNew; + } + set + { + this._isNew = value; + } + } + + // Token: 0x1700010B RID: 267 + // (get) Token: 0x06000AE3 RID: 2787 RVA: 0x0002E023 File Offset: 0x0002D223 + // (set) Token: 0x06000AE4 RID: 2788 RVA: 0x0002E02B File Offset: 0x0002D22B + public bool IsHave + { + get + { + return this._isHave; + } + set + { + this._isHave = value; + } + } + + // Token: 0x1700010C RID: 268 + // (get) Token: 0x06000AE5 RID: 2789 RVA: 0x0002E034 File Offset: 0x0002D234 + // (set) Token: 0x06000AE6 RID: 2790 RVA: 0x0002E03C File Offset: 0x0002D23C + public bool IsDisp + { + get + { + return this._isDisp; + } + set + { + this._isDisp = value; + } + } + + // Token: 0x1700010D RID: 269 + // (get) Token: 0x06000AE7 RID: 2791 RVA: 0x0002E045 File Offset: 0x0002D245 + // (set) Token: 0x06000AE8 RID: 2792 RVA: 0x0002E04D File Offset: 0x0002D24D + public bool IsFavorite + { + get + { + return this._isFavorite; + } + set + { + this._isFavorite = value; + } + } + + // Token: 0x1700010E RID: 270 + // (get) Token: 0x06000AE9 RID: 2793 RVA: 0x0002E056 File Offset: 0x0002D256 + // (set) Token: 0x06000AEA RID: 2794 RVA: 0x0002E05E File Offset: 0x0002D25E + public int Priority + { + get + { + return this._priority; + } + set + { + this._priority = value; + } + } + + // Token: 0x1700010F RID: 271 + // (get) Token: 0x06000AEB RID: 2795 RVA: 0x0002E067 File Offset: 0x0002D267 + // (set) Token: 0x06000AEC RID: 2796 RVA: 0x0002E06F File Offset: 0x0002D26F + public string DataName + { + get + { + return this._dataName; + } + set + { + this._dataName = value; + } + } + + // Token: 0x17000110 RID: 272 + // (get) Token: 0x06000AEE RID: 2798 RVA: 0x0002E081 File Offset: 0x0002D281 + // (set) Token: 0x06000AED RID: 2797 RVA: 0x0002E078 File Offset: 0x0002D278 + public int ID + { + get + { + return this._id; + } + set + { + this._id = value; + } + } + + // Token: 0x17000111 RID: 273 + // (get) Token: 0x06000AEF RID: 2799 RVA: 0x0002E089 File Offset: 0x0002D289 + // (set) Token: 0x06000AF0 RID: 2800 RVA: 0x0002E091 File Offset: 0x0002D291 + public string NameStr + { + get + { + return this._nameStr; + } + set + { + this._nameStr = value; + } + } + + // Token: 0x06000AF1 RID: 2801 RVA: 0x0002E081 File Offset: 0x0002D281 + public int GetID() + { + return this._id; + } + + // Token: 0x040008E8 RID: 2280 + private StringID _netOpenName = new StringID(); + + // Token: 0x040008E9 RID: 2281 + private StringID _releaseTagName = new StringID(); + + // Token: 0x040008EA RID: 2282 + private bool _disable; + + // Token: 0x040008EB RID: 2283 + private StringID _name = new StringID(); + + // Token: 0x040008EC RID: 2284 + private StringID _genre = new StringID(); + + // Token: 0x040008ED RID: 2285 + private bool _isDefault; + + // Token: 0x040008EE RID: 2286 + private string _normText = ""; + + // Token: 0x040008EF RID: 2287 + private TrophyRareType _rareType = TrophyRareType.Bronze; + + // Token: 0x040008F0 RID: 2288 + private string _fileName = ""; + + // Token: 0x040008F1 RID: 2289 + private bool _isNew; + + // Token: 0x040008F2 RID: 2290 + private bool _isHave; + + // Token: 0x040008F3 RID: 2291 + private bool _isDisp; + + // Token: 0x040008F4 RID: 2292 + private bool _isFavorite; + + // Token: 0x040008F5 RID: 2293 + private int _priority; + + // Token: 0x040008F6 RID: 2294 + private string _dataName = ""; + + // Token: 0x040008F7 RID: 2295 + private int _id = -1; + + // Token: 0x040008F8 RID: 2296 + private string _nameStr = ""; +} diff --git a/Assembly-CSharp/CollectionGetButtonController.cs b/Assembly-CSharp/CollectionGetButtonController.cs new file mode 100644 index 0000000..3fe2dab --- /dev/null +++ b/Assembly-CSharp/CollectionGetButtonController.cs @@ -0,0 +1,19 @@ +using System; +using Manager; +using UI; +using UnityEngine; + +// Token: 0x02000072 RID: 114 +public class CollectionGetButtonController : ButtonControllerBase +{ + // Token: 0x060003EB RID: 1003 RVA: 0x0000EAE4 File Offset: 0x0000DCE4 + public override void Initialize(int monitorIndex) + { + base.Initialize(monitorIndex); + this.CommonButtons = new CommonButtonObject[this._positions.Length]; + this.CommonButtons[0] = Object.Instantiate(CommonPrefab.GetFlatButtonObject(), this._positions[0]); + this.CommonButtons[0].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Ok).LedColor); + this.CommonButtons[0].SetSymbolStartDisable(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Next).Image, false); + this.CommonButtons[0].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Ok).Cue); + } +} diff --git a/Assembly-CSharp/CollectionGetCard.cs b/Assembly-CSharp/CollectionGetCard.cs new file mode 100644 index 0000000..97c4dc4 --- /dev/null +++ b/Assembly-CSharp/CollectionGetCard.cs @@ -0,0 +1,212 @@ +using System; +using TMPro; +using UI; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x02000073 RID: 115 +public class CollectionGetCard : MonoBehaviour +{ + // Token: 0x1700006F RID: 111 + // (get) Token: 0x060003ED RID: 1005 RVA: 0x0000EB75 File Offset: 0x0000DD75 + public bool IsBlank + { + get + { + return this._cardType == CollectionGetCard.CardType.Blank; + } + } + + // Token: 0x060003EE RID: 1006 RVA: 0x0000EB80 File Offset: 0x0000DD80 + private void Awake() + { + this._animator = base.GetComponent(); + } + + // Token: 0x060003EF RID: 1007 RVA: 0x0000EB90 File Offset: 0x0000DD90 + public void SetCard(CollectionGetCard.CardType cardType, Sprite sprite) + { + this._cardType = cardType; + this.ChangeBase(this._cardType); + if (this._cardType == CollectionGetCard.CardType.NamePlate) + { + this._multiImage.Image2 = sprite; + this._mainImage.gameObject.SetActive(false); + this._frameImage.gameObject.SetActive(false); + this._partnerPresentImage.gameObject.SetActive(false); + this._mileData.SetActive(false); + } + else if (this._cardType == CollectionGetCard.CardType.Frame) + { + this._frameImage.sprite = sprite; + this._mainImage.gameObject.SetActive(false); + this._partnerPresentImage.gameObject.SetActive(false); + this._plateSetObj.SetActive(false); + this._mileData.SetActive(false); + } + else if (this._cardType == CollectionGetCard.CardType.Mile) + { + this._mainImage.gameObject.SetActive(false); + this._plateSetObj.SetActive(false); + this._frameImage.gameObject.SetActive(false); + this._partnerPresentImage.gameObject.SetActive(false); + } + else if (this._cardType == CollectionGetCard.CardType.Present) + { + this._mainImage.gameObject.SetActive(false); + this._plateSetObj.SetActive(false); + this._frameImage.gameObject.SetActive(false); + this._mileData.SetActive(false); + this._partnerPresentImage.gameObject.SetActive(true); + this.ChangeBase(CollectionGetCard.CardType.Partner); + } + else + { + this._mainImage.sprite = sprite; + this._mainImage.SetNativeSize(); + this._plateSetObj.SetActive(false); + this._frameImage.gameObject.SetActive(false); + this._partnerPresentImage.gameObject.SetActive(false); + this._mask.enabled = false; + this._mileData.SetActive(false); + } + this._animator.Play("Idle"); + } + + // Token: 0x060003F0 RID: 1008 RVA: 0x0000ED74 File Offset: 0x0000DF74 + public void SetMileData(int mileType, int rewardNum) + { + this._mileData.SetMileType(mileType); + this._mileData.SetRewardNum(rewardNum); + } + + // Token: 0x060003F1 RID: 1009 RVA: 0x0000ED90 File Offset: 0x0000DF90 + public void BlankSet() + { + this.ChangeBase(CollectionGetCard.CardType.Blank); + this._plateSetObj.SetActive(false); + this._frameImage.gameObject.SetActive(false); + this._mainImage.gameObject.SetActive(false); + this._mileData.SetActive(false); + this._partnerPresentImage.gameObject.SetActive(false); + } + + // Token: 0x060003F2 RID: 1010 RVA: 0x0000EDEF File Offset: 0x0000DFEF + public void Play() + { + this._animator.Play("In"); + } + + // Token: 0x060003F3 RID: 1011 RVA: 0x0000EE01 File Offset: 0x0000E001 + private void ChangeBase(CollectionGetCard.CardType cardType) + { + this._baseImage.ChangeSprite((int)cardType); + } + + // Token: 0x04000280 RID: 640 + [SerializeField] + private MultipleImage _baseImage; + + // Token: 0x04000281 RID: 641 + [SerializeField] + private RectMask2D _mask; + + // Token: 0x04000282 RID: 642 + [SerializeField] + private Image _mainImage; + + // Token: 0x04000283 RID: 643 + [SerializeField] + private GameObject _plateSetObj; + + // Token: 0x04000284 RID: 644 + [SerializeField] + private Image _frameImage; + + // Token: 0x04000285 RID: 645 + [SerializeField] + private Image _partnerPresentImage; + + // Token: 0x04000286 RID: 646 + [SerializeField] + private MultiImage _multiImage; + + // Token: 0x04000287 RID: 647 + [SerializeField] + private CollectionGetCard.MileData _mileData; + + // Token: 0x04000288 RID: 648 + private Animator _animator; + + // Token: 0x04000289 RID: 649 + private CollectionGetCard.CardType _cardType; + + // Token: 0x02000970 RID: 2416 + public enum CardType + { + // Token: 0x04005FDF RID: 24543 + Blank, + // Token: 0x04005FE0 RID: 24544 + NamePlate, + // Token: 0x04005FE1 RID: 24545 + Icon, + // Token: 0x04005FE2 RID: 24546 + Title, + // Token: 0x04005FE3 RID: 24547 + Partner, + // Token: 0x04005FE4 RID: 24548 + Frame, + // Token: 0x04005FE5 RID: 24549 + Ticket, + // Token: 0x04005FE6 RID: 24550 + Mile, + // Token: 0x04005FE7 RID: 24551 + Present + } + + // Token: 0x02000971 RID: 2417 + public enum MileType + { + // Token: 0x04005FE9 RID: 24553 + Mission, + // Token: 0x04005FEA RID: 24554 + FriendBonus, + // Token: 0x04005FEB RID: 24555 + Present + } + + // Token: 0x02000972 RID: 2418 + [Serializable] + public class MileData + { + // Token: 0x06004C89 RID: 19593 RVA: 0x0019AB91 File Offset: 0x00199D91 + public void SetActive(bool isActive) + { + this._parent.SetActive(isActive); + } + + // Token: 0x06004C8A RID: 19594 RVA: 0x0019AB9F File Offset: 0x00199D9F + public void SetMileType(int type) + { + this._mileType.ChangeSprite(type); + } + + // Token: 0x06004C8B RID: 19595 RVA: 0x0019ABAD File Offset: 0x00199DAD + public void SetRewardNum(int num) + { + this._rewardNumText.SetText(num.ToString()); + } + + // Token: 0x04005FEC RID: 24556 + [SerializeField] + private GameObject _parent; + + // Token: 0x04005FED RID: 24557 + [SerializeField] + private MultipleImage _mileType; + + // Token: 0x04005FEE RID: 24558 + [SerializeField] + private TextMeshProUGUI _rewardNumText; + } +} diff --git a/Assembly-CSharp/CollectionGetList.cs b/Assembly-CSharp/CollectionGetList.cs new file mode 100644 index 0000000..d07d5ce --- /dev/null +++ b/Assembly-CSharp/CollectionGetList.cs @@ -0,0 +1,304 @@ +using System; +using System.Collections.Generic; +using Mai2.Mai2Cue; +using MAI2.Util; +using Manager; +using Manager.UserDatas; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x02000074 RID: 116 +public class CollectionGetList : MonoBehaviour +{ + // Token: 0x060003F5 RID: 1013 RVA: 0x0000EE10 File Offset: 0x0000E010 + public bool Prepare(int monitorIndex, AssetManager assetManager) + { + this._monitorIndex = monitorIndex; + this._assetManager = assetManager; + UserData userData = Singleton.Instance.GetUserData((long)monitorIndex); + int num = 0; + int newMissionAchieveMile = userData.NewMissionAchieveMile; + if (newMissionAchieveMile > 0) + { + this.AddCard(CollectionGetCard.CardType.Mile, null); + this.SetMileData(CollectionGetCard.MileType.Mission, newMissionAchieveMile); + num++; + } + int newFriendBonusMile = userData.NewFriendBonusMile; + if (newFriendBonusMile > 0) + { + this.AddCard(CollectionGetCard.CardType.Mile, null); + this.SetMileData(CollectionGetCard.MileType.FriendBonus, newFriendBonusMile); + num++; + } + int newPresentMile = userData.NewPresentMile; + if (newPresentMile > 0) + { + this.AddCard(CollectionGetCard.CardType.Mile, null); + this.SetMileData(CollectionGetCard.MileType.Present, newPresentMile); + num++; + } + List newIconList = userData.NewIconList; + for (int i = 0; i < newIconList.Count; i++) + { + if (10 > num) + { + int num2 = newIconList[i]; + Texture2D iconTexture2D = this._assetManager.GetIconTexture2D(this._monitorIndex, num2); + Sprite sprite = Sprite.Create(iconTexture2D, new Rect(0f, 0f, (float)iconTexture2D.width, (float)iconTexture2D.height), Vector2.zero); + this.AddCard(CollectionGetCard.CardType.Icon, sprite); + } + num++; + } + List newPlateList = userData.NewPlateList; + for (int j = 0; j < newPlateList.Count; j++) + { + if (10 > num) + { + int num3 = newPlateList[j]; + Texture2D plateTexture2D = this._assetManager.GetPlateTexture2D(num3); + Sprite sprite2 = Sprite.Create(plateTexture2D, new Rect(0f, 0f, (float)plateTexture2D.width, (float)plateTexture2D.height), Vector2.zero); + this.AddCard(CollectionGetCard.CardType.NamePlate, sprite2); + } + num++; + } + List newTitleList = userData.NewTitleList; + for (int k = 0; k < newTitleList.Count; k++) + { + if (10 > num) + { + this.AddCard(CollectionGetCard.CardType.Title, null); + } + num++; + } + List newPartnerList = userData.NewPartnerList; + for (int l = 0; l < newPartnerList.Count; l++) + { + if (10 > num) + { + int num4 = newPartnerList[l]; + Texture2D partnerTexture2D = this._assetManager.GetPartnerTexture2D(num4); + Sprite sprite3 = Sprite.Create(partnerTexture2D, new Rect(0f, 0f, (float)partnerTexture2D.width, (float)partnerTexture2D.height), Vector2.zero); + this.AddCard(CollectionGetCard.CardType.Partner, sprite3); + } + num++; + } + List newFrameList = userData.NewFrameList; + for (int m = 0; m < newFrameList.Count; m++) + { + if (10 > num) + { + int num5 = newFrameList[m]; + Texture2D frameThumbTexture2D = this._assetManager.GetFrameThumbTexture2D(num5); + Sprite sprite4 = Sprite.Create(frameThumbTexture2D, new Rect(0f, 0f, (float)frameThumbTexture2D.width, (float)frameThumbTexture2D.height), Vector2.zero); + this.AddCard(CollectionGetCard.CardType.Frame, sprite4); + } + num++; + } + List newTicketList = userData.NewTicketList; + for (int n = 0; n < newTicketList.Count; n++) + { + int id = newTicketList[n]; + UserItem userItem = userData.TicketList.Find((UserItem t) => t.itemId == id); + if (userItem != null && userItem.stock != 0) + { + if (10 > num) + { + Sprite sprite5 = Resources.Load(Singleton.Instance.GetCollectionFileName(id)); + if (sprite5 != null) + { + Texture2D texture = sprite5.texture; + Sprite sprite6 = Sprite.Create(texture, new Rect(0f, 0f, (float)texture.width, (float)texture.height), Vector2.zero); + this.AddCard(CollectionGetCard.CardType.Ticket, sprite6); + } + } + num++; + } + } + for (int num6 = 0; num6 < userData.NewItemList.Count; num6++) + { + if (userData.NewItemList[num6].itemId == 14) + { + if (10 <= num) + { + break; + } + this.AddCard(CollectionGetCard.CardType.Present, null); + num++; + } + } + this._isGetMore = 10 < num; + int count = this._cardList.Count; + if (5 < count && count <= 10) + { + int num7 = 10 - count; + for (int num8 = 0; num8 < num7; num8++) + { + this.AddCard(CollectionGetCard.CardType.Blank, null); + } + } + this.SetGridLayoutGroup(this._cardList.Count); + this._getMore.Play("Idle"); + return 0 < num; + } + + // Token: 0x060003F6 RID: 1014 RVA: 0x0000F220 File Offset: 0x0000E420 + private void PlayGetMoreAnim() + { + if (this._isGetMore) + { + this._getMore.Play("In"); + } + } + + // Token: 0x060003F7 RID: 1015 RVA: 0x0000F23C File Offset: 0x0000E43C + private void AddCard(CollectionGetCard.CardType type, Sprite sprite) + { + CollectionGetCard component = Object.Instantiate(this._cardObj, this._cardRootTran).GetComponent(); + switch (type) + { + case CollectionGetCard.CardType.Blank: + component.BlankSet(); + break; + case CollectionGetCard.CardType.NamePlate: + component.SetCard(CollectionGetCard.CardType.NamePlate, sprite); + break; + case CollectionGetCard.CardType.Icon: + component.SetCard(CollectionGetCard.CardType.Icon, sprite); + break; + case CollectionGetCard.CardType.Title: + component.SetCard(CollectionGetCard.CardType.Title, this._titleReplaceSp); + break; + case CollectionGetCard.CardType.Partner: + component.SetCard(CollectionGetCard.CardType.Partner, sprite); + break; + case CollectionGetCard.CardType.Frame: + component.SetCard(CollectionGetCard.CardType.Frame, sprite); + break; + case CollectionGetCard.CardType.Ticket: + component.SetCard(CollectionGetCard.CardType.Ticket, sprite); + break; + case CollectionGetCard.CardType.Mile: + component.SetCard(CollectionGetCard.CardType.Mile, sprite); + break; + case CollectionGetCard.CardType.Present: + component.SetCard(CollectionGetCard.CardType.Present, sprite); + break; + } + this._cardList.Add(component); + } + + // Token: 0x060003F8 RID: 1016 RVA: 0x0000F2F3 File Offset: 0x0000E4F3 + private void SetMileData(CollectionGetCard.MileType type, int rewardNum) + { + this._cardList[this._cardList.Count - 1].SetMileData((int)type, rewardNum); + } + + // Token: 0x060003F9 RID: 1017 RVA: 0x0000F314 File Offset: 0x0000E514 + public void PrepareAddAnimation(Action next) + { + this._next = next; + this._isAnimation = true; + this._cardList[this._currentIndex].Play(); + this._delayCounter = 0f; + if (!this._cardList[this._currentIndex].IsBlank) + { + SoundManager.PlaySE(Cue.SE_COLLECTION_ALLGET_APPEAR, this._monitorIndex); + } + } + + // Token: 0x060003FA RID: 1018 RVA: 0x0000F37C File Offset: 0x0000E57C + public void PlayAddAnimation(float deltaTime) + { + if (!this._isAnimation) + { + return; + } + if (0.05f < this._delayCounter) + { + this._delayCounter = 0f; + this._currentIndex++; + if (10 < this._cardList.Count || this._cardList.Count <= this._currentIndex) + { + this._isAnimation = false; + Action next = this._next; + if (next != null) + { + next(); + } + this.PlayGetMoreAnim(); + this._next = null; + return; + } + this._cardList[this._currentIndex].Play(); + if (!this._cardList[this._currentIndex].IsBlank) + { + SoundManager.PlaySE(Cue.SE_COLLECTION_ALLGET_APPEAR, this._monitorIndex); + } + } + this._delayCounter += deltaTime; + } + + // Token: 0x060003FB RID: 1019 RVA: 0x0000F450 File Offset: 0x0000E650 + private void SetGridLayoutGroup(int collectionNum) + { + if (collectionNum == 0) + { + return; + } + this._layoutGroup.constraintCount = ((5 <= collectionNum) ? 5 : collectionNum); + } + + // Token: 0x0400028A RID: 650 + private const int MaxOneLineConstraintCount = 5; + + // Token: 0x0400028B RID: 651 + private const int MaxItemNum = 10; + + // Token: 0x0400028C RID: 652 + private const float DelayTime = 0.05f; + + // Token: 0x0400028D RID: 653 + [SerializeField] + private GameObject _cardObj; + + // Token: 0x0400028E RID: 654 + [SerializeField] + private Transform _cardRootTran; + + // Token: 0x0400028F RID: 655 + [SerializeField] + private GridLayoutGroup _layoutGroup; + + // Token: 0x04000290 RID: 656 + [SerializeField] + private AnimationParts _getMore; + + // Token: 0x04000291 RID: 657 + [SerializeField] + private Sprite _titleReplaceSp; + + // Token: 0x04000292 RID: 658 + private List _cardList = new List(); + + // Token: 0x04000293 RID: 659 + private Action _next; + + // Token: 0x04000294 RID: 660 + private bool _isAnimation; + + // Token: 0x04000295 RID: 661 + private int _currentIndex; + + // Token: 0x04000296 RID: 662 + private float _delayCounter; + + // Token: 0x04000297 RID: 663 + private int _monitorIndex; + + // Token: 0x04000298 RID: 664 + private AssetManager _assetManager; + + // Token: 0x04000299 RID: 665 + private bool _isGetMore; +} diff --git a/Assembly-CSharp/CollectionGetMonitor.cs b/Assembly-CSharp/CollectionGetMonitor.cs new file mode 100644 index 0000000..3092e1b --- /dev/null +++ b/Assembly-CSharp/CollectionGetMonitor.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; +using DB; +using IO; +using MAI2.Util; +using Mai2.Voice_000001; +using Manager; +using TMPro; +using UnityEngine; + +// Token: 0x02000075 RID: 117 +public class CollectionGetMonitor : MonitorBase +{ + // Token: 0x060003FD RID: 1021 RVA: 0x0000F47C File Offset: 0x0000E67C + public override void Initialize(int monIndex, bool active) + { + base.Initialize(monIndex, active); + if (this.IsActive()) + { + MechaManager.LedIf[monIndex].ButtonLedReset(); + } + if (active) + { + this._buttonController.Initialize(monIndex); + this.SetVisibleBlur(!active); + } + this.SetVisible(active); + } + + // Token: 0x060003FE RID: 1022 RVA: 0x0000F4BA File Offset: 0x0000E6BA + public void SetFixedWindowMessage(string message) + { + this._message.text = message; + } + + // Token: 0x060003FF RID: 1023 RVA: 0x0000F4C8 File Offset: 0x0000E6C8 + protected override void SetVisible(bool isActive) + { + this.Main.alpha = (float)(isActive ? 1 : 0); + this.Sub.alpha = (float)(isActive ? 1 : 0); + } + + // Token: 0x06000400 RID: 1024 RVA: 0x0000F4F0 File Offset: 0x0000E6F0 + public bool StartAnimation(Action next, AssetManager manager) + { + bool flag = this._list.Prepare(this.monitorIndex, manager); + if (flag) + { + UserData userData = Singleton.Instance.GetUserData((long)this.monitorIndex); + if (userData.IsGetMile() && !userData.Detail.ContentBit.IsFlagOn(ContentBitID.FirstGetMile)) + { + this._windowMessageList.Add(WindowMessageID.GetMileFirst); + this._isFirstInfo = true; + } + SoundManager.PlayVoice(Cue.VO_000155, base.MonitorIndex); + Action <>9__1; + this._bgAnimator.Play("In", delegate + { + AnimationParts messageAnimator = this._messageAnimator; + string text = "In"; + Action action; + if ((action = <>9__1) == null) + { + action = (<>9__1 = delegate + { + this._list.PrepareAddAnimation(next); + }); + } + messageAnimator.Play(text, action, false); + }, false); + } + return flag; + } + + // Token: 0x06000401 RID: 1025 RVA: 0x0000F599 File Offset: 0x0000E799 + public void SetActiveButton() + { + this._buttonController.SetVisible(true, new int[1]); + } + + // Token: 0x06000402 RID: 1026 RVA: 0x0000F5AD File Offset: 0x0000E7AD + public void SetButtonAnimationActive() + { + this._buttonController.SetAnimationActive(0); + } + + // Token: 0x06000403 RID: 1027 RVA: 0x0000F5BB File Offset: 0x0000E7BB + public bool IsCloseInfo() + { + return this._infoTimer <= 0U; + } + + // Token: 0x06000404 RID: 1028 RVA: 0x0000F5C9 File Offset: 0x0000E7C9 + public bool IsActiveInfo() + { + return this._isFirstInfo; + } + + // Token: 0x06000405 RID: 1029 RVA: 0x0000F5D1 File Offset: 0x0000E7D1 + public void SetActiveInfo(bool isActive) + { + this._isFirstInfo = isActive; + } + + // Token: 0x06000406 RID: 1030 RVA: 0x0000F5DA File Offset: 0x0000E7DA + public void SetInfoTimer(uint timer) + { + this._infoTimer = timer; + } + + // Token: 0x06000407 RID: 1031 RVA: 0x0000F5E3 File Offset: 0x0000E7E3 + public override void ViewUpdate() + { + if (this._infoTimer > 0U) + { + this._infoTimer -= 1U; + } + this._list.PlayAddAnimation((float)GameManager.GetGameMSecAdd() / 1000f); + } + + // Token: 0x06000408 RID: 1032 RVA: 0x0000F613 File Offset: 0x0000E813 + public void SetVisibleBlur(bool isActive) + { + this._blur.alpha = (float)(isActive ? 1 : 0); + } + + // Token: 0x0400029A RID: 666 + [SerializeField] + private CollectionGetButtonController _buttonController; + + // Token: 0x0400029B RID: 667 + [SerializeField] + private AnimationParts _bgAnimator; + + // Token: 0x0400029C RID: 668 + [SerializeField] + private CollectionGetList _list; + + // Token: 0x0400029D RID: 669 + [SerializeField] + private AnimationParts _messageAnimator; + + // Token: 0x0400029E RID: 670 + [SerializeField] + private TextMeshProUGUI _message; + + // Token: 0x0400029F RID: 671 + [SerializeField] + private CanvasGroup _blur; + + // Token: 0x040002A0 RID: 672 + public List _windowMessageList = new List(); + + // Token: 0x040002A1 RID: 673 + private bool _isFirstInfo; + + // Token: 0x040002A2 RID: 674 + private uint _infoTimer; +} diff --git a/Assembly-CSharp/CollectionGetProcess.cs b/Assembly-CSharp/CollectionGetProcess.cs new file mode 100644 index 0000000..5a6aaf2 --- /dev/null +++ b/Assembly-CSharp/CollectionGetProcess.cs @@ -0,0 +1,282 @@ +using System; +using System.Linq; +using DB; +using MAI2.Util; +using Manager; +using Process; +using UnityEngine; + +// Token: 0x02000150 RID: 336 +public class CollectionGetProcess : ProcessBase +{ + // Token: 0x06000BE7 RID: 3047 RVA: 0x00037266 File Offset: 0x00036466 + public CollectionGetProcess(ProcessDataContainer dataContainer) + : base(dataContainer) + { + } + + // Token: 0x06000BE8 RID: 3048 RVA: 0x00003598 File Offset: 0x00002798 + public override void OnAddProcess() + { + } + + // Token: 0x06000BE9 RID: 3049 RVA: 0x00037270 File Offset: 0x00036470 + public override void OnRelease() + { + if (this._monitors != null) + { + for (int i = 0; i < this._monitors.Length; i++) + { + if (this._monitors[i] != null) + { + Object.Destroy(this._monitors[i].gameObject); + } + } + } + } + + // Token: 0x06000BEA RID: 3050 RVA: 0x000372BC File Offset: 0x000364BC + public override void OnStart() + { + GameObject gameObject = Resources.Load("Process/CollectionGet/CollectionGetProcess"); + this._monitors = new CollectionGetMonitor[] + { + base.CreateInstanceAndSetParent(gameObject, this.container.LeftMonitor).GetComponent(), + base.CreateInstanceAndSetParent(gameObject, this.container.RightMonitor).GetComponent() + }; + this._isEntry = new bool[this._monitors.Length]; + this._isComplete = new bool[this._monitors.Length]; + for (int i = 0; i < this._monitors.Length; i++) + { + this._isEntry[i] = Singleton.Instance.GetUserData((long)i).IsEntry; + this._isComplete[i] = !this._isEntry[i]; + this._monitors[i].Initialize(i, this._isEntry[i]); + this._monitors[i].SetFixedWindowMessage(WindowMessageID.CollectionGetAnnounceInfo.GetName()); + bool flag = this._monitors[i].StartAnimation(new Action(this.Init), this.container.assetManager); + if ((!this._isComplete[i] && !flag) || Singleton.Instance.GetUserData((long)i).IsGuest()) + { + this._isComplete[i] = true; + } + } + if (this._isComplete[0] && this._isComplete[1]) + { + this._state = CollectionGetProcess.State.GotoEnd; + return; + } + this.SetMessege(); + this._state = CollectionGetProcess.State.StartAnim; + this.container.processManager.NotificationFadeIn(false); + } + + // Token: 0x06000BEB RID: 3051 RVA: 0x00037434 File Offset: 0x00036634 + private void Init() + { + if (this._isPassedInit) + { + return; + } + this.container.processManager.PrepareTimer(10, 0, false, new Action(this.ChangeFinishState), true); + for (int i = 0; i < this._monitors.Length; i++) + { + if (this._isComplete[i]) + { + this.container.processManager.SetVisibleTimer(i, false); + } + else + { + this._monitors[i].SetActiveButton(); + this.ViewFirstInfo(i); + } + } + this._isPassedInit = true; + this._state = CollectionGetProcess.State.Update; + } + + // Token: 0x06000BEC RID: 3052 RVA: 0x000374C0 File Offset: 0x000366C0 + public override void OnUpdate() + { + base.OnUpdate(); + switch (this._state) + { + case CollectionGetProcess.State.GotoEnd: + this.GotoSkipNextProcess(); + break; + case CollectionGetProcess.State.Finish: + this.GotoNextProcess(); + break; + } + for (int i = 0; i < this._monitors.Length; i++) + { + if (this._isEntry[i]) + { + this._monitors[i].ViewUpdate(); + } + } + } + + // Token: 0x06000BED RID: 3053 RVA: 0x00037538 File Offset: 0x00036738 + private void SetMessege() + { + if (!this._isComplete.Contains(false)) + { + this.ChangeFinishState(); + this.container.processManager.ClearTimeoutAction(); + return; + } + for (int i = 0; i < this._monitors.Length; i++) + { + if (this._isEntry[i] && this._isComplete[i]) + { + this.container.processManager.EnqueueMessage(i, WindowMessageID.PlayPreparationWait, null); + this._monitors[i].SetVisibleBlur(true); + this.container.processManager.SetVisibleTimer(i, false); + } + } + } + + // Token: 0x06000BEE RID: 3054 RVA: 0x000375C8 File Offset: 0x000367C8 + protected override void UpdateInput(int monitorId) + { + if (!this._isEntry[monitorId] || this._isComplete[monitorId]) + { + return; + } + switch (this._state) + { + case CollectionGetProcess.State.Init: + case CollectionGetProcess.State.GotoEnd: + case CollectionGetProcess.State.StartAnim: + case CollectionGetProcess.State.Wait: + case CollectionGetProcess.State.Finish: + case CollectionGetProcess.State.Released: + break; + case CollectionGetProcess.State.Update: + this.UpdateDetailInput(monitorId); + break; + default: + return; + } + } + + // Token: 0x06000BEF RID: 3055 RVA: 0x0003761C File Offset: 0x0003681C + private void UpdateDetailInput(int monitorId) + { + if (this._monitors[monitorId].IsActiveInfo()) + { + if (this._monitors[monitorId].IsCloseInfo()) + { + this.container.processManager.ForcedCloseWindow(monitorId); + this._monitors[monitorId]._windowMessageList.RemoveAt(0); + this.ViewFirstInfo(monitorId); + } + return; + } + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04)) + { + if (this._isComplete[monitorId]) + { + return; + } + this._isComplete[monitorId] = true; + this._monitors[monitorId].SetButtonAnimationActive(); + this.SetMessege(); + base.SetInputLockInfo(monitorId, 100f); + } + } + + // Token: 0x06000BF0 RID: 3056 RVA: 0x00003598 File Offset: 0x00002798 + public override void OnLateUpdate() + { + } + + // Token: 0x06000BF1 RID: 3057 RVA: 0x000376AF File Offset: 0x000368AF + private void ChangeFinishState() + { + if (this._isFinished) + { + return; + } + this._state = CollectionGetProcess.State.Finish; + this._isFinished = true; + } + + // Token: 0x06000BF2 RID: 3058 RVA: 0x000376C8 File Offset: 0x000368C8 + private void GotoSkipNextProcess() + { + this.container.processManager.AddProcess(new CollectionProcess(this.container), 50); + this._state = CollectionGetProcess.State.Released; + this.container.processManager.ReleaseProcess(this); + } + + // Token: 0x06000BF3 RID: 3059 RVA: 0x00037700 File Offset: 0x00036900 + private void GotoNextProcess() + { + this.container.processManager.AddProcess(new FadeProcess(this.container, this, new CollectionProcess(this.container), FadeProcess.FadeType.Type3), 50); + this.container.processManager.ForceTimeUp(); + this.container.processManager.SetVisibleTimers(false); + this._state = CollectionGetProcess.State.Released; + } + + // Token: 0x06000BF4 RID: 3060 RVA: 0x00037760 File Offset: 0x00036960 + private void ViewFirstInfo(int monitorId) + { + if (this._monitors[monitorId]._windowMessageList.Count > 0) + { + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + this.container.processManager.EnqueueMessage(monitorId, this._monitors[monitorId]._windowMessageList[0], WindowPositionID.Middle, null); + WindowMessageID windowMessageID = this._monitors[monitorId]._windowMessageList[0]; + if (windowMessageID == WindowMessageID.GetMileFirst) + { + this._monitors[monitorId].SetInfoTimer(240U); + userData.Detail.ContentBit.SetFlag(ContentBitID.FirstGetMile, true); + } + } + else + { + this._monitors[monitorId].SetActiveInfo(false); + } + this._state = CollectionGetProcess.State.Update; + } + + // Token: 0x06000BF5 RID: 3061 RVA: 0x00003598 File Offset: 0x00002798 + private void CreateDummyData() + { + } + + // Token: 0x04000934 RID: 2356 + private CollectionGetMonitor[] _monitors; + + // Token: 0x04000935 RID: 2357 + private bool[] _isEntry; + + // Token: 0x04000936 RID: 2358 + private CollectionGetProcess.State _state; + + // Token: 0x04000937 RID: 2359 + private bool _isPassedInit; + + // Token: 0x04000938 RID: 2360 + private bool[] _isComplete; + + // Token: 0x04000939 RID: 2361 + private bool _isFinished; + + // Token: 0x02000A06 RID: 2566 + private enum State : byte + { + // Token: 0x040062B8 RID: 25272 + Init, + // Token: 0x040062B9 RID: 25273 + GotoEnd, + // Token: 0x040062BA RID: 25274 + StartAnim, + // Token: 0x040062BB RID: 25275 + Wait, + // Token: 0x040062BC RID: 25276 + Update, + // Token: 0x040062BD RID: 25277 + Finish, + // Token: 0x040062BE RID: 25278 + Released + } +} diff --git a/Assembly-CSharp/CollectionInfo.cs b/Assembly-CSharp/CollectionInfo.cs new file mode 100644 index 0000000..405d3d5 --- /dev/null +++ b/Assembly-CSharp/CollectionInfo.cs @@ -0,0 +1,338 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using Manager; + +// Token: 0x02000144 RID: 324 +public class CollectionInfo +{ + // Token: 0x06000AF3 RID: 2803 RVA: 0x0002E118 File Offset: 0x0002D318 + private CollectionData GetData(int category, int index) + { + int num = this._collectionIdList[category][index]; + return this.GetData(num); + } + + // Token: 0x06000AF4 RID: 2804 RVA: 0x0002E140 File Offset: 0x0002D340 + private CollectionData GetData(int targetId) + { + return this._collectionData.FirstOrDefault((CollectionData c) => c.GetID() == targetId); + } + + // Token: 0x17000112 RID: 274 + // (get) Token: 0x06000AF5 RID: 2805 RVA: 0x0002E171 File Offset: 0x0002D371 + // (set) Token: 0x06000AF6 RID: 2806 RVA: 0x0002E179 File Offset: 0x0002D379 + public int Index + { + get + { + return this._index; + } + set + { + this._index = value; + } + } + + // Token: 0x17000113 RID: 275 + // (get) Token: 0x06000AF7 RID: 2807 RVA: 0x0002E182 File Offset: 0x0002D382 + // (set) Token: 0x06000AF8 RID: 2808 RVA: 0x0002E18A File Offset: 0x0002D38A + public int CategoryIndex + { + get + { + return this._categoryIndex; + } + set + { + this._categoryIndex = value; + } + } + + // Token: 0x06000AF9 RID: 2809 RVA: 0x0002E193 File Offset: 0x0002D393 + public string CategoryName(int categoryIndex) + { + return this._tabData[categoryIndex].Title; + } + + // Token: 0x17000114 RID: 276 + // (get) Token: 0x06000AFA RID: 2810 RVA: 0x0002E1A6 File Offset: 0x0002D3A6 + // (set) Token: 0x06000AFB RID: 2811 RVA: 0x0002E1AE File Offset: 0x0002D3AE + public List TabData + { + get + { + return this._tabData; + } + set + { + this._tabData = value; + } + } + + // Token: 0x06000AFC RID: 2812 RVA: 0x0002E1B8 File Offset: 0x0002D3B8 + public void Initialize(List> collectionIdList, List data, List tabDatas, ICollectionProcess process, ICollectionMonitor monitor, bool newGet, int setItemId) + { + this._index = 0; + this._categoryIndex = 0; + this._collectionIdList = new List>(); + this._process = process; + this._monitor = monitor; + this._tabData = tabDatas; + this._collectionIdList = collectionIdList; + this._collectionData = data.AsReadOnly(); + if (!newGet) + { + for (int i = 0; i < this._collectionIdList.Count; i++) + { + for (int j = 0; j < this._collectionIdList[i].Count; j++) + { + if (this._collectionIdList[i][j] == setItemId) + { + this._categoryIndex = i; + this._index = j; + break; + } + } + } + } + } + + // Token: 0x06000AFD RID: 2813 RVA: 0x0002E264 File Offset: 0x0002D464 + public void SetCategoryIndexAndItemIndexWithItemId(int setItemId) + { + for (int i = 0; i < this._collectionIdList.Count; i++) + { + for (int j = 0; j < this._collectionIdList[i].Count; j++) + { + if (this._collectionIdList[i][j] == setItemId) + { + this._categoryIndex = i; + this._index = j; + break; + } + } + } + } + + // Token: 0x06000AFE RID: 2814 RVA: 0x00003598 File Offset: 0x00002798 + public void RefreshIndex() + { + } + + // Token: 0x06000AFF RID: 2815 RVA: 0x0002E2C8 File Offset: 0x0002D4C8 + private void ScrollRight() + { + if (this._index + 1 < this.GetIndexNum()) + { + this._index++; + return; + } + this._categoryIndex = ((this._categoryIndex + 1 < this.GetCategoryNum()) ? (this._categoryIndex + 1) : (this._categoryIndex = 0)); + this._index = 0; + } + + // Token: 0x06000B00 RID: 2816 RVA: 0x0002E328 File Offset: 0x0002D528 + private void ScrollLeft() + { + if (0 <= this._index - 1) + { + this._index--; + return; + } + this._categoryIndex = ((this._categoryIndex - 1 < 0) ? (this.GetCategoryNum() - 1) : (this._categoryIndex - 1)); + this._index = this.GetIndexNum() - 1; + } + + // Token: 0x06000B01 RID: 2817 RVA: 0x0002E380 File Offset: 0x0002D580 + private void ChangeCategoryRight() + { + if (this._categoryIndex + 1 < this.GetCategoryNum()) + { + this._categoryIndex++; + } + else + { + this._categoryIndex = 0; + } + this._index = 0; + } + + // Token: 0x06000B02 RID: 2818 RVA: 0x0002E3B0 File Offset: 0x0002D5B0 + private void ChangeCategoryLeft() + { + if (this._categoryIndex - 1 < 0) + { + this._categoryIndex = this.GetCategoryNum() - 1; + } + else + { + this._categoryIndex--; + } + this._index = this.GetIndexNum() - 1; + } + + // Token: 0x06000B03 RID: 2819 RVA: 0x0002E3E9 File Offset: 0x0002D5E9 + public int GetAllCollectionNum() + { + return this._collectionData.Count((CollectionData c) => c.IsHave); + } + + // Token: 0x06000B04 RID: 2820 RVA: 0x0002E415 File Offset: 0x0002D615 + private int GetCategoryNum() + { + return this._collectionIdList.Count; + } + + // Token: 0x06000B05 RID: 2821 RVA: 0x0002E424 File Offset: 0x0002D624 + public int GetCurrentIndex() + { + int num = 0; + for (int i = 0; i < this._categoryIndex; i++) + { + num += this._collectionIdList[i].Count; + } + return this._index + num; + } + + // Token: 0x06000B06 RID: 2822 RVA: 0x0002E460 File Offset: 0x0002D660 + public int GetIndexNum() + { + return this._collectionIdList[this.CategoryIndex].Count; + } + + // Token: 0x06000B07 RID: 2823 RVA: 0x0002E478 File Offset: 0x0002D678 + public bool IsHaveNewIcon() + { + return this._collectionData.Any((CollectionData data) => data.IsNew); + } + + // Token: 0x06000B08 RID: 2824 RVA: 0x0002E4A4 File Offset: 0x0002D6A4 + public CollectionData GetCurrentCenterCollectionData() + { + return this.GetData(this.CategoryIndex, this.Index); + } + + // Token: 0x06000B09 RID: 2825 RVA: 0x0002E4B8 File Offset: 0x0002D6B8 + public CollectionData GetCollectionById(int targetId) + { + return this.GetData(targetId); + } + + // Token: 0x06000B0A RID: 2826 RVA: 0x0002E4C4 File Offset: 0x0002D6C4 + public CollectionData GetCollection(int diffIndex) + { + int i = this._index + diffIndex; + int num = this._categoryIndex; + while (i >= this._collectionIdList[num].Count) + { + i -= this._collectionIdList[num].Count; + num = ((num + 1 < this._collectionIdList.Count) ? (num + 1) : 0); + } + while (i < 0) + { + num = ((num - 1 >= 0) ? (num - 1) : (this._collectionIdList.Count - 1)); + i = this._collectionIdList[num].Count + i; + } + return this.GetData(num, i); + } + + // Token: 0x06000B0B RID: 2827 RVA: 0x0002E560 File Offset: 0x0002D760 + public bool IsCollectionBoundary(int diffIndex, out int overCount) + { + int i = this._index + diffIndex; + int num = this._categoryIndex; + overCount = 0; + if (i >= this._collectionIdList[num].Count) + { + while (i >= this._collectionIdList[num].Count) + { + i = i - this._collectionIdList[num].Count - 1; + num = ((num + 1 < this._collectionIdList.Count) ? (num + 1) : 0); + overCount++; + } + } + else if (i < -1) + { + while (i < -1) + { + overCount--; + num = ((num - 1 > 0) ? (num - 1) : (this._collectionIdList.Count - 1)); + i = this._collectionIdList[num].Count + 1 + i; + } + } + return i == this._collectionIdList[num].Count || i == -1; + } + + // Token: 0x06000B0C RID: 2828 RVA: 0x0002E638 File Offset: 0x0002D838 + public bool CollectionListLeft(bool isLongTap) + { + this.ScrollRight(); + return this._monitor.ScrollCollectionListLeft(isLongTap); + } + + // Token: 0x06000B0D RID: 2829 RVA: 0x0002E64C File Offset: 0x0002D84C + public bool CollectionListRight(bool isLongTap) + { + this.ScrollLeft(); + return this._monitor.ScrollCollectionListRight(isLongTap); + } + + // Token: 0x06000B0E RID: 2830 RVA: 0x0002E660 File Offset: 0x0002D860 + public void ShiftCategoryRight() + { + this.ChangeCategoryLeft(); + this._monitor.ScrollCategoryLeft(); + } + + // Token: 0x06000B0F RID: 2831 RVA: 0x0002E673 File Offset: 0x0002D873 + public void ShiftCategoryLeft() + { + this.ChangeCategoryRight(); + this._monitor.ScrollCategoryRight(); + } + + // Token: 0x06000B10 RID: 2832 RVA: 0x0002E688 File Offset: 0x0002D888 + public void CheckSetButton(int equipItemId) + { + CollectionData currentCenterCollectionData = this.GetCurrentCenterCollectionData(); + if (currentCenterCollectionData == null || !currentCenterCollectionData.IsHave || equipItemId == currentCenterCollectionData.ID) + { + this._monitor.SetVisibleButton(false, new int[] { 2 }); + return; + } + this._monitor.SetVisibleButton(true, new int[] { 2 }); + } + + // Token: 0x06000B11 RID: 2833 RVA: 0x0002E6E0 File Offset: 0x0002D8E0 + public void UpdateFavoriteDetail(UserData.Collection type) + { + CollectionData currentCenterCollectionData = this.GetCurrentCenterCollectionData(); + if (currentCenterCollectionData != null && !currentCenterCollectionData.IsFavorite) + { + this._monitor.UpdateFavoriteCollection(type, currentCenterCollectionData.IsFavorite); + } + } + + // Token: 0x040008F9 RID: 2297 + private List> _collectionIdList; + + // Token: 0x040008FA RID: 2298 + private ReadOnlyCollection _collectionData; + + // Token: 0x040008FB RID: 2299 + private int _index; + + // Token: 0x040008FC RID: 2300 + private int _categoryIndex; + + // Token: 0x040008FD RID: 2301 + private List _tabData = new List(); + + // Token: 0x040008FE RID: 2302 + private ICollectionProcess _process; + + // Token: 0x040008FF RID: 2303 + private ICollectionMonitor _monitor; +} diff --git a/Assembly-CSharp/CollectionInfoButtonController.cs b/Assembly-CSharp/CollectionInfoButtonController.cs new file mode 100644 index 0000000..23d3721 --- /dev/null +++ b/Assembly-CSharp/CollectionInfoButtonController.cs @@ -0,0 +1,31 @@ +using System; +using Manager; +using UI; +using UnityEngine; + +// Token: 0x02000061 RID: 97 +public class CollectionInfoButtonController : ButtonControllerBase +{ + // Token: 0x0600030B RID: 779 RVA: 0x0000C3F8 File Offset: 0x0000B5F8 + public override void Initialize(int monitorIndex) + { + base.Initialize(monitorIndex); + this.CommonButtons = new CommonButtonObject[this._positions.Length]; + ButtonControllerBase.FlatButtonType flatButtonType = ButtonControllerBase.FlatButtonType.Skip; + this.CommonButtons[0] = Object.Instantiate(CommonPrefab.GetFlatButtonObject(), this._positions[0]); + this.CommonButtons[0].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(flatButtonType).LedColor); + this.CommonButtons[0].SetSymbol(ButtonControllerBase.GetFlatButtonParam(flatButtonType).Image, false); + this.CommonButtons[0].SetSE(ButtonControllerBase.GetFlatButtonParam(flatButtonType).Cue); + } + + // Token: 0x0600030C RID: 780 RVA: 0x0000C48C File Offset: 0x0000B68C + public void ChangeFlatButtonSymbol(int index, int spriteNum) + { + if (this.CommonButtons[index] != null) + { + this.CommonButtons[index].SetSymbol(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).Image, false); + this.CommonButtons[index].ChangeColor(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).LedColor, false); + this.CommonButtons[index].SetSE(ButtonControllerBase.GetFlatButtonParam((ButtonControllerBase.FlatButtonType)spriteNum).Cue); + } + } +} diff --git a/Assembly-CSharp/CollectionListAnimationController.cs b/Assembly-CSharp/CollectionListAnimationController.cs new file mode 100644 index 0000000..6b8892b --- /dev/null +++ b/Assembly-CSharp/CollectionListAnimationController.cs @@ -0,0 +1,104 @@ +using System; +using UnityEngine; + +// Token: 0x02000062 RID: 98 +public class CollectionListAnimationController : MonoBehaviour +{ + // Token: 0x0600030E RID: 782 RVA: 0x0000C4F3 File Offset: 0x0000B6F3 + public void Initialize() + { + this._listAnimator.Rebind(); + } + + // Token: 0x0600030F RID: 783 RVA: 0x0000C500 File Offset: 0x0000B700 + public void SetEnable(bool isActive) + { + this._listAnimator.enabled = isActive; + } + + // Token: 0x06000310 RID: 784 RVA: 0x0000C50E File Offset: 0x0000B70E + public void SetFloat(float rate) + { + this._listAnimator.SetFloat(CollectionListAnimationController.HashValueSyncTimer, rate); + } + + // Token: 0x06000311 RID: 785 RVA: 0x0000C524 File Offset: 0x0000B724 + public float GetAnimationLength() + { + return this._listAnimator.GetCurrentAnimatorStateInfo(0).length; + } + + // Token: 0x06000312 RID: 786 RVA: 0x0000C548 File Offset: 0x0000B748 + public void SetSlideOutAnim(CollectionListAnimationController.AnimationType type) + { + switch (type) + { + case CollectionListAnimationController.AnimationType.ToRight: + this._listAnimator.SetTrigger(CollectionListAnimationController.HashValueSlideOutToRight); + return; + case CollectionListAnimationController.AnimationType.ToLeft: + this._listAnimator.SetTrigger(CollectionListAnimationController.HashValueSlideOutToLeft); + return; + case CollectionListAnimationController.AnimationType.ToUpper: + this._listAnimator.SetTrigger(CollectionListAnimationController.HashValueSlideOutToLower); + return; + default: + return; + } + } + + // Token: 0x06000313 RID: 787 RVA: 0x0000C59C File Offset: 0x0000B79C + public void SetSlideInAnim(CollectionListAnimationController.AnimationType type) + { + switch (type) + { + case CollectionListAnimationController.AnimationType.ToRight: + this._listAnimator.SetTrigger(CollectionListAnimationController.HashValueSlideInToRight); + return; + case CollectionListAnimationController.AnimationType.ToLeft: + this._listAnimator.SetTrigger(CollectionListAnimationController.HashValueSlideInToLeft); + return; + case CollectionListAnimationController.AnimationType.ToUpper: + this._listAnimator.SetTrigger(CollectionListAnimationController.HashValueSlideInToUpper); + return; + default: + return; + } + } + + // Token: 0x040001FE RID: 510 + private static readonly int HashValueSyncTimer = Animator.StringToHash("SyncTimer"); + + // Token: 0x040001FF RID: 511 + private static readonly int HashValueSlideInToLeft = Animator.StringToHash("IsSlideInToLeft"); + + // Token: 0x04000200 RID: 512 + private static readonly int HashValueSlideInToRight = Animator.StringToHash("IsSlideInToRight"); + + // Token: 0x04000201 RID: 513 + private static readonly int HashValueSlideOutToLeft = Animator.StringToHash("IsSlideOutToLeft"); + + // Token: 0x04000202 RID: 514 + private static readonly int HashValueSlideOutToRight = Animator.StringToHash("IsSlideOutToRight"); + + // Token: 0x04000203 RID: 515 + private static readonly int HashValueSlideInToUpper = Animator.StringToHash("IsSlideInToUpper"); + + // Token: 0x04000204 RID: 516 + private static readonly int HashValueSlideOutToLower = Animator.StringToHash("IsSlideOutToLower"); + + // Token: 0x04000205 RID: 517 + [SerializeField] + private Animator _listAnimator; + + // Token: 0x02000966 RID: 2406 + public enum AnimationType + { + // Token: 0x04005F9E RID: 24478 + ToRight, + // Token: 0x04005F9F RID: 24479 + ToLeft, + // Token: 0x04005FA0 RID: 24480 + ToUpper + } +} diff --git a/Assembly-CSharp/CollectionMonitor.cs b/Assembly-CSharp/CollectionMonitor.cs new file mode 100644 index 0000000..afe675f --- /dev/null +++ b/Assembly-CSharp/CollectionMonitor.cs @@ -0,0 +1,1058 @@ +using System; +using System.Collections.Generic; +using DB; +using IO; +using Mai2.Mai2Cue; +using MAI2.Util; +using Mai2.Voice_000001; +using Manager; +using Manager.MaiStudio; +using UI; +using UI.Common; +using UI.DaisyChainList; +using UnityEngine; +using UnityEngine.UI; +using Util; + +// Token: 0x02000064 RID: 100 +public class CollectionMonitor : MonitorBase, ICollectionMonitor +{ + // Token: 0x1700006A RID: 106 + // (get) Token: 0x0600031E RID: 798 RVA: 0x0000C666 File Offset: 0x0000B866 + // (set) Token: 0x0600031F RID: 799 RVA: 0x0000C66E File Offset: 0x0000B86E + public bool cameFromPartnerPresent { get; set; } + + // Token: 0x1700006B RID: 107 + // (get) Token: 0x06000320 RID: 800 RVA: 0x0000C677 File Offset: 0x0000B877 + // (set) Token: 0x06000321 RID: 801 RVA: 0x0000C67F File Offset: 0x0000B87F + public bool timeUp { get; set; } + + // Token: 0x1700006C RID: 108 + // (get) Token: 0x06000322 RID: 802 RVA: 0x0000C688 File Offset: 0x0000B888 + // (set) Token: 0x06000323 RID: 803 RVA: 0x0000C690 File Offset: 0x0000B890 + public bool shopPartnerWindowOpened { get; set; } + + // Token: 0x1700006D RID: 109 + // (get) Token: 0x06000324 RID: 804 RVA: 0x0000C699 File Offset: 0x0000B899 + // (set) Token: 0x06000325 RID: 805 RVA: 0x0000C6A1 File Offset: 0x0000B8A1 + public bool partnerRoomRewardWindowOpened { get; set; } + + // Token: 0x1700006E RID: 110 + // (get) Token: 0x06000327 RID: 807 RVA: 0x0000C6B3 File Offset: 0x0000B8B3 + // (set) Token: 0x06000326 RID: 806 RVA: 0x0000C6AA File Offset: 0x0000B8AA + public List newRewardList { get; set; } = new List(); + + // Token: 0x06000328 RID: 808 RVA: 0x0000C6BB File Offset: 0x0000B8BB + private void Awake() + { + this._collectionAcquitionPlate = Object.Instantiate(this._colletionAcquitionPlateObj, this._collectionAcquitionParent).GetComponent(); + this._maiMaileAcquisitionPlate = Object.Instantiate(this._maiMaileAcquisitionPlateObj, this._maiMaileAcquisitionParent).GetComponent(); + } + + // Token: 0x06000329 RID: 809 RVA: 0x0000C6F5 File Offset: 0x0000B8F5 + public void PrevInit(ICollectionProcess collectionProcess, AssetManager manager) + { + this._process = collectionProcess; + this._assetManager = manager; + } + + // Token: 0x0600032A RID: 810 RVA: 0x0000C708 File Offset: 0x0000B908 + public void SetVisibleTrialUserBlur(bool isActive = true) + { + GameObject gameObject = this.Main.gameObject; + int childCount = gameObject.transform.childCount; + gameObject.SetActive(true); + for (int i = 0; i < childCount; i++) + { + gameObject.transform.GetChild(i).gameObject.SetActive(false); + } + this._blur.gameObject.SetActive(true); + this.SetVisibleBlur(isActive); + } + + // Token: 0x0600032B RID: 811 RVA: 0x0000C770 File Offset: 0x0000B970 + public void Initialize(int monIndex, bool active, CollectionProcess.SubSequence subSequence) + { + base.Initialize(monIndex, active); + if (this.IsActive()) + { + MechaManager.LedIf[monIndex].ButtonLedReset(); + } + if (!active) + { + this.Main.gameObject.SetActive(false); + this.Sub.gameObject.SetActive(false); + } + this._partnerRoom = Object.Instantiate(this._partnerRoomObj, this._partnerRoomParent).GetComponent(); + this._buttonController.intimateButtonPlus = this._partnerRoom.GetIntimateButtonPlus(); + this._buttonController.intimateButtonMinus = this._partnerRoom.GetIntimateButtonMinus(); + this._buttonController.Initialize(monIndex); + this._buttonInfoController.Initialize(monIndex); + if (active) + { + this._buttonController.SetVisibleImmediate(false, new int[] { 4 }); + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + } + this._partnerRoom.gameObject.SetActive(false); + this.SetVisibleBlur(subSequence > CollectionProcess.SubSequence.SelectCollectionType); + if (active) + { + this._collectionTabController.Initialize(monIndex); + this._collectionChainList.Initialize(); + this._collectionChainList.AdvancedInitialize(this._process, this._assetManager, monIndex); + this._collectionChainList.Deploy(); + this._selectorBgController = Object.Instantiate(this._originalSelectorBackgroundObject, this._selectorBackgroundObjectTargetParent).GetComponent(); + this._selectorBaseColors = new Color[8]; + for (int i = 0; i < 8; i++) + { + this._selectorBaseColors[i] = Utility.ConvertColor(((CollectionGenreID)i).GetMainColor()); + } + this._collectionAcquitionPlate.Prepare(CollectionProcess.SubSequence.SelectCollectionType, this._process.GetTotalCollectionNum(monIndex)); + if (this._process.CurrentColletionType(base.MonitorIndex) == CollectionGenreID.Shop) + { + this._collectionAcquitionPlate.gameObject.SetActive(false); + this._maiMaileAcquisitionPlate.gameObject.SetActive(true); + this.UpdateMaiMaileAcquitionPlateNum(); + } + else + { + this._collectionAcquitionPlate.gameObject.SetActive(true); + this._maiMaileAcquisitionPlate.gameObject.SetActive(false); + } + this.SetVisibleIndicator(false); + this.SetScrollMessage(CommonMessageID.Scroll_Collection_Top.GetName()); + this.SetVisibleTitleImage(true); + this.SetVisibleExitImage(true); + this._customInfoAnimController.gameObject.SetActive(true); + this._customInfoAnimController.Play("In"); + } + } + + // Token: 0x0600032C RID: 812 RVA: 0x0000C9B0 File Offset: 0x0000BBB0 + public void StartAnimation(CollectionGenreID current, CollectionProcess.SubSequence subSequence) + { + this.SetSelectorBaseColor(current); + this._buttonInfoController.SetVisibleImmediate(false, new int[1]); + this._buttonController.SetVisibleImmediate(false, new int[] { 4, 5 }); + if (subSequence == CollectionProcess.SubSequence.Information) + { + this._buttonController.SetVisibleImmediate(false, new int[] { 0, 1, 2, 3 }); + base.Invoke("DisplayInfoButton", 3f); + } + else + { + this._buttonController.SetVisibleImmediate(false, new int[] { 3 }); + this._buttonController.SetVisibleImmediate(true, new int[] { 2 }); + this.SetSelectionButton(); + } + if (current == CollectionGenreID.Exit || current == CollectionGenreID.ExitLeft) + { + this.SetVisibleExitImage(false); + return; + } + this.SetVisibleExitImage(true); + } + + // Token: 0x0600032D RID: 813 RVA: 0x0000CA6C File Offset: 0x0000BC6C + public override void ViewUpdate() + { + this._buttonController.ViewUpdate((float)GameManager.GetGameMSecAdd()); + this.UpdateListSlideAnimation(); + this._collectionChainList.ViewUpdate(); + this.UpdateIndicator(); + this.UpdateScroll(); + this._collectionTabController.UpdateButtonAnimation(); + } + + // Token: 0x0600032E RID: 814 RVA: 0x0000CAA8 File Offset: 0x0000BCA8 + private void UpdateListSlideAnimation() + { + if (this._isAnimation) + { + this._syncTimer += (float)GameManager.GetGameMSecAdd(); + if (this._syncTimer / this._duration >= 1f) + { + if (!this._isStartSlideIn) + { + this.ReDeploy(); + this.PrepareSlideInAnim(this._animationType); + this._isStartSlideIn = true; + this._syncTimer = 0f; + return; + } + this._isAnimation = false; + } + } + } + + // Token: 0x0600032F RID: 815 RVA: 0x0000CB18 File Offset: 0x0000BD18 + private void ReDeploy() + { + this._collectionChainList.Deploy(); + } + + // Token: 0x06000330 RID: 816 RVA: 0x0000CB18 File Offset: 0x0000BD18 + public void ReDeployOnShop() + { + this._collectionChainList.Deploy(); + } + + // Token: 0x06000331 RID: 817 RVA: 0x0000CB28 File Offset: 0x0000BD28 + public void ChangeSubSequence(CollectionProcess.SubSequence subSequence) + { + this.PrepareSlideOutAnim(CollectionListAnimationController.AnimationType.ToUpper); + this.SetCollectionAcquitionPlate(subSequence); + switch (subSequence) + { + case CollectionProcess.SubSequence.SelectCollectionType: + this.SetTitleAndInfoImage(CollectionMonitor.TitleTable.Collection); + if (this.cameFromPartnerPresent) + { + this.cameFromPartnerPresent = false; + this.ReturnCollectionGenreIDFromPartnerRoom(this._prevSubSequence); + } + else + { + this.ReturnCollectionGenreID(this._prevSubSequence); + } + break; + case CollectionProcess.SubSequence.Title: + this.CommonCollectionGenreID2Collection(); + this.SetTitleAndInfoImage(CollectionMonitor.TitleTable.Collection); + this.CreateAnnounceMessage(subSequence); + SoundManager.PlayVoice(Mai2.Voice_000001.Cue.VO_000159, base.MonitorIndex); + break; + case CollectionProcess.SubSequence.Icon: + this.CommonCollectionGenreID2Collection(); + this.SetTitleAndInfoImage(CollectionMonitor.TitleTable.Collection); + this.CreateAnnounceMessage(subSequence); + SoundManager.PlayVoice(Mai2.Voice_000001.Cue.VO_000157, base.MonitorIndex); + break; + case CollectionProcess.SubSequence.NamePlate: + this.CommonCollectionGenreID2Collection(); + this.SetTitleAndInfoImage(CollectionMonitor.TitleTable.Collection); + this.CreateAnnounceMessage(subSequence); + SoundManager.PlayVoice(Mai2.Voice_000001.Cue.VO_000158, base.MonitorIndex); + break; + case CollectionProcess.SubSequence.Frame: + this.CommonCollectionGenreID2Collection(); + this.SetTitleAndInfoImage(CollectionMonitor.TitleTable.Collection); + this.CreateAnnounceMessage(subSequence); + SoundManager.PlayVoice(Mai2.Voice_000001.Cue.VO_000253, base.MonitorIndex); + break; + case CollectionProcess.SubSequence.Prtner: + if (this.cameFromPartnerPresent) + { + this.cameFromPartnerPresent = false; + this.PartnerCollectionGenreID2Collection(); + } + else + { + this.CommonCollectionGenreID2Collection(); + } + this.SetTitleAndInfoImage(CollectionMonitor.TitleTable.Collection); + this._customInfoImage.ChangeSprite(2); + this.CreateAnnounceMessage(subSequence); + SoundManager.PlayVoice(Mai2.Voice_000001.Cue.VO_000247, base.MonitorIndex); + break; + case CollectionProcess.SubSequence.PartnerPresent: + this.SetTitleAndInfoImage(CollectionMonitor.TitleTable.Collection); + this._partnerRoom.InPartnerRoom(); + this._buttonController.SetVisibleImmediate(false, new int[] { 4 }); + this._buttonController.SetVisibleImmediate(false, new int[] { 5 }); + break; + case CollectionProcess.SubSequence.PartnerPresentConfirm: + this.SetTitleAndInfoImage(CollectionMonitor.TitleTable.Collection); + this._partnerRoom.InPartnerDialog(); + break; + } + this._prevSubSequence = subSequence; + } + + // Token: 0x06000332 RID: 818 RVA: 0x0000CCFA File Offset: 0x0000BEFA + public void InitalizeShopMonitor() + { + this.ShopCollectionGenreID2Collection(); + this.SetTitleAndInfoImage(CollectionMonitor.TitleTable.Shop); + this.CreateAnnounceMessage(CollectionProcess.SubSequence.Shop); + SoundManager.PlaySE(Mai2.Mai2Cue.Cue.SE_COLLECTION_MILE_SHOP, base.MonitorIndex); + } + + // Token: 0x06000333 RID: 819 RVA: 0x0000CD21 File Offset: 0x0000BF21 + public void OutPartnerRoom() + { + this._partnerRoom.OutPartnerRoom(); + } + + // Token: 0x06000334 RID: 820 RVA: 0x0000CD2E File Offset: 0x0000BF2E + public void OutPartnerRoomDialog() + { + this._partnerRoom.OutPartnerDialog(); + } + + // Token: 0x06000335 RID: 821 RVA: 0x0000CD3B File Offset: 0x0000BF3B + public void SetPartnerRoomActive(bool active) + { + this._partnerRoom.gameObject.SetActive(active); + } + + // Token: 0x06000336 RID: 822 RVA: 0x0000CD4E File Offset: 0x0000BF4E + public void CreatePartner(int id) + { + this._partnerRoom.CreatePartner(id); + } + + // Token: 0x06000337 RID: 823 RVA: 0x0000CD5C File Offset: 0x0000BF5C + public void SetPartnerName(string name) + { + this._partnerRoom.SetPartnerName(name); + } + + // Token: 0x06000338 RID: 824 RVA: 0x0000CD6A File Offset: 0x0000BF6A + public void SetPresentConfirmMessageText(string name, int presentNum) + { + this._partnerRoom.SetPresentConfirmMessageText(name, presentNum); + } + + // Token: 0x06000339 RID: 825 RVA: 0x0000CD79 File Offset: 0x0000BF79 + public void PlayPartnerEmotionEffectOnceTime() + { + this._partnerRoom.PlayPartnerEmotionEffectOnceTime(); + } + + // Token: 0x0600033A RID: 826 RVA: 0x0000CD86 File Offset: 0x0000BF86 + public void PlayPartnerFunLoopOnceTime() + { + this._partnerRoom.PlayPartnerFunLoopOnceTime(); + } + + // Token: 0x0600033B RID: 827 RVA: 0x0000CD93 File Offset: 0x0000BF93 + public void PlayPartnerFunStart() + { + this._partnerRoom.PlayPartnerFunStart(); + } + + // Token: 0x0600033C RID: 828 RVA: 0x0000CDA0 File Offset: 0x0000BFA0 + public void StartIntimateAnimation(int startNum, int endNum) + { + this._partnerRoom.StartIntimateAnimation(startNum, endNum); + } + + // Token: 0x0600033D RID: 829 RVA: 0x0000CDAF File Offset: 0x0000BFAF + public void UpdateDisplayIntimateNumText(int displayIntimateNum) + { + this._partnerRoom.UpdateDisplayIntimateNumText(displayIntimateNum); + } + + // Token: 0x0600033E RID: 830 RVA: 0x0000CDC0 File Offset: 0x0000BFC0 + public void SetCollectionAcquitionPlate(CollectionProcess.SubSequence subSequence) + { + int num = 0; + bool flag = true; + this._collectionAcquitionPlate.gameObject.SetActive(true); + this._maiMaileAcquisitionPlate.gameObject.SetActive(false); + switch (subSequence) + { + case CollectionProcess.SubSequence.SelectCollectionType: + num = this._process.GetTotalCollectionNum(base.MonitorIndex); + if (this._process.CurrentColletionType(base.MonitorIndex) == CollectionGenreID.Shop) + { + this._collectionAcquitionPlate.gameObject.SetActive(false); + this._maiMaileAcquisitionPlate.gameObject.SetActive(true); + } + break; + case CollectionProcess.SubSequence.Title: + num = this._process.GetAllTitleNum(base.MonitorIndex); + break; + case CollectionProcess.SubSequence.Icon: + num = this._process.GetAllIconNum(base.MonitorIndex); + break; + case CollectionProcess.SubSequence.NamePlate: + num = this._process.GetAllPlateNum(base.MonitorIndex); + break; + case CollectionProcess.SubSequence.Frame: + num = this._process.GetAllFrameNum(base.MonitorIndex); + break; + case CollectionProcess.SubSequence.Prtner: + num = this._process.GetAllPartnerNum(base.MonitorIndex); + break; + case CollectionProcess.SubSequence.Shop: + this._collectionAcquitionPlate.gameObject.SetActive(false); + this._maiMaileAcquisitionPlate.gameObject.SetActive(true); + break; + case CollectionProcess.SubSequence.ShopPartnerGetWindow: + case CollectionProcess.SubSequence.ShopPartnerSetDialog: + case CollectionProcess.SubSequence.PartnerPresent: + case CollectionProcess.SubSequence.PartnerPresentConfirm: + case CollectionProcess.SubSequence.PartnerPresentReward: + flag = false; + break; + } + if (flag) + { + this._collectionAcquitionPlate.Prepare(subSequence, num); + this.UpdateMaiMaileAcquitionPlateNum(); + return; + } + this._collectionAcquitionPlate.gameObject.SetActive(false); + this._maiMaileAcquisitionPlate.gameObject.SetActive(false); + } + + // Token: 0x0600033F RID: 831 RVA: 0x0000CF44 File Offset: 0x0000C144 + public void UpdateMaiMaileAcquitionPlateNum() + { + UserData userData = Singleton.Instance.GetUserData((long)base.MonitorIndex); + if (userData != null) + { + this._maiMaileAcquisitionPlate.SetMaiMaileNum(userData.Detail.Point); + } + } + + // Token: 0x06000340 RID: 832 RVA: 0x0000CF7C File Offset: 0x0000C17C + public void ScrollInitialCollection() + { + this._collectionChainList.Scroll(Direction.Left); + this.SetScrollCard(false); + } + + // Token: 0x06000341 RID: 833 RVA: 0x0000CF94 File Offset: 0x0000C194 + public bool ScrollCollectionListRight(bool isLongTap) + { + bool flag = false; + if (this._collectionChainList.IsCrossBoundary(Direction.Right)) + { + if (isLongTap) + { + this.ReDeploy(); + } + else + { + this.PrepareSlideOutAnim(CollectionListAnimationController.AnimationType.ToRight); + flag = true; + } + this.PrepareIndicator(); + this._collectionTabController.Change(this._process.CurrentCategoryIndex(base.MonitorIndex), Direction.Right); + } + else + { + this._collectionChainList.Scroll(Direction.Right); + } + this._buttonController.SetAnimationActive(1); + this.SetScrollCard(isLongTap); + return flag; + } + + // Token: 0x06000342 RID: 834 RVA: 0x0000D00C File Offset: 0x0000C20C + public bool ScrollCollectionListLeft(bool isLongTap) + { + bool flag = false; + if (this._collectionChainList.IsCrossBoundary(Direction.Left)) + { + if (isLongTap) + { + this.ReDeploy(); + } + else + { + this.PrepareSlideOutAnim(CollectionListAnimationController.AnimationType.ToLeft); + flag = true; + } + this.PrepareIndicator(); + this._collectionTabController.Change(this._process.CurrentCategoryIndex(base.MonitorIndex), Direction.Left); + } + else + { + this._collectionChainList.Scroll(Direction.Left); + } + this._buttonController.SetAnimationActive(0); + this.SetScrollCard(isLongTap); + return flag; + } + + // Token: 0x06000343 RID: 835 RVA: 0x0000D083 File Offset: 0x0000C283 + public void ScrollCategoryRight() + { + this._collectionTabController.Change(this._process.CurrentCategoryIndex(base.MonitorIndex), Direction.Left); + this._collectionTabController.PressedTabButton(true); + this.PrepareIndicator(); + this.PrepareSlideOutAnim(CollectionListAnimationController.AnimationType.ToRight); + } + + // Token: 0x06000344 RID: 836 RVA: 0x0000D0BB File Offset: 0x0000C2BB + public void ScrollCategoryLeft() + { + this._collectionTabController.Change(this._process.CurrentCategoryIndex(base.MonitorIndex), Direction.Right); + this._collectionTabController.PressedTabButton(false); + this.PrepareIndicator(); + this.PrepareSlideOutAnim(CollectionListAnimationController.AnimationType.ToLeft); + } + + // Token: 0x06000345 RID: 837 RVA: 0x0000D0F3 File Offset: 0x0000C2F3 + public void SetScrollCard(bool isVisible) + { + this._collectionChainList.SetScrollCard(isVisible); + } + + // Token: 0x06000346 RID: 838 RVA: 0x0000D104 File Offset: 0x0000C304 + private void ReturnCollectionGenreID(CollectionProcess.SubSequence subSequence) + { + this._buttonController.SetVisible(false, new int[] { 3 }); + this._buttonController.SetAnimationActive(3); + if (this._process.CurrentColletionType(this.monitorIndex) == CollectionGenreID.Shop) + { + this._buttonController.ChangeFlatButtonSymbol(2, 5); + } + else + { + this._buttonController.ChangeFlatButtonSymbol(2, 24); + } + this._collectionChainList.SetScrollCard(false); + this._collectionTabController.PlayOutAnimation(); + this.SetVisibleIndicator(false); + this.SetCollectionGenreIDListButton(this._process.ConvertToCollectionGenreID(subSequence)); + this.SetSelectorBaseColorWithSubSequenceId(subSequence); + this.SetVisibleTitleImage(true); + this.SetVisibleExitImage(true); + this.SetScrollMessage(CommonMessageID.Scroll_Collection_Top.GetName()); + this._customInfoAnimController.gameObject.SetActive(true); + } + + // Token: 0x06000347 RID: 839 RVA: 0x0000D1C8 File Offset: 0x0000C3C8 + private void ReturnCollectionGenreIDFromPartnerRoom(CollectionProcess.SubSequence subSequence) + { + this._buttonController.ChangeFlatButtonSymbol(2, 24); + this._collectionChainList.SetScrollCard(false); + this._collectionTabController.PlayOutAnimation(); + this.SetVisibleIndicator(false); + this.SetCollectionGenreIDListButton(this._process.ConvertToCollectionGenreID(subSequence)); + this.SetSelectorBaseColorWithSubSequenceId(subSequence); + this.SetVisibleTitleImage(true); + this.SetVisibleExitImage(true); + this.SetScrollMessage(CommonMessageID.Scroll_Collection_Top.GetName()); + this._customInfoAnimController.gameObject.SetActive(true); + } + + // Token: 0x06000348 RID: 840 RVA: 0x0000D248 File Offset: 0x0000C448 + private void CommonCollectionGenreID2Collection() + { + this._buttonController.SetAnimationActive(2); + this._buttonController.SetVisible(true, new int[] { 0, 1 }); + this._buttonController.ChangeFlatButtonSymbol(3, 6); + this._buttonController.ChangeFlatButtonSymbol(2, 20); + this._collectionTabController.CollectionType2Collection(this._process.GetTabDatas(base.MonitorIndex), this._process.CurrentCategoryIndex(base.MonitorIndex)); + this.SetVisibleIndicator(true); + this.PrepareIndicator(); + this.SetVisibleExitImage(false); + this._customInfoAnimController.gameObject.SetActive(true); + } + + // Token: 0x06000349 RID: 841 RVA: 0x0000D2E4 File Offset: 0x0000C4E4 + private void PartnerCollectionGenreID2Collection() + { + this._collectionTabController.CollectionType2Collection(this._process.GetTabDatas(base.MonitorIndex), this._process.CurrentCategoryIndex(base.MonitorIndex)); + this.SetVisibleIndicator(true); + this.PrepareIndicator(); + this.SetVisibleExitImage(false); + this._customInfoAnimController.gameObject.SetActive(true); + } + + // Token: 0x0600034A RID: 842 RVA: 0x0000D344 File Offset: 0x0000C544 + private void ShopCollectionGenreID2Collection() + { + this._buttonController.SetAnimationActive(2); + this._buttonController.ChangeFlatButtonSymbol(3, 6); + this._buttonController.ChangeFlatButtonSymbol(2, 36); + this._collectionTabController.CollectionType2Collection(this._process.GetTabDatas(base.MonitorIndex), this._process.CurrentCategoryIndex(base.MonitorIndex)); + this.SetVisibleIndicator(true); + this.PrepareIndicator(); + this.SetVisibleExitImage(false); + this._customInfoAnimController.gameObject.SetActive(true); + } + + // Token: 0x0600034B RID: 843 RVA: 0x0000D3CA File Offset: 0x0000C5CA + public void ChangeFlatButtonSymbol(int index, int spriteNum) + { + this._buttonController.ChangeFlatButtonSymbol(index, spriteNum); + } + + // Token: 0x0600034C RID: 844 RVA: 0x0000D3D9 File Offset: 0x0000C5D9 + public void ChangeFlatButtonDefine(int index, int spriteNum) + { + this._buttonController.ChangeFlatButtonDefine(index, spriteNum); + } + + // Token: 0x0600034D RID: 845 RVA: 0x0000D3E8 File Offset: 0x0000C5E8 + public void InPartnerRoomUIOut() + { + this._buttonController.SetVisible(false, new int[] { 1, 0, 2, 3 }); + } + + // Token: 0x0600034E RID: 846 RVA: 0x0000D407 File Offset: 0x0000C607 + public void InPartnerRoomUIIn() + { + this._buttonController.SetVisible(true, new int[] { 3 }); + } + + // Token: 0x0600034F RID: 847 RVA: 0x0000D420 File Offset: 0x0000C620 + public void OutPartnerRoomUiOut() + { + if (this._buttonController.GetVisible(4)) + { + this._buttonController.SetVisible(false, new int[] { 4 }); + } + if (this._buttonController.GetVisible(5)) + { + this._buttonController.SetVisible(false, new int[] { 5 }); + } + if (this._buttonController.GetVisible(2)) + { + this._buttonController.SetVisible(false, new int[] { 2 }); + } + if (this._buttonController.GetVisible(3)) + { + this._buttonController.SetVisible(false, new int[] { 3 }); + } + } + + // Token: 0x06000350 RID: 848 RVA: 0x0000D4BD File Offset: 0x0000C6BD + public void SetPresentNumText(int presentNum) + { + this._partnerRoom.SetPresentNumText(presentNum); + } + + // Token: 0x06000351 RID: 849 RVA: 0x0000D4CB File Offset: 0x0000C6CB + public void SetIntimateItemNumText(int intimateItemNum) + { + this._partnerRoom.SetIntimateItemNumText(intimateItemNum); + } + + // Token: 0x06000352 RID: 850 RVA: 0x0000D4D9 File Offset: 0x0000C6D9 + public CollectionWindow GetCollectionWindow() + { + return this._partnerRoom.GetCollectionWindow(); + } + + // Token: 0x06000353 RID: 851 RVA: 0x0000D4E6 File Offset: 0x0000C6E6 + private void PrepareSlideOutAnim(CollectionListAnimationController.AnimationType animationType) + { + this._isStartSlideIn = false; + this._animationType = animationType; + this._isAnimation = true; + this._syncTimer = 0f; + } + + // Token: 0x06000354 RID: 852 RVA: 0x0000D508 File Offset: 0x0000C708 + private void PrepareSlideInAnim(CollectionListAnimationController.AnimationType animationType) + { + this._syncTimer = 0f; + } + + // Token: 0x06000355 RID: 853 RVA: 0x0000D515 File Offset: 0x0000C715 + public void PushDesitionButton(CollectionProcess.SubSequence subSequence) + { + this._buttonController.SetAnimationActive(2); + this.ChangeEquipmentIcon(); + } + + // Token: 0x06000356 RID: 854 RVA: 0x0000D529 File Offset: 0x0000C729 + private void ChangeEquipmentIcon() + { + this._collectionChainList.ChangeEquipmentIcon(); + } + + // Token: 0x06000357 RID: 855 RVA: 0x0000D536 File Offset: 0x0000C736 + public void UpdateFavoriteCollection(UserData.Collection collectionType, bool isFavorite) + { + this._collectionChainList.UpdateFavoriteCollection(collectionType, isFavorite); + } + + // Token: 0x06000358 RID: 856 RVA: 0x0000D545 File Offset: 0x0000C745 + public void SetActiveButtonAnimation(int index) + { + this._buttonController.SetAnimationActive(index); + } + + // Token: 0x06000359 RID: 857 RVA: 0x0000D554 File Offset: 0x0000C754 + public void SetCollectionGenreIDListButton(CollectionGenreID type) + { + if (type == CollectionGenreID.ExitLeft) + { + this._buttonController.SetVisible(false, new int[] { 1 }); + return; + } + if (type == CollectionGenreID.Exit) + { + this._buttonController.SetVisible(false, new int[1]); + return; + } + this._buttonController.SetVisible(true, new int[] { 0, 1 }); + } + + // Token: 0x0600035A RID: 858 RVA: 0x0000D5A8 File Offset: 0x0000C7A8 + private void SetSelectorBaseColor(CollectionGenreID id) + { + this._selectorBgController.SetBackgroundColor(this._selectorBaseColors[(int)id]); + this._selectorBgController.Play(SelectorBackgroundController.AnimationType.In); + } + + // Token: 0x0600035B RID: 859 RVA: 0x0000D5CD File Offset: 0x0000C7CD + public void SetSelectorBaseColorWithoutAnimation(CollectionGenreID id) + { + this._selectorBgController.SetBackgroundColor(this._selectorBaseColors[(int)id]); + } + + // Token: 0x0600035C RID: 860 RVA: 0x0000D5E8 File Offset: 0x0000C7E8 + private void SetSelectorBaseColorWithSubSequenceId(CollectionProcess.SubSequence id) + { + Color color; + color..ctor(1f, 0f, 0f); + switch (id) + { + case CollectionProcess.SubSequence.Title: + color = this._selectorBaseColors[1]; + break; + case CollectionProcess.SubSequence.Icon: + color = this._selectorBaseColors[2]; + break; + case CollectionProcess.SubSequence.NamePlate: + color = this._selectorBaseColors[3]; + break; + case CollectionProcess.SubSequence.Frame: + color = this._selectorBaseColors[4]; + break; + case CollectionProcess.SubSequence.Prtner: + case CollectionProcess.SubSequence.PartnerPresent: + case CollectionProcess.SubSequence.PartnerPresentConfirm: + case CollectionProcess.SubSequence.PartnerPresentReward: + color = this._selectorBaseColors[5]; + break; + case CollectionProcess.SubSequence.Shop: + case CollectionProcess.SubSequence.ShopPartnerGetWindow: + case CollectionProcess.SubSequence.ShopPartnerSetDialog: + color = this._selectorBaseColors[6]; + break; + case CollectionProcess.SubSequence.Exit: + color = this._selectorBaseColors[7]; + break; + case CollectionProcess.SubSequence.ExitLeft: + color = this._selectorBaseColors[0]; + break; + } + this._selectorBgController.SetBackgroundColor(color); + this._selectorBgController.Play(SelectorBackgroundController.AnimationType.In); + } + + // Token: 0x0600035D RID: 861 RVA: 0x0000D6D7 File Offset: 0x0000C8D7 + public void DisplayInfoButton() + { + this._buttonInfoController.SetVisible(true, new int[1]); + } + + // Token: 0x0600035E RID: 862 RVA: 0x0000D6EB File Offset: 0x0000C8EB + public void SetVisibleButton(bool isActive, params int[] indexs) + { + this._buttonController.SetVisible(isActive, indexs); + } + + // Token: 0x0600035F RID: 863 RVA: 0x0000D6FA File Offset: 0x0000C8FA + public bool GetVisibleButton(int button) + { + return this._buttonController.GetVisible(button); + } + + // Token: 0x06000360 RID: 864 RVA: 0x0000D708 File Offset: 0x0000C908 + public ButtonControllerBase.FlatButtonType GetFlatButtonType(int index) + { + return this._buttonController.GetFlatButtonSymbolType(index); + } + + // Token: 0x06000361 RID: 865 RVA: 0x0000D718 File Offset: 0x0000C918 + public void SetSelectionButton() + { + if (this._initGenreID != CollectionGenreID.ExitLeft && this._initGenreID != CollectionGenreID.Exit) + { + this._buttonController.SetVisibleImmediate(true, new int[1]); + this._buttonController.SetVisibleImmediate(true, new int[] { 1 }); + return; + } + if (this._initGenreID == CollectionGenreID.ExitLeft) + { + this._buttonController.SetVisibleImmediate(true, new int[1]); + this._buttonController.SetVisibleImmediate(false, new int[] { 1 }); + return; + } + this._buttonController.SetVisibleImmediate(false, new int[1]); + this._buttonController.SetVisibleImmediate(true, new int[] { 1 }); + } + + // Token: 0x06000362 RID: 866 RVA: 0x0000D7B8 File Offset: 0x0000C9B8 + public void InformationToCollection() + { + if (base.IsInvoking("DisplayInfoButton")) + { + base.CancelInvoke("DisplayInfoButton"); + } + else + { + this._buttonInfoController.SetAnimationActive(0); + this._buttonInfoController.SetVisible(false, new int[1]); + } + this._buttonController.SetVisible(true, new int[] { 2 }); + this.SetSelectionButton(); + } + + // Token: 0x06000363 RID: 867 RVA: 0x0000D819 File Offset: 0x0000CA19 + public void SetVisibleBlur(bool isActive) + { + this._blur.alpha = (float)(isActive ? 1 : 0); + } + + // Token: 0x06000364 RID: 868 RVA: 0x0000D830 File Offset: 0x0000CA30 + private void UpdateIndicator() + { + int num = this._process.CurrentCollectionIndex(base.MonitorIndex); + this._selectorBgController.UpdateIndicator(num); + } + + // Token: 0x06000365 RID: 869 RVA: 0x0000D85C File Offset: 0x0000CA5C + private void PrepareIndicator() + { + int num = this._process.CurrentCollectionIndex(base.MonitorIndex); + int num2 = this._process.CurrentCategoryCollectionNum(base.MonitorIndex); + if (num2 != 0) + { + this._selectorBgController.PrepareIndicator(num, num2); + } + } + + // Token: 0x06000366 RID: 870 RVA: 0x0000D89D File Offset: 0x0000CA9D + private void SetVisibleIndicator(bool isActive) + { + this._selectorBgController.SetVisibleIndicator(isActive); + } + + // Token: 0x06000367 RID: 871 RVA: 0x0000D8AC File Offset: 0x0000CAAC + private void CreateAnnounceMessage(CollectionProcess.SubSequence subSequence) + { + string text = ""; + switch (subSequence) + { + case CollectionProcess.SubSequence.Title: + text = CommonMessageID.Scroll_Collection_Title.GetName(); + break; + case CollectionProcess.SubSequence.Icon: + text = CommonMessageID.Scroll_Collection_Icon.GetName(); + break; + case CollectionProcess.SubSequence.NamePlate: + text = CommonMessageID.Scroll_Collection_Nameplate.GetName(); + break; + case CollectionProcess.SubSequence.Frame: + text = CommonMessageID.Scroll_Collection_Frame.GetName(); + break; + case CollectionProcess.SubSequence.Prtner: + text = CommonMessageID.Scroll_Collection_Partner.GetName(); + break; + case CollectionProcess.SubSequence.Shop: + text = CommonMessageID.Scroll_Collection_Shop.GetName(); + break; + } + this.SetScrollMessage(text); + } + + // Token: 0x06000368 RID: 872 RVA: 0x0000D925 File Offset: 0x0000CB25 + private void SetScrollMessage(string message) + { + this._selectorBgController.SetScrollMessage(message); + } + + // Token: 0x06000369 RID: 873 RVA: 0x0000D933 File Offset: 0x0000CB33 + private void UpdateScroll() + { + this._selectorBgController.UpdateScroll(); + } + + // Token: 0x0600036A RID: 874 RVA: 0x0000D940 File Offset: 0x0000CB40 + private void SetVisibleTitleImage(bool isActive) + { + this._titleImage.color = (isActive ? Color.white : Color.clear); + } + + // Token: 0x0600036B RID: 875 RVA: 0x0000D95C File Offset: 0x0000CB5C + private void SetTitleAndInfoImage(CollectionMonitor.TitleTable title) + { + this._titleImage.ChangeSprite((int)title); + this._customInfoImage.ChangeSprite((int)title); + } + + // Token: 0x0600036C RID: 876 RVA: 0x0000D976 File Offset: 0x0000CB76 + public void SetVisibleExitImage(bool isActive) + { + this._exitInfo.color = (isActive ? Color.white : Color.clear); + } + + // Token: 0x0600036D RID: 877 RVA: 0x0000D992 File Offset: 0x0000CB92 + public void SetPresentTargetVisable(bool visable) + { + this._partnerRoom.SetPresentTargetVisable(visable); + } + + // Token: 0x0600036E RID: 878 RVA: 0x0000D9A0 File Offset: 0x0000CBA0 + public void SetPresentTargetNum(int num) + { + this._partnerRoom.SetPresentTargetNum(num); + } + + // Token: 0x0600036F RID: 879 RVA: 0x0000D9AE File Offset: 0x0000CBAE + public ShopPartnerGetWindow GetShopPartnerGetWindow() + { + return this.shopPartnerGetWindow; + } + + // Token: 0x06000370 RID: 880 RVA: 0x0000D9B6 File Offset: 0x0000CBB6 + public ShopSetPartnerDialog GetShopSetPartnerDialog() + { + return this.shopSetPartnerDialog; + } + + // Token: 0x04000206 RID: 518 + private Color[] _selectorBaseColors; + + // Token: 0x04000207 RID: 519 + [Space] + [SerializeField] + private CollectionButtonController _buttonController; + + // Token: 0x04000208 RID: 520 + [Space] + [SerializeField] + private CollectionInfoButtonController _buttonInfoController; + + // Token: 0x04000209 RID: 521 + [SerializeField] + [Header("ChainLists")] + private CollectionChainList _collectionChainList; + + // Token: 0x0400020A RID: 522 + [Space] + [SerializeField] + private GameObject _colletionAcquitionPlateObj; + + // Token: 0x0400020B RID: 523 + [SerializeField] + private Transform _collectionAcquitionParent; + + // Token: 0x0400020C RID: 524 + [SerializeField] + private GameObject _maiMaileAcquisitionPlateObj; + + // Token: 0x0400020D RID: 525 + [SerializeField] + private Transform _maiMaileAcquisitionParent; + + // Token: 0x0400020E RID: 526 + [SerializeField] + private CollectionTabController _collectionTabController; + + // Token: 0x0400020F RID: 527 + [SerializeField] + private MultipleImage _titleImage; + + // Token: 0x04000210 RID: 528 + [SerializeField] + private Animator _customInfoAnimController; + + // Token: 0x04000211 RID: 529 + [SerializeField] + private MultipleImage _customInfoImage; + + // Token: 0x04000212 RID: 530 + [SerializeField] + private Transform _selectorBackgroundObjectTargetParent; + + // Token: 0x04000213 RID: 531 + [SerializeField] + private GameObject _originalSelectorBackgroundObject; + + // Token: 0x04000214 RID: 532 + [SerializeField] + private CanvasGroup _blur; + + // Token: 0x04000215 RID: 533 + [SerializeField] + private Image _exitInfo; + + // Token: 0x04000216 RID: 534 + [SerializeField] + private GameObject _partnerRoomObj; + + // Token: 0x04000217 RID: 535 + [SerializeField] + private Transform _partnerRoomParent; + + // Token: 0x04000218 RID: 536 + [SerializeField] + private ShopPartnerGetWindow shopPartnerGetWindow; + + // Token: 0x04000219 RID: 537 + [SerializeField] + private ShopSetPartnerDialog shopSetPartnerDialog; + + // Token: 0x0400021A RID: 538 + private PartnerRoom _partnerRoom; + + // Token: 0x0400021B RID: 539 + private CollectionAcquitionPlate _collectionAcquitionPlate; + + // Token: 0x0400021C RID: 540 + private MaiMaileAcquisitionPlate _maiMaileAcquisitionPlate; + + // Token: 0x0400021D RID: 541 + private ICollectionProcess _process; + + // Token: 0x0400021E RID: 542 + private AssetManager _assetManager; + + // Token: 0x0400021F RID: 543 + private CollectionProcess.SubSequence _prevSubSequence; + + // Token: 0x04000220 RID: 544 + private SelectorBackgroundController _selectorBgController; + + // Token: 0x04000221 RID: 545 + private const string _invokeFirstInfoName = "DisplayInfoButton"; + + // Token: 0x04000222 RID: 546 + private float _syncTimer; + + // Token: 0x04000223 RID: 547 + private bool _isAnimation; + + // Token: 0x04000224 RID: 548 + private bool _isStartSlideIn; + + // Token: 0x04000225 RID: 549 + private float _duration; + + // Token: 0x04000226 RID: 550 + private CollectionListAnimationController.AnimationType _animationType; + + // Token: 0x04000227 RID: 551 + public CollectionGenreID _initGenreID = CollectionGenreID.Invalid; + + // Token: 0x04000229 RID: 553 + public bool playingRewardAnim; + + // Token: 0x0400022A RID: 554 + public int rewardCounter; + + // Token: 0x02000967 RID: 2407 + public enum TitleTable + { + // Token: 0x04005FA2 RID: 24482 + Collection, + // Token: 0x04005FA3 RID: 24483 + Shop, + // Token: 0x04005FA4 RID: 24484 + Partner + } +} diff --git a/Assembly-CSharp/CollectionName.cs b/Assembly-CSharp/CollectionName.cs new file mode 100644 index 0000000..ac37719 --- /dev/null +++ b/Assembly-CSharp/CollectionName.cs @@ -0,0 +1,126 @@ +using System; +using Manager; +using TMPro; +using UnityEngine; + +// Token: 0x02000059 RID: 89 +public class CollectionName : MonoBehaviour +{ + // Token: 0x060002C0 RID: 704 RVA: 0x00009B80 File Offset: 0x00008D80 + public void Prepare(CollectionGenreID type, string collectionName, string acquitionText) + { + this.SetVisibleSplitBg(type == CollectionGenreID.Title || type == CollectionGenreID.Exit || type == CollectionGenreID.ExitLeft); + this.SetVisibleSplitSet(type != CollectionGenreID.Title && type != CollectionGenreID.Exit && type > CollectionGenreID.ExitLeft); + if (type == CollectionGenreID.Title || type == CollectionGenreID.Exit || type == CollectionGenreID.ExitLeft) + { + this.SetCaptionMiddleText(acquitionText); + this.SetCollectionName(acquitionText); + return; + } + this.SetCollectionName(collectionName); + this.SetAcquitionText(acquitionText); + } + + // Token: 0x060002C1 RID: 705 RVA: 0x00009BDF File Offset: 0x00008DDF + public void SetVisable(bool visable) + { + base.gameObject.SetActive(visable); + } + + // Token: 0x060002C2 RID: 706 RVA: 0x00009BED File Offset: 0x00008DED + private void SetVisibleSplitBg(bool isActive) + { + if (this._offTitleObj == null) + { + return; + } + this._offTitleObj.SetActive(isActive); + } + + // Token: 0x060002C3 RID: 707 RVA: 0x00009C0A File Offset: 0x00008E0A + private void SetVisibleSplitSet(bool isActive) + { + if (this._splitSet != null) + { + this._splitSet.alpha = (float)(isActive ? 1 : 0); + } + } + + // Token: 0x060002C4 RID: 708 RVA: 0x00009C2D File Offset: 0x00008E2D + private void SetCollectionName(string collectionName) + { + if (this._collectionNameText == null) + { + return; + } + this._collectionNameText.SetData(collectionName); + this._collectionNameText.ResetPosition(); + } + + // Token: 0x060002C5 RID: 709 RVA: 0x00009C55 File Offset: 0x00008E55 + private void SetCaptionMiddleText(string conditionText) + { + if (this._captionMiddleText == null) + { + return; + } + this._captionMiddleText.text = conditionText; + } + + // Token: 0x060002C6 RID: 710 RVA: 0x00009C72 File Offset: 0x00008E72 + private void SetAcquitionText(string conditionText) + { + if (this._acquitionText == null) + { + return; + } + this._acquitionText.SetData(conditionText); + this._acquitionText.ResetPosition(); + } + + // Token: 0x060002C7 RID: 711 RVA: 0x00009C9A File Offset: 0x00008E9A + public void ViewUpdate() + { + if (this._collectionNameText != null) + { + this._collectionNameText.ViewUpdate(); + } + if (this._acquitionText != null) + { + this._acquitionText.ViewUpdate(); + } + } + + // Token: 0x060002C8 RID: 712 RVA: 0x00009CCE File Offset: 0x00008ECE + public void ResetPosition() + { + if (this._collectionNameText != null) + { + this._collectionNameText.ResetPosition(); + } + if (this._acquitionText != null) + { + this._acquitionText.ResetPosition(); + } + } + + // Token: 0x040001D2 RID: 466 + [SerializeField] + private GameObject _offTitleObj; + + // Token: 0x040001D3 RID: 467 + [SerializeField] + private TextMeshProUGUI _captionMiddleText; + + // Token: 0x040001D4 RID: 468 + [SerializeField] + private CanvasGroup _splitSet; + + // Token: 0x040001D5 RID: 469 + [SerializeField] + private CustomTextScroll _collectionNameText; + + // Token: 0x040001D6 RID: 470 + [SerializeField] + private CustomTextScroll _acquitionText; +} diff --git a/Assembly-CSharp/CollectionOtherParts.cs b/Assembly-CSharp/CollectionOtherParts.cs new file mode 100644 index 0000000..0d0686f --- /dev/null +++ b/Assembly-CSharp/CollectionOtherParts.cs @@ -0,0 +1,180 @@ +using System; +using UI; +using UnityEngine; + +// Token: 0x0200005A RID: 90 +public class CollectionOtherParts : MonoBehaviour +{ + // Token: 0x060002CA RID: 714 RVA: 0x00009D04 File Offset: 0x00008F04 + public void SetOtherParts(bool isHave, bool isActive, bool isEquipment, bool isRandom, bool isSpecial, int monitorIndex) + { + this._isActive = isActive; + this._lockObj.SetActive(!this._isActive); + if (this._setFrameObj != null) + { + GameObject setFrameObj = this._setFrameObj; + if (setFrameObj != null) + { + setFrameObj.SetActive(this._isActive); + } + } + if (this._setFrameObj != null && isSpecial) + { + GameObject setSpecialObj = this._setSpecialObj; + if (setSpecialObj != null) + { + setSpecialObj.SetActive(true); + } + } + else + { + GameObject setSpecialObj2 = this._setSpecialObj; + if (setSpecialObj2 != null) + { + setSpecialObj2.SetActive(false); + } + } + if (this._favoriteButtonImage != null) + { + this._favoriteButtonImage.gameObject.transform.parent.gameObject.SetActive(false); + } + if (this._favoriteUI != null) + { + this._favoriteUI.SetActive(false); + } + this.SetVisibleSetIcon(isEquipment); + } + + // Token: 0x060002CB RID: 715 RVA: 0x00009DD8 File Offset: 0x00008FD8 + public void SetOtherParts(bool isHave, bool isActive, bool isEquipment, bool isRandom, bool isSpecial, bool isFavorite, int monitorIndex) + { + this._isActive = isActive; + this._lockObj.SetActive(!this._isActive); + if (this._setFrameObj != null) + { + GameObject setFrameObj = this._setFrameObj; + if (setFrameObj != null) + { + setFrameObj.SetActive(this._isActive); + } + } + if (this._setFrameObj != null && isSpecial) + { + GameObject setSpecialObj = this._setSpecialObj; + if (setSpecialObj != null) + { + setSpecialObj.SetActive(true); + } + } + else + { + GameObject setSpecialObj2 = this._setSpecialObj; + if (setSpecialObj2 != null) + { + setSpecialObj2.SetActive(false); + } + } + if (this._favoriteButtonImage != null) + { + this._favoriteButtonImage.gameObject.transform.parent.gameObject.SetActive(true); + } + if (this._favoriteUI != null) + { + this._favoriteUI.SetActive(isFavorite); + } + this.SetVisibleSetIcon(isEquipment); + } + + // Token: 0x060002CC RID: 716 RVA: 0x00009EAD File Offset: 0x000090AD + public void UpdateView(float syncTimer) + { + bool isActive = this._isActive; + } + + // Token: 0x060002CD RID: 717 RVA: 0x00009EB6 File Offset: 0x000090B6 + public void SetVisibleSetIcon(bool isEquipment) + { + if (!this._isActive) + { + return; + } + GameObject setFrameObj = this._setFrameObj; + if (setFrameObj == null) + { + return; + } + setFrameObj.SetActive(isEquipment); + } + + // Token: 0x060002CE RID: 718 RVA: 0x00009ED2 File Offset: 0x000090D2 + public bool IsActive() + { + return this._canvasGroup.alpha != 0f; + } + + // Token: 0x060002CF RID: 719 RVA: 0x00009EE9 File Offset: 0x000090E9 + public void SetVisible(bool isVisible) + { + this._canvasGroup.alpha = (float)(isVisible ? 1 : 0); + } + + // Token: 0x060002D0 RID: 720 RVA: 0x00009EFE File Offset: 0x000090FE + public void SetActiveFavoriteCollection(bool isActive) + { + if (this._favoriteButtonImage != null) + { + this._favoriteButtonImage.gameObject.SetActive(isActive); + } + if (this._favoriteUI != null) + { + this._favoriteUI.SetActive(isActive); + } + } + + // Token: 0x060002D1 RID: 721 RVA: 0x00009F39 File Offset: 0x00009139 + public void UpdateFavoriteCollection(CollectionChainCard.FavoriteType type) + { + if (this._favoriteButtonImage != null) + { + this._favoriteButtonImage.ChangeSprite((int)type); + } + if (this._favoriteUI != null) + { + this._favoriteUI.SetActive(type == CollectionChainCard.FavoriteType.ON); + } + } + + // Token: 0x040001D7 RID: 471 + [SerializeField] + [Header("その他のパーツ")] + private CanvasGroup _canvasGroup; + + // Token: 0x040001D8 RID: 472 + [SerializeField] + private GameObject _lockObj; + + // Token: 0x040001D9 RID: 473 + [SerializeField] + [Header("装備フレーム")] + private GameObject _setFrameObj; + + // Token: 0x040001DA RID: 474 + [SerializeField] + [Header("キラ属性")] + private GameObject _setSpecialObj; + + // Token: 0x040001DB RID: 475 + [SerializeField] + [Header("お気に入り")] + private MultipleImage _favoriteButtonImage; + + // Token: 0x040001DC RID: 476 + [SerializeField] + private GameObject _favoriteUI; + + // Token: 0x040001DD RID: 477 + private StateAnimController _controller; + + // Token: 0x040001DE RID: 478 + private bool _isActive; +} diff --git a/Assembly-CSharp/CollectionParts.cs b/Assembly-CSharp/CollectionParts.cs new file mode 100644 index 0000000..31ca044 --- /dev/null +++ b/Assembly-CSharp/CollectionParts.cs @@ -0,0 +1,300 @@ +using System; +using Manager; +using UI; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x0200005B RID: 91 +public class CollectionParts : MonoBehaviour +{ + // Token: 0x060002D3 RID: 723 RVA: 0x00009F72 File Offset: 0x00009172 + public void SetIconTexture(Texture2D icon) + { + if (this._iconImage != null) + { + this._iconImage.texture = icon; + } + } + + // Token: 0x060002D4 RID: 724 RVA: 0x00009F8E File Offset: 0x0000918E + public void SetPlateSprite(Sprite plate) + { + if (this._plateImage != null) + { + this._plateImage.sprite = plate; + } + } + + // Token: 0x060002D5 RID: 725 RVA: 0x00009FAA File Offset: 0x000091AA + public void SetTitle(string title, Sprite titleBaseSprite) + { + if (this._titleScrollText != null) + { + this._titleScrollText.SetData(title); + this._titleScrollText.ResetPosition(); + this._titleBaseImage.sprite = titleBaseSprite; + } + } + + // Token: 0x060002D6 RID: 726 RVA: 0x00009FDD File Offset: 0x000091DD + public void SetPartnerTexture(Texture2D partner) + { + if (this._partnerImage != null) + { + this._partnerImage.texture = partner; + } + } + + // Token: 0x060002D7 RID: 727 RVA: 0x00009FF9 File Offset: 0x000091F9 + public void SetFrameTexture(Texture2D frame) + { + if (this._frameImage != null) + { + this._frameImage.texture = frame; + } + } + + // Token: 0x060002D8 RID: 728 RVA: 0x0000A018 File Offset: 0x00009218 + public void SetTicketTexture(Texture2D texture) + { + if (this._ticketImage != null) + { + Sprite sprite = Sprite.Create(texture, new Rect(0f, 0f, (float)texture.width, (float)texture.height), new Vector2(0.5f, 0.5f)); + this._ticketImage.sprite = sprite; + } + } + + // Token: 0x060002D9 RID: 729 RVA: 0x0000A072 File Offset: 0x00009272 + public void SetIntimateItemTexture(int index) + { + if (this._intimateItemImage != null) + { + this._intimateItemImage.ChangeSprite(index); + } + } + + // Token: 0x060002DA RID: 730 RVA: 0x0000A090 File Offset: 0x00009290 + public void SetVisibleCollectionParts(CollectionGenreID type, bool isSpecial) + { + if (this._setSpecialObj != null) + { + this._setSpecialObj.alpha = 0f; + } + switch (type) + { + case CollectionGenreID.ExitLeft: + this._frameImage.gameObject.SetActive(false); + this._plateObj.alpha = 0f; + this._titleObj.alpha = 0f; + this._frameObj.alpha = 0f; + this._partnerImage.gameObject.SetActive(false); + this._iconImage.gameObject.SetActive(true); + this._ticketObj.SetActive(false); + this._intimateItemObj.SetActive(false); + break; + case CollectionGenreID.Title: + this._frameImage.gameObject.SetActive(false); + this._iconImage.gameObject.SetActive(false); + this._partnerImage.gameObject.SetActive(false); + this._ticketObj.SetActive(false); + this._intimateItemObj.SetActive(false); + this._plateObj.alpha = 0f; + this._titleObj.alpha = 1f; + this._frameObj.alpha = 0f; + return; + case CollectionGenreID.Icon: + this._frameImage.gameObject.SetActive(false); + this._plateObj.alpha = 0f; + this._titleObj.alpha = 0f; + this._frameObj.alpha = 0f; + this._partnerImage.gameObject.SetActive(false); + this._iconImage.gameObject.SetActive(true); + this._ticketObj.SetActive(false); + this._intimateItemObj.SetActive(false); + return; + case CollectionGenreID.Plate: + this._frameImage.gameObject.SetActive(false); + this._iconImage.gameObject.SetActive(false); + this._partnerImage.gameObject.SetActive(false); + this._ticketObj.SetActive(false); + this._intimateItemObj.SetActive(false); + this._titleObj.alpha = 0f; + this._plateObj.alpha = 1f; + this._frameObj.alpha = 0f; + return; + case CollectionGenreID.Frame: + this._frameImage.gameObject.SetActive(true); + this._partnerImage.gameObject.SetActive(false); + this._ticketObj.SetActive(false); + this._intimateItemObj.SetActive(false); + this._titleObj.alpha = 0f; + this._plateObj.alpha = 0f; + this._frameObj.alpha = 1f; + this._iconImage.gameObject.SetActive(false); + if (this._setSpecialObj != null && isSpecial) + { + this._setSpecialObj.alpha = 1f; + this._setSpecialObj.gameObject.SetActive(true); + return; + } + break; + case CollectionGenreID.Partner: + this._frameImage.gameObject.SetActive(false); + this._iconImage.gameObject.SetActive(false); + this._titleObj.alpha = 0f; + this._plateObj.alpha = 0f; + this._frameObj.alpha = 0f; + this._partnerImage.gameObject.SetActive(true); + this._ticketObj.SetActive(false); + this._intimateItemObj.SetActive(false); + return; + case CollectionGenreID.Shop: + this._frameImage.gameObject.SetActive(false); + this._iconImage.gameObject.SetActive(false); + this._titleObj.alpha = 0f; + this._plateObj.alpha = 0f; + this._frameObj.alpha = 0f; + this._partnerImage.gameObject.SetActive(false); + this._ticketObj.SetActive(false); + this._intimateItemObj.SetActive(false); + return; + case CollectionGenreID.Exit: + this._frameImage.gameObject.SetActive(false); + this._plateObj.alpha = 0f; + this._titleObj.alpha = 0f; + this._frameObj.alpha = 0f; + this._partnerImage.gameObject.SetActive(false); + this._iconImage.gameObject.SetActive(true); + this._ticketObj.SetActive(false); + this._intimateItemObj.SetActive(false); + return; + default: + return; + } + } + + // Token: 0x060002DB RID: 731 RVA: 0x0000A4FC File Offset: 0x000096FC + public void SetVisibleTicketParts() + { + this._frameImage.gameObject.SetActive(false); + this._iconImage.gameObject.SetActive(false); + this._titleObj.alpha = 0f; + this._plateObj.alpha = 0f; + this._frameObj.alpha = 0f; + this._partnerImage.gameObject.SetActive(false); + this._ticketObj.SetActive(true); + this._intimateItemObj.SetActive(false); + } + + // Token: 0x060002DC RID: 732 RVA: 0x0000A584 File Offset: 0x00009784 + public void SetVisibleIntimateItemParts() + { + this._frameImage.gameObject.SetActive(false); + this._iconImage.gameObject.SetActive(false); + this._titleObj.alpha = 0f; + this._plateObj.alpha = 0f; + this._frameObj.alpha = 0f; + this._partnerImage.gameObject.SetActive(false); + this._ticketObj.SetActive(false); + this._intimateItemObj.SetActive(true); + } + + // Token: 0x060002DD RID: 733 RVA: 0x0000A60C File Offset: 0x0000980C + public void UpdateView(float syncTimer) + { + if (this._titleScrollText != null) + { + this._titleScrollText.ViewUpdate(); + } + } + + // Token: 0x060002DE RID: 734 RVA: 0x0000A627 File Offset: 0x00009827 + public void ResetScrollText() + { + if (this._titleObj.alpha != 0f) + { + this._titleScrollText.ResetPosition(); + } + } + + // Token: 0x060002DF RID: 735 RVA: 0x0000A646 File Offset: 0x00009846 + public bool IsActive() + { + return this._canvasGroup.alpha != 0f; + } + + // Token: 0x060002E0 RID: 736 RVA: 0x0000A65D File Offset: 0x0000985D + public void SetVisible(bool isVisible) + { + this._canvasGroup.alpha = (float)(isVisible ? 1 : 0); + } + + // Token: 0x040001DF RID: 479 + [SerializeField] + [Header("コレクションパーツ群")] + private CanvasGroup _canvasGroup; + + // Token: 0x040001E0 RID: 480 + [SerializeField] + [Header("称号")] + private CanvasGroup _titleObj; + + // Token: 0x040001E1 RID: 481 + [SerializeField] + private Image _titleBaseImage; + + // Token: 0x040001E2 RID: 482 + [SerializeField] + private CustomTextScroll _titleScrollText; + + // Token: 0x040001E3 RID: 483 + [SerializeField] + [Header("Icon")] + private RawImage _iconImage; + + // Token: 0x040001E4 RID: 484 + [SerializeField] + [Header("Plate")] + private CanvasGroup _plateObj; + + // Token: 0x040001E5 RID: 485 + [SerializeField] + private CustomImage _plateImage; + + // Token: 0x040001E6 RID: 486 + [SerializeField] + [Header("Partner")] + private RawImage _partnerImage; + + // Token: 0x040001E7 RID: 487 + [SerializeField] + [Header("Frame")] + private CanvasGroup _frameObj; + + // Token: 0x040001E8 RID: 488 + [SerializeField] + private RawImage _frameImage; + + // Token: 0x040001E9 RID: 489 + [SerializeField] + [Header("Ticket")] + private GameObject _ticketObj; + + // Token: 0x040001EA RID: 490 + [SerializeField] + private Image _ticketImage; + + // Token: 0x040001EB RID: 491 + [SerializeField] + [Header("IntimateItem")] + private GameObject _intimateItemObj; + + // Token: 0x040001EC RID: 492 + [SerializeField] + private MultipleImage _intimateItemImage; + + // Token: 0x040001ED RID: 493 + [SerializeField] + [Header("キラ属性")] + private CanvasGroup _setSpecialObj; +} diff --git a/Assembly-CSharp/CollectionProcess.cs b/Assembly-CSharp/CollectionProcess.cs new file mode 100644 index 0000000..fe99c2d --- /dev/null +++ b/Assembly-CSharp/CollectionProcess.cs @@ -0,0 +1,4836 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Diagnostics; +using System.Linq; +using DB; +using Mai2.Mai2Cue; +using MAI2.Util; +using Mai2.Voice_000001; +using Mai2.Voice_Partner_000001; +using Manager; +using Manager.MaiStudio; +using Manager.UserDatas; +using Monitor.LoginBonus; +using Process; +using Process.CardMakerInfo; +using UnityEngine; +using Util; + +// Token: 0x0200014E RID: 334 +public class CollectionProcess : ProcessBase, ICollectionProcess, ICollectionGenreIDList, ITitleList, IIconList, INamePlateList, IPartnerList, IPartnerClosenessList, IFrameList, IShopItemList +{ + // Token: 0x06000B49 RID: 2889 RVA: 0x0002E724 File Offset: 0x0002D924 + public int CurrentIconIndex(int monitorId) + { + return this._icon[monitorId].Index; + } + + // Token: 0x06000B4A RID: 2890 RVA: 0x0002E733 File Offset: 0x0002D933 + public int CurrentTitleIndex(int monitorId) + { + return this._title[monitorId].Index; + } + + // Token: 0x06000B4B RID: 2891 RVA: 0x0002E742 File Offset: 0x0002D942 + public int CurrentPlateIndex(int monitorId) + { + return this._plate[monitorId].Index; + } + + // Token: 0x06000B4C RID: 2892 RVA: 0x0002E751 File Offset: 0x0002D951 + public int CurrentPartnerIndex(int monitorId) + { + return this._partner[monitorId].Index; + } + + // Token: 0x06000B4D RID: 2893 RVA: 0x0002E760 File Offset: 0x0002D960 + public int CurrentFrameIndex(int monitorId) + { + return this._frame[monitorId].Index; + } + + // Token: 0x06000B4E RID: 2894 RVA: 0x0002E76F File Offset: 0x0002D96F + public int CurrentShopItemIndex(int monitorId) + { + return this._shopItem[monitorId].Index; + } + + // Token: 0x06000B4F RID: 2895 RVA: 0x0002E77E File Offset: 0x0002D97E + public CollectionGenreID CurrentColletionType(int monitorId) + { + return this._currentCollectionType[monitorId]; + } + + // Token: 0x06000B50 RID: 2896 RVA: 0x0002E788 File Offset: 0x0002D988 + public CollectionProcess.SubSequence CurrentSubSequence(int monitorId) + { + return this._subSequence[monitorId]; + } + + // Token: 0x06000B51 RID: 2897 RVA: 0x0002E792 File Offset: 0x0002D992 + public int GetTotalCollectionNum(int monitorId) + { + return this._totalCollectionNum[monitorId]; + } + + // Token: 0x06000B52 RID: 2898 RVA: 0x0002E79C File Offset: 0x0002D99C + public CollectionProcess(ProcessDataContainer dataContainer) + : base(dataContainer) + { + } + + // Token: 0x06000B53 RID: 2899 RVA: 0x00003598 File Offset: 0x00002798 + public override void OnAddProcess() + { + } + + // Token: 0x06000B54 RID: 2900 RVA: 0x0002E84C File Offset: 0x0002DA4C + public override void OnRelease() + { + if (this._monitors != null) + { + for (int i = 0; i < this._monitors.Length; i++) + { + if (this._monitors[i] != null) + { + Object.Destroy(this._monitors[i].gameObject); + } + } + } + } + + // Token: 0x06000B55 RID: 2901 RVA: 0x0002E898 File Offset: 0x0002DA98 + public override void OnStart() + { + GameObject gameObject = Resources.Load("Process/Collection/CollectionProcess"); + this._monitors = new CollectionMonitor[] + { + base.CreateInstanceAndSetParent(gameObject, this.container.LeftMonitor).GetComponent(), + base.CreateInstanceAndSetParent(gameObject, this.container.RightMonitor).GetComponent() + }; + this._sequence = CollectionProcess.Sequence.Init; + this._subSequence = new CollectionProcess.SubSequence[this._monitors.Length]; + this._currentCollectionType = new CollectionGenreID[this._monitors.Length]; + this._isEntry = new bool[this._monitors.Length]; + this._totalCollectionNum = new int[this._monitors.Length]; + this._icon = new CollectionInfo[] + { + new CollectionInfo(), + new CollectionInfo() + }; + this._title = new CollectionInfo[] + { + new CollectionInfo(), + new CollectionInfo() + }; + this._plate = new CollectionInfo[] + { + new CollectionInfo(), + new CollectionInfo() + }; + this._partner = new CollectionInfo[] + { + new CollectionInfo(), + new CollectionInfo() + }; + this._frame = new CollectionInfo[] + { + new CollectionInfo(), + new CollectionInfo() + }; + this._shopItem = new CollectionInfo[] + { + new CollectionInfo(), + new CollectionInfo() + }; + this._timer = new Stopwatch[] + { + new Stopwatch(), + new Stopwatch() + }; + this.SlideScrollTimer = new float[2]; + this.SlideScrollCount = new int[2]; + this.SlideScrollToRight = new bool[2]; + this.SlideScrollTime = new float[2]; + this._isScrollInputLock = new bool[2]; + this._isTrialSetting = new bool[2]; + this._isGuest = new bool[2]; + this._gotoNextProcessCalled = false; + this._waitMessageShowed = new bool[2]; + this.LoadCollectionData(); + this.LoadShopItemData(); + bool flag = false; + for (int i = 0; i < this._monitors.Length; i++) + { + UserData userData = Singleton.Instance.GetUserData((long)i); + this._monitors[i].PrevInit(this, this.container.assetManager); + this._isEntry[i] = userData.IsEntry && userData.UserType > UserData.UserIDType.Guest; + if (this._isEntry[i]) + { + if (userData.Detail.ContentBit.IsFlagOn(ContentBitID.FirstCollecitonCustom)) + { + this._subSequence[i] = CollectionProcess.SubSequence.SelectCollectionType; + base.SetInputLockInfo(i, 2000f); + } + else + { + this._subSequence[i] = CollectionProcess.SubSequence.Information; + this.EnqueueMessage(i, WindowMessageID.CollectionCustomFirst); + this._timer[i].Restart(); + base.SetInputLockInfo(i, 3000f); + userData.Detail.ContentBit.SetFlag(ContentBitID.FirstCollecitonCustom, true); + } + flag = true; + CollectionGenreID collectionGenreID = (this.IsHaveNewTitle(i) ? CollectionGenreID.Title : (this.IsHaveNewIcon(i) ? CollectionGenreID.Icon : (this.IsHaveNewNamePlate(i) ? CollectionGenreID.Plate : (this.IsHaveNewFrame(i) ? CollectionGenreID.Frame : (this.IsHaveNewPartner(i) ? CollectionGenreID.Partner : (Singleton.Instance.IsMissionClear[i] ? CollectionGenreID.Shop : CollectionGenreID.Exit)))))); + this._currentCollectionType[i] = collectionGenreID; + if (Singleton.Instance.IsLoseEventWatched()) + { + this._currentCollectionType[i] = CollectionGenreID.Title; + } + this.container.processManager.SendMessage(new Message(ProcessType.CommonProcess, 50012, Array.Empty())); + this.container.processManager.SendMessage(new Message(ProcessType.CommonProcess, 20030, new object[] { i, false })); + } + else + { + this._subSequence[i] = CollectionProcess.SubSequence.Max; + this._isGuest[i] = true; + if (Singleton.Instance.GetUserData((long)i).IsEntry && Singleton.Instance.GetUserData((long)i).UserType == UserData.UserIDType.Guest) + { + this._monitors[i].SetVisibleBlur(true); + this.container.processManager.EnqueueMessage(i, WindowMessageID.AimeUseNotice, WindowPositionID.Middle, null); + if (GameManager.IsKaleidxScopeMode) + { + if (!Singleton.Instance.IsLoseEventWatched()) + { + SoundManager.PlayVoice(Mai2.Voice_000001.Cue.VO_000163, i); + } + } + else + { + SoundManager.PlayVoice(Mai2.Voice_000001.Cue.VO_000163, i); + } + } + else if (GameManager.IsPlayedTrial) + { + if (!this._isTrialSetting[i]) + { + if (i != 0) + { + if (i == 1) + { + this.container.processManager.SendMessage(new Message(ProcessType.PleaseWaitProcess, 20010, Array.Empty())); + } + } + else + { + this.container.processManager.SendMessage(new Message(ProcessType.PleaseWaitProcess, 20009, Array.Empty())); + } + this._isTrialSetting[i] = true; + } + this.container.processManager.EnqueueMessage(i, WindowMessageID.AimeUseNotice, WindowPositionID.Middle, null); + } + } + this._monitors[i].Initialize(i, this._isEntry[i], this._subSequence[i]); + if (this._currentCollectionType[i] != CollectionGenreID.Exit && this._currentCollectionType[i] != CollectionGenreID.ExitLeft) + { + this._monitors[i].SetVisibleExitImage(true); + } + } + GC.Collect(); + this.container.processManager.NotificationFadeIn(false); + if (!flag) + { + this._sequence = CollectionProcess.Sequence.GuestWait; + } + else + { + for (int j = 0; j < this._monitors.Length; j++) + { + if (this._isGuest[j]) + { + this._monitors[j].timeUp = true; + } + } + } + this._timeCounter = 0f; + for (int k = 0; k < this._monitors.Length; k++) + { + this.container.processManager.SendMessage(new Message(ProcessType.CommonProcess, 30012, new object[] { k, false })); + } + } + + // Token: 0x06000B56 RID: 2902 RVA: 0x0002EE14 File Offset: 0x0002E014 + private void LoadCollectionData(int monitorId) + { + this.CreateTitleData(monitorId); + this.CreateIconData(monitorId); + this.CreatePlateData(monitorId); + this.CreatePartnerData(monitorId); + this.CreateFrameData(monitorId); + this._totalCollectionNum[monitorId] = 0; + this._totalCollectionNum[monitorId] += this.GetAllTitleNum(monitorId); + this._totalCollectionNum[monitorId] += this.GetAllIconNum(monitorId); + this._totalCollectionNum[monitorId] += this.GetAllPlateNum(monitorId); + this._totalCollectionNum[monitorId] += this.GetAllPartnerNum(monitorId); + this._totalCollectionNum[monitorId] += this.GetAllFrameNum(monitorId); + } + + // Token: 0x06000B57 RID: 2903 RVA: 0x0002EEC0 File Offset: 0x0002E0C0 + private void LoadCollectionDataSelectable(int monitorId, bool createTitle, bool createIcon, bool createPlate, bool createPartner, bool createFrame) + { + if (createTitle) + { + this.CreateTitleData(monitorId); + } + if (createIcon) + { + this.CreateIconData(monitorId); + } + if (createPlate) + { + this.CreatePlateData(monitorId); + } + if (createPartner) + { + this.CreatePartnerData(monitorId); + } + if (createFrame) + { + this.CreateFrameData(monitorId); + } + this._totalCollectionNum[monitorId] = 0; + this._totalCollectionNum[monitorId] += this.GetAllTitleNum(monitorId); + this._totalCollectionNum[monitorId] += this.GetAllIconNum(monitorId); + this._totalCollectionNum[monitorId] += this.GetAllPlateNum(monitorId); + this._totalCollectionNum[monitorId] += this.GetAllPartnerNum(monitorId); + this._totalCollectionNum[monitorId] += this.GetAllFrameNum(monitorId); + } + + // Token: 0x06000B58 RID: 2904 RVA: 0x0002EF80 File Offset: 0x0002E180 + private void LoadCollectionData() + { + for (int i = 0; i < this._monitors.Length; i++) + { + this.CreateTitleData(i); + this.CreateIconData(i); + this.CreatePlateData(i); + this.CreatePartnerData(i); + this.CreateFrameData(i); + this._totalCollectionNum[i] = 0; + this._totalCollectionNum[i] += this.GetAllTitleNum(i); + this._totalCollectionNum[i] += this.GetAllIconNum(i); + this._totalCollectionNum[i] += this.GetAllPlateNum(i); + this._totalCollectionNum[i] += this.GetAllPartnerNum(i); + this._totalCollectionNum[i] += this.GetAllFrameNum(i); + } + } + + // Token: 0x06000B59 RID: 2905 RVA: 0x0002F048 File Offset: 0x0002E248 + private void LoadShopItemData() + { + for (int i = 0; i < this._monitors.Length; i++) + { + this.CreateShopData(i); + } + } + + // Token: 0x06000B5A RID: 2906 RVA: 0x0002F070 File Offset: 0x0002E270 + public override void OnUpdate() + { + for (int i = 0; i < this._monitors.Length; i++) + { + bool flag = this._isEntry[i]; + } + base.OnUpdate(); + switch (this._sequence) + { + case CollectionProcess.Sequence.Init: + this._sequence = CollectionProcess.Sequence.Start; + break; + case CollectionProcess.Sequence.Start: + { + Action action = delegate + { + this.TimeUpAll(); + }; + this.container.processManager.PrepareTimer(60, 0, false, action, true); + this.container.processManager.SetCompleteOneSide(new Action(this.TimeUp)); + for (int j = 0; j < this._monitors.Length; j++) + { + if (this._isEntry[j]) + { + this._monitors[j]._initGenreID = this._currentCollectionType[j]; + this._monitors[j].StartAnimation(this._currentCollectionType[j], this._subSequence[j]); + if (this._subSequence[j] == CollectionProcess.SubSequence.Information) + { + if (GameManager.IsKaleidxScopeMode) + { + if (!Singleton.Instance.IsLoseEventWatched()) + { + SoundManager.PlayVoice(Mai2.Voice_000001.Cue.VO_000227, j); + } + } + else + { + SoundManager.PlayVoice(Mai2.Voice_000001.Cue.VO_000227, j); + } + } + else if (GameManager.IsKaleidxScopeMode) + { + if (!Singleton.Instance.IsLoseEventWatched()) + { + SoundManager.PlayVoice(Mai2.Voice_000001.Cue.VO_000156, j); + } + } + else + { + SoundManager.PlayVoice(Mai2.Voice_000001.Cue.VO_000156, j); + } + if (Singleton.Instance.GetUserData((long)j).IsGuest()) + { + this.container.processManager.SetVisibleTimer(j, false); + } + } + else + { + this.container.processManager.SetVisibleTimer(j, false); + } + } + this._sequence = CollectionProcess.Sequence.Update; + break; + } + case CollectionProcess.Sequence.Update: + { + int num = 0; + for (int k = 0; k < this._subSequence.Length; k++) + { + if (this._monitors[k].timeUp && !this._monitors[k].partnerRoomRewardWindowOpened && !this._monitors[k].shopPartnerWindowOpened) + { + this._subSequence[k] = CollectionProcess.SubSequence.Max; + if (this._subSequence.Count((CollectionProcess.SubSequence sub) => sub == CollectionProcess.SubSequence.Max) <= 1 && !this._waitMessageShowed[k] && !this._isGuest[k]) + { + this.EnqueueMessage(k, WindowMessageID.PlayPreparationWait); + this._waitMessageShowed[k] = true; + } + this._monitors[k].SetVisibleBlur(true); + num++; + } + } + if (num == this._subSequence.Length && !this._gotoNextProcessCalled) + { + this.GotoNextProcess(); + this._gotoNextProcessCalled = true; + } + break; + } + case CollectionProcess.Sequence.GuestWait: + this._timeCounter += Time.deltaTime; + if (this._timeCounter >= 5f) + { + this.GotoNextProcess(); + } + break; + case CollectionProcess.Sequence.Released: + this._timeCounter += Time.deltaTime; + if (this._timeCounter >= 0.5f) + { + this._timeCounter = 0f; + this.container.processManager.AddProcess(new FadeProcess(this.container, this, new CardMakerInfoProcess(this.container), FadeProcess.FadeType.Type3), 50); + this.container.processManager.SetVisibleTimers(false); + for (int l = 0; l < this._monitors.Length; l++) + { + this._isTrialSetting[l] = false; + } + this._sequence = CollectionProcess.Sequence.EndWait; + } + break; + } + for (int m = 0; m < this._monitors.Length; m++) + { + if (this._isEntry[m]) + { + this._monitors[m].ViewUpdate(); + } + } + } + + // Token: 0x06000B5B RID: 2907 RVA: 0x00003598 File Offset: 0x00002798 + public override void OnLateUpdate() + { + } + + // Token: 0x06000B5C RID: 2908 RVA: 0x0002F400 File Offset: 0x0002E600 + private void InputInformationSequence(int monitorId) + { + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04) || this._timer[monitorId].ElapsedMilliseconds > 10000L) + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.SelectCollectionType; + base.SetInputLockInfo(monitorId, 550f); + this.container.processManager.CloseWindow(monitorId); + this._monitors[monitorId].SetVisibleBlur(false); + this._monitors[monitorId].InformationToCollection(); + this.container.processManager.IsTimeCounting(monitorId, true); + if (GameManager.IsKaleidxScopeMode) + { + if (!Singleton.Instance.IsLoseEventWatched()) + { + SoundManager.PlayVoice(Mai2.Voice_000001.Cue.VO_000156, monitorId); + return; + } + } + else + { + SoundManager.PlayVoice(Mai2.Voice_000001.Cue.VO_000156, monitorId); + } + } + } + + // Token: 0x06000B5D RID: 2909 RVA: 0x0002F4AC File Offset: 0x0002E6AC + private void InputCollectionTypeSequence(int monitorId) + { + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3)) + { + if (this._currentCollectionType[monitorId] + 1 < CollectionGenreID.End) + { + this._currentCollectionType[monitorId]++; + this._monitors[monitorId].ScrollCollectionListLeft(false); + this._monitors[monitorId].SetCollectionGenreIDListButton(this._currentCollectionType[monitorId]); + this._monitors[monitorId].SetSelectorBaseColorWithoutAnimation(this._currentCollectionType[monitorId]); + if (this._currentCollectionType[monitorId] == CollectionGenreID.Shop && this._shopItem[monitorId].TabData.Count == 0) + { + this._monitors[monitorId].SetVisibleButton(false, new int[] { 2 }); + } + else + { + this._monitors[monitorId].SetVisibleButton(true, new int[] { 2 }); + } + this.CheckButton(monitorId); + this._monitors[monitorId].SetCollectionAcquitionPlate(CollectionProcess.SubSequence.SelectCollectionType); + return; + } + } + else if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6)) + { + if (this._currentCollectionType[monitorId] - CollectionGenreID.Title >= 0) + { + this._currentCollectionType[monitorId]--; + this._monitors[monitorId].ScrollCollectionListRight(false); + this._monitors[monitorId].SetCollectionGenreIDListButton(this._currentCollectionType[monitorId]); + this._monitors[monitorId].SetSelectorBaseColorWithoutAnimation(this._currentCollectionType[monitorId]); + if (this._currentCollectionType[monitorId] == CollectionGenreID.Shop && this._shopItem[monitorId].TabData.Count == 0) + { + this._monitors[monitorId].SetVisibleButton(false, new int[] { 2 }); + } + else + { + this._monitors[monitorId].SetVisibleButton(true, new int[] { 2 }); + } + this.CheckButton(monitorId); + this._monitors[monitorId].SetCollectionAcquitionPlate(CollectionProcess.SubSequence.SelectCollectionType); + return; + } + } + else if (InputManager.GetTouchPanelAreaDown(monitorId, new InputManager.TouchPanelArea[] + { + InputManager.TouchPanelArea.B1, + InputManager.TouchPanelArea.B8 + })) + { + if (this._currentCollectionType[monitorId] == CollectionGenreID.ExitLeft) + { + return; + } + if (this._currentCollectionType[monitorId] + 1 < CollectionGenreID.End) + { + this.SkipExit(monitorId); + return; + } + } + else if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04)) + { + if (this._currentCollectionType[monitorId] == CollectionGenreID.Shop && this._shopItem[monitorId].TabData.Count == 0) + { + return; + } + if (this._currentCollectionType[monitorId] >= CollectionGenreID.Title && this._currentCollectionType[monitorId] <= CollectionGenreID.Shop && Singleton.Instance.IsLoseEventWatched(monitorId)) + { + return; + } + CollectionProcess.SubSequence subSequence = this.ConvertToSubSequence(this._currentCollectionType[monitorId]); + this._subSequence[monitorId] = subSequence; + if (CollectionProcess.SubSequence.Exit == subSequence || CollectionProcess.SubSequence.ExitLeft == subSequence) + { + this.container.processManager.ForceTimeUp(monitorId); + this.TimeUp(monitorId); + this._monitors[monitorId].SetActiveButtonAnimation(2); + } + else + { + this._monitors[monitorId].ChangeSubSequence(subSequence); + switch (subSequence) + { + case CollectionProcess.SubSequence.Title: + this._title[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipTitleID); + break; + case CollectionProcess.SubSequence.Icon: + this._icon[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipIconID); + break; + case CollectionProcess.SubSequence.NamePlate: + this._plate[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPlateID); + break; + case CollectionProcess.SubSequence.Frame: + this._frame[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipFrameID); + break; + case CollectionProcess.SubSequence.Prtner: + this._partner[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPartnerID); + break; + case CollectionProcess.SubSequence.Shop: + this._monitors[monitorId].InitalizeShopMonitor(); + this.InitalizeShop(monitorId); + this.CheckShopButton(monitorId); + break; + } + } + base.SetInputLockInfo(monitorId, 550f); + } + } + + // Token: 0x06000B5E RID: 2910 RVA: 0x0002F845 File Offset: 0x0002EA45 + public void SetCurrentCollectionType(int monitorId, CollectionGenreID collectionGenreID) + { + this._currentCollectionType[monitorId] = collectionGenreID; + } + + // Token: 0x06000B5F RID: 2911 RVA: 0x0002F850 File Offset: 0x0002EA50 + private void SlideScrollRight(int monitorId, ref CollectionInfo info) + { + base.SetInputLockInfo(monitorId, 100f); + this._isScrollInputLock[monitorId] = true; + this.SlideScrollToRight[monitorId] = true; + this.SlideScrollTime[monitorId] = 50f; + for (int i = -1; i >= -10; i--) + { + bool flag = false; + switch (this._subSequence[monitorId]) + { + case CollectionProcess.SubSequence.Title: + { + int num; + flag = this.IsTitleBoundary(monitorId, i, out num); + break; + } + case CollectionProcess.SubSequence.Icon: + { + int num; + flag = this.IsIconBoundary(monitorId, i, out num); + break; + } + case CollectionProcess.SubSequence.NamePlate: + { + int num; + flag = this.IsPlateBoundary(monitorId, i, out num); + break; + } + case CollectionProcess.SubSequence.Frame: + { + int num; + flag = this.IsFrameBoundary(monitorId, i, out num); + break; + } + case CollectionProcess.SubSequence.Prtner: + { + int num; + flag = this.IsPartnerBoundary(monitorId, i, out num); + break; + } + case CollectionProcess.SubSequence.Shop: + { + int num; + flag = this.IsShopItemBoundary(monitorId, i, out num); + break; + } + } + if (flag) + { + break; + } + this.SlideScrollCount[monitorId]++; + } + this.SlideScrollCount[monitorId]--; + this.SlideScrollUpdate(monitorId, ref info); + } + + // Token: 0x06000B60 RID: 2912 RVA: 0x0002F944 File Offset: 0x0002EB44 + private void SlideScrollLeft(int monitorId, ref CollectionInfo info) + { + base.SetInputLockInfo(monitorId, 100f); + this._isScrollInputLock[monitorId] = true; + this.SlideScrollToRight[monitorId] = false; + for (int i = 1; i <= 10; i++) + { + bool flag = false; + switch (this._subSequence[monitorId]) + { + case CollectionProcess.SubSequence.Title: + { + int num; + flag = this.IsTitleBoundary(monitorId, i, out num); + break; + } + case CollectionProcess.SubSequence.Icon: + { + int num; + flag = this.IsIconBoundary(monitorId, i, out num); + break; + } + case CollectionProcess.SubSequence.NamePlate: + { + int num; + flag = this.IsPlateBoundary(monitorId, i, out num); + break; + } + case CollectionProcess.SubSequence.Frame: + { + int num; + flag = this.IsFrameBoundary(monitorId, i, out num); + break; + } + case CollectionProcess.SubSequence.Prtner: + { + int num; + flag = this.IsPartnerBoundary(monitorId, i, out num); + break; + } + case CollectionProcess.SubSequence.Shop: + { + int num; + flag = this.IsShopItemBoundary(monitorId, i, out num); + break; + } + } + if (flag) + { + break; + } + this.SlideScrollCount[monitorId]++; + } + this.SlideScrollTime[monitorId] = 50f; + this.SlideScrollCount[monitorId]--; + this.SlideScrollUpdate(monitorId, ref info); + } + + // Token: 0x06000B61 RID: 2913 RVA: 0x0002FA35 File Offset: 0x0002EC35 + private void SlideScrollUpdate(int monitorId, ref CollectionInfo info) + { + if (this.SlideScrollToRight[monitorId]) + { + info.CollectionListRight(true); + return; + } + info.CollectionListLeft(true); + } + + // Token: 0x06000B62 RID: 2914 RVA: 0x0002FA54 File Offset: 0x0002EC54 + private void SkipExit(int monitorId) + { + base.SetInputLockInfo(monitorId, 100f); + this._isScrollInputLock[monitorId] = true; + this.SlideScrollToRight[monitorId] = false; + this.SlideScrollTime[monitorId] = 50f; + this.SlideScrollCount[monitorId] = CollectionGenreID.Exit - this._currentCollectionType[monitorId] - CollectionGenreID.Title; + this.SkipExitUpdate(monitorId); + } + + // Token: 0x06000B63 RID: 2915 RVA: 0x0002FAA8 File Offset: 0x0002ECA8 + private void SkipExitUpdate(int monitorId) + { + this._currentCollectionType[monitorId]++; + this._monitors[monitorId].ScrollCollectionListLeft(false); + this._monitors[monitorId].SetCollectionGenreIDListButton(this._currentCollectionType[monitorId]); + this._monitors[monitorId].SetSelectorBaseColorWithoutAnimation(this._currentCollectionType[monitorId]); + if (this._currentCollectionType[monitorId] == CollectionGenreID.Exit || this._currentCollectionType[monitorId] == CollectionGenreID.ExitLeft) + { + this._monitors[monitorId].SetVisibleExitImage(false); + this.CheckButton(monitorId); + } + } + + // Token: 0x06000B64 RID: 2916 RVA: 0x0002FB2C File Offset: 0x0002ED2C + protected override void UpdateInput(int monitorId) + { + if (!this._isEntry[monitorId]) + { + return; + } + if (this._sequence == CollectionProcess.Sequence.Init || this._sequence == CollectionProcess.Sequence.Start) + { + return; + } + if (this._isScrollInputLock[monitorId]) + { + this.SlideScrollTimer[monitorId] += (float)GameManager.GetGameMSecAdd(); + if (this.SlideScrollTimer[monitorId] > 100f - this.SlideScrollTime[monitorId]) + { + this.SlideScrollTimer[monitorId] = 0f; + if (this.SlideScrollCount[monitorId] > 0) + { + this.SlideScrollCount[monitorId]--; + switch (this._subSequence[monitorId]) + { + case CollectionProcess.SubSequence.SelectCollectionType: + case CollectionProcess.SubSequence.Information: + this.SkipExitUpdate(monitorId); + return; + case CollectionProcess.SubSequence.Title: + this.SlideScrollUpdate(monitorId, ref this._title[monitorId]); + return; + case CollectionProcess.SubSequence.Icon: + this.SlideScrollUpdate(monitorId, ref this._icon[monitorId]); + return; + case CollectionProcess.SubSequence.NamePlate: + this.SlideScrollUpdate(monitorId, ref this._plate[monitorId]); + return; + case CollectionProcess.SubSequence.Frame: + this.SlideScrollUpdate(monitorId, ref this._frame[monitorId]); + return; + case CollectionProcess.SubSequence.Prtner: + this.SlideScrollUpdate(monitorId, ref this._partner[monitorId]); + return; + case CollectionProcess.SubSequence.Shop: + this.SlideScrollUpdate(monitorId, ref this._shopItem[monitorId]); + return; + case CollectionProcess.SubSequence.ShopPartnerGetWindow: + case CollectionProcess.SubSequence.ShopPartnerSetDialog: + case CollectionProcess.SubSequence.PartnerPresent: + case CollectionProcess.SubSequence.PartnerPresentConfirm: + case CollectionProcess.SubSequence.PartnerPresentReward: + case CollectionProcess.SubSequence.Exit: + case CollectionProcess.SubSequence.ExitLeft: + break; + default: + return; + } + } + else + { + this.SlideScrollTime[monitorId] = 0f; + this._isScrollInputLock[monitorId] = false; + } + } + return; + } + switch (this._subSequence[monitorId]) + { + case CollectionProcess.SubSequence.SelectCollectionType: + this.InputCollectionTypeSequence(monitorId); + return; + case CollectionProcess.SubSequence.Title: + this.InputTitleSequence(monitorId); + return; + case CollectionProcess.SubSequence.Icon: + this.InputIconSequence(monitorId); + return; + case CollectionProcess.SubSequence.NamePlate: + this.InputNamePlateSequence(monitorId); + return; + case CollectionProcess.SubSequence.Frame: + this.InputFrameSequence(monitorId); + return; + case CollectionProcess.SubSequence.Prtner: + this.InputPartnerSequence(monitorId); + return; + case CollectionProcess.SubSequence.Shop: + this.InputShopSequence(monitorId); + this.UpdateShop(monitorId); + return; + case CollectionProcess.SubSequence.ShopPartnerGetWindow: + this.InputGetPartnerWindowSequence(monitorId); + this.UpdateGetPartnerWindow(monitorId); + return; + case CollectionProcess.SubSequence.ShopPartnerSetDialog: + this.InputSetPartnerDialogSequence(monitorId); + this.UpdateSetPartnerDialog(monitorId); + return; + case CollectionProcess.SubSequence.PartnerPresent: + this.InputPartnerPresentSequence(monitorId); + this.UpdatePartnerPresent(monitorId); + return; + case CollectionProcess.SubSequence.PartnerPresentConfirm: + this.InputPartnerPresentConfirmSequence(monitorId); + return; + case CollectionProcess.SubSequence.PartnerPresentReward: + this.InputPartnerPresentRewardSequence(monitorId); + this.UpdatePartnerPresentReward(monitorId); + break; + case CollectionProcess.SubSequence.Exit: + case CollectionProcess.SubSequence.ExitLeft: + case CollectionProcess.SubSequence.AimeInfo: + case CollectionProcess.SubSequence.Max: + break; + case CollectionProcess.SubSequence.Information: + this.InputInformationSequence(monitorId); + return; + default: + return; + } + } + + // Token: 0x06000B65 RID: 2917 RVA: 0x0002FD81 File Offset: 0x0002EF81 + private CollectionProcess.SubSequence ConvertToSubSequence(CollectionGenreID type) + { + switch (type) + { + case CollectionGenreID.ExitLeft: + return CollectionProcess.SubSequence.ExitLeft; + case CollectionGenreID.Title: + return CollectionProcess.SubSequence.Title; + case CollectionGenreID.Icon: + return CollectionProcess.SubSequence.Icon; + case CollectionGenreID.Plate: + return CollectionProcess.SubSequence.NamePlate; + case CollectionGenreID.Frame: + return CollectionProcess.SubSequence.Frame; + case CollectionGenreID.Partner: + return CollectionProcess.SubSequence.Prtner; + case CollectionGenreID.Shop: + return CollectionProcess.SubSequence.Shop; + case CollectionGenreID.Exit: + return CollectionProcess.SubSequence.Exit; + default: + return CollectionProcess.SubSequence.SelectCollectionType; + } + } + + // Token: 0x06000B66 RID: 2918 RVA: 0x0002FDC0 File Offset: 0x0002EFC0 + public CollectionGenreID ConvertToCollectionGenreID(CollectionProcess.SubSequence subSequence) + { + switch (subSequence) + { + case CollectionProcess.SubSequence.Title: + return CollectionGenreID.Title; + case CollectionProcess.SubSequence.Icon: + return CollectionGenreID.Icon; + case CollectionProcess.SubSequence.NamePlate: + return CollectionGenreID.Plate; + case CollectionProcess.SubSequence.Frame: + return CollectionGenreID.Frame; + case CollectionProcess.SubSequence.Prtner: + return CollectionGenreID.Partner; + case CollectionProcess.SubSequence.Shop: + return CollectionGenreID.Shop; + case CollectionProcess.SubSequence.Exit: + return CollectionGenreID.Exit; + case CollectionProcess.SubSequence.ExitLeft: + return CollectionGenreID.ExitLeft; + } + return CollectionGenreID.End; + } + + // Token: 0x06000B67 RID: 2919 RVA: 0x0002FE1C File Offset: 0x0002F01C + public int GetCurrentCategoryMax(int monitorId) + { + switch (this._subSequence[monitorId]) + { + case CollectionProcess.SubSequence.Title: + return this._title[monitorId].GetIndexNum(); + case CollectionProcess.SubSequence.Icon: + return this._icon[monitorId].GetIndexNum(); + case CollectionProcess.SubSequence.NamePlate: + return this._plate[monitorId].GetIndexNum(); + case CollectionProcess.SubSequence.Frame: + return this._frame[monitorId].GetIndexNum(); + case CollectionProcess.SubSequence.Prtner: + return this._partner[monitorId].GetIndexNum(); + case CollectionProcess.SubSequence.Shop: + return this._shopItem[monitorId].GetIndexNum(); + default: + return 0; + } + } + + // Token: 0x06000B68 RID: 2920 RVA: 0x0002FEAC File Offset: 0x0002F0AC + public string CategoryName(int monitorId, int diff) + { + switch (this._subSequence[monitorId]) + { + case CollectionProcess.SubSequence.Title: + return this.TitleCategoryName(monitorId, diff); + case CollectionProcess.SubSequence.Icon: + return this.IconCategoryName(monitorId, diff); + case CollectionProcess.SubSequence.NamePlate: + return this.PlateCategoryName(monitorId, diff); + case CollectionProcess.SubSequence.Frame: + return this.FrameCategoryName(monitorId, diff); + case CollectionProcess.SubSequence.Prtner: + return this.PartnerCategoryName(monitorId, diff); + case CollectionProcess.SubSequence.Shop: + return this.ShopItemCategoryName(monitorId, diff); + default: + return ""; + } + } + + // Token: 0x06000B69 RID: 2921 RVA: 0x0002FF20 File Offset: 0x0002F120 + private List GetColletionTabData(int monitorId) + { + switch (this._subSequence[monitorId]) + { + case CollectionProcess.SubSequence.Title: + return this._title[monitorId].TabData; + case CollectionProcess.SubSequence.Icon: + return this._icon[monitorId].TabData; + case CollectionProcess.SubSequence.NamePlate: + return this._plate[monitorId].TabData; + case CollectionProcess.SubSequence.Frame: + return this._frame[monitorId].TabData; + case CollectionProcess.SubSequence.Prtner: + return this._partner[monitorId].TabData; + case CollectionProcess.SubSequence.Shop: + return this._shopItem[monitorId].TabData; + default: + return null; + } + } + + // Token: 0x06000B6A RID: 2922 RVA: 0x0002FFB0 File Offset: 0x0002F1B0 + public string CurrentElementText(int monitorId) + { + switch (this._subSequence[monitorId]) + { + case CollectionProcess.SubSequence.Title: + return this.CurrentTitleIndex(monitorId) + 1 + " / " + this.GetCurrentCategoryMax(monitorId); + case CollectionProcess.SubSequence.Icon: + return this.CurrentIconIndex(monitorId) + 1 + " / " + this.GetCurrentCategoryMax(monitorId); + case CollectionProcess.SubSequence.NamePlate: + return this.CurrentPlateIndex(monitorId) + 1 + " / " + this.GetCurrentCategoryMax(monitorId); + case CollectionProcess.SubSequence.Frame: + return this.CurrentFrameIndex(monitorId) + 1 + " / " + this.GetCurrentCategoryMax(monitorId); + case CollectionProcess.SubSequence.Prtner: + return this.CurrentPartnerIndex(monitorId) + 1 + " / " + this.GetCurrentCategoryMax(monitorId); + case CollectionProcess.SubSequence.Shop: + return this.CurrentShopItemIndex(monitorId) + 1 + " / " + this.GetCurrentCategoryMax(monitorId); + default: + return ""; + } + } + + // Token: 0x06000B6B RID: 2923 RVA: 0x000300D0 File Offset: 0x0002F2D0 + public int CurrentCollectionIndex(int monitorId) + { + int num = 0; + switch (this._subSequence[monitorId]) + { + case CollectionProcess.SubSequence.Title: + num = this.CurrentTitleIndex(monitorId); + break; + case CollectionProcess.SubSequence.Icon: + num = this.CurrentIconIndex(monitorId); + break; + case CollectionProcess.SubSequence.NamePlate: + num = this.CurrentPlateIndex(monitorId); + break; + case CollectionProcess.SubSequence.Frame: + num = this.CurrentFrameIndex(monitorId); + break; + case CollectionProcess.SubSequence.Prtner: + num = this.CurrentPartnerIndex(monitorId); + break; + case CollectionProcess.SubSequence.Shop: + num = this.CurrentShopItemIndex(monitorId); + break; + } + return num; + } + + // Token: 0x06000B6C RID: 2924 RVA: 0x00030148 File Offset: 0x0002F348 + public int CurrentCategoryCollectionNum(int monitorId) + { + int num = 0; + CollectionProcess.SubSequence subSequence = this._subSequence[monitorId]; + if (subSequence != CollectionProcess.SubSequence.SelectCollectionType) + { + if (subSequence - CollectionProcess.SubSequence.Title <= 5) + { + num = this.GetCurrentCategoryMax(monitorId); + } + } + else + { + num = 8; + } + return num; + } + + // Token: 0x06000B6D RID: 2925 RVA: 0x00030178 File Offset: 0x0002F378 + public int CurrentCategoryIndex(int monitorId) + { + int num; + switch (this._subSequence[monitorId]) + { + case CollectionProcess.SubSequence.Title: + num = this._title[monitorId].CategoryIndex; + break; + case CollectionProcess.SubSequence.Icon: + num = this._icon[monitorId].CategoryIndex; + break; + case CollectionProcess.SubSequence.NamePlate: + num = this._plate[monitorId].CategoryIndex; + break; + case CollectionProcess.SubSequence.Frame: + num = this._frame[monitorId].CategoryIndex; + break; + case CollectionProcess.SubSequence.Prtner: + num = this._partner[monitorId].CategoryIndex; + break; + case CollectionProcess.SubSequence.Shop: + num = this._shopItem[monitorId].CategoryIndex; + break; + default: + num = 0; + break; + } + return num; + } + + // Token: 0x06000B6E RID: 2926 RVA: 0x00030218 File Offset: 0x0002F418 + public List GetTabDatas(int monitorId) + { + CollectionProcess.SubSequence subSequence = this._subSequence[monitorId]; + if (subSequence - CollectionProcess.SubSequence.Title <= 5) + { + return this.GetColletionTabData(monitorId); + } + return null; + } + + // Token: 0x06000B6F RID: 2927 RVA: 0x0003023D File Offset: 0x0002F43D + public void EnqueueMessage(int monitorId, WindowMessageID messageId) + { + this.container.processManager.EnqueueMessage(monitorId, messageId, null); + } + + // Token: 0x06000B70 RID: 2928 RVA: 0x00030252 File Offset: 0x0002F452 + public void SetSubSequence(int monitorId, CollectionProcess.SubSequence subSequence) + { + this._subSequence[monitorId] = subSequence; + } + + // Token: 0x06000B71 RID: 2929 RVA: 0x0003025D File Offset: 0x0002F45D + private void TimeUp(int monitorId) + { + this._monitors[monitorId].timeUp = true; + this.container.processManager.SetVisibleTimer(monitorId, false); + } + + // Token: 0x06000B72 RID: 2930 RVA: 0x00030280 File Offset: 0x0002F480 + private void TimeUpAll() + { + for (int i = 0; i < this._monitors.Length; i++) + { + this._monitors[i].timeUp = true; + this.container.processManager.SetVisibleTimer(i, false); + } + } + + // Token: 0x06000B73 RID: 2931 RVA: 0x000302C0 File Offset: 0x0002F4C0 + private void GotoNextProcess() + { + for (int i = 0; i < this._monitors.Length; i++) + { + this._subSequence[i] = CollectionProcess.SubSequence.Max; + } + this.container.processManager.ForceTimeUp(); + this.SaveCollectionData(); + for (int j = 0; j < this._monitors.Length; j++) + { + SoundManager.SetPartnerVoiceCueUserEquiped(j); + } + this._sequence = CollectionProcess.Sequence.Released; + } + + // Token: 0x06000B74 RID: 2932 RVA: 0x00030320 File Offset: 0x0002F520 + private void SaveCollectionData() + { + for (int i = 0; i < this._monitors.Length; i++) + { + bool flag = this._isEntry[i]; + } + } + + // Token: 0x06000B75 RID: 2933 RVA: 0x00003598 File Offset: 0x00002798 + private void CreateDummyData() + { + } + + // Token: 0x06000B76 RID: 2934 RVA: 0x0003034C File Offset: 0x0002F54C + private void CheckButton(int monitorId) + { + switch (this._currentCollectionType[monitorId]) + { + case CollectionGenreID.ExitLeft: + this._monitors[monitorId].SetVisibleExitImage(false); + this._monitors[monitorId].ChangeFlatButtonSymbol(2, 2); + break; + case CollectionGenreID.Title: + case CollectionGenreID.Icon: + case CollectionGenreID.Plate: + case CollectionGenreID.Frame: + case CollectionGenreID.Partner: + this._monitors[monitorId].SetVisibleExitImage(true); + if (!this._monitors[monitorId].GetVisibleButton(2)) + { + this._monitors[monitorId].SetVisibleButton(true, new int[] { 2 }); + if (this._monitors[monitorId].GetFlatButtonType(2) != ButtonControllerBase.FlatButtonType.Custom) + { + this._monitors[monitorId].ChangeFlatButtonDefine(2, 24); + return; + } + } + else if (this._monitors[monitorId].GetFlatButtonType(2) != ButtonControllerBase.FlatButtonType.Custom) + { + this._monitors[monitorId].ChangeFlatButtonSymbol(2, 24); + return; + } + break; + case CollectionGenreID.Shop: + this._monitors[monitorId].SetVisibleExitImage(true); + if (this._shopItem[monitorId].TabData.Count == 0 && this._monitors[monitorId].GetVisibleButton(2)) + { + this._monitors[monitorId].SetVisibleButton(false, new int[] { 2 }); + return; + } + if (this._shopItem[monitorId].TabData.Count > 0) + { + this._monitors[monitorId].ChangeFlatButtonSymbol(2, 5); + return; + } + break; + case CollectionGenreID.Exit: + this._monitors[monitorId].SetVisibleExitImage(false); + this._monitors[monitorId].ChangeFlatButtonSymbol(2, 2); + return; + default: + return; + } + } + + // Token: 0x06000B77 RID: 2935 RVA: 0x000304B8 File Offset: 0x0002F6B8 + private void InputFrameSequence(int monitorId) + { + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L)) + { + bool inputLongPush = InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L); + bool flag = this._frame[monitorId].CollectionListLeft(inputLongPush); + this._frame[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipFrameID); + this._frame[monitorId].UpdateFavoriteDetail(UserData.Collection.Frame); + base.SetInputLockInfo(monitorId, (float)(flag ? 200 : 100)); + return; + } + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L)) + { + bool inputLongPush2 = InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L); + bool flag2 = this._frame[monitorId].CollectionListRight(inputLongPush2); + this._frame[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipFrameID); + this._frame[monitorId].UpdateFavoriteDetail(UserData.Collection.Frame); + base.SetInputLockInfo(monitorId, (float)(flag2 ? 200 : 100)); + return; + } + if (InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.E2)) + { + this._frame[monitorId].ShiftCategoryLeft(); + this._frame[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipFrameID); + base.SetInputLockInfo(monitorId, 200f); + return; + } + if (InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.E8)) + { + this._frame[monitorId].ShiftCategoryRight(); + this._frame[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipFrameID); + base.SetInputLockInfo(monitorId, 200f); + return; + } + if (!InputManager.GetTouchPanelAreaDown(monitorId, new InputManager.TouchPanelArea[] + { + InputManager.TouchPanelArea.B4, + InputManager.TouchPanelArea.B5 + })) + { + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button05)) + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.SelectCollectionType; + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.SelectCollectionType); + this._frame[monitorId].RefreshIndex(); + base.SetInputLockInfo(monitorId, 550f); + this.LoadCollectionData(monitorId); + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + if (userData.Detail.EquipFrameID == 3 && userData.IsEqualFavoriteListNum(UserData.Collection.Frame, 0)) + { + this.ChangeEquipmentFrame(monitorId, 2); + return; + } + } + else if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04)) + { + CollectionData currentCenterCollectionData = this._frame[monitorId].GetCurrentCenterCollectionData(); + int equipFrameID = Singleton.Instance.GetUserData((long)monitorId).Detail.EquipFrameID; + if (currentCenterCollectionData == null || equipFrameID == currentCenterCollectionData.GetID() || !currentCenterCollectionData.IsHave) + { + return; + } + this.ChangeEquipmentFrame(monitorId, currentCenterCollectionData.GetID()); + this._frame[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipFrameID); + base.SetInputLockInfo(monitorId, 550f); + return; + } + else + { + if (InputManager.SlideAreaLr(monitorId)) + { + this.SlideScrollRight(monitorId, ref this._frame[monitorId]); + this._frame[monitorId].UpdateFavoriteDetail(UserData.Collection.Frame); + return; + } + if (InputManager.SlideAreaRl(monitorId)) + { + this.SlideScrollLeft(monitorId, ref this._frame[monitorId]); + this._frame[monitorId].UpdateFavoriteDetail(UserData.Collection.Frame); + return; + } + this._monitors[monitorId].SetScrollCard(false); + } + return; + } + CollectionData currentCenterCollectionData2 = this._frame[monitorId].GetCurrentCenterCollectionData(); + if (currentCenterCollectionData2 == null || !currentCenterCollectionData2.IsHave || currentCenterCollectionData2.IsRandom) + { + return; + } + UserData userData2 = Singleton.Instance.GetUserData((long)monitorId); + bool flag3 = userData2.FlipFavorite(UserData.Collection.Frame, currentCenterCollectionData2.ID); + currentCenterCollectionData2.IsFavorite = flag3; + if (!userData2.IsMaxFavoriteItem(UserData.Collection.Frame) || flag3) + { + SoundManager.PlaySE(Mai2.Mai2Cue.Cue.SE_SYS_FIX, monitorId); + } + this._monitors[monitorId].UpdateFavoriteCollection(UserData.Collection.Frame, flag3); + base.SetInputLockInfo(monitorId, 200f); + } + + // Token: 0x06000B78 RID: 2936 RVA: 0x0003084C File Offset: 0x0002FA4C + private void CreateFrameData(int monitorId) + { + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + List list = new List(); + int i; + List list2 = (from i in userData.FrameList + where i.stock > 0 + select i.itemId).ToList(); + List newFrameList = userData.NewFrameList; + List favoriteFrameList = userData.FavoriteFrameList; + SortedDictionary> sortedDictionary = new SortedDictionary>(); + if (0 < newFrameList.Count) + { + CollectionGenreData collectionGenre = Singleton.Instance.GetCollectionGenre(2); + List list3 = new List(); + List list4 = new List(); + int num = ((10 < newFrameList.Count) ? 10 : newFrameList.Count); + for (i = 0; i < num; i++) + { + FrameData frame = Singleton.Instance.GetFrame(newFrameList[i]); + list3.Add(frame); + list4.Add(frame.GetID()); + } + sortedDictionary.Add(collectionGenre.GetID(), list4); + } + if (0 < favoriteFrameList.Count) + { + CollectionGenreData collectionGenre2 = Singleton.Instance.GetCollectionGenre(100); + List list5 = new List(); + List list6 = new List(); + int num2 = ((30 < favoriteFrameList.Count) ? 30 : favoriteFrameList.Count); + for (int j = 0; j < num2; j++) + { + FrameData frame2 = Singleton.Instance.GetFrame(favoriteFrameList[j]); + list5.Add(frame2); + } + list5 = list5.OrderBy((FrameData x) => x.priority).ToList(); + foreach (FrameData frameData in list5) + { + list6.Add(frameData.GetID()); + } + sortedDictionary.Add(collectionGenre2.GetID(), list6); + } + foreach (KeyValuePair keyValuePair in from x in Singleton.Instance.GetFrames() + orderby x.Value.priority + select x) + { + int id2 = keyValuePair.Value.genre.id; + bool flag = list2.Contains(keyValuePair.Value.GetID()); + bool flag2 = keyValuePair.Value.dispCond == ItemDispKind.None || keyValuePair.Value.disable; + if ((flag || flag2) && id2 != 101) + { + if (sortedDictionary.ContainsKey(id2)) + { + sortedDictionary[id2].Add(keyValuePair.Value.GetID()); + } + else + { + List list7 = new List { keyValuePair.Value.GetID() }; + sortedDictionary.Add(id2, list7); + } + } + } + List list8 = new List(); + FrameData frameData2 = new FrameData(); + List> list9 = new List>(); + AssetManager assetManager = AssetManager.Instance(); + List list10 = new List(); + frameData2 = Singleton.Instance.GetFrame(2); + Singleton.Instance.GetCollectionGenre(101); + CollectionData collectionData = new CollectionData + { + NetOpenName = frameData2.netOpenName, + DataName = frameData2.dataName, + Disable = frameData2.disable, + Genre = frameData2.genre, + IsDefault = frameData2.isDefault, + IsHave = true, + IsDisp = true, + NormText = frameData2.normText, + Priority = frameData2.priority, + ID = frameData2.GetID(), + NameStr = frameData2.name.str + }; + list8.Add(collectionData); + list10.Add(collectionData.ID); + if (0 < favoriteFrameList.Count) + { + frameData2 = Singleton.Instance.GetFrame(3); + CollectionData collectionData2 = new CollectionData + { + NetOpenName = frameData2.netOpenName, + DataName = frameData2.dataName, + Disable = frameData2.disable, + Genre = frameData2.genre, + IsDefault = frameData2.isDefault, + IsHave = true, + IsDisp = true, + NormText = frameData2.normText, + Priority = frameData2.priority, + ID = frameData2.GetID(), + NameStr = frameData2.name.str + }; + list8.Add(collectionData2); + list10.Add(collectionData2.ID); + } + sortedDictionary.Add(101, list10); + foreach (KeyValuePair keyValuePair2 in from x in Singleton.Instance.GetCollectionGenres() + orderby x.Value.priority + select x) + { + if (sortedDictionary.ContainsKey(keyValuePair2.Value.GetID())) + { + ReadOnlyCollection readOnlyCollection = new ReadOnlyCollection(sortedDictionary[keyValuePair2.Value.GetID()]); + list9.Add(readOnlyCollection); + Sprite tabTitleSprite = assetManager.GetTabTitleSprite(keyValuePair2.Value.FileName); + list.Add(new CollectionTabData(Utility.ConvertColor(keyValuePair2.Value.Color), tabTitleSprite, keyValuePair2.Value.genreNameTwoLine, "")); + } + } + for (int k = 0; k < list9.Count; k++) + { + for (int l = 0; l < list9[k].Count; l++) + { + int id = list9[k][l]; + if (!list8.Any((CollectionData c) => c.GetID() == id)) + { + frameData2 = Singleton.Instance.GetFrame(id); + bool flag3 = list2.Contains(frameData2.GetID()); + bool flag4 = frameData2.dispCond == ItemDispKind.None || frameData2.disable; + if (flag3 || flag4) + { + bool flag5 = newFrameList.Contains(frameData2.GetID()); + bool flag6 = favoriteFrameList.Contains(frameData2.GetID()); + CollectionData collectionData3 = new CollectionData + { + NetOpenName = frameData2.netOpenName, + DataName = frameData2.dataName, + Disable = frameData2.disable, + Genre = frameData2.genre, + IsDefault = frameData2.isDefault, + IsHave = flag3, + IsNew = flag5, + IsDisp = flag4, + IsFavorite = flag6, + NormText = frameData2.normText, + ReleaseTagName = frameData2.releaseTagName, + Priority = frameData2.priority, + ID = frameData2.GetID(), + NameStr = frameData2.name.str + }; + list8.Add(collectionData3); + } + } + } + } + if (list8.Count > 0 && userData.Detail.EquipFrameID == 0) + { + int setting_id = 1; + userData.Detail.EquipFrameID = setting_id; + int num3 = list8.FindIndex((CollectionData m) => m.ID == setting_id); + if (num3 >= 0) + { + list8[num3].IsDefault = true; + list8[num3].IsHave = true; + } + } + this._frame[monitorId].Initialize(list9, list8, list, this, this._monitors[monitorId], newFrameList.Count > 0, userData.Detail.EquipFrameID); + } + + // Token: 0x06000B79 RID: 2937 RVA: 0x0003101C File Offset: 0x0003021C + public bool IsHaveNewFrame(int monitorId) + { + return this._frame[monitorId].IsHaveNewIcon(); + } + + // Token: 0x06000B7A RID: 2938 RVA: 0x0003102B File Offset: 0x0003022B + public CollectionData GetFrameById(int monitorId, int targetId) + { + return this._frame[monitorId].GetCollectionById(targetId); + } + + // Token: 0x06000B7B RID: 2939 RVA: 0x0003103B File Offset: 0x0003023B + public CollectionData GetFrame(int monitorId, int diffIndex) + { + return this._frame[monitorId].GetCollection(diffIndex); + } + + // Token: 0x06000B7C RID: 2940 RVA: 0x0003104B File Offset: 0x0003024B + public bool IsFrameBoundary(int monitorId, int diffIndex, out int overCount) + { + return this._frame[monitorId].IsCollectionBoundary(diffIndex, out overCount); + } + + // Token: 0x06000B7D RID: 2941 RVA: 0x0003105C File Offset: 0x0003025C + public int GetAllFrameNum(int monitorId) + { + return this._frame[monitorId].GetAllCollectionNum(); + } + + // Token: 0x06000B7E RID: 2942 RVA: 0x0003106B File Offset: 0x0003026B + public int GetCurrentFrameIndex(int monitorId) + { + return this._frame[monitorId].GetCurrentIndex(); + } + + // Token: 0x06000B7F RID: 2943 RVA: 0x0003107C File Offset: 0x0003027C + private string FrameCategoryName(int monitorId, int diff) + { + int num = this._frame[monitorId].CategoryIndex + diff; + if (num < 0) + { + num = this._frame[monitorId].TabData.Count - 1; + } + else if (this._frame[monitorId].TabData.Count <= num) + { + num = 0; + } + return this._frame[monitorId].CategoryName(num); + } + + // Token: 0x06000B80 RID: 2944 RVA: 0x000310DC File Offset: 0x000302DC + private void ChangeEquipmentFrame(int monitorId, int collectionId) + { + this._monitors[monitorId].PushDesitionButton(this._subSequence[monitorId]); + Texture2D frameTexture2D = this.container.assetManager.GetFrameTexture2D(collectionId); + FrameData frame = Singleton.Instance.GetFrame(collectionId); + bool flag; + Texture2D texture2D; + Texture2D texture2D2; + Texture2D texture2D3; + if (frame != null && frame.isEffect) + { + flag = true; + texture2D = this.container.assetManager.GetFrameTexture2D(collectionId); + texture2D2 = this.container.assetManager.GetFrameMaskTexture2D(collectionId); + texture2D3 = this.container.assetManager.GetFramePatternTexture2D(collectionId); + } + else + { + flag = false; + texture2D = null; + texture2D2 = null; + texture2D3 = null; + } + this.container.processManager.SendMessage(new Message(ProcessType.CommonProcess, 30009, new object[] { monitorId, frameTexture2D, flag, texture2D, texture2D2, texture2D3 })); + Singleton.Instance.GetUserData((long)monitorId).Detail.EquipFrameID = collectionId; + } + + // Token: 0x06000B81 RID: 2945 RVA: 0x000311D4 File Offset: 0x000303D4 + public void InitalizeShopGetPartnerWindow(int monitorId, int naviCharaId, int partnerId, string partnerName) + { + for (int i = 0; i < this.shopGetPartnerWindowState.Length; i++) + { + this.shopGetPartnerWindowState[i] = ShopPartnerGetWindow.State.Idle; + } + ShopPartnerGetWindow shopPartnerGetWindow = this._monitors[monitorId].GetShopPartnerGetWindow(); + shopPartnerGetWindow.SetVisable(true); + shopPartnerGetWindow.Initalize(naviCharaId, partnerId, partnerName, monitorId); + shopPartnerGetWindow.ChangeState(ShopPartnerGetWindow.State.FadeInEnter); + } + + // Token: 0x06000B82 RID: 2946 RVA: 0x00031222 File Offset: 0x00030422 + private void InputGetPartnerWindowSequence(int monitorId) + { + if (this.shopGetPartnerWindowState[monitorId] != ShopPartnerGetWindow.State.WaitLoop) + { + return; + } + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04)) + { + this._monitors[monitorId].GetShopPartnerGetWindow().ChangeState(ShopPartnerGetWindow.State.WaitEnd); + this._monitors[monitorId].SetActiveButtonAnimation(2); + } + } + + // Token: 0x06000B83 RID: 2947 RVA: 0x0003125C File Offset: 0x0003045C + private void UpdateGetPartnerWindow(int monitorId) + { + ShopPartnerGetWindow shopPartnerGetWindow = this._monitors[monitorId].GetShopPartnerGetWindow(); + ShopPartnerGetWindow.State state = this.shopGetPartnerWindowState[monitorId]; + this.shopGetPartnerWindowState[monitorId] = shopPartnerGetWindow.GetCurrentState(); + if (state == ShopPartnerGetWindow.State.FadeInEnd && this.shopGetPartnerWindowState[monitorId] == ShopPartnerGetWindow.State.WaitEnter) + { + this._monitors[monitorId].ChangeFlatButtonDefine(2, 4); + this._monitors[monitorId].SetVisibleButton(true, new int[] { 2 }); + return; + } + if (state == ShopPartnerGetWindow.State.WaitLoop && this.shopGetPartnerWindowState[monitorId] == ShopPartnerGetWindow.State.WaitEnd) + { + this._monitors[monitorId].SetVisibleButton(false, new int[] { 2 }); + return; + } + if (state == ShopPartnerGetWindow.State.FadeOutLoop && this.shopGetPartnerWindowState[monitorId] == ShopPartnerGetWindow.State.FadeOutEnd) + { + shopPartnerGetWindow.SetVisable(false); + this._monitors[monitorId].shopPartnerWindowOpened = false; + if (!this._monitors[monitorId].timeUp) + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.ShopPartnerSetDialog; + this._monitors[monitorId].ChangeSubSequence(this._subSequence[monitorId]); + this.InitalizeSetPartnerDialogSequence(monitorId, shopPartnerGetWindow.GetPartnerId()); + } + } + } + + // Token: 0x06000B84 RID: 2948 RVA: 0x0003134C File Offset: 0x0003054C + private void InputIconSequence(int monitorId) + { + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L)) + { + bool inputLongPush = InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L); + bool flag = this._icon[monitorId].CollectionListLeft(inputLongPush); + this._icon[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipIconID); + this._icon[monitorId].UpdateFavoriteDetail(UserData.Collection.Icon); + base.SetInputLockInfo(monitorId, (float)(flag ? 200 : 100)); + return; + } + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L)) + { + bool inputLongPush2 = InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L); + bool flag2 = this._icon[monitorId].CollectionListRight(inputLongPush2); + this._icon[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipIconID); + this._icon[monitorId].UpdateFavoriteDetail(UserData.Collection.Icon); + base.SetInputLockInfo(monitorId, (float)(flag2 ? 200 : 100)); + return; + } + if (InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.E2)) + { + this._icon[monitorId].ShiftCategoryLeft(); + this._icon[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipIconID); + base.SetInputLockInfo(monitorId, 200f); + return; + } + if (InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.E8)) + { + this._icon[monitorId].ShiftCategoryRight(); + this._icon[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipIconID); + base.SetInputLockInfo(monitorId, 200f); + return; + } + if (!InputManager.GetTouchPanelAreaDown(monitorId, new InputManager.TouchPanelArea[] + { + InputManager.TouchPanelArea.B4, + InputManager.TouchPanelArea.B5 + })) + { + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button05)) + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.SelectCollectionType; + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.SelectCollectionType); + this._icon[monitorId].RefreshIndex(); + base.SetInputLockInfo(monitorId, 550f); + this.LoadCollectionData(monitorId); + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + if (userData.Detail.EquipIconID == 3 && userData.IsEqualFavoriteListNum(UserData.Collection.Icon, 0)) + { + this.ChangeEquipmentIcon(monitorId, 2); + return; + } + } + else if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04)) + { + CollectionData currentCenterCollectionData = this._icon[monitorId].GetCurrentCenterCollectionData(); + int equipIconID = Singleton.Instance.GetUserData((long)monitorId).Detail.EquipIconID; + int id = currentCenterCollectionData.GetID(); + if (currentCenterCollectionData == null || equipIconID == id || !currentCenterCollectionData.IsHave) + { + return; + } + this.ChangeEquipmentIcon(monitorId, id); + this._icon[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipIconID); + return; + } + else + { + if (InputManager.SlideAreaLr(monitorId)) + { + this.SlideScrollRight(monitorId, ref this._icon[monitorId]); + this._icon[monitorId].UpdateFavoriteDetail(UserData.Collection.Icon); + return; + } + if (InputManager.SlideAreaRl(monitorId)) + { + this.SlideScrollLeft(monitorId, ref this._icon[monitorId]); + this._icon[monitorId].UpdateFavoriteDetail(UserData.Collection.Icon); + return; + } + this._monitors[monitorId].SetScrollCard(false); + } + return; + } + CollectionData currentCenterCollectionData2 = this._icon[monitorId].GetCurrentCenterCollectionData(); + if (currentCenterCollectionData2 == null || !currentCenterCollectionData2.IsHave || currentCenterCollectionData2.IsRandom || currentCenterCollectionData2.ID == 10) + { + return; + } + UserData userData2 = Singleton.Instance.GetUserData((long)monitorId); + bool flag3 = userData2.FlipFavorite(UserData.Collection.Icon, currentCenterCollectionData2.ID); + currentCenterCollectionData2.IsFavorite = flag3; + if (!userData2.IsMaxFavoriteItem(UserData.Collection.Icon) || flag3) + { + SoundManager.PlaySE(Mai2.Mai2Cue.Cue.SE_SYS_FIX, monitorId); + } + this._monitors[monitorId].UpdateFavoriteCollection(UserData.Collection.Icon, flag3); + base.SetInputLockInfo(monitorId, 200f); + } + + // Token: 0x06000B85 RID: 2949 RVA: 0x000316DC File Offset: 0x000308DC + private void CreateIconData(int monitorId) + { + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + List list = new List(); + int i; + List list2 = (from i in userData.IconList + where i.stock > 0 + select i.itemId).ToList(); + List newIconList = userData.NewIconList; + List favoriteIconList = userData.FavoriteIconList; + SortedDictionary> sortedDictionary = new SortedDictionary>(); + if (0 < newIconList.Count) + { + CollectionGenreData collectionGenre = Singleton.Instance.GetCollectionGenre(2); + List list3 = new List(); + List list4 = new List(); + int num = ((10 < newIconList.Count) ? 10 : newIconList.Count); + for (i = 0; i < num; i++) + { + IconData icon = Singleton.Instance.GetIcon(newIconList[i]); + list3.Add(icon); + list4.Add(icon.GetID()); + } + sortedDictionary.Add(collectionGenre.GetID(), list4); + } + if (0 < favoriteIconList.Count) + { + CollectionGenreData collectionGenre2 = Singleton.Instance.GetCollectionGenre(100); + List list5 = new List(); + List list6 = new List(); + int num2 = ((30 < favoriteIconList.Count) ? 30 : favoriteIconList.Count); + for (int j = 0; j < num2; j++) + { + IconData icon2 = Singleton.Instance.GetIcon(favoriteIconList[j]); + list5.Add(icon2); + } + list5 = list5.OrderBy((IconData x) => x.priority).ToList(); + foreach (IconData iconData in list5) + { + list6.Add(iconData.GetID()); + } + sortedDictionary.Add(collectionGenre2.GetID(), list6); + } + foreach (KeyValuePair keyValuePair in from x in Singleton.Instance.GetIcons() + orderby x.Value.priority + select x) + { + int id2 = keyValuePair.Value.genre.id; + bool flag = list2.Contains(keyValuePair.Value.GetID()); + bool flag2 = keyValuePair.Value.dispCond == ItemDispKind.None || keyValuePair.Value.disable; + if ((flag || flag2) && id2 != 101) + { + if (sortedDictionary.ContainsKey(id2)) + { + sortedDictionary[id2].Add(keyValuePair.Value.GetID()); + } + else + { + List list7 = new List { keyValuePair.Value.GetID() }; + sortedDictionary.Add(id2, list7); + } + } + } + List list8 = new List(); + IconData iconData2 = new IconData(); + List> list9 = new List>(); + AssetManager assetManager = AssetManager.Instance(); + List list10 = new List(); + iconData2 = Singleton.Instance.GetIcon(2); + Singleton.Instance.GetCollectionGenre(101); + CollectionData collectionData = new CollectionData + { + NetOpenName = iconData2.netOpenName, + DataName = iconData2.dataName, + Disable = iconData2.disable, + Genre = iconData2.genre, + IsDefault = iconData2.isDefault, + IsHave = true, + IsDisp = true, + NormText = iconData2.normText, + Priority = iconData2.priority, + ID = iconData2.GetID(), + NameStr = iconData2.name.str + }; + list8.Add(collectionData); + list10.Add(collectionData.ID); + if (0 < favoriteIconList.Count) + { + iconData2 = Singleton.Instance.GetIcon(3); + CollectionData collectionData2 = new CollectionData + { + NetOpenName = iconData2.netOpenName, + DataName = iconData2.dataName, + Disable = iconData2.disable, + Genre = iconData2.genre, + IsDefault = iconData2.isDefault, + IsHave = true, + IsDisp = true, + NormText = iconData2.normText, + Priority = iconData2.priority, + ID = iconData2.GetID(), + NameStr = iconData2.name.str + }; + list8.Add(collectionData2); + list10.Add(collectionData2.ID); + } + sortedDictionary.Add(101, list10); + foreach (KeyValuePair keyValuePair2 in from x in Singleton.Instance.GetCollectionGenres() + orderby x.Value.priority + select x) + { + if (sortedDictionary.ContainsKey(keyValuePair2.Value.GetID())) + { + ReadOnlyCollection readOnlyCollection = new ReadOnlyCollection(sortedDictionary[keyValuePair2.Value.GetID()]); + list9.Add(readOnlyCollection); + Sprite tabTitleSprite = assetManager.GetTabTitleSprite(keyValuePair2.Value.FileName); + list.Add(new CollectionTabData(Utility.ConvertColor(keyValuePair2.Value.Color), tabTitleSprite, keyValuePair2.Value.genreNameTwoLine, "")); + } + } + for (int k = 0; k < list9.Count; k++) + { + for (int l = 0; l < list9[k].Count; l++) + { + int id = list9[k][l]; + if (!list8.Any((CollectionData c) => c.GetID() == id)) + { + iconData2 = Singleton.Instance.GetIcon(id); + bool flag3 = list2.Contains(iconData2.GetID()); + bool flag4 = iconData2.dispCond == ItemDispKind.None || iconData2.disable; + if (flag3 || flag4) + { + bool flag5 = newIconList.Contains(iconData2.GetID()); + bool flag6 = favoriteIconList.Contains(iconData2.GetID()); + CollectionData collectionData3 = new CollectionData + { + NetOpenName = iconData2.netOpenName, + DataName = iconData2.dataName, + Disable = iconData2.disable, + Genre = iconData2.genre, + IsDefault = iconData2.isDefault, + IsHave = flag3, + IsNew = flag5, + IsDisp = flag4, + IsFavorite = flag6, + NormText = iconData2.normText, + ReleaseTagName = iconData2.releaseTagName, + Priority = iconData2.priority, + ID = iconData2.GetID(), + NameStr = iconData2.name.str + }; + list8.Add(collectionData3); + } + } + } + } + if (list8.Count > 0 && userData.Detail.EquipIconID == 0) + { + int setting_id = 1; + userData.Detail.EquipIconID = setting_id; + int num3 = list8.FindIndex((CollectionData m) => m.ID == setting_id); + if (num3 >= 0) + { + list8[num3].IsDefault = true; + list8[num3].IsHave = true; + } + } + this._icon[monitorId].Initialize(list9, list8, list, this, this._monitors[monitorId], newIconList.Count > 0, userData.Detail.EquipIconID); + } + + // Token: 0x06000B86 RID: 2950 RVA: 0x00031EAC File Offset: 0x000310AC + public bool IsHaveNewIcon(int monitorId) + { + return this._icon[monitorId].IsHaveNewIcon(); + } + + // Token: 0x06000B87 RID: 2951 RVA: 0x00031EBB File Offset: 0x000310BB + public CollectionData GetIconById(int monitorId, int targetId) + { + return this._icon[monitorId].GetCollectionById(targetId); + } + + // Token: 0x06000B88 RID: 2952 RVA: 0x00031ECB File Offset: 0x000310CB + public CollectionData GetIcon(int monitorId, int diffIndex) + { + return this._icon[monitorId].GetCollection(diffIndex); + } + + // Token: 0x06000B89 RID: 2953 RVA: 0x00031EDB File Offset: 0x000310DB + public bool IsIconBoundary(int monitorId, int diffIndex, out int overCount) + { + return this._icon[monitorId].IsCollectionBoundary(diffIndex, out overCount); + } + + // Token: 0x06000B8A RID: 2954 RVA: 0x00031EEC File Offset: 0x000310EC + public int GetAllIconNum(int monitorId) + { + return this._icon[monitorId].GetAllCollectionNum(); + } + + // Token: 0x06000B8B RID: 2955 RVA: 0x00031EFB File Offset: 0x000310FB + public int GetCurrentIconIndex(int monitorId) + { + return this._icon[monitorId].GetCurrentIndex(); + } + + // Token: 0x06000B8C RID: 2956 RVA: 0x00031F0C File Offset: 0x0003110C + private string IconCategoryName(int monitorId, int diff) + { + int num = this._icon[monitorId].CategoryIndex + diff; + if (num < 0) + { + num = this._icon[monitorId].TabData.Count - 1; + } + else if (this._icon[monitorId].TabData.Count <= num) + { + num = 0; + } + return this._icon[monitorId].CategoryName(num); + } + + // Token: 0x06000B8D RID: 2957 RVA: 0x00031F6C File Offset: 0x0003116C + private void ChangeEquipmentIcon(int monitorId, int collectionId) + { + this._monitors[monitorId].PushDesitionButton(this._subSequence[monitorId]); + Texture2D iconTexture2D = this.container.assetManager.GetIconTexture2D(monitorId, collectionId); + this.container.processManager.SendMessage(new Message(ProcessType.CommonProcess, 30002, new object[] { monitorId, iconTexture2D })); + Singleton.Instance.GetUserData((long)monitorId).Detail.EquipIconID = collectionId; + } + + // Token: 0x06000B8E RID: 2958 RVA: 0x00031FE8 File Offset: 0x000311E8 + private void InputNamePlateSequence(int monitorId) + { + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L)) + { + bool inputLongPush = InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L); + bool flag = this._plate[monitorId].CollectionListLeft(inputLongPush); + this._plate[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPlateID); + this._plate[monitorId].UpdateFavoriteDetail(UserData.Collection.Plate); + base.SetInputLockInfo(monitorId, (float)(flag ? 200 : 100)); + return; + } + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L)) + { + bool inputLongPush2 = InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L); + bool flag2 = this._plate[monitorId].CollectionListRight(inputLongPush2); + this._plate[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPlateID); + this._plate[monitorId].UpdateFavoriteDetail(UserData.Collection.Plate); + base.SetInputLockInfo(monitorId, (float)(flag2 ? 200 : 100)); + return; + } + if (InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.E2)) + { + this._plate[monitorId].ShiftCategoryLeft(); + this._plate[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPlateID); + base.SetInputLockInfo(monitorId, 200f); + return; + } + if (InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.E8)) + { + this._plate[monitorId].ShiftCategoryRight(); + this._plate[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPlateID); + base.SetInputLockInfo(monitorId, 200f); + return; + } + if (!InputManager.GetTouchPanelAreaDown(monitorId, new InputManager.TouchPanelArea[] + { + InputManager.TouchPanelArea.B4, + InputManager.TouchPanelArea.B5 + })) + { + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button05)) + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.SelectCollectionType; + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.SelectCollectionType); + this._plate[monitorId].RefreshIndex(); + base.SetInputLockInfo(monitorId, 550f); + this.LoadCollectionData(monitorId); + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + if (userData.Detail.EquipPlateID == 3 && userData.IsEqualFavoriteListNum(UserData.Collection.Plate, 0)) + { + this.ChangeEquipmentPlate(monitorId, 2); + return; + } + } + else if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04)) + { + CollectionData currentCenterCollectionData = this._plate[monitorId].GetCurrentCenterCollectionData(); + int equipPlateID = Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPlateID; + if (currentCenterCollectionData == null || equipPlateID == currentCenterCollectionData.GetID() || !currentCenterCollectionData.IsHave) + { + return; + } + this.ChangeEquipmentPlate(monitorId, currentCenterCollectionData.GetID()); + this._plate[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPlateID); + base.SetInputLockInfo(monitorId, 550f); + return; + } + else + { + if (InputManager.SlideAreaLr(monitorId)) + { + this.SlideScrollRight(monitorId, ref this._plate[monitorId]); + this._plate[monitorId].UpdateFavoriteDetail(UserData.Collection.Plate); + return; + } + if (InputManager.SlideAreaRl(monitorId)) + { + this.SlideScrollLeft(monitorId, ref this._plate[monitorId]); + this._plate[monitorId].UpdateFavoriteDetail(UserData.Collection.Plate); + return; + } + this._monitors[monitorId].SetScrollCard(false); + } + return; + } + CollectionData currentCenterCollectionData2 = this._plate[monitorId].GetCurrentCenterCollectionData(); + if (currentCenterCollectionData2 == null || !currentCenterCollectionData2.IsHave || currentCenterCollectionData2.IsRandom) + { + return; + } + UserData userData2 = Singleton.Instance.GetUserData((long)monitorId); + bool flag3 = userData2.FlipFavorite(UserData.Collection.Plate, currentCenterCollectionData2.ID); + currentCenterCollectionData2.IsFavorite = flag3; + if (!userData2.IsMaxFavoriteItem(UserData.Collection.Plate) || flag3) + { + SoundManager.PlaySE(Mai2.Mai2Cue.Cue.SE_SYS_FIX, monitorId); + } + this._monitors[monitorId].UpdateFavoriteCollection(UserData.Collection.Plate, flag3); + base.SetInputLockInfo(monitorId, 200f); + } + + // Token: 0x06000B8F RID: 2959 RVA: 0x0003237C File Offset: 0x0003157C + private void CreatePlateData(int monitorId) + { + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + List list = new List(); + int i; + List list2 = (from i in userData.PlateList + where i.stock > 0 + select i.itemId).ToList(); + List newPlateList = userData.NewPlateList; + List favoritePlateList = userData.FavoritePlateList; + SortedDictionary> sortedDictionary = new SortedDictionary>(); + if (0 < newPlateList.Count) + { + CollectionGenreData collectionGenre = Singleton.Instance.GetCollectionGenre(2); + List list3 = new List(); + List list4 = new List(); + int num = ((10 < newPlateList.Count) ? 10 : newPlateList.Count); + for (i = 0; i < num; i++) + { + PlateData plate = Singleton.Instance.GetPlate(newPlateList[i]); + list3.Add(plate); + list4.Add(plate.GetID()); + } + sortedDictionary.Add(collectionGenre.GetID(), list4); + } + if (0 < favoritePlateList.Count) + { + CollectionGenreData collectionGenre2 = Singleton.Instance.GetCollectionGenre(100); + List list5 = new List(); + List list6 = new List(); + int num2 = ((30 < favoritePlateList.Count) ? 30 : favoritePlateList.Count); + for (int j = 0; j < num2; j++) + { + PlateData plate2 = Singleton.Instance.GetPlate(favoritePlateList[j]); + list5.Add(plate2); + } + list5 = list5.OrderBy((PlateData x) => x.priority).ToList(); + foreach (PlateData plateData in list5) + { + list6.Add(plateData.GetID()); + } + sortedDictionary.Add(collectionGenre2.GetID(), list6); + } + foreach (KeyValuePair keyValuePair in from x in Singleton.Instance.GetPlates() + orderby x.Value.priority + select x) + { + int id2 = keyValuePair.Value.genre.id; + bool flag = list2.Contains(keyValuePair.Value.GetID()); + bool flag2 = keyValuePair.Value.dispCond == ItemDispKind.None || keyValuePair.Value.disable; + if ((flag || flag2) && id2 != 101) + { + if (sortedDictionary.ContainsKey(id2)) + { + sortedDictionary[id2].Add(keyValuePair.Value.GetID()); + } + else + { + List list7 = new List { keyValuePair.Value.GetID() }; + sortedDictionary.Add(id2, list7); + } + } + } + List list8 = new List(); + PlateData plateData2 = new PlateData(); + List> list9 = new List>(); + AssetManager assetManager = AssetManager.Instance(); + List list10 = new List(); + plateData2 = Singleton.Instance.GetPlate(2); + Singleton.Instance.GetCollectionGenre(101); + CollectionData collectionData = new CollectionData + { + NetOpenName = plateData2.netOpenName, + DataName = plateData2.dataName, + Disable = plateData2.disable, + Genre = plateData2.genre, + IsDefault = plateData2.isDefault, + IsHave = true, + IsDisp = true, + NormText = plateData2.normText, + Priority = plateData2.priority, + ID = plateData2.GetID(), + NameStr = plateData2.name.str + }; + list8.Add(collectionData); + list10.Add(collectionData.ID); + if (0 < favoritePlateList.Count) + { + plateData2 = Singleton.Instance.GetPlate(3); + CollectionData collectionData2 = new CollectionData + { + NetOpenName = plateData2.netOpenName, + DataName = plateData2.dataName, + Disable = plateData2.disable, + Genre = plateData2.genre, + IsDefault = plateData2.isDefault, + IsHave = true, + IsDisp = true, + NormText = plateData2.normText, + Priority = plateData2.priority, + ID = plateData2.GetID(), + NameStr = plateData2.name.str + }; + list8.Add(collectionData2); + list10.Add(collectionData2.ID); + } + sortedDictionary.Add(101, list10); + foreach (KeyValuePair keyValuePair2 in from x in Singleton.Instance.GetCollectionGenres() + orderby x.Value.priority + select x) + { + if (sortedDictionary.ContainsKey(keyValuePair2.Value.GetID())) + { + ReadOnlyCollection readOnlyCollection = new ReadOnlyCollection(sortedDictionary[keyValuePair2.Value.GetID()]); + list9.Add(readOnlyCollection); + Sprite tabTitleSprite = assetManager.GetTabTitleSprite(keyValuePair2.Value.FileName); + list.Add(new CollectionTabData(Utility.ConvertColor(keyValuePair2.Value.Color), tabTitleSprite, keyValuePair2.Value.genreNameTwoLine, "")); + } + } + for (int k = 0; k < list9.Count; k++) + { + for (int l = 0; l < list9[k].Count; l++) + { + int id = list9[k][l]; + if (!list8.Any((CollectionData c) => c.GetID() == id)) + { + plateData2 = Singleton.Instance.GetPlate(id); + bool flag3 = list2.Contains(plateData2.GetID()); + bool flag4 = plateData2.dispCond == ItemDispKind.None || plateData2.disable; + if (flag3 || flag4) + { + bool flag5 = newPlateList.Contains(plateData2.GetID()); + bool flag6 = favoritePlateList.Contains(plateData2.GetID()); + CollectionData collectionData3 = new CollectionData + { + NetOpenName = plateData2.netOpenName, + DataName = plateData2.dataName, + Disable = plateData2.disable, + Genre = plateData2.genre, + IsDefault = plateData2.isDefault, + IsHave = flag3, + IsNew = flag5, + IsDisp = flag4, + IsFavorite = flag6, + NormText = plateData2.normText, + ReleaseTagName = plateData2.releaseTagName, + Priority = plateData2.priority, + ID = plateData2.GetID(), + NameStr = plateData2.name.str + }; + list8.Add(collectionData3); + } + } + } + } + if (list8.Count > 0 && userData.Detail.EquipPlateID == 0) + { + int setting_id = 1; + userData.Detail.EquipPlateID = setting_id; + int num3 = list8.FindIndex((CollectionData m) => m.ID == setting_id); + if (num3 >= 0) + { + list8[num3].IsDefault = true; + list8[num3].IsHave = true; + } + } + this._plate[monitorId].Initialize(list9, list8, list, this, this._monitors[monitorId], newPlateList.Count > 0, userData.Detail.EquipPlateID); + } + + // Token: 0x06000B90 RID: 2960 RVA: 0x00032B4C File Offset: 0x00031D4C + public bool IsHaveNewNamePlate(int monitorId) + { + return this._plate[monitorId].IsHaveNewIcon(); + } + + // Token: 0x06000B91 RID: 2961 RVA: 0x00032B5B File Offset: 0x00031D5B + public CollectionData GetPlateById(int monitorId, int targetId) + { + return this._plate[monitorId].GetCollectionById(targetId); + } + + // Token: 0x06000B92 RID: 2962 RVA: 0x00032B6B File Offset: 0x00031D6B + public CollectionData GetPlate(int monitorId, int diffIndex) + { + return this._plate[monitorId].GetCollection(diffIndex); + } + + // Token: 0x06000B93 RID: 2963 RVA: 0x00032B7B File Offset: 0x00031D7B + public bool IsPlateBoundary(int monitorId, int diffIndex, out int overCount) + { + return this._plate[monitorId].IsCollectionBoundary(diffIndex, out overCount); + } + + // Token: 0x06000B94 RID: 2964 RVA: 0x00032B8C File Offset: 0x00031D8C + public int GetAllPlateNum(int monitorId) + { + return this._plate[monitorId].GetAllCollectionNum(); + } + + // Token: 0x06000B95 RID: 2965 RVA: 0x00032B9B File Offset: 0x00031D9B + public int GetCurrentPlateIndex(int monitorId) + { + return this._plate[monitorId].GetCurrentIndex(); + } + + // Token: 0x06000B96 RID: 2966 RVA: 0x00032BAC File Offset: 0x00031DAC + private string PlateCategoryName(int monitorId, int diff) + { + int num = this._plate[monitorId].CategoryIndex + diff; + if (num < 0) + { + num = this._plate[monitorId].TabData.Count - 1; + } + else if (this._plate[monitorId].TabData.Count <= num) + { + num = 0; + } + return this._plate[monitorId].CategoryName(num); + } + + // Token: 0x06000B97 RID: 2967 RVA: 0x00032C0C File Offset: 0x00031E0C + private void ChangeEquipmentPlate(int monitorId, int collectionId) + { + this._monitors[monitorId].PushDesitionButton(this._subSequence[monitorId]); + Texture2D plateTexture2D = this.container.assetManager.GetPlateTexture2D(collectionId); + this.container.processManager.SendMessage(new Message(ProcessType.CommonProcess, 30004, new object[] { monitorId, plateTexture2D })); + Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPlateID = collectionId; + } + + // Token: 0x06000B98 RID: 2968 RVA: 0x00032C88 File Offset: 0x00031E88 + private void InputPartnerSequence(int monitorId) + { + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L)) + { + bool inputLongPush = InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L); + bool flag = this._partner[monitorId].CollectionListLeft(inputLongPush); + this._partner[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPartnerID); + base.SetInputLockInfo(monitorId, (float)(flag ? 200 : 100)); + return; + } + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L)) + { + bool inputLongPush2 = InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L); + bool flag2 = this._partner[monitorId].CollectionListRight(inputLongPush2); + this._partner[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPartnerID); + base.SetInputLockInfo(monitorId, (float)(flag2 ? 200 : 100)); + return; + } + if (InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.E2)) + { + this._partner[monitorId].ShiftCategoryLeft(); + this._partner[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPartnerID); + base.SetInputLockInfo(monitorId, 200f); + return; + } + if (InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.E8)) + { + this._partner[monitorId].ShiftCategoryRight(); + this._partner[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPartnerID); + base.SetInputLockInfo(monitorId, 200f); + return; + } + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button05)) + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.SelectCollectionType; + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.SelectCollectionType); + this._partner[monitorId].RefreshIndex(); + base.SetInputLockInfo(monitorId, 550f); + return; + } + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04)) + { + CollectionData currentCenterCollectionData = this._partner[monitorId].GetCurrentCenterCollectionData(); + int equipPartnerID = Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPartnerID; + int id = currentCenterCollectionData.GetID(); + if (currentCenterCollectionData == null || equipPartnerID == id || !currentCenterCollectionData.IsHave) + { + return; + } + SoundManager.SetPartnerVoiceCue(monitorId, currentCenterCollectionData.GetID()); + SoundManager.PlayPartnerVoice(Mai2.Voice_Partner_000001.Cue.VO_000251, monitorId); + this.ChangeEquipmentPartner(monitorId, id); + this._partner[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPartnerID); + return; + } + else + { + if (InputManager.SlideAreaLr(monitorId)) + { + this.SlideScrollRight(monitorId, ref this._partner[monitorId]); + return; + } + if (InputManager.SlideAreaRl(monitorId)) + { + this.SlideScrollLeft(monitorId, ref this._partner[monitorId]); + return; + } + if (InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.B4) || InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.B5)) + { + if (this.CanMoveToPresentSequence(monitorId)) + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.PartnerPresent; + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.PartnerPresent); + this._monitors[monitorId].InPartnerRoomUIOut(); + this.InitializePartnerPresent(monitorId); + return; + } + } + else + { + this._monitors[monitorId].SetScrollCard(false); + } + return; + } + } + + // Token: 0x06000B99 RID: 2969 RVA: 0x00032F64 File Offset: 0x00032164 + public bool CanMoveToPresentSequence(int monitorId) + { + CollectionData currentCenterCollectionData = this._partner[monitorId].GetCurrentCenterCollectionData(); + return !Singleton.Instance.GetPartner(currentCenterCollectionData.ID).isCopyright && currentCenterCollectionData.IsHave; + } + + // Token: 0x06000B9A RID: 2970 RVA: 0x00032FA0 File Offset: 0x000321A0 + private void CreatePartner(int monitorId) + { + CollectionData currentCenterCollectionData = this._partner[monitorId].GetCurrentCenterCollectionData(); + PartnerData partner = Singleton.Instance.GetPartner(currentCenterCollectionData.ID); + this._monitors[monitorId].CreatePartner(partner.naviChara.id); + } + + // Token: 0x06000B9B RID: 2971 RVA: 0x00032FE4 File Offset: 0x000321E4 + private void SetPartnerName(int monitorId) + { + CollectionData currentCenterCollectionData = this._partner[monitorId].GetCurrentCenterCollectionData(); + PartnerData partner = Singleton.Instance.GetPartner(currentCenterCollectionData.ID); + this._monitors[monitorId].SetPartnerName(partner.naviChara.str); + } + + // Token: 0x06000B9C RID: 2972 RVA: 0x00033028 File Offset: 0x00032228 + private void CreatePartnerData(int monitorId) + { + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + List list = new List(); + List list2 = (from i in userData.PartnerList + where i.stock > 0 + select i into p + select p.itemId).ToList(); + List newPartnerList = userData.NewPartnerList; + List list3 = new List(); + List> list4 = new List>(); + SortedDictionary> sortedDictionary = new SortedDictionary>(); + if (0 < newPartnerList.Count) + { + CollectionGenreData collectionGenre = Singleton.Instance.GetCollectionGenre(2); + List list5 = new List(); + List list6 = new List(); + int num = ((10 < newPartnerList.Count) ? 10 : newPartnerList.Count); + for (int l = 0; l < num; l++) + { + PartnerData partner = Singleton.Instance.GetPartner(newPartnerList[l]); + list5.Add(partner); + list6.Add(partner.GetID()); + } + sortedDictionary.Add(collectionGenre.GetID(), list6); + } + foreach (KeyValuePair keyValuePair in from x in Singleton.Instance.GetPartners() + orderby x.Value.priority + select x) + { + int id2 = keyValuePair.Value.genre.id; + bool flag = list2.Contains(keyValuePair.Value.GetID()); + bool flag2 = keyValuePair.Value.dispCond == ItemDispKind.None && Singleton.Instance.IsOpenEvent(keyValuePair.Value.eventName.id); + if (flag || flag2) + { + if (sortedDictionary.ContainsKey(id2)) + { + sortedDictionary[id2].Add(keyValuePair.Value.GetID()); + } + else + { + List list7 = new List { keyValuePair.Value.GetID() }; + sortedDictionary.Add(id2, list7); + } + } + } + AssetManager assetManager = AssetManager.Instance(); + foreach (KeyValuePair keyValuePair2 in from x in Singleton.Instance.GetCollectionGenres() + orderby x.Value.priority + select x) + { + if (sortedDictionary.ContainsKey(keyValuePair2.Value.GetID())) + { + ReadOnlyCollection readOnlyCollection = new ReadOnlyCollection(sortedDictionary[keyValuePair2.Value.GetID()]); + list4.Add(readOnlyCollection); + Sprite tabTitleSprite = assetManager.GetTabTitleSprite(keyValuePair2.Value.FileName); + list.Add(new CollectionTabData(Utility.ConvertColor(keyValuePair2.Value.Color), tabTitleSprite, keyValuePair2.Value.genreNameTwoLine, "")); + } + } + for (int j = 0; j < list4.Count; j++) + { + for (int k = 0; k < list4[j].Count; k++) + { + int id = list4[j][k]; + if (!list3.Any((CollectionData c) => c.GetID() == id)) + { + PartnerData partner2 = Singleton.Instance.GetPartner(id); + bool flag3 = list2.Contains(partner2.GetID()); + bool flag4 = partner2.dispCond == ItemDispKind.None; + if (flag3 || flag4) + { + bool flag5 = newPartnerList.Contains(partner2.GetID()); + CollectionData collectionData = new CollectionData + { + NetOpenName = partner2.netOpenName, + DataName = partner2.dataName, + Disable = partner2.disable, + Genre = partner2.genre, + IsDefault = partner2.isDefault, + IsHave = flag3, + IsNew = flag5, + IsDisp = flag4, + NormText = partner2.normText, + ReleaseTagName = partner2.releaseTagName, + Priority = partner2.priority, + ID = partner2.GetID(), + NameStr = partner2.name.str + }; + list3.Add(collectionData); + } + } + } + } + if (list3.Count > 0 && userData.Detail.EquipPartnerID == 0) + { + int setting_id = 1; + userData.Detail.EquipPartnerID = setting_id; + int num2 = list3.FindIndex((CollectionData m) => m.ID == setting_id); + if (num2 >= 0) + { + list3[num2].IsDefault = true; + list3[num2].IsHave = true; + } + } + this._partner[monitorId].Initialize(list4, list3, list, this, this._monitors[monitorId], newPartnerList.Count > 0, userData.Detail.EquipPartnerID); + } + + // Token: 0x06000B9D RID: 2973 RVA: 0x00033548 File Offset: 0x00032748 + public CollectionData GetPartnerById(int monitorId, int targetId) + { + return this._partner[monitorId].GetCollectionById(targetId); + } + + // Token: 0x06000B9E RID: 2974 RVA: 0x00033558 File Offset: 0x00032758 + public CollectionData GetPartner(int monitorId, int diffIndex) + { + return this._partner[monitorId].GetCollection(diffIndex); + } + + // Token: 0x06000B9F RID: 2975 RVA: 0x00033568 File Offset: 0x00032768 + public int GetAllPartnerNum(int monitorId) + { + return this._partner[monitorId].GetAllCollectionNum(); + } + + // Token: 0x06000BA0 RID: 2976 RVA: 0x00033577 File Offset: 0x00032777 + public bool IsPartnerBoundary(int monitorId, int diffIndex, out int overCount) + { + return this._partner[monitorId].IsCollectionBoundary(diffIndex, out overCount); + } + + // Token: 0x06000BA1 RID: 2977 RVA: 0x00033588 File Offset: 0x00032788 + private string PartnerCategoryName(int monitorId, int diff) + { + int num = this._partner[monitorId].CategoryIndex + diff; + if (num < 0) + { + num = this._partner[monitorId].TabData.Count - 1; + } + else if (this._partner[monitorId].TabData.Count <= num) + { + num = 0; + } + return this._partner[monitorId].CategoryName(num); + } + + // Token: 0x06000BA2 RID: 2978 RVA: 0x000335E5 File Offset: 0x000327E5 + public bool IsHaveNewPartner(int monitorId) + { + return this._partner[monitorId].IsHaveNewIcon(); + } + + // Token: 0x06000BA3 RID: 2979 RVA: 0x000335F4 File Offset: 0x000327F4 + private void ChangeEquipmentPartner(int monitorId, int collectionId) + { + this._monitors[monitorId].PushDesitionButton(this._subSequence[monitorId]); + Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPartnerID = collectionId; + } + + // Token: 0x06000BA4 RID: 2980 RVA: 0x00033622 File Offset: 0x00032822 + private void ChangeEquipmentPartnerWithoutUIRefresh(int monitorId, int collectionId) + { + Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPartnerID = collectionId; + } + + // Token: 0x06000BA5 RID: 2981 RVA: 0x0003363C File Offset: 0x0003283C + public void InitializePartnerPresent(int monitorId) + { + this._monitors[monitorId].SetPartnerRoomActive(true); + this.CreatePartner(monitorId); + this.SetPartnerName(monitorId); + this.presentRoomButtonUiInWaitTime[monitorId] = 0.55f; + this.buttonFadeIn[monitorId] = false; + base.SetInputLockInfo(monitorId, 2000f); + this.container.monoBehaviour.StartCoroutine(this.PlayPartnerRoomEntryVoice(monitorId)); + SoundManager.PlaySE(Mai2.Mai2Cue.Cue.SE_COLLECTION_INTIMACY, monitorId); + this._monitors[monitorId].SetPresentNumText(this.presentNum[monitorId]); + this.UpdateIntimateItemNumUI(monitorId); + CollectionData currentCenterCollectionData = this._partner[monitorId].GetCurrentCenterCollectionData(); + PartnerData partner = Singleton.Instance.GetPartner(currentCenterCollectionData.ID); + int num = 0; + UserPartnerCloseness userPartnerCloseness; + this.HasPartnerClosenessData(monitorId, partner.GetID(), out userPartnerCloseness); + if (userPartnerCloseness != null) + { + num = userPartnerCloseness.closeness; + } + this._monitors[monitorId].UpdateDisplayIntimateNumText(num); + int num2 = 0; + bool flag = this.HasNextReward(monitorId, partner.GetID(), out num2); + this._monitors[monitorId].SetPresentTargetVisable(flag); + this._monitors[monitorId].SetPresentTargetNum(num2); + this.longPushCount[monitorId] = 0; + this.touchCounter[monitorId] = 0; + this.touchWaitTimer[monitorId] = 2.5f; + } + + // Token: 0x06000BA6 RID: 2982 RVA: 0x00033764 File Offset: 0x00032964 + private void UpdatePartnerPresent(int monitorId) + { + float num = this.presentRoomButtonUiInWaitTime[monitorId]; + this.presentRoomButtonUiInWaitTime[monitorId] -= Time.deltaTime; + if (num > 0f && this.presentRoomButtonUiInWaitTime[monitorId] <= 0f) + { + this._monitors[monitorId].InPartnerRoomUIIn(); + this.UpdatePresentRoomButtonVisable(monitorId); + this._monitors[monitorId].ChangeFlatButtonDefine(2, 33); + this.buttonFadeIn[monitorId] = true; + } + this.touchWaitTimer[monitorId] += Time.deltaTime; + if (this.touchWaitTimer[monitorId] > 2.5f) + { + this.touchWaitTimer[monitorId] = 2.5f; + } + } + + // Token: 0x06000BA7 RID: 2983 RVA: 0x00033804 File Offset: 0x00032A04 + private void InputPartnerPresentSequence(int monitorId) + { + if (!this.buttonFadeIn[monitorId]) + { + return; + } + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L)) + { + if (!InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L)) + { + this.longPushCount[monitorId] = 0; + } + else + { + this.longPushCount[monitorId]++; + } + CollectionData currentCenterCollectionData = this._partner[monitorId].GetCurrentCenterCollectionData(); + bool flag = false; + if (this.longPushCount[monitorId] < 5) + { + this.AddPresentNum(monitorId, currentCenterCollectionData.ID, 1, out flag); + } + else + { + this.AddPresentNum(monitorId, currentCenterCollectionData.ID, 10, out flag); + } + if (flag) + { + this._monitors[monitorId].SetActiveButtonAnimation(4); + } + this.UpdatePresentRoomButtonVisable(monitorId); + base.SetInputLockInfo(monitorId, 100f); + this._monitors[monitorId].SetPresentNumText(this.presentNum[monitorId]); + this.UpdateIntimateItemNumUI(monitorId); + return; + } + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L)) + { + if (!InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L)) + { + this.longPushCount[monitorId] = 0; + } + else + { + this.longPushCount[monitorId]++; + } + bool flag2 = false; + if (this.longPushCount[monitorId] < 5) + { + this.SubPresentNum(monitorId, 1, out flag2); + } + else + { + this.SubPresentNum(monitorId, 10, out flag2); + } + if (flag2) + { + this._monitors[monitorId].SetActiveButtonAnimation(5); + } + this.UpdatePresentRoomButtonVisable(monitorId); + base.SetInputLockInfo(monitorId, 100f); + this._monitors[monitorId].SetPresentNumText(this.presentNum[monitorId]); + this.UpdateIntimateItemNumUI(monitorId); + return; + } + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button05)) + { + this._monitors[monitorId].cameFromPartnerPresent = true; + this._monitors[monitorId].OutPartnerRoom(); + this._monitors[monitorId].OutPartnerRoomUiOut(); + this._monitors[monitorId].SetActiveButtonAnimation(3); + this.container.monoBehaviour.StartCoroutine(this.ChangeSubScene(monitorId)); + this.ResetPresentNum(monitorId); + this.LoadCollectionDataSelectable(monitorId, true, true, true, false, true); + base.SetInputLockInfo(monitorId, 1500f); + return; + } + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04)) + { + if (this.presentNum[monitorId] > 0) + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.PartnerPresentConfirm; + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.PartnerPresentConfirm); + this._monitors[monitorId].SetVisibleButton(false, new int[] { 4, 5 }); + this._monitors[monitorId].SetActiveButtonAnimation(2); + this._monitors[monitorId].ChangeFlatButtonSymbol(2, 0); + this._monitors[monitorId].ChangeFlatButtonSymbol(3, 1); + this.SetPresentConfirmMessageText(monitorId); + base.SetInputLockInfo(monitorId, 550f); + return; + } + } + else if (InputManager.GetTouchPanelAreaDown(monitorId, new InputManager.TouchPanelArea[] + { + InputManager.TouchPanelArea.B1, + InputManager.TouchPanelArea.B8, + InputManager.TouchPanelArea.C1, + InputManager.TouchPanelArea.C2, + InputManager.TouchPanelArea.E1 + })) + { + this.TouchProcess(monitorId); + } + } + + // Token: 0x06000BA8 RID: 2984 RVA: 0x00033AB8 File Offset: 0x00032CB8 + private void TouchProcess(int monitorId) + { + if (this.touchWaitTimer[monitorId] < 2.5f) + { + return; + } + this.touchCounter[monitorId]++; + if (this.touchCounter[monitorId] < 2) + { + return; + } + this.touchWaitTimer[monitorId] = 0f; + this.touchCounter[monitorId] = 0; + CollectionData currentCenterCollectionData = this._partner[monitorId].GetCurrentCenterCollectionData(); + PartnerData partner = Singleton.Instance.GetPartner(currentCenterCollectionData.ID); + SoundManager.SetPartnerVoiceCue(monitorId, partner.name.id); + SoundManager.PlayPartnerVoice(Mai2.Voice_Partner_000001.Cue.VO_000252, monitorId); + this._monitors[monitorId].PlayPartnerFunLoopOnceTime(); + } + + // Token: 0x06000BA9 RID: 2985 RVA: 0x00033B4E File Offset: 0x00032D4E + private IEnumerator ChangeSubScene(int monitorId) + { + yield return new WaitForSeconds(0.55f); + this._monitors[monitorId].SetPartnerRoomActive(false); + this._subSequence[monitorId] = CollectionProcess.SubSequence.SelectCollectionType; + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.SelectCollectionType); + yield break; + } + + // Token: 0x06000BAA RID: 2986 RVA: 0x00033B64 File Offset: 0x00032D64 + public IEnumerator PlayPartnerRoomEntryVoice(int monitorId) + { + yield return new WaitForSeconds(0.8f); + CollectionData currentCenterCollectionData = this._partner[monitorId].GetCurrentCenterCollectionData(); + PartnerData partner = Singleton.Instance.GetPartner(currentCenterCollectionData.ID); + Mai2.Voice_Partner_000001.Cue cue; + if (Enum.TryParse(partner.partnerRoomEntryVoice, out cue)) + { + SoundManager.SetPartnerVoiceCue(monitorId, partner.name.id); + SoundManager.PlayPartnerVoice(cue, monitorId); + } + yield break; + } + + // Token: 0x06000BAB RID: 2987 RVA: 0x00033B7C File Offset: 0x00032D7C + private void AddPartnerCloseness(int monitorId, int partnerId, int addCloseness) + { + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + UserPartnerCloseness userPartnerCloseness = new UserPartnerCloseness(); + if (!this.HasPartnerClosenessData(monitorId, partnerId, out userPartnerCloseness)) + { + UserPartnerCloseness userPartnerCloseness2 = new UserPartnerCloseness(); + userPartnerCloseness2.partnerId = partnerId; + userPartnerCloseness2.closeness = 0; + userData.PartnerClosenesses.Add(userPartnerCloseness2); + userPartnerCloseness = userPartnerCloseness2; + } + userPartnerCloseness.closeness += addCloseness; + foreach (UserItem userItem in userData.IntimateItemList) + { + if (userItem.itemId == 10001) + { + userItem.stock -= addCloseness; + } + } + } + + // Token: 0x06000BAC RID: 2988 RVA: 0x00033C38 File Offset: 0x00032E38 + private void AddPresentNum(int monitorId, int partnerId, int addNum, out bool canAdd) + { + int num = 0; + this.CanAddPresentNum(monitorId, partnerId, addNum, out num); + this.presentNum[monitorId] += num; + canAdd = num != 0; + } + + // Token: 0x06000BAD RID: 2989 RVA: 0x00033C70 File Offset: 0x00032E70 + private void SubPresentNum(int monitorId, int subNum, out bool canSub) + { + int num = 0; + this.CanSubPresentNum(monitorId, subNum, out num); + this.presentNum[monitorId] -= num; + canSub = num != 0; + } + + // Token: 0x06000BAE RID: 2990 RVA: 0x00033CA4 File Offset: 0x00032EA4 + public bool CanAddPresentNum(int monitorId, int partnerId, int addNum, out int canAddNum) + { + canAddNum = 0; + foreach (UserItem userItem in Singleton.Instance.GetUserData((long)monitorId).IntimateItemList) + { + if (userItem.itemId == 10001) + { + if (userItem.stock - this.presentNum[monitorId] >= addNum) + { + canAddNum = addNum; + break; + } + canAddNum = userItem.stock - this.presentNum[monitorId]; + break; + } + } + UserPartnerCloseness userPartnerCloseness = new UserPartnerCloseness(); + int num; + if (this.HasPartnerClosenessData(monitorId, partnerId, out userPartnerCloseness)) + { + num = 99999 - userPartnerCloseness.closeness; + } + else + { + num = 99999; + } + if (canAddNum + this.presentNum[monitorId] > num) + { + canAddNum = num - this.presentNum[monitorId]; + } + return canAddNum > 0; + } + + // Token: 0x06000BAF RID: 2991 RVA: 0x00033D84 File Offset: 0x00032F84 + public bool CanSubPresentNum(int monitorId, int subNum, out int canSubNum) + { + canSubNum = 0; + if (this.presentNum[monitorId] == 0) + { + canSubNum = 0; + } + if (subNum > this.presentNum[monitorId]) + { + canSubNum = this.presentNum[monitorId]; + } + else + { + canSubNum = subNum; + } + return canSubNum > 0; + } + + // Token: 0x06000BB0 RID: 2992 RVA: 0x00033DB8 File Offset: 0x00032FB8 + public bool HasPartnerClosenessData(int monitorId, int partnerId, out UserPartnerCloseness outPartnerClosenessesData) + { + bool flag = false; + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + outPartnerClosenessesData = null; + foreach (UserPartnerCloseness userPartnerCloseness in userData.PartnerClosenesses) + { + if (userPartnerCloseness.partnerId == partnerId) + { + outPartnerClosenessesData = userPartnerCloseness; + flag = true; + } + } + return flag; + } + + // Token: 0x06000BB1 RID: 2993 RVA: 0x00033E24 File Offset: 0x00033024 + private void CheckPartnerClosenessRewardList(int monitorId, int partnerId, int naviCharaId, out List newRewardList) + { + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + UserPartnerCloseness userPartnerCloseness = new UserPartnerCloseness(); + this.HasPartnerClosenessData(monitorId, partnerId, out userPartnerCloseness); + newRewardList = new List(); + if (userPartnerCloseness == null) + { + return; + } + int closeness = userPartnerCloseness.closeness; + Safe.ReadonlySortedDictionary partnerClosenessDatas = Singleton.Instance.GetPartnerClosenessDatas(); + List list = new List(); + foreach (KeyValuePair keyValuePair in partnerClosenessDatas) + { + if (keyValuePair.Value.partnerName.id == partnerId) + { + list.Add(keyValuePair.Value); + } + } + using (List.Enumerator enumerator2 = list.GetEnumerator()) + { + while (enumerator2.MoveNext()) + { + PartnerClosenessData reward = enumerator2.Current; + if (reward.closeness <= closeness) + { + bool flag = false; + switch (reward.partnerRewardType) + { + case PartnerRewardType.Character: + if (userData.CharaList.Find((UserChara c) => c.ID == reward.CharacterId.id) != null) + { + flag = true; + } + break; + case PartnerRewardType.MusicNew: + if (userData.MusicUnlockList.Contains(reward.MusicId.id)) + { + flag = true; + } + break; + case PartnerRewardType.Plate: + if (userData.PlateList.Find((UserItem c) => c.itemId == reward.NamePlate.id) != null) + { + flag = true; + } + break; + case PartnerRewardType.Frame: + if (userData.FrameList.Find((UserItem c) => c.itemId == reward.Frame.id) != null) + { + flag = true; + } + break; + case PartnerRewardType.Title: + if (userData.TitleList.Find((UserItem c) => c.itemId == reward.Title.id) != null) + { + flag = true; + } + break; + case PartnerRewardType.Icon: + if (userData.IconList.Find((UserItem c) => c.itemId == reward.Icon.id) != null) + { + flag = true; + } + break; + } + if (!flag) + { + newRewardList.Add(reward); + } + } + } + } + } + + // Token: 0x06000BB2 RID: 2994 RVA: 0x0003404C File Offset: 0x0003324C + public void UpdatePartnerIntimateCountRewarded(int monitorId) + { + List partnerClosenesses = Singleton.Instance.GetUserData((long)monitorId).PartnerClosenesses; + for (int i = 0; i < partnerClosenesses.Count; i++) + { + Safe.ReadonlySortedDictionary partnerClosenessDatas = Singleton.Instance.GetPartnerClosenessDatas(); + List list = new List(); + foreach (KeyValuePair keyValuePair in partnerClosenessDatas) + { + if (Singleton.Instance.GetPartner(keyValuePair.Value.partnerName.id).naviChara.id == partnerClosenesses[i].partnerId) + { + list.Add(keyValuePair.Value); + } + } + foreach (PartnerClosenessData partnerClosenessData in list) + { + if (partnerClosenessData.closeness <= partnerClosenesses[i].closeness) + { + partnerClosenesses[i].intimateCountRewarded = partnerClosenessData.closeness; + } + } + } + } + + // Token: 0x06000BB3 RID: 2995 RVA: 0x00034168 File Offset: 0x00033368 + private void AddRewardCollections(int monitorId, List newRewardList) + { + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + foreach (PartnerClosenessData partnerClosenessData in newRewardList) + { + switch (partnerClosenessData.partnerRewardType) + { + case PartnerRewardType.Character: + { + int num = partnerClosenessData.CharacterId.id; + if (Singleton.Instance.GetChara(num) != null) + { + userData.AddCollections(UserData.Collection.Chara, num, true); + } + break; + } + case PartnerRewardType.MusicNew: + { + int num = partnerClosenessData.MusicId.id; + if (Singleton.Instance.GetMusic(num) != null) + { + userData.AddUnlockMusic(UserData.MusicUnlock.Base, num); + } + break; + } + case PartnerRewardType.Plate: + { + int num = partnerClosenessData.NamePlate.id; + if (Singleton.Instance.GetPlate(num) != null) + { + userData.AddCollections(UserData.Collection.Plate, num, true); + } + break; + } + case PartnerRewardType.Frame: + { + int num = partnerClosenessData.Frame.id; + if (Singleton.Instance.GetFrame(num) != null) + { + userData.AddCollections(UserData.Collection.Frame, num, true); + } + break; + } + case PartnerRewardType.Title: + { + int num = partnerClosenessData.Title.id; + if (Singleton.Instance.GetTitle(num) != null) + { + userData.AddCollections(UserData.Collection.Title, num, true); + } + break; + } + case PartnerRewardType.Icon: + { + int num = partnerClosenessData.Icon.id; + if (Singleton.Instance.GetIcon(num) != null) + { + userData.AddCollections(UserData.Collection.Icon, num, true); + } + break; + } + } + } + } + + // Token: 0x06000BB4 RID: 2996 RVA: 0x000342E8 File Offset: 0x000334E8 + public void UpdateIntimateItemNumUI(int monitorId) + { + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + int num = 0; + foreach (UserItem userItem in userData.IntimateItemList) + { + if (userItem.itemId == 10001) + { + num = userItem.stock; + } + } + this._monitors[monitorId].SetIntimateItemNumText(num); + } + + // Token: 0x06000BB5 RID: 2997 RVA: 0x00034364 File Offset: 0x00033564 + public void ResetPresentNum(int monitorId) + { + this.presentNum[monitorId] = 0; + } + + // Token: 0x06000BB6 RID: 2998 RVA: 0x00034370 File Offset: 0x00033570 + private void SetPresentConfirmMessageText(int monitorId) + { + CollectionData currentCenterCollectionData = this._partner[monitorId].GetCurrentCenterCollectionData(); + PartnerData partner = Singleton.Instance.GetPartner(currentCenterCollectionData.ID); + this._monitors[monitorId].SetPresentConfirmMessageText(partner.naviChara.str, this.presentNum[monitorId]); + } + + // Token: 0x06000BB7 RID: 2999 RVA: 0x000343BC File Offset: 0x000335BC + private bool CanAddPresent(int monitorId) + { + CollectionData currentCenterCollectionData = this._partner[monitorId].GetCurrentCenterCollectionData(); + int num = 0; + this.CanAddPresentNum(monitorId, currentCenterCollectionData.ID, 1, out num); + return num != 0; + } + + // Token: 0x06000BB8 RID: 3000 RVA: 0x000343F0 File Offset: 0x000335F0 + private bool CanSubPresent(int monitorId) + { + int num = 0; + this.CanSubPresentNum(monitorId, 1, out num); + return num != 0; + } + + // Token: 0x06000BB9 RID: 3001 RVA: 0x00034410 File Offset: 0x00033610 + private bool CanGivePresent(int monitorId) + { + return this.presentNum[monitorId] != 0; + } + + // Token: 0x06000BBA RID: 3002 RVA: 0x00034420 File Offset: 0x00033620 + public void UpdatePresentRoomButtonVisable(int monitorId) + { + bool flag = this.CanAddPresent(monitorId); + if (this._monitors[monitorId].GetVisibleButton(4) != flag) + { + this._monitors[monitorId].SetVisibleButton(flag, new int[] { 4 }); + } + bool flag2 = this.CanSubPresent(monitorId); + if (this._monitors[monitorId].GetVisibleButton(5) != flag2) + { + this._monitors[monitorId].SetVisibleButton(flag2, new int[] { 5 }); + } + bool flag3 = this.CanGivePresent(monitorId); + if (this._monitors[monitorId].GetVisibleButton(2) != flag3) + { + this._monitors[monitorId].SetVisibleButton(flag3, new int[] { 2 }); + } + } + + // Token: 0x06000BBB RID: 3003 RVA: 0x000344C0 File Offset: 0x000336C0 + public bool HasNextReward(int monitorId, int partnerId, out int presentTargetIntimate) + { + UserPartnerCloseness userPartnerCloseness = new UserPartnerCloseness(); + bool flag = this.HasPartnerClosenessData(monitorId, partnerId, out userPartnerCloseness); + int num = 0; + if (flag) + { + num = userPartnerCloseness.closeness; + } + Safe.ReadonlySortedDictionary partnerClosenessDatas = Singleton.Instance.GetPartnerClosenessDatas(); + List list = new List(); + foreach (KeyValuePair keyValuePair in partnerClosenessDatas) + { + if (keyValuePair.Value.partnerName.id == partnerId) + { + list.Add(keyValuePair.Value); + } + } + presentTargetIntimate = 0; + foreach (PartnerClosenessData partnerClosenessData in list) + { + if (num < partnerClosenessData.closeness) + { + presentTargetIntimate = partnerClosenessData.closeness - num; + break; + } + } + return presentTargetIntimate > 0; + } + + // Token: 0x06000BBC RID: 3004 RVA: 0x000345A8 File Offset: 0x000337A8 + private void InputPartnerPresentConfirmSequence(int monitorId) + { + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button05)) + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.PartnerPresent; + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.PartnerPresent); + this._monitors[monitorId].OutPartnerRoomDialog(); + this._monitors[monitorId].SetActiveButtonAnimation(3); + this._monitors[monitorId].ChangeFlatButtonDefine(2, 33); + this._monitors[monitorId].ChangeFlatButtonDefine(3, 6); + this.UpdatePresentRoomButtonVisable(monitorId); + base.SetInputLockInfo(monitorId, 550f); + return; + } + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04)) + { + CollectionData currentCenterCollectionData = this._partner[monitorId].GetCurrentCenterCollectionData(); + PartnerData partner = Singleton.Instance.GetPartner(currentCenterCollectionData.ID); + if (this.presentNum[monitorId] > 0) + { + int num = 0; + UserPartnerCloseness userPartnerCloseness; + this.HasPartnerClosenessData(monitorId, partner.GetID(), out userPartnerCloseness); + if (userPartnerCloseness != null) + { + num = userPartnerCloseness.closeness; + } + this._monitors[monitorId].StartIntimateAnimation(num, num + this.presentNum[monitorId]); + this.AddPartnerCloseness(monitorId, partner.GetID(), this.presentNum[monitorId]); + this.ResetPresentNum(monitorId); + this.PlayIntimateUpVoiceRandom(monitorId); + SoundManager.PlaySE(Mai2.Mai2Cue.Cue.SE_COLLECTION_PRESENT, monitorId); + } + this._monitors[monitorId].SetPresentNumText(this.presentNum[monitorId]); + this.UpdateIntimateItemNumUI(monitorId); + this._monitors[monitorId].SetVisibleButton(false, new int[] { 4, 5, 3, 2 }); + List list = new List(); + this.CheckPartnerClosenessRewardList(monitorId, partner.GetID(), partner.naviChara.id, out list); + if (list.Count > 0) + { + this._monitors[monitorId].ChangeFlatButtonSymbol(2, 4); + this._subSequence[monitorId] = CollectionProcess.SubSequence.PartnerPresentReward; + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.PartnerPresentReward); + this.InitializePartnerPresentReward(monitorId); + this.SetRewardWindowActive(monitorId, true); + this._monitors[monitorId].rewardCounter = 0; + this._monitors[monitorId].newRewardList = list; + } + else + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.PartnerPresent; + this.container.monoBehaviour.StartCoroutine(this.ShowButtonUIAfterGivingPresent(monitorId)); + int num2 = 0; + bool flag = this.HasNextReward(monitorId, partner.GetID(), out num2); + this._monitors[monitorId].SetPresentTargetVisable(flag); + this._monitors[monitorId].SetPresentTargetNum(num2); + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.PartnerPresent); + } + this._monitors[monitorId].SetActiveButtonAnimation(2); + this._monitors[monitorId].OutPartnerRoomDialog(); + this._monitors[monitorId].PlayPartnerEmotionEffectOnceTime(); + this._monitors[monitorId].PlayPartnerFunLoopOnceTime(); + base.SetInputLockInfo(monitorId, 1500f); + } + } + + // Token: 0x06000BBD RID: 3005 RVA: 0x00034820 File Offset: 0x00033A20 + private void PlayIntimateUpVoiceRandom(int monitorId) + { + CollectionData currentCenterCollectionData = this._partner[monitorId].GetCurrentCenterCollectionData(); + PartnerData partner = Singleton.Instance.GetPartner(currentCenterCollectionData.ID); + List list = new List(); + list.Add(partner.intimateUpVoice01); + list.Add(partner.intimateUpVoice02); + list.Add(partner.intimateUpVoice03); + List list2 = new List(); + using (List.Enumerator enumerator = list.GetEnumerator()) + { + while (enumerator.MoveNext()) + { + Mai2.Voice_Partner_000001.Cue cue; + if (Enum.TryParse(enumerator.Current, out cue)) + { + list2.Add(cue); + } + } + } + if (list2.Count == 0) + { + return; + } + int num = Random.Range(0, list2.Count); + SoundManager.SetPartnerVoiceCue(monitorId, partner.name.id); + SoundManager.PlayPartnerVoice(list2[num], monitorId); + } + + // Token: 0x06000BBE RID: 3006 RVA: 0x000348FC File Offset: 0x00033AFC + private IEnumerator ShowButtonUIAfterGivingPresent(int monitorId) + { + yield return new WaitForSeconds(1.5f); + this._monitors[monitorId].ChangeFlatButtonDefine(2, 33); + this._monitors[monitorId].ChangeFlatButtonDefine(3, 6); + this._monitors[monitorId].SetVisibleButton(true, new int[] { 3 }); + this.UpdatePresentRoomButtonVisable(monitorId); + yield break; + } + + // Token: 0x06000BBF RID: 3007 RVA: 0x00034912 File Offset: 0x00033B12 + public void InitializePartnerPresentReward(int monitorId) + { + this._monitors[monitorId].partnerRoomRewardWindowOpened = true; + } + + // Token: 0x06000BC0 RID: 3008 RVA: 0x00034924 File Offset: 0x00033B24 + private void InputPartnerPresentRewardSequence(int monitorId) + { + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04) && this.canSkip) + { + bool playingRewardAnim = this._monitors[monitorId].playingRewardAnim; + int rewardCounter = this._monitors[monitorId].rewardCounter; + List list = new List(); + list = this._monitors[monitorId].newRewardList; + if (playingRewardAnim) + { + this.RewardFadeOut(monitorId); + this._monitors[monitorId].playingRewardAnim = false; + this._monitors[monitorId].SetActiveButtonAnimation(2); + if (rewardCounter < list.Count) + { + this._monitors[monitorId].SetVisibleButton(false, new int[] { 2 }); + } + } + } + } + + // Token: 0x06000BC1 RID: 3009 RVA: 0x000349B8 File Offset: 0x00033BB8 + private void UpdatePartnerPresentReward(int monitorId) + { + List list = new List(); + list = this._monitors[monitorId].newRewardList; + if (!this._monitors[monitorId].playingRewardAnim && this._monitors[monitorId].rewardCounter < list.Count) + { + this.SetRewardData(monitorId, list[this._monitors[monitorId].rewardCounter]); + this.RewardFadeIn(monitorId); + this.rewardAnimTimer = 0L; + this.canSkip = false; + this._monitors[monitorId].playingRewardAnim = true; + this._monitors[monitorId].rewardCounter++; + return; + } + if (!this._monitors[monitorId].playingRewardAnim && this._monitors[monitorId].rewardCounter == list.Count) + { + this.AddRewardCollections(monitorId, list); + this.UpdatePartnerIntimateCountRewarded(monitorId); + this._subSequence[monitorId] = CollectionProcess.SubSequence.PartnerPresent; + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.PartnerPresent); + this._monitors[monitorId].ChangeFlatButtonDefine(2, 33); + this._monitors[monitorId].ChangeFlatButtonDefine(3, 6); + this._monitors[monitorId].SetVisibleButton(true, new int[] { 3 }); + this.UpdatePresentRoomButtonVisable(monitorId); + this._monitors[monitorId].partnerRoomRewardWindowOpened = false; + CollectionData currentCenterCollectionData = this._partner[monitorId].GetCurrentCenterCollectionData(); + PartnerData partner = Singleton.Instance.GetPartner(currentCenterCollectionData.ID); + int num = 0; + bool flag = this.HasNextReward(monitorId, partner.GetID(), out num); + this._monitors[monitorId].SetPresentTargetVisable(flag); + this._monitors[monitorId].SetPresentTargetNum(num); + base.SetInputLockInfo(monitorId, 550f); + return; + } + if (this._monitors[monitorId].playingRewardAnim) + { + this.rewardAnimTimer += GameManager.GetGameMSecAdd(); + if (this.rewardAnimTimer >= 1000L && this.rewardAnimTimer < 14000L) + { + this.canSkip = true; + this._monitors[monitorId].SetVisibleButton(true, new int[] { 2 }); + return; + } + if (this.rewardAnimTimer >= 14000L) + { + this._monitors[monitorId].playingRewardAnim = false; + this._monitors[monitorId].SetVisibleButton(false, new int[] { 2 }); + } + } + } + + // Token: 0x06000BC2 RID: 3010 RVA: 0x00034BE0 File Offset: 0x00033DE0 + public void SetRewardData(int monitorId, PartnerClosenessData rewardData) + { + RewardDetail rewardDetail = null; + CollectionWindow collectionWindow = this._monitors[monitorId].GetCollectionWindow(); + switch (rewardData.partnerRewardType) + { + case PartnerRewardType.Character: + { + CharaData chara = Singleton.Instance.GetChara(rewardData.CharacterId.id); + Texture2D characterTexture2D = AssetManager.Instance().GetCharacterTexture2D(chara.thumbnailName); + Sprite sprite = Sprite.Create(characterTexture2D, new Rect(0f, 0f, (float)characterTexture2D.width, (float)characterTexture2D.height), new Vector2(0.5f, 0.5f), 100f, 0U, 0); + collectionWindow.SetIcon(sprite, chara.name.str); + rewardDetail = collectionWindow.GetComponent(); + break; + } + case PartnerRewardType.Plate: + { + PlateData plate = Singleton.Instance.GetPlate(rewardData.NamePlate.id); + Texture2D plateTexture2D = AssetManager.Instance().GetPlateTexture2D(plate.GetID()); + Sprite sprite2 = Sprite.Create(plateTexture2D, new Rect(0f, 0f, (float)plateTexture2D.width, (float)plateTexture2D.height), new Vector2(0.5f, 0.5f)); + collectionWindow.SetNamePlate(sprite2, plate.name.str); + rewardDetail = collectionWindow.GetComponent(); + break; + } + case PartnerRewardType.Frame: + { + FrameData frame = Singleton.Instance.GetFrame(rewardData.Frame.id); + Texture2D frameTexture2D = AssetManager.Instance().GetFrameTexture2D(frame.GetID()); + Sprite sprite3 = Sprite.Create(frameTexture2D, new Rect(0f, 0f, (float)frameTexture2D.width, (float)frameTexture2D.height), new Vector2(0.5f, 0.5f)); + collectionWindow.SetFrame(sprite3, frame.name.str); + rewardDetail = collectionWindow.GetComponent(); + break; + } + case PartnerRewardType.Title: + { + TitleData title = Singleton.Instance.GetTitle(rewardData.Title.id); + Resources.Load("Common/Sprites/Thumb/UI_CMN_Usertitle_Thumb"); + collectionWindow.SetTitle(title.name.str); + rewardDetail = collectionWindow.GetComponent(); + break; + } + case PartnerRewardType.Icon: + { + IconData icon = Singleton.Instance.GetIcon(rewardData.Icon.id); + Texture2D iconTexture2D = AssetManager.Instance().GetIconTexture2D(monitorId, icon.GetID()); + Sprite sprite4 = Sprite.Create(iconTexture2D, new Rect(0f, 0f, (float)iconTexture2D.width, (float)iconTexture2D.height), new Vector2(0.5f, 0.5f)); + collectionWindow.SetIcon(sprite4, icon.name.str); + rewardDetail = collectionWindow.GetComponent(); + break; + } + } + if (rewardDetail != null) + { + rewardDetail.SetActiveCloseButton(false); + } + } + + // Token: 0x06000BC3 RID: 3011 RVA: 0x00034E7A File Offset: 0x0003407A + public void RewardFadeIn(int monitorId) + { + CollectionWindow collectionWindow = this._monitors[monitorId].GetCollectionWindow(); + collectionWindow.gameObject.SetActive(true); + collectionWindow.Play2(null); + SoundManager.PlaySE(Mai2.Mai2Cue.Cue.JINGLE_MAP_GET_02, monitorId); + } + + // Token: 0x06000BC4 RID: 3012 RVA: 0x00034EA7 File Offset: 0x000340A7 + public void RewardFadeOut(int monitorId) + { + this._monitors[monitorId].GetCollectionWindow().Skip(); + } + + // Token: 0x06000BC5 RID: 3013 RVA: 0x00034EBC File Offset: 0x000340BC + public void SetRewardWindowActive(int monitorId, bool active) + { + CollectionWindow collectionWindow = this._monitors[monitorId].GetCollectionWindow(); + collectionWindow.gameObject.SetActive(active); + collectionWindow.GetComponent().Initialize(LoginBonusMonitor.CollectionInfoType.CollectionGet); + } + + // Token: 0x06000BC6 RID: 3014 RVA: 0x00034EE2 File Offset: 0x000340E2 + public void InitalizeShop(int monitorId) + { + this.closeWindowTimer[monitorId] = 0f; + this.forceDisableAllButton[monitorId] = false; + } + + // Token: 0x06000BC7 RID: 3015 RVA: 0x00034EFC File Offset: 0x000340FC + private void InputShopSequence(int monitorId) + { + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L)) + { + bool inputLongPush = InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L); + bool flag = this._shopItem[monitorId].CollectionListLeft(inputLongPush); + this.CheckShopButton(monitorId); + this.container.processManager.CloseWindow(monitorId); + base.SetInputLockInfo(monitorId, (float)(flag ? 200 : 100)); + } + else if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L)) + { + bool inputLongPush2 = InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L); + bool flag2 = this._shopItem[monitorId].CollectionListRight(inputLongPush2); + this.CheckShopButton(monitorId); + this.container.processManager.CloseWindow(monitorId); + base.SetInputLockInfo(monitorId, (float)(flag2 ? 200 : 100)); + } + else if (InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.E2)) + { + this._shopItem[monitorId].ShiftCategoryLeft(); + this.CheckShopButton(monitorId); + this.container.processManager.CloseWindow(monitorId); + base.SetInputLockInfo(monitorId, 200f); + } + else if (InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.E8)) + { + this._shopItem[monitorId].ShiftCategoryRight(); + this.CheckShopButton(monitorId); + this.container.processManager.CloseWindow(monitorId); + base.SetInputLockInfo(monitorId, 200f); + } + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button05)) + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.SelectCollectionType; + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.SelectCollectionType); + this.container.processManager.CloseWindow(monitorId); + base.SetInputLockInfo(monitorId, 550f); + this.LoadCollectionData(monitorId); + return; + } + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04)) + { + CollectionProcess.CannotBuyItemReason cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.None; + if (this.CanBuyItem(monitorId, 0, out cannotBuyItemReason)) + { + this.BuyItem(monitorId); + this._monitors[monitorId].UpdateMaiMaileAcquitionPlateNum(); + this._monitors[monitorId].SetActiveButtonAnimation(2); + this._monitors[monitorId].ReDeployOnShop(); + this.container.processManager.EnqueueMessage(monitorId, WindowMessageID.BuyItem, null); + this.closeWindowTimer[monitorId] = 0f; + base.SetInputLockInfo(monitorId, 500f); + SoundManager.PlaySE(Mai2.Mai2Cue.Cue.SE_COLLECTION_ITEM_GET, monitorId); + int num = 0; + if (this.BoughtPartner(monitorId, out num)) + { + this.forceDisableAllButton[monitorId] = true; + this._monitors[monitorId].shopPartnerWindowOpened = true; + base.SetInputLockInfo(monitorId, 1500f); + this.container.monoBehaviour.StartCoroutine(this.ChangeShopPartnerGetWindowSequence(monitorId, num)); + } + this.CheckShopButton(monitorId); + return; + } + if (cannotBuyItemReason == CollectionProcess.CannotBuyItemReason.PartnerRoomCard) + { + this._partner[monitorId].SetCategoryIndexAndItemIndexWithItemId(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipPartnerID); + this.LoadCollectionData(monitorId); + if (this.CanMoveToPresentSequence(monitorId)) + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.PartnerPresent; + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.PartnerPresent); + this._monitors[monitorId].InPartnerRoomUIOut(); + this.InitializePartnerPresent(monitorId); + base.SetInputLockInfo(monitorId, 2000f); + } + else + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.Prtner; + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.Prtner); + base.SetInputLockInfo(monitorId, 550f); + } + this.SetCurrentCollectionType(monitorId, CollectionGenreID.Partner); + return; + } + } + else + { + if (InputManager.SlideAreaLr(monitorId)) + { + this.container.processManager.CloseWindow(monitorId); + this.SlideScrollRight(monitorId, ref this._shopItem[monitorId]); + return; + } + if (InputManager.SlideAreaRl(monitorId)) + { + this.container.processManager.CloseWindow(monitorId); + this.SlideScrollLeft(monitorId, ref this._shopItem[monitorId]); + return; + } + this._monitors[monitorId].SetScrollCard(false); + } + } + + // Token: 0x06000BC8 RID: 3016 RVA: 0x0003527C File Offset: 0x0003447C + private void UpdateShop(int monitorId) + { + float num = this.closeWindowTimer[monitorId]; + this.closeWindowTimer[monitorId] += Time.deltaTime; + if (num < 1f && this.closeWindowTimer[monitorId] >= 1f) + { + this.container.processManager.CloseWindow(monitorId); + } + } + + // Token: 0x06000BC9 RID: 3017 RVA: 0x000352D0 File Offset: 0x000344D0 + private void CreateShopData(int monitorId) + { + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + List list = new List(); + this.shopItemStocks.Clear(); + SortedDictionary> sortedDictionary = new SortedDictionary>(); + foreach (KeyValuePair keyValuePair in from x in Singleton.Instance.GetShopItems() + orderby x.Value.priority + select x) + { + int id2 = keyValuePair.Value.shopItemCategoryName.id; + if (keyValuePair.Value.inGameVisable && Singleton.Instance.IsOpenEvent(keyValuePair.Value.eventName.id)) + { + if (sortedDictionary.ContainsKey(id2)) + { + sortedDictionary[id2].Add(keyValuePair.Value.GetID()); + } + else + { + List list2 = new List { keyValuePair.Value.GetID() }; + sortedDictionary.Add(id2, list2); + } + } + } + List list3 = new List(); + ShopItemData shopItemData = new ShopItemData(); + List> list4 = new List>(); + AssetManager assetManager = AssetManager.Instance(); + bool flag = false; + int num = 0; + int num2 = 0; + foreach (KeyValuePair keyValuePair2 in from x in Singleton.Instance.GetShopItemCategories() + orderby x.Value.priority + select x) + { + int num3 = 0; + if (sortedDictionary.ContainsKey(keyValuePair2.Value.GetID())) + { + List list5 = new List(sortedDictionary[keyValuePair2.Value.GetID()]); + if (num3 == 0 && !flag) + { + list5.Insert(0, -1); + flag = true; + num3++; + } + if (keyValuePair2.Value.name.id == 7) + { + list5.Add(-2); + num = num2; + } + list4.Add(new ReadOnlyCollection(list5)); + Sprite tabTitleSprite = assetManager.GetTabTitleSprite(keyValuePair2.Value.fileName); + list.Add(new CollectionTabData(Utility.ConvertColor(keyValuePair2.Value.color), tabTitleSprite, keyValuePair2.Value.genreNameTwoLine, "")); + num2++; + } + } + for (int i = 0; i < list4.Count; i++) + { + for (int j = 0; j < list4[i].Count; j++) + { + int id = list4[i][j]; + if (!list3.Any((CollectionData c) => c.GetID() == id)) + { + if (i == 0 && j == 0) + { + id = list4[i][1]; + shopItemData = Singleton.Instance.GetShopItem(id); + CollectionData collectionData = new CollectionData + { + NetOpenName = shopItemData.netOpenName, + DataName = shopItemData.dataName, + Disable = false, + Genre = shopItemData.shopItemCategoryName, + IsDefault = false, + IsHave = true, + IsNew = false, + IsDisp = true, + NormText = "", + ReleaseTagName = shopItemData.releaseTagName, + Priority = shopItemData.priority, + ID = -1, + NameStr = shopItemData.name.str + }; + list3.Add(collectionData); + this.shopItemStocks.Add(new CollectionProcess.ShopItemStock(collectionData.ID, 0)); + } + else if (i == num && j == list4[i].Count - 1) + { + id = list4[i][0]; + shopItemData = Singleton.Instance.GetShopItem(id); + CollectionData collectionData2 = new CollectionData + { + NetOpenName = shopItemData.netOpenName, + DataName = shopItemData.dataName, + Disable = false, + Genre = shopItemData.shopItemCategoryName, + IsDefault = false, + IsHave = true, + IsNew = false, + IsDisp = true, + NormText = "", + ReleaseTagName = shopItemData.releaseTagName, + Priority = shopItemData.priority, + ID = -2, + NameStr = shopItemData.name.str + }; + list3.Add(collectionData2); + this.shopItemStocks.Add(new CollectionProcess.ShopItemStock(collectionData2.ID, 0)); + } + else + { + shopItemData = Singleton.Instance.GetShopItem(id); + CollectionData collectionData3 = new CollectionData + { + NetOpenName = shopItemData.netOpenName, + DataName = shopItemData.dataName, + Disable = false, + Genre = shopItemData.shopItemCategoryName, + IsDefault = false, + IsHave = true, + IsNew = false, + IsDisp = true, + NormText = "", + ReleaseTagName = shopItemData.releaseTagName, + Priority = shopItemData.priority, + ID = shopItemData.GetID(), + NameStr = shopItemData.name.str + }; + list3.Add(collectionData3); + this.shopItemStocks.Add(new CollectionProcess.ShopItemStock(collectionData3.ID, shopItemData.itemStock)); + } + } + } + } + if (list3.Count > 0 && userData.Detail.EquipFrameID == 0) + { + int setting_id = 1; + userData.Detail.EquipFrameID = setting_id; + int num4 = list3.FindIndex((CollectionData m) => m.ID == setting_id); + if (num4 >= 0) + { + list3[num4].IsDefault = true; + list3[num4].IsHave = true; + } + } + this._shopItem[monitorId].Initialize(list4, list3, list, this, this._monitors[monitorId], false, 0); + } + + // Token: 0x06000BCA RID: 3018 RVA: 0x000358FC File Offset: 0x00034AFC + public CollectionData GetShopItemById(int monitorId, int targetId) + { + return this._shopItem[monitorId].GetCollectionById(targetId); + } + + // Token: 0x06000BCB RID: 3019 RVA: 0x0003590C File Offset: 0x00034B0C + public CollectionData GetShopItem(int monitorId, int diffIndex) + { + return this._shopItem[monitorId].GetCollection(diffIndex); + } + + // Token: 0x06000BCC RID: 3020 RVA: 0x0003591C File Offset: 0x00034B1C + public bool IsShopItemBoundary(int monitorId, int diffIndex, out int overCount) + { + return this._shopItem[monitorId].IsCollectionBoundary(diffIndex, out overCount); + } + + // Token: 0x06000BCD RID: 3021 RVA: 0x00035930 File Offset: 0x00034B30 + private string ShopItemCategoryName(int monitorId, int diff) + { + int num = this._shopItem[monitorId].CategoryIndex + diff; + if (num < 0) + { + num = this._shopItem[monitorId].TabData.Count - 1; + } + else if (this._shopItem[monitorId].TabData.Count <= num) + { + num = 0; + } + return this._shopItem[monitorId].CategoryName(num); + } + + // Token: 0x06000BCE RID: 3022 RVA: 0x00035990 File Offset: 0x00034B90 + public bool CanBuyItem(int monitorId, int index, out CollectionProcess.CannotBuyItemReason cannotBuyItemReason) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.None; + CollectionData shopItem = this.GetShopItem(monitorId, index); + if (shopItem == null) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.Invalid; + return false; + } + if (shopItem.ID == -1) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.Invalid; + return false; + } + if (shopItem.ID == -2) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.PartnerRoomCard; + return false; + } + ShopItemData shopItem2 = Singleton.Instance.GetShopItem(shopItem.GetID()); + if (shopItem2 == null) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.Invalid; + return false; + } + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + if (userData == null) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.Invalid; + return false; + } + if (!this.EnoughShopItemStock(shopItem.ID, userData, out cannotBuyItemReason)) + { + return false; + } + if (!this.EnoughUserItemStock(shopItem2, userData, out cannotBuyItemReason)) + { + return false; + } + if (userData.Detail.Point < shopItem2.itemCost) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.NotEnoughMaiMaile; + return false; + } + return true; + } + + // Token: 0x06000BCF RID: 3023 RVA: 0x00035A34 File Offset: 0x00034C34 + private bool EnoughShopItemStock(int itemId, UserData userData, out CollectionProcess.CannotBuyItemReason cannotBuyItemReason) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.None; + CollectionProcess.ShopItemStock shopItemStock = this.shopItemStocks.Find((CollectionProcess.ShopItemStock c) => c.id == itemId); + if (shopItemStock == null) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.Invalid; + return false; + } + UserShopStock userShopStock = userData.ShopStockList.Find((UserShopStock c) => c.shopItemId == itemId); + if (userShopStock == null) + { + return true; + } + if (shopItemStock.stock - userShopStock.tradeCount <= 0) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.ZeroItemStock; + return false; + } + return true; + } + + // Token: 0x06000BD0 RID: 3024 RVA: 0x00035AA4 File Offset: 0x00034CA4 + private bool EnoughUserItemStock(ShopItemData shopItemData, UserData userData, out CollectionProcess.CannotBuyItemReason cannotBuyItemReason) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.None; + switch (shopItemData.shopItemCategoryName.id) + { + case 1: + { + UserItem userItem = userData.TicketList.Find((UserItem t) => t.itemId == shopItemData.itemId); + int num = 0; + if (userItem != null) + { + num = userItem.stock; + } + TicketData ticket = Singleton.Instance.GetTicket(shopItemData.itemId); + if (ticket == null) + { + return false; + } + if (num + shopItemData.exchangeNum > ticket.maxCount) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.UserMaxStock; + return false; + } + break; + } + case 2: + if (userData.PartnerList.Find((UserItem c) => c.itemId == shopItemData.itemId) != null) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.UserMaxStock; + return false; + } + break; + case 3: + if (userData.CharaList.Find((UserChara c) => c.ID == shopItemData.itemId) != null) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.UserMaxStock; + return false; + } + break; + case 4: + if (userData.PlateList.Find((UserItem c) => c.itemId == shopItemData.itemId) != null) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.UserMaxStock; + return false; + } + break; + case 5: + if (userData.FrameList.Find((UserItem c) => c.itemId == shopItemData.itemId) != null) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.UserMaxStock; + return false; + } + break; + case 6: + if (userData.TitleList.Find((UserItem c) => c.itemId == shopItemData.itemId) != null) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.UserMaxStock; + return false; + } + break; + case 7: + { + int num2 = 0; + if (userData.IntimateItemList.Count > 0) + { + num2 = userData.IntimateItemList[0].stock; + } + if (num2 + shopItemData.exchangeNum > 9999) + { + cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.UserMaxStock; + return false; + } + break; + } + } + return true; + } + + // Token: 0x06000BD1 RID: 3025 RVA: 0x00035C38 File Offset: 0x00034E38 + private void BuyItem(int monitorId) + { + CollectionData itemData = this.GetShopItem(monitorId, 0); + ShopItemData shopItem = Singleton.Instance.GetShopItem(itemData.GetID()); + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + int itemId = shopItem.itemId; + UserShopStock userShopStock = userData.ShopStockList.Find((UserShopStock c) => c.shopItemId == itemData.ID); + if (userShopStock == null) + { + userShopStock = new UserShopStock(); + userShopStock.shopItemId = itemData.ID; + userShopStock.tradeCount = 0; + userData.ShopStockList.Add(userShopStock); + } + userShopStock.tradeCount++; + UserTradeItem userTradeItem = userData.userTradeItemList.Find((UserTradeItem c) => c.shopItemId == (long)itemData.ID); + if (userTradeItem == null) + { + userTradeItem = new UserTradeItem(); + userTradeItem.shopItemId = (long)itemData.ID; + userTradeItem.point = 0L; + userTradeItem.tradeCount = 0; + userData.userTradeItemList.Add(userTradeItem); + } + userTradeItem.point += (long)shopItem.itemCost; + userTradeItem.tradeCount++; + userData.Detail.Point -= shopItem.itemCost; + switch (shopItem.shopItemCategoryName.id) + { + case 1: + if (Singleton.Instance.GetTicket(itemId) != null) + { + for (int i = 0; i < shopItem.exchangeNum; i++) + { + userData.AddCollections(UserData.Collection.Ticket, itemId, false); + } + return; + } + break; + case 2: + if (Singleton.Instance.GetPartner(itemId) != null) + { + userData.AddCollections(UserData.Collection.Partner, itemId, true); + return; + } + break; + case 3: + if (Singleton.Instance.GetChara(itemId) != null) + { + userData.AddCollections(UserData.Collection.Chara, itemId, true); + return; + } + break; + case 4: + if (Singleton.Instance.GetPlate(itemId) != null) + { + userData.AddCollections(UserData.Collection.Plate, itemId, true); + return; + } + break; + case 5: + if (Singleton.Instance.GetFrame(itemId) != null) + { + userData.AddCollections(UserData.Collection.Frame, itemId, true); + return; + } + break; + case 6: + if (Singleton.Instance.GetTitle(itemId) != null) + { + userData.AddCollections(UserData.Collection.Title, itemId, true); + return; + } + break; + case 7: + if (userData.IntimateItemList.Count == 0) + { + UserItem userItem = new UserItem(10001); + userItem.stock = 0; + userData.IntimateItemList.Add(userItem); + } + userData.IntimateItemList[0].stock += shopItem.exchangeNum; + break; + default: + return; + } + } + + // Token: 0x06000BD2 RID: 3026 RVA: 0x00035EA0 File Offset: 0x000350A0 + private bool BoughtPartner(int monitorId, out int partnerId) + { + partnerId = 0; + CollectionData shopItem = this.GetShopItem(monitorId, 0); + ShopItemData shopItem2 = Singleton.Instance.GetShopItem(shopItem.GetID()); + if (shopItem2.shopItemCategoryName.id == 2) + { + partnerId = shopItem2.itemId; + return true; + } + return false; + } + + // Token: 0x06000BD3 RID: 3027 RVA: 0x00035EE4 File Offset: 0x000350E4 + public void CheckShopButton(int monitorId) + { + if (this.forceDisableAllButton[monitorId]) + { + this._monitors[monitorId].SetVisibleButton(false, new int[] { 2 }); + this._monitors[monitorId].SetVisibleButton(false, new int[] { 3 }); + this._monitors[monitorId].SetVisibleButton(false, new int[] { 1 }); + this._monitors[monitorId].SetVisibleButton(false, new int[1]); + return; + } + CollectionProcess.CannotBuyItemReason cannotBuyItemReason = CollectionProcess.CannotBuyItemReason.None; + bool flag = this.CanBuyItem(monitorId, 0, out cannotBuyItemReason); + if (flag) + { + if (this._monitors[monitorId].GetVisibleButton(2)) + { + this._monitors[monitorId].ChangeFlatButtonDefine(2, 36); + this._monitors[monitorId].SetVisibleButton(true, new int[] { 2 }); + return; + } + this._monitors[monitorId].ChangeFlatButtonSymbol(2, 36); + return; + } + else + { + if (!flag && cannotBuyItemReason == CollectionProcess.CannotBuyItemReason.PartnerRoomCard) + { + this._monitors[monitorId].ChangeFlatButtonSymbol(2, 2); + return; + } + this._monitors[monitorId].SetVisibleButton(false, new int[] { 2 }); + return; + } + } + + // Token: 0x06000BD4 RID: 3028 RVA: 0x00035FE4 File Offset: 0x000351E4 + public int GetShopItemStock(int id, int monitorId) + { + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + if (userData == null) + { + return 0; + } + CollectionProcess.ShopItemStock shopItemStock = this.shopItemStocks.Find((CollectionProcess.ShopItemStock c) => c.id == id); + if (shopItemStock == null) + { + return 0; + } + UserShopStock userShopStock = userData.ShopStockList.Find((UserShopStock c) => c.shopItemId == id); + int num = 0; + if (userShopStock != null) + { + num = userShopStock.tradeCount; + } + return shopItemStock.stock - num; + } + + // Token: 0x06000BD5 RID: 3029 RVA: 0x0003605C File Offset: 0x0003525C + public int GetUserItemStock(int id, int monitorId) + { + int num = 0; + CollectionData shopItemById = this.GetShopItemById(monitorId, id); + if (shopItemById == null) + { + return num; + } + if (shopItemById.ID == -1) + { + return num; + } + if (shopItemById.ID == -2) + { + return num; + } + ShopItemData shopItemData = Singleton.Instance.GetShopItem(shopItemById.GetID()); + if (shopItemData == null) + { + return num; + } + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + if (userData == null) + { + return num; + } + switch (shopItemData.shopItemCategoryName.id) + { + case 1: + { + UserItem userItem = userData.TicketList.Find((UserItem t) => t.itemId == shopItemData.itemId); + if (userItem != null) + { + num = userItem.stock; + } + break; + } + case 2: + if (userData.PartnerList.Find((UserItem c) => c.itemId == shopItemData.itemId) != null) + { + num = 1; + } + break; + case 3: + if (userData.CharaList.Find((UserChara c) => c.ID == shopItemData.itemId) != null) + { + num = 1; + } + break; + case 4: + if (userData.PlateList.Find((UserItem c) => c.itemId == shopItemData.itemId) != null) + { + num = 1; + } + break; + case 5: + if (userData.FrameList.Find((UserItem c) => c.itemId == shopItemData.itemId) != null) + { + num = 1; + } + break; + case 6: + if (userData.TitleList.Find((UserItem c) => c.itemId == shopItemData.itemId) != null) + { + num = 1; + } + break; + case 7: + if (userData.IntimateItemList.Count == 0) + { + return num; + } + num = userData.IntimateItemList[0].stock; + break; + } + return num; + } + + // Token: 0x06000BD6 RID: 3030 RVA: 0x000361EA File Offset: 0x000353EA + public IEnumerator ChangeShopPartnerGetWindowSequence(int monitorId, int partnerId) + { + yield return new WaitForSeconds(1.45f); + PartnerData partner = Singleton.Instance.GetPartner(partnerId); + this.container.processManager.CloseWindow(monitorId); + this._subSequence[monitorId] = CollectionProcess.SubSequence.ShopPartnerGetWindow; + this._monitors[monitorId].ChangeSubSequence(this._subSequence[monitorId]); + this.InitalizeShopGetPartnerWindow(monitorId, partner.naviChara.id, partner.name.id, partner.name.str); + this._monitors[monitorId].SetCollectionAcquitionPlate(this._subSequence[monitorId]); + yield break; + } + + // Token: 0x06000BD7 RID: 3031 RVA: 0x00036208 File Offset: 0x00035408 + public void InitalizeSetPartnerDialogSequence(int monitorId, int partnerId) + { + for (int i = 0; i < this.shopSetPartnerDialogState.Length; i++) + { + this.shopSetPartnerDialogState[i] = ShopSetPartnerDialog.State.Idle; + this.changePartner[i] = false; + } + ShopSetPartnerDialog shopSetPartnerDialog = this._monitors[monitorId].GetShopSetPartnerDialog(); + shopSetPartnerDialog.SetVisable(true); + shopSetPartnerDialog.Initalize(); + shopSetPartnerDialog.ChangeState(ShopSetPartnerDialog.State.FadeInEnter); + this.shopSetPartnerDialogPartnerId[monitorId] = partnerId; + } + + // Token: 0x06000BD8 RID: 3032 RVA: 0x00036264 File Offset: 0x00035464 + private void InputSetPartnerDialogSequence(int monitorId) + { + ShopSetPartnerDialog.State state = this.shopSetPartnerDialogState[monitorId]; + if (state != ShopSetPartnerDialog.State.WaitLoop) + { + if (state != ShopSetPartnerDialog.State.WaitSetPartnerLoop) + { + return; + } + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04)) + { + this._monitors[monitorId].GetShopSetPartnerDialog().ChangeState(ShopSetPartnerDialog.State.WaitSetPartnerEnd); + this._monitors[monitorId].SetActiveButtonAnimation(2); + } + } + else + { + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04)) + { + this._monitors[monitorId].GetShopSetPartnerDialog().ChangeState(ShopSetPartnerDialog.State.WaitEnd); + this._monitors[monitorId].SetActiveButtonAnimation(2); + this.ChangeEquipmentPartnerWithoutUIRefresh(monitorId, this.shopSetPartnerDialogPartnerId[monitorId]); + this.changePartner[monitorId] = true; + return; + } + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button05)) + { + this._monitors[monitorId].GetShopSetPartnerDialog().ChangeState(ShopSetPartnerDialog.State.WaitEnd); + this._monitors[monitorId].SetActiveButtonAnimation(3); + this.changePartner[monitorId] = false; + return; + } + } + } + + // Token: 0x06000BD9 RID: 3033 RVA: 0x00036328 File Offset: 0x00035528 + private void UpdateSetPartnerDialog(int monitorId) + { + ShopSetPartnerDialog shopSetPartnerDialog = this._monitors[monitorId].GetShopSetPartnerDialog(); + ShopSetPartnerDialog.State state = this.shopSetPartnerDialogState[monitorId]; + this.shopSetPartnerDialogState[monitorId] = shopSetPartnerDialog.GetCurrentState(); + if (state == ShopSetPartnerDialog.State.WaitEnter && this.shopSetPartnerDialogState[monitorId] == ShopSetPartnerDialog.State.WaitLoop) + { + this._monitors[monitorId].ChangeFlatButtonDefine(2, 0); + this._monitors[monitorId].ChangeFlatButtonDefine(3, 1); + this._monitors[monitorId].SetVisibleButton(true, new int[] { 2 }); + this._monitors[monitorId].SetVisibleButton(true, new int[] { 3 }); + return; + } + if (state == ShopSetPartnerDialog.State.WaitLoop && this.shopSetPartnerDialogState[monitorId] == ShopSetPartnerDialog.State.WaitEnd) + { + this._monitors[monitorId].SetVisibleButton(false, new int[] { 2 }); + this._monitors[monitorId].SetVisibleButton(false, new int[] { 3 }); + return; + } + if (state == ShopSetPartnerDialog.State.FadeOutLoop && this.shopSetPartnerDialogState[monitorId] == ShopSetPartnerDialog.State.FadeOutEnd) + { + if (this.changePartner[monitorId]) + { + shopSetPartnerDialog.ChangeState(ShopSetPartnerDialog.State.FadeInSetPartnerEnter); + return; + } + shopSetPartnerDialog.ChangeState(ShopSetPartnerDialog.State.End); + return; + } + else + { + if (state == ShopSetPartnerDialog.State.WaitSetPartnerEnter && this.shopSetPartnerDialogState[monitorId] == ShopSetPartnerDialog.State.WaitSetPartnerLoop) + { + this._monitors[monitorId].ChangeFlatButtonDefine(2, 4); + this._monitors[monitorId].SetVisibleButton(true, new int[] { 2 }); + return; + } + if (state == ShopSetPartnerDialog.State.WaitSetPartnerLoop && this.shopSetPartnerDialogState[monitorId] == ShopSetPartnerDialog.State.WaitSetPartnerEnd) + { + this._monitors[monitorId].SetVisibleButton(false, new int[] { 2 }); + return; + } + if (state == ShopSetPartnerDialog.State.FadeOutSetPartnerLoop && this.shopSetPartnerDialogState[monitorId] == ShopSetPartnerDialog.State.FadeOutSetPartnerEnd) + { + shopSetPartnerDialog.ChangeState(ShopSetPartnerDialog.State.End); + return; + } + if (state != ShopSetPartnerDialog.State.End && this.shopSetPartnerDialogState[monitorId] == ShopSetPartnerDialog.State.End) + { + shopSetPartnerDialog.SetVisable(false); + this._subSequence[monitorId] = CollectionProcess.SubSequence.Shop; + this._monitors[monitorId].ChangeSubSequence(this._subSequence[monitorId]); + this._monitors[monitorId].ChangeFlatButtonDefine(2, 36); + this._monitors[monitorId].ChangeFlatButtonDefine(3, 6); + this._monitors[monitorId].SetVisibleButton(true, new int[] { 3 }); + this._monitors[monitorId].SetVisibleButton(true, new int[] { 1 }); + this._monitors[monitorId].SetVisibleButton(true, new int[1]); + this.InitalizeShop(monitorId); + this.CheckShopButton(monitorId); + } + return; + } + } + + // Token: 0x06000BDA RID: 3034 RVA: 0x00036550 File Offset: 0x00035750 + private void InputTitleSequence(int monitorId) + { + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L)) + { + bool inputLongPush = InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button03, InputManager.TouchPanelArea.A3, 500L); + bool flag = this._title[monitorId].CollectionListLeft(inputLongPush); + this._title[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipTitleID); + this._title[monitorId].UpdateFavoriteDetail(UserData.Collection.Title); + base.SetInputLockInfo(monitorId, (float)(flag ? 200 : 100)); + return; + } + if (InputManager.GetInputDown(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6) || InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L)) + { + bool inputLongPush2 = InputManager.GetInputLongPush(monitorId, InputManager.ButtonSetting.Button06, InputManager.TouchPanelArea.A6, 500L); + bool flag2 = this._title[monitorId].CollectionListRight(inputLongPush2); + this._title[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipTitleID); + this._title[monitorId].UpdateFavoriteDetail(UserData.Collection.Title); + base.SetInputLockInfo(monitorId, (float)(flag2 ? 200 : 100)); + return; + } + if (InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.E2)) + { + this._title[monitorId].ShiftCategoryLeft(); + this._title[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipTitleID); + base.SetInputLockInfo(monitorId, 200f); + return; + } + if (InputManager.GetTouchPanelAreaDown(monitorId, InputManager.TouchPanelArea.E8)) + { + this._title[monitorId].ShiftCategoryRight(); + this._title[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipTitleID); + base.SetInputLockInfo(monitorId, 200f); + return; + } + if (!InputManager.GetTouchPanelAreaDown(monitorId, new InputManager.TouchPanelArea[] + { + InputManager.TouchPanelArea.B4, + InputManager.TouchPanelArea.B5 + })) + { + if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button05)) + { + this._subSequence[monitorId] = CollectionProcess.SubSequence.SelectCollectionType; + this._title[monitorId].RefreshIndex(); + this._monitors[monitorId].ChangeSubSequence(CollectionProcess.SubSequence.SelectCollectionType); + base.SetInputLockInfo(monitorId, 550f); + this.LoadCollectionData(monitorId); + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + if (userData.Detail.EquipTitleID == 3 && userData.IsEqualFavoriteListNum(UserData.Collection.Title, 0)) + { + TitleData title = Singleton.Instance.GetTitle(2); + this.ChangeEquipmentTitle(monitorId, title.name.str, title.rareType.ToString(), title.GetID()); + return; + } + } + else if (InputManager.GetButtonDown(monitorId, InputManager.ButtonSetting.Button04)) + { + CollectionData currentCenterCollectionData = this._title[monitorId].GetCurrentCenterCollectionData(); + int equipTitleID = Singleton.Instance.GetUserData((long)monitorId).Detail.EquipTitleID; + int id = currentCenterCollectionData.GetID(); + if (currentCenterCollectionData == null || equipTitleID == id || !currentCenterCollectionData.IsHave) + { + return; + } + this.ChangeEquipmentTitle(monitorId, currentCenterCollectionData.NameStr, currentCenterCollectionData.TrophyRareType.ToString(), id); + this._title[monitorId].CheckSetButton(Singleton.Instance.GetUserData((long)monitorId).Detail.EquipTitleID); + return; + } + else + { + if (InputManager.SlideAreaLr(monitorId)) + { + this.SlideScrollRight(monitorId, ref this._title[monitorId]); + this._title[monitorId].UpdateFavoriteDetail(UserData.Collection.Title); + return; + } + if (InputManager.SlideAreaRl(monitorId)) + { + this.SlideScrollLeft(monitorId, ref this._title[monitorId]); + this._title[monitorId].UpdateFavoriteDetail(UserData.Collection.Title); + return; + } + this._monitors[monitorId].SetScrollCard(false); + } + return; + } + CollectionData currentCenterCollectionData2 = this._title[monitorId].GetCurrentCenterCollectionData(); + if (currentCenterCollectionData2 == null || !currentCenterCollectionData2.IsHave || currentCenterCollectionData2.IsRandom) + { + return; + } + UserData userData2 = Singleton.Instance.GetUserData((long)monitorId); + bool flag3 = userData2.FlipFavorite(UserData.Collection.Title, currentCenterCollectionData2.ID); + currentCenterCollectionData2.IsFavorite = flag3; + if (!userData2.IsMaxFavoriteItem(UserData.Collection.Title) || flag3) + { + SoundManager.PlaySE(Mai2.Mai2Cue.Cue.SE_SYS_FIX, monitorId); + } + this._monitors[monitorId].UpdateFavoriteCollection(UserData.Collection.Title, flag3); + base.SetInputLockInfo(monitorId, 200f); + } + + // Token: 0x06000BDB RID: 3035 RVA: 0x00036930 File Offset: 0x00035B30 + private void CreateTitleData(int monitorId) + { + UserData userData = Singleton.Instance.GetUserData((long)monitorId); + List list = new List(); + int i; + List list2 = (from i in userData.TitleList + where i.stock > 0 + select i.itemId).ToList(); + List newTitleList = userData.NewTitleList; + List favoriteTitleList = userData.FavoriteTitleList; + SortedDictionary> sortedDictionary = new SortedDictionary>(); + if (0 < newTitleList.Count) + { + CollectionGenreData collectionGenre = Singleton.Instance.GetCollectionGenre(2); + List list3 = new List(); + List list4 = new List(); + int num = ((10 < newTitleList.Count) ? 10 : newTitleList.Count); + for (i = 0; i < num; i++) + { + TitleData title = Singleton.Instance.GetTitle(newTitleList[i]); + list3.Add(title); + list4.Add(title.GetID()); + } + sortedDictionary.Add(collectionGenre.GetID(), list4); + } + if (0 < favoriteTitleList.Count) + { + CollectionGenreData collectionGenre2 = Singleton.Instance.GetCollectionGenre(100); + List list5 = new List(); + List list6 = new List(); + int num2 = ((30 < favoriteTitleList.Count) ? 30 : favoriteTitleList.Count); + for (int j = 0; j < num2; j++) + { + TitleData title2 = Singleton.Instance.GetTitle(favoriteTitleList[j]); + list5.Add(title2); + } + list5 = list5.OrderBy((TitleData x) => x.priority).ToList(); + foreach (TitleData titleData in list5) + { + list6.Add(titleData.GetID()); + } + sortedDictionary.Add(collectionGenre2.GetID(), list6); + } + foreach (KeyValuePair keyValuePair in from x in Singleton.Instance.GetTitles() + orderby x.Value.priority + select x) + { + int id2 = keyValuePair.Value.genre.id; + bool flag = list2.Contains(keyValuePair.Value.GetID()); + bool flag2 = keyValuePair.Value.dispCond == ItemDispKind.None || keyValuePair.Value.disable; + if ((flag || flag2) && id2 != 101) + { + if (sortedDictionary.ContainsKey(id2)) + { + sortedDictionary[id2].Add(keyValuePair.Value.GetID()); + } + else + { + List list7 = new List { keyValuePair.Value.GetID() }; + sortedDictionary.Add(id2, list7); + } + } + } + List list8 = new List(); + TitleData titleData2 = new TitleData(); + List> list9 = new List>(); + AssetManager assetManager = AssetManager.Instance(); + List list10 = new List(); + titleData2 = Singleton.Instance.GetTitle(2); + Singleton.Instance.GetCollectionGenre(101); + CollectionData collectionData = new CollectionData + { + NetOpenName = titleData2.netOpenName, + DataName = titleData2.dataName, + Disable = titleData2.disable, + Genre = titleData2.genre, + IsDefault = titleData2.isDefault, + IsHave = true, + IsDisp = true, + NormText = titleData2.normText, + TrophyRareType = TrophyRareType.Normal, + Priority = titleData2.priority, + ID = titleData2.GetID(), + NameStr = titleData2.name.str + }; + list8.Add(collectionData); + list10.Add(collectionData.ID); + if (0 < favoriteTitleList.Count) + { + titleData2 = Singleton.Instance.GetTitle(3); + CollectionData collectionData2 = new CollectionData + { + NetOpenName = titleData2.netOpenName, + DataName = titleData2.dataName, + Disable = titleData2.disable, + Genre = titleData2.genre, + IsDefault = titleData2.isDefault, + IsHave = true, + IsDisp = true, + NormText = titleData2.normText, + TrophyRareType = TrophyRareType.Normal, + Priority = titleData2.priority, + ID = titleData2.GetID(), + NameStr = titleData2.name.str + }; + list8.Add(collectionData2); + list10.Add(collectionData2.ID); + } + sortedDictionary.Add(101, list10); + foreach (KeyValuePair keyValuePair2 in from x in Singleton.Instance.GetCollectionGenres() + orderby x.Value.priority + select x) + { + if (sortedDictionary.ContainsKey(keyValuePair2.Value.GetID())) + { + ReadOnlyCollection readOnlyCollection = new ReadOnlyCollection(sortedDictionary[keyValuePair2.Value.GetID()]); + list9.Add(readOnlyCollection); + Sprite tabTitleSprite = assetManager.GetTabTitleSprite(keyValuePair2.Value.FileName); + list.Add(new CollectionTabData(Utility.ConvertColor(keyValuePair2.Value.Color), tabTitleSprite, keyValuePair2.Value.genreNameTwoLine, "")); + } + } + for (int k = 0; k < list9.Count; k++) + { + for (int l = 0; l < list9[k].Count; l++) + { + int id = list9[k][l]; + if (!list8.Any((CollectionData c) => c.GetID() == id)) + { + titleData2 = Singleton.Instance.GetTitle(id); + bool flag3 = list2.Contains(titleData2.GetID()); + bool flag4 = titleData2.dispCond == ItemDispKind.None || titleData2.disable; + if (flag3 || flag4) + { + bool flag5 = newTitleList.Contains(titleData2.GetID()); + bool flag6 = favoriteTitleList.Contains(titleData2.GetID()); + CollectionData collectionData3 = new CollectionData + { + NetOpenName = titleData2.netOpenName, + DataName = titleData2.dataName, + Disable = titleData2.disable, + Genre = titleData2.genre, + IsDefault = titleData2.isDefault, + IsHave = flag3, + IsNew = flag5, + IsDisp = flag4, + IsFavorite = flag6, + NormText = titleData2.normText, + TrophyRareType = titleData2.rareType, + ReleaseTagName = titleData2.releaseTagName, + Priority = titleData2.priority, + ID = titleData2.GetID(), + NameStr = titleData2.name.str + }; + list8.Add(collectionData3); + } + } + } + } + if (list8.Count > 0 && userData.Detail.EquipTitleID == 0) + { + int setting_id = 1; + userData.Detail.EquipTitleID = setting_id; + int num3 = list8.FindIndex((CollectionData m) => m.ID == setting_id); + if (num3 >= 0) + { + list8[num3].IsDefault = true; + list8[num3].IsHave = true; + } + } + this._title[monitorId].Initialize(list9, list8, list, this, this._monitors[monitorId], newTitleList.Count > 0, userData.Detail.EquipTitleID); + } + + // Token: 0x06000BDC RID: 3036 RVA: 0x00037118 File Offset: 0x00036318 + public bool IsHaveNewTitle(int monitorId) + { + return this._title[monitorId].IsHaveNewIcon(); + } + + // Token: 0x06000BDD RID: 3037 RVA: 0x00037127 File Offset: 0x00036327 + public CollectionData GetTitleById(int monitorId, int targetId) + { + return this._title[monitorId].GetCollectionById(targetId); + } + + // Token: 0x06000BDE RID: 3038 RVA: 0x00037137 File Offset: 0x00036337 + public CollectionData GetTitle(int monitorId, int diffIndex) + { + return this._title[monitorId].GetCollection(diffIndex); + } + + // Token: 0x06000BDF RID: 3039 RVA: 0x00037147 File Offset: 0x00036347 + public bool IsTitleBoundary(int monitorId, int diffIndex, out int overCount) + { + return this._title[monitorId].IsCollectionBoundary(diffIndex, out overCount); + } + + // Token: 0x06000BE0 RID: 3040 RVA: 0x00037158 File Offset: 0x00036358 + public int GetAllTitleNum(int monitorId) + { + return this._title[monitorId].GetAllCollectionNum(); + } + + // Token: 0x06000BE1 RID: 3041 RVA: 0x00037167 File Offset: 0x00036367 + public int GetCurrentTitleIndex(int monitorId) + { + return this._title[monitorId].GetCurrentIndex(); + } + + // Token: 0x06000BE2 RID: 3042 RVA: 0x00037178 File Offset: 0x00036378 + private string TitleCategoryName(int monitorId, int diff) + { + int num = this._title[monitorId].CategoryIndex + diff; + if (num < 0) + { + num = this._title[monitorId].TabData.Count - 1; + } + else if (this._title[monitorId].TabData.Count <= num) + { + num = 0; + } + return this._title[monitorId].CategoryName(num); + } + + // Token: 0x06000BE3 RID: 3043 RVA: 0x000371D8 File Offset: 0x000363D8 + private void ChangeEquipmentTitle(int monitorId, string title, string trophyRareType, int collectionId) + { + this._monitors[monitorId].PushDesitionButton(this._subSequence[monitorId]); + Sprite sprite = Resources.Load("Process/Common/Sprites/UpperMonitor/UI_CMN_Shougou_" + trophyRareType); + this.container.processManager.SendMessage(new Message(ProcessType.CommonProcess, 30003, new object[] { monitorId, title, sprite })); + Singleton.Instance.GetUserData((long)monitorId).Detail.EquipTitleID = collectionId; + } + + // Token: 0x04000900 RID: 2304 + private CollectionMonitor[] _monitors; + + // Token: 0x04000901 RID: 2305 + private CollectionProcess.Sequence _sequence; + + // Token: 0x04000902 RID: 2306 + private CollectionProcess.SubSequence[] _subSequence; + + // Token: 0x04000903 RID: 2307 + private CollectionGenreID[] _currentCollectionType; + + // Token: 0x04000904 RID: 2308 + private bool[] _isEntry; + + // Token: 0x04000905 RID: 2309 + private CollectionInfo[] _icon; + + // Token: 0x04000906 RID: 2310 + private CollectionInfo[] _title; + + // Token: 0x04000907 RID: 2311 + private CollectionInfo[] _plate; + + // Token: 0x04000908 RID: 2312 + private CollectionInfo[] _partner; + + // Token: 0x04000909 RID: 2313 + private CollectionInfo[] _frame; + + // Token: 0x0400090A RID: 2314 + private CollectionInfo[] _shopItem; + + // Token: 0x0400090B RID: 2315 + private Stopwatch[] _timer; + + // Token: 0x0400090C RID: 2316 + private int[] _totalCollectionNum; + + // Token: 0x0400090D RID: 2317 + private float _timeCounter; + + // Token: 0x0400090E RID: 2318 + private float[] SlideScrollTimer; + + // Token: 0x0400090F RID: 2319 + protected int[] SlideScrollCount; + + // Token: 0x04000910 RID: 2320 + protected bool[] SlideScrollToRight; + + // Token: 0x04000911 RID: 2321 + protected float[] SlideScrollTime; + + // Token: 0x04000912 RID: 2322 + private bool[] _isScrollInputLock; + + // Token: 0x04000913 RID: 2323 + public const uint WindowTimeOut = 10000U; + + // Token: 0x04000914 RID: 2324 + public const uint WindowInputWait = 3000U; + + // Token: 0x04000915 RID: 2325 + private bool[] _isTrialSetting; + + // Token: 0x04000916 RID: 2326 + private bool[] _isGuest; + + // Token: 0x04000917 RID: 2327 + private bool _gotoNextProcessCalled; + + // Token: 0x04000918 RID: 2328 + private bool[] _waitMessageShowed; + + // Token: 0x04000919 RID: 2329 + private ShopPartnerGetWindow.State[] shopGetPartnerWindowState = new ShopPartnerGetWindow.State[2]; + + // Token: 0x0400091A RID: 2330 + private int[] presentNum = new int[2]; + + // Token: 0x0400091B RID: 2331 + private int[] longPushCount = new int[2]; + + // Token: 0x0400091C RID: 2332 + private const int longPushCountMax = 5; + + // Token: 0x0400091D RID: 2333 + private float[] presentRoomButtonUiInWaitTime = new float[2]; + + // Token: 0x0400091E RID: 2334 + private const float partnerRoomPlayEntryVoiceWaitTime = 0.8f; + + // Token: 0x0400091F RID: 2335 + private bool[] buttonFadeIn = new bool[2]; + + // Token: 0x04000920 RID: 2336 + private int[] touchCounter = new int[2]; + + // Token: 0x04000921 RID: 2337 + private const int needTouchNum = 2; + + // Token: 0x04000922 RID: 2338 + private float[] touchWaitTimer = new float[2]; + + // Token: 0x04000923 RID: 2339 + private const float touchWaitTime = 2.5f; + + // Token: 0x04000924 RID: 2340 + private const string TITLE_SPRITE_PATH = "Common/Sprites/Thumb/UI_CMN_Usertitle_Thumb"; + + // Token: 0x04000925 RID: 2341 + private const long rewardAnimTimeMax = 14000L; + + // Token: 0x04000926 RID: 2342 + private const long rewardAnimTimeSkip = 1000L; + + // Token: 0x04000927 RID: 2343 + private long rewardAnimTimer; + + // Token: 0x04000928 RID: 2344 + private bool canSkip; + + // Token: 0x04000929 RID: 2345 + private float[] closeWindowTimer = new float[2]; + + // Token: 0x0400092A RID: 2346 + private const float windowTimeOut = 1f; + + // Token: 0x0400092B RID: 2347 + private const float shopPartnerGetWindowWaitTime = 1.45f; + + // Token: 0x0400092C RID: 2348 + private bool[] forceDisableAllButton = new bool[2]; + + // Token: 0x0400092D RID: 2349 + private List shopItemStocks = new List(); + + // Token: 0x0400092E RID: 2350 + private ShopSetPartnerDialog.State[] shopSetPartnerDialogState = new ShopSetPartnerDialog.State[2]; + + // Token: 0x0400092F RID: 2351 + private int[] shopSetPartnerDialogPartnerId = new int[2]; + + // Token: 0x04000930 RID: 2352 + private bool[] changePartner = new bool[2]; + + // Token: 0x04000931 RID: 2353 + private const int MaxNewCollectionNum = 10; + + // Token: 0x04000932 RID: 2354 + private const int MaxFavoriteCollectionNum = 30; + + // Token: 0x04000933 RID: 2355 + private const string NewGetGenreName = "新規獲得"; + + // Token: 0x020009EA RID: 2538 + private enum Sequence : byte + { + // Token: 0x04006254 RID: 25172 + Init, + // Token: 0x04006255 RID: 25173 + Start, + // Token: 0x04006256 RID: 25174 + Update, + // Token: 0x04006257 RID: 25175 + GuestWait, + // Token: 0x04006258 RID: 25176 + Released, + // Token: 0x04006259 RID: 25177 + EndWait + } + + // Token: 0x020009EB RID: 2539 + public enum SubSequence : byte + { + // Token: 0x0400625B RID: 25179 + SelectCollectionType, + // Token: 0x0400625C RID: 25180 + Title, + // Token: 0x0400625D RID: 25181 + Icon, + // Token: 0x0400625E RID: 25182 + NamePlate, + // Token: 0x0400625F RID: 25183 + Frame, + // Token: 0x04006260 RID: 25184 + Prtner, + // Token: 0x04006261 RID: 25185 + Shop, + // Token: 0x04006262 RID: 25186 + ShopPartnerGetWindow, + // Token: 0x04006263 RID: 25187 + ShopPartnerSetDialog, + // Token: 0x04006264 RID: 25188 + PartnerPresent, + // Token: 0x04006265 RID: 25189 + PartnerPresentConfirm, + // Token: 0x04006266 RID: 25190 + PartnerPresentReward, + // Token: 0x04006267 RID: 25191 + Exit, + // Token: 0x04006268 RID: 25192 + ExitLeft, + // Token: 0x04006269 RID: 25193 + Information, + // Token: 0x0400626A RID: 25194 + AimeInfo, + // Token: 0x0400626B RID: 25195 + Max + } + + // Token: 0x020009EC RID: 2540 + private enum PresentChangeNum + { + // Token: 0x0400626D RID: 25197 + Change1 = 1, + // Token: 0x0400626E RID: 25198 + Change10 = 10 + } + + // Token: 0x020009ED RID: 2541 + public enum CannotBuyItemReason + { + // Token: 0x04006270 RID: 25200 + None, + // Token: 0x04006271 RID: 25201 + Invalid, + // Token: 0x04006272 RID: 25202 + PartnerRoomCard, + // Token: 0x04006273 RID: 25203 + NotEnoughMaiMaile, + // Token: 0x04006274 RID: 25204 + ZeroItemStock, + // Token: 0x04006275 RID: 25205 + UserMaxStock + } + + // Token: 0x020009EE RID: 2542 + public class ShopItemStock + { + // Token: 0x06004D3A RID: 19770 RVA: 0x0019CBB3 File Offset: 0x0019BDB3 + public ShopItemStock(int _id, int _stock) + { + this.id = _id; + this.stock = _stock; + } + + // Token: 0x04006276 RID: 25206 + public int id; + + // Token: 0x04006277 RID: 25207 + public int stock; + } +} diff --git a/Assembly-CSharp/CollectionTabController.cs b/Assembly-CSharp/CollectionTabController.cs new file mode 100644 index 0000000..430f12a --- /dev/null +++ b/Assembly-CSharp/CollectionTabController.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using UnityEngine; + +// Token: 0x02000065 RID: 101 +public class CollectionTabController : TabController +{ + // Token: 0x06000372 RID: 882 RVA: 0x0000D9D8 File Offset: 0x0000CBD8 + public override void Initialize(int monitorId) + { + base.Initialize(monitorId); + this.FavoriteStyle = new CollectionTabData(CommonScriptable.GetColorSetting().FavoriteColor, this._favoriteSprite, "お気に入りセット", ""); + } + + // Token: 0x06000373 RID: 883 RVA: 0x000087A9 File Offset: 0x000079A9 + public void CollectionType2Collection(List tabDatas, int categoryIndex) + { + base.Set(new List(tabDatas), categoryIndex); + } + + // Token: 0x06000374 RID: 884 RVA: 0x000087B8 File Offset: 0x000079B8 + public void Favorite2Collection(int categoryIndex) + { + base.SetActiveMiniPanels(categoryIndex); + } + + // Token: 0x06000375 RID: 885 RVA: 0x0000DA06 File Offset: 0x0000CC06 + public void Collection2Favorite() + { + base.SetOnlyMainPanel(this.FavoriteStyle); + } + + // Token: 0x0400022F RID: 559 + private CollectionTabData FavoriteStyle; + + // Token: 0x04000230 RID: 560 + [SerializeField] + private Sprite _favoriteSprite; +} diff --git a/Assembly-CSharp/CollectionTabData.cs b/Assembly-CSharp/CollectionTabData.cs new file mode 100644 index 0000000..5c0099b --- /dev/null +++ b/Assembly-CSharp/CollectionTabData.cs @@ -0,0 +1,17 @@ +using System; +using UnityEngine; + +// Token: 0x0200014F RID: 335 +public class CollectionTabData : TabDataBase +{ + // Token: 0x06000BE5 RID: 3045 RVA: 0x0003725E File Offset: 0x0003645E + public CollectionTabData() + { + } + + // Token: 0x06000BE6 RID: 3046 RVA: 0x0000893D File Offset: 0x00007B3D + public CollectionTabData(Color baseColor, Sprite sprite, string title, string subTitle = "") + : base(baseColor, sprite, title, subTitle) + { + } +} diff --git a/Assembly-CSharp/CollectionTypeParts.cs b/Assembly-CSharp/CollectionTypeParts.cs new file mode 100644 index 0000000..47f7fac --- /dev/null +++ b/Assembly-CSharp/CollectionTypeParts.cs @@ -0,0 +1,32 @@ +using System; +using UI; +using UnityEngine; + +// Token: 0x0200005C RID: 92 +public class CollectionTypeParts : MonoBehaviour +{ + // Token: 0x060002E2 RID: 738 RVA: 0x0000A672 File Offset: 0x00009872 + public void SetParts(int typeIndex) + { + if (this._collectionAcquisionTitleImage != null) + { + this._collectionAcquisionTitleImage.ChangeSprite(typeIndex); + } + } + + // Token: 0x060002E3 RID: 739 RVA: 0x0000A68E File Offset: 0x0000988E + public void SetVisible(bool isVisible) + { + this._canvasGroup.alpha = (float)(isVisible ? 1 : 0); + } + + // Token: 0x040001EE RID: 494 + [SerializeField] + [Header("コレクション種別のパーツ")] + private CanvasGroup _canvasGroup; + + // Token: 0x040001EF RID: 495 + [SerializeField] + [Header("コレクション名")] + private MultipleImage _collectionAcquisionTitleImage; +} diff --git a/Assembly-CSharp/CollectionWindow.cs b/Assembly-CSharp/CollectionWindow.cs new file mode 100644 index 0000000..129e6dc --- /dev/null +++ b/Assembly-CSharp/CollectionWindow.cs @@ -0,0 +1,148 @@ +using System; +using DB; +using TMPro; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x020000DE RID: 222 +public class CollectionWindow : EventWindowBase +{ + // Token: 0x0600075B RID: 1883 RVA: 0x0001C2A4 File Offset: 0x0001B4A4 + private void Awake() + { + if (!this._setInfoText) + { + this._infoText.text = CommonMessageID.GetWindowCollection.GetName(); + } + this._infoText2.text = CommonMessageID.LoginBonusPreviewInfo.GetName(); + } + + // Token: 0x0600075C RID: 1884 RVA: 0x0001C2D8 File Offset: 0x0001B4D8 + public void SetNamePlate(Sprite collectSprite, string itemName) + { + this._jacketRoot.SetActive(false); + this._namePlateRoot.SetActive(true); + this._frameRoot.SetActive(false); + this._iconRoot.SetActive(false); + this._titleRoot.SetActive(false); + this._itemRoot.SetActive(false); + this._namePlate.sprite = collectSprite; + this._itemName.text = itemName; + } + + // Token: 0x0600075D RID: 1885 RVA: 0x0001C348 File Offset: 0x0001B548 + public void SetFrame(Sprite collectSprite, string itemName) + { + this._jacketRoot.SetActive(false); + this._namePlateRoot.SetActive(false); + this._frameRoot.SetActive(true); + this._iconRoot.SetActive(false); + this._titleRoot.SetActive(false); + this._itemRoot.SetActive(false); + this._frame.sprite = collectSprite; + this._itemName.text = itemName; + } + + // Token: 0x0600075E RID: 1886 RVA: 0x0001C3B8 File Offset: 0x0001B5B8 + public void SetIcon(Sprite collectSprite, string itemName) + { + this._jacketRoot.SetActive(false); + this._namePlateRoot.SetActive(false); + this._frameRoot.SetActive(false); + this._iconRoot.SetActive(true); + this._titleRoot.SetActive(false); + this._itemRoot.SetActive(false); + this._icon.sprite = collectSprite; + this._itemName.text = itemName; + } + + // Token: 0x0600075F RID: 1887 RVA: 0x0001C428 File Offset: 0x0001B628 + public void SetTitle(string itemName) + { + this._jacketRoot.SetActive(false); + this._namePlateRoot.SetActive(false); + this._frameRoot.SetActive(false); + this._iconRoot.SetActive(false); + this._titleRoot.SetActive(true); + this._itemRoot.SetActive(false); + this._itemName.text = itemName; + } + + // Token: 0x06000760 RID: 1888 RVA: 0x0001C48C File Offset: 0x0001B68C + public void SetItem(string itemName) + { + this._jacketRoot.SetActive(false); + this._namePlateRoot.SetActive(false); + this._frameRoot.SetActive(false); + this._iconRoot.SetActive(false); + this._titleRoot.SetActive(false); + this._itemRoot.SetActive(true); + this._itemName.text = itemName; + } + + // Token: 0x06000761 RID: 1889 RVA: 0x0001C4ED File Offset: 0x0001B6ED + public void SetInfo(string infoText) + { + this._infoText.text = infoText; + this._setInfoText = true; + } + + // Token: 0x04000571 RID: 1393 + [SerializeField] + private GameObject _jacketRoot; + + // Token: 0x04000572 RID: 1394 + [SerializeField] + private GameObject _namePlateRoot; + + // Token: 0x04000573 RID: 1395 + [SerializeField] + private GameObject _frameRoot; + + // Token: 0x04000574 RID: 1396 + [SerializeField] + private GameObject _iconRoot; + + // Token: 0x04000575 RID: 1397 + [SerializeField] + private GameObject _titleRoot; + + // Token: 0x04000576 RID: 1398 + [SerializeField] + private GameObject _itemRoot; + + // Token: 0x04000577 RID: 1399 + [SerializeField] + private Image _namePlate; + + // Token: 0x04000578 RID: 1400 + [SerializeField] + private Image _frame; + + // Token: 0x04000579 RID: 1401 + [SerializeField] + private Image _icon; + + // Token: 0x0400057A RID: 1402 + [SerializeField] + private Image _titleBackground; + + // Token: 0x0400057B RID: 1403 + [SerializeField] + private CustomTextScroll _titleTextScroll; + + // Token: 0x0400057C RID: 1404 + [SerializeField] + private TextMeshProUGUI _itemName; + + // Token: 0x0400057D RID: 1405 + [SerializeField] + private TextMeshProUGUI _infoText; + + // Token: 0x0400057E RID: 1406 + [SerializeField] + private TextMeshProUGUI _infoText2; + + // Token: 0x0400057F RID: 1407 + private bool _setInfoText; +} diff --git a/Assembly-CSharp/ColorViewer.cs b/Assembly-CSharp/ColorViewer.cs new file mode 100644 index 0000000..a7820fb --- /dev/null +++ b/Assembly-CSharp/ColorViewer.cs @@ -0,0 +1,42 @@ +using System; +using TMPro; +using UnityEngine; +using UnityEngine.Events; +using UnityEngine.UI; + +// Token: 0x0200000A RID: 10 +public class ColorViewer : MonoBehaviour, IColorViewer +{ + // Token: 0x0600002F RID: 47 RVA: 0x00002A78 File Offset: 0x00001C78 + private void Awake() + { + this._button.onClick.RemoveAllListeners(); + this._button.onClick.AddListener(new UnityAction(this.ChangeColor)); + } + + // Token: 0x06000030 RID: 48 RVA: 0x00002AA8 File Offset: 0x00001CA8 + public void ChangeColor() + { + Color color; + ColorUtility.TryParseHtmlString(this._inputField.text, ref color); + this._viewer.color = color; + } + + // Token: 0x06000031 RID: 49 RVA: 0x00002AD4 File Offset: 0x00001CD4 + public string GetColorCode() + { + return this._inputField.text; + } + + // Token: 0x04000012 RID: 18 + [SerializeField] + private Image _viewer; + + // Token: 0x04000013 RID: 19 + [SerializeField] + private TMP_InputField _inputField; + + // Token: 0x04000014 RID: 20 + [SerializeField] + private Button _button; +} diff --git a/Assembly-CSharp/Comio/AckReport.cs b/Assembly-CSharp/Comio/AckReport.cs new file mode 100644 index 0000000..cdad40c --- /dev/null +++ b/Assembly-CSharp/Comio/AckReport.cs @@ -0,0 +1,19 @@ +using System; + +namespace Comio +{ + // Token: 0x02000512 RID: 1298 + public enum AckReport + { + // Token: 0x04003B54 RID: 15188 + AckReport_Ok = 1, + // Token: 0x04003B55 RID: 15189 + AckReport_Busy, + // Token: 0x04003B56 RID: 15190 + AckReport_CommandUnknown, + // Token: 0x04003B57 RID: 15191 + AckReport_ParamError, + // Token: 0x04003B58 RID: 15192 + AckReport_Invalid = 255 + } +} diff --git a/Assembly-CSharp/Comio/AckStatus.cs b/Assembly-CSharp/Comio/AckStatus.cs new file mode 100644 index 0000000..2f0396f --- /dev/null +++ b/Assembly-CSharp/Comio/AckStatus.cs @@ -0,0 +1,23 @@ +using System; + +namespace Comio +{ + // Token: 0x02000511 RID: 1297 + public enum AckStatus + { + // Token: 0x04003B4C RID: 15180 + Ok = 1, + // Token: 0x04003B4D RID: 15181 + SumError, + // Token: 0x04003B4E RID: 15182 + ParityError, + // Token: 0x04003B4F RID: 15183 + FramingError, + // Token: 0x04003B50 RID: 15184 + AckStatusOverRunError, + // Token: 0x04003B51 RID: 15185 + AckStatusRecvBfOverFlow, + // Token: 0x04003B52 RID: 15186 + AckStatusInvalid = 255 + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/Board15070_4.cs b/Assembly-CSharp/Comio/BD15070_4/Board15070_4.cs new file mode 100644 index 0000000..89dc87a --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/Board15070_4.cs @@ -0,0 +1,129 @@ +using System; +using UnityEngine; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000518 RID: 1304 + public class Board15070_4 : BoardBase + { + // Token: 0x060029B6 RID: 10678 RVA: 0x00122DBC File Offset: 0x00121FBC + public Board15070_4(Board15070_4.InitParam initParam) + { + this._construct(initParam); + } + + // Token: 0x060029B7 RID: 10679 RVA: 0x00122DCB File Offset: 0x00121FCB + public override BoardCtrlBase GetCtrlBase() + { + return this._ctrl; + } + + // Token: 0x060029B8 RID: 10680 RVA: 0x00122DD3 File Offset: 0x00121FD3 + public override void Reset() + { + this._ctrl.Reset(); + } + + // Token: 0x060029B9 RID: 10681 RVA: 0x00122DE0 File Offset: 0x00121FE0 + public bool IsError() + { + return this._ctrl.IsError(); + } + + // Token: 0x060029BA RID: 10682 RVA: 0x00122DED File Offset: 0x00121FED + public void ClearError() + { + this._ctrl.ClearError(); + } + + // Token: 0x060029BB RID: 10683 RVA: 0x00122DFA File Offset: 0x00121FFA + public ErrorNo GetErrorNo() + { + return this._ctrl.GetErrorNo(); + } + + // Token: 0x060029BC RID: 10684 RVA: 0x00122E07 File Offset: 0x00122007 + public void SetLedData(byte ledPos, LedData data) + { + this._ctrl.SetLedData(ledPos, data); + } + + // Token: 0x060029BD RID: 10685 RVA: 0x00122E16 File Offset: 0x00122016 + public void SetLedDataMulti(Color32 data, byte speed) + { + this._ctrl.SetLedDataMulti(data, speed); + } + + // Token: 0x060029BE RID: 10686 RVA: 0x00122E25 File Offset: 0x00122025 + public void SetLedDataMultiFade(Color32 data, byte speed) + { + this._ctrl.SetLedDataMultiFade(data, speed); + } + + // Token: 0x060029BF RID: 10687 RVA: 0x00122E34 File Offset: 0x00122034 + public void SetLedDataMultiFet(Color32 data) + { + this._ctrl.SetLedDataMultiFet(data); + } + + // Token: 0x060029C0 RID: 10688 RVA: 0x00122E42 File Offset: 0x00122042 + public void SetLedDataUpdate() + { + this._ctrl.SetLedDataUpdate(); + } + + // Token: 0x060029C1 RID: 10689 RVA: 0x00122E4F File Offset: 0x0012204F + public void SetLedDataAllOff() + { + this._ctrl.SetLedDataAllOff(); + } + + // Token: 0x060029C2 RID: 10690 RVA: 0x00122E5C File Offset: 0x0012205C + public static BoardNo GetDefBoardNo() + { + return BoardCtrl15070_4.GetDefBoardNo(); + } + + // Token: 0x060029C3 RID: 10691 RVA: 0x00122E63 File Offset: 0x00122063 + private void _construct(Board15070_4.InitParam initParam) + { + this._ctrl = new BoardCtrl15070_4(initParam); + } + + // Token: 0x04003B63 RID: 15203 + private BoardCtrl15070_4 _ctrl; + + // Token: 0x02000C96 RID: 3222 + public class InitParam + { + // Token: 0x06005613 RID: 22035 RVA: 0x001B79CF File Offset: 0x001B6BCF + public InitParam() + { + this.BoardNodeId = 17; + this.FirmVersion = 16; + this.FirmSum = 0; + this.Timeout = 10; + this.WithoutResponse = true; + this.LedInteval = 33; + } + + // Token: 0x04007058 RID: 28760 + public byte BoardNodeId; + + // Token: 0x04007059 RID: 28761 + public byte FirmVersion; + + // Token: 0x0400705A RID: 28762 + public ushort FirmSum; + + // Token: 0x0400705B RID: 28763 + public byte Timeout; + + // Token: 0x0400705C RID: 28764 + public bool WithoutResponse; + + // Token: 0x0400705D RID: 28765 + public ushort LedInteval; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/BoardCtrl15070_4.cs b/Assembly-CSharp/Comio/BD15070_4/BoardCtrl15070_4.cs new file mode 100644 index 0000000..10bdf7e --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/BoardCtrl15070_4.cs @@ -0,0 +1,937 @@ +using System; +using System.Diagnostics; +using UnityEngine; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000519 RID: 1305 + public class BoardCtrl15070_4 : BoardCtrlBase + { + // Token: 0x060029C4 RID: 10692 RVA: 0x00122E71 File Offset: 0x00122071 + public BoardCtrl15070_4(Board15070_4.InitParam initParam) + : base(initParam.BoardNodeId) + { + this._construct(initParam); + } + + // Token: 0x060029C5 RID: 10693 RVA: 0x00122E88 File Offset: 0x00122088 + public bool IsError() + { + object cs = this.Cs; + bool flag2; + lock (cs) + { + flag2 = this._isError(); + } + return flag2; + } + + // Token: 0x060029C6 RID: 10694 RVA: 0x00122ECC File Offset: 0x001220CC + public void ClearError() + { + object cs = this.Cs; + lock (cs) + { + this._errorNo = ErrorNo.Begin; + base.ClearErrorRegisteredCommand(); + } + } + + // Token: 0x060029C7 RID: 10695 RVA: 0x00122F14 File Offset: 0x00122114 + public ErrorNo GetErrorNo() + { + object cs = this.Cs; + ErrorNo errorNo; + lock (cs) + { + errorNo = this._errorNo; + } + return errorNo; + } + + // Token: 0x060029C8 RID: 10696 RVA: 0x00122F58 File Offset: 0x00122158 + public override bool CheckFirmVersion(byte boardVersion, byte fileVersion) + { + return new FirmInfo + { + Revision = boardVersion + }.CheckFirmVersionSame(fileVersion); + } + + // Token: 0x060029C9 RID: 10697 RVA: 0x00122F6C File Offset: 0x0012216C + public override bool ReqHalt() + { + object cs = this.Cs; + bool flag2; + lock (cs) + { + flag2 = this._reqHalt(); + } + return flag2; + } + + // Token: 0x060029CA RID: 10698 RVA: 0x00122FB0 File Offset: 0x001221B0 + public override bool IsHalted() + { + object cs = this.Cs; + bool flag2; + lock (cs) + { + flag2 = this._isHalted(); + } + return flag2; + } + + // Token: 0x060029CB RID: 10699 RVA: 0x00122FF4 File Offset: 0x001221F4 + public override void Reset() + { + object cs = this.Cs; + lock (cs) + { + this._reset(); + } + } + + // Token: 0x060029CC RID: 10700 RVA: 0x00123034 File Offset: 0x00122234 + public void SetLedData(byte ledPos, LedData data) + { + object cs = this.Cs; + lock (cs) + { + this._setLedData(ledPos, data); + } + } + + // Token: 0x060029CD RID: 10701 RVA: 0x00123078 File Offset: 0x00122278 + public void SetLedDataMulti(Color32 data, byte speed) + { + object cs = this.Cs; + lock (cs) + { + this._setLedDataMulti(data, speed); + } + } + + // Token: 0x060029CE RID: 10702 RVA: 0x001230BC File Offset: 0x001222BC + public void SetLedDataMultiFade(Color32 data, byte speed) + { + object cs = this.Cs; + lock (cs) + { + this._setLedDataMultiFade(data, speed); + } + } + + // Token: 0x060029CF RID: 10703 RVA: 0x00123100 File Offset: 0x00122300 + public void SetLedDataMultiFet(Color32 data) + { + object cs = this.Cs; + lock (cs) + { + this._setLedDataMultiFet(data); + } + } + + // Token: 0x060029D0 RID: 10704 RVA: 0x00123144 File Offset: 0x00122344 + public void SetLedDataUpdate() + { + object cs = this.Cs; + lock (cs) + { + this._setLedDataUpdate(); + } + } + + // Token: 0x060029D1 RID: 10705 RVA: 0x00123184 File Offset: 0x00122384 + public void SetLedDataAllOff() + { + object cs = this.Cs; + lock (cs) + { + this._setLedDataAllOff(); + } + } + + // Token: 0x060029D2 RID: 10706 RVA: 0x001231C4 File Offset: 0x001223C4 + public bool IsWithoutResponse() + { + return this._isWithoutResponse(); + } + + // Token: 0x060029D3 RID: 10707 RVA: 0x001231CC File Offset: 0x001223CC + public ushort GetLedInterval() + { + return this._getLedInterval(); + } + + // Token: 0x060029D4 RID: 10708 RVA: 0x001231D4 File Offset: 0x001223D4 + public static BoardNo GetDefBoardNo() + { + return BoardCtrl15070_4.BoardNo; + } + + // Token: 0x060029D5 RID: 10709 RVA: 0x001231DC File Offset: 0x001223DC + public override void Initialize() + { + object cs = this.Cs; + lock (cs) + { + this._initialize(); + } + } + + // Token: 0x060029D6 RID: 10710 RVA: 0x0012321C File Offset: 0x0012241C + public override void Terminate() + { + object cs = this.Cs; + lock (cs) + { + } + } + + // Token: 0x060029D7 RID: 10711 RVA: 0x00123258 File Offset: 0x00122458 + public override void Execute() + { + object cs = this.Cs; + lock (cs) + { + this._execute(); + } + } + + // Token: 0x060029D8 RID: 10712 RVA: 0x00123298 File Offset: 0x00122498 + public override void ExecThread() + { + object cs = this.Cs; + lock (cs) + { + this._execThread(); + } + } + + // Token: 0x060029D9 RID: 10713 RVA: 0x001232D8 File Offset: 0x001224D8 + public override void NotifyBaseError(BoardCtrlBase.BaseErrorNo baseErrorNo) + { + object cs = this.Cs; + lock (cs) + { + switch (baseErrorNo) + { + case BoardCtrlBase.BaseErrorNo.BaseErrorNoTimeout: + this._setError(ErrorNo.Timeout); + break; + case BoardCtrlBase.BaseErrorNo.BaseErrorNoReportError: + this._setError(ErrorNo.ReportError); + break; + case BoardCtrlBase.BaseErrorNo.BaseErrorNoRecvError: + this._setError(ErrorNo.RecvError); + break; + case BoardCtrlBase.BaseErrorNo.BaseErrorNoComError: + this._setError(ErrorNo.Timeout); + break; + case BoardCtrlBase.BaseErrorNo.BaseErrorNoSumError: + this._setError(ErrorNo.SumError); + break; + } + } + } + + // Token: 0x060029DA RID: 10714 RVA: 0x0012335C File Offset: 0x0012255C + private void _construct(Board15070_4.InitParam initParam) + { + this._initParam = initParam; + this._mode = BoardCtrl15070_4.Mode.Init; + this._loop = false; + this._resetOn = false; + this._errorNo = ErrorNo.Begin; + this._getBoardStatusCommand = new GetBoardStatusCommand(); + this._setTimeoutCommand = new SetTimeoutCommand(); + this._getBoardInfoCommand = new GetBoardInfoCommand(); + this._getProtocolVersionCommand = new GetProtocolVersionCommand(); + this._resetCommand = new ResetCommand(); + this._getEepRomCommand = new GetEEPRomCommand(); + this._setEepRomCommand = new SetEEPRomCommand(); + this._setDcCommand = new SetDcCommand(); + this._setDcUpdateCommand = new SetDcUpdateCommand(); + this._setLedGs8BitMultiCommand = new SetLedGs8BitMultiCommand(); + this._setLedFetCommand = new SetLedFetCommand(); + this._setLedGsUpdateCommand = new SetLedGsUpdateCommand(); + this._ioCtrl = new IoCtrl(this); + this._modeTimer = new Stopwatch(); + if (33 > this._initParam.LedInteval) + { + this._initParam.LedInteval = 33; + } + this._initWork(); + base.InitAndRegisterCommand(this._getBoardInfoCommand); + base.InitAndRegisterCommand(this._getBoardStatusCommand); + base.InitAndRegisterCommand(this._getProtocolVersionCommand); + base.InitAndRegisterCommand(this._resetCommand); + base.InitAndRegisterCommand(this._setTimeoutCommand); + base.InitAndRegisterCommand(this._getEepRomCommand); + base.InitAndRegisterCommand(this._setEepRomCommand); + base.InitAndRegisterCommand(this._setDcCommand); + base.InitAndRegisterCommand(this._setDcUpdateCommand); + base.InitAndRegisterCommand(this._setLedGs8BitMultiCommand); + base.InitAndRegisterCommand(this._setLedFetCommand); + base.InitAndRegisterCommand(this._setLedGsUpdateCommand); + this._eepRomCheckAdress = BoardCtrl15070_4.EepRomAddress.Enable; + this._eepRom = new BoardCtrl15070_4.EepRom[8]; + for (int i = 0; i < 8; i++) + { + this._eepRom[i] = new BoardCtrl15070_4.EepRom + { + Check = BoardCtrl15070_4.EepRomCheck.None, + ReadData = 0, + WriteData = 0, + WriteCount = 0 + }; + } + Gs8BitMulti gs8BitMulti = default(Gs8BitMulti); + gs8BitMulti.Start = 0; + gs8BitMulti.End = 10; + gs8BitMulti.Skip = 1; + gs8BitMulti.Color.r = 63; + gs8BitMulti.Color.g = 63; + gs8BitMulti.Color.b = 63; + gs8BitMulti.Color.a = byte.MaxValue; + this._dcParam = gs8BitMulti; + } + + // Token: 0x060029DB RID: 10715 RVA: 0x0012359C File Offset: 0x0012279C + private void _initWork() + { + this._resetOn = false; + this._errorNo = ErrorNo.Begin; + } + + // Token: 0x060029DC RID: 10716 RVA: 0x001235AC File Offset: 0x001227AC + private void _initialize() + { + this._initWork(); + this._ioCtrl.Initialize(); + this._loop = false; + this._mode = BoardCtrl15070_4.Mode.Init; + } + + // Token: 0x060029DD RID: 10717 RVA: 0x001235CD File Offset: 0x001227CD + private bool _isError() + { + return this._errorNo > ErrorNo.Begin; + } + + // Token: 0x060029DE RID: 10718 RVA: 0x001235D8 File Offset: 0x001227D8 + private void _setError(ErrorNo no) + { + if (this._isHalted() || BoardCtrl15070_4.Mode.StartHalt == this._mode) + { + return; + } + if (!this._isError()) + { + this._errorNo = no; + this._mode = BoardCtrl15070_4.Mode.Error; + } + } + + // Token: 0x060029DF RID: 10719 RVA: 0x00123604 File Offset: 0x00122804 + private bool _reqHalt() + { + if (this._isHalted()) + { + return true; + } + if (this._mode != BoardCtrl15070_4.Mode.StartHalt) + { + this._mode = BoardCtrl15070_4.Mode.StartHalt; + return true; + } + return false; + } + + // Token: 0x060029E0 RID: 10720 RVA: 0x00123625 File Offset: 0x00122825 + private bool _isHalted() + { + return this._mode == BoardCtrl15070_4.Mode.Halt; + } + + // Token: 0x060029E1 RID: 10721 RVA: 0x00123634 File Offset: 0x00122834 + private void _reset() + { + if (!this._resetOn) + { + this._errorNo = ErrorNo.Begin; + base.ClearErrorRegisteredCommand(); + if (this.IsHalted()) + { + this._resetOn = true; + } + else if (this._mode != BoardCtrl15070_4.Mode.StartHalt) + { + this._resetOn = true; + this._mode = BoardCtrl15070_4.Mode.StartHalt; + } + if (this._resetOn) + { + this.InitBoard = false; + } + } + } + + // Token: 0x060029E2 RID: 10722 RVA: 0x0012368F File Offset: 0x0012288F + private void _setLedData(byte ledPos, LedData data) + { + this._ioCtrl.SetLedData(ledPos, data); + } + + // Token: 0x060029E3 RID: 10723 RVA: 0x0012369E File Offset: 0x0012289E + private void _setLedDataMulti(Color32 data, byte speed) + { + this._ioCtrl.SetLedDataMulti(data, speed); + } + + // Token: 0x060029E4 RID: 10724 RVA: 0x001236AD File Offset: 0x001228AD + private void _setLedDataMultiFade(Color32 data, byte speed) + { + this._ioCtrl.SetLedDataMultiFade(data, speed); + } + + // Token: 0x060029E5 RID: 10725 RVA: 0x001236BC File Offset: 0x001228BC + private void _setLedDataMultiFet(Color32 data) + { + this._ioCtrl.SetLedDataMultiFet(data); + } + + // Token: 0x060029E6 RID: 10726 RVA: 0x001236CA File Offset: 0x001228CA + private void _setLedDataUpdate() + { + this._ioCtrl.SetUpdateGs(); + } + + // Token: 0x060029E7 RID: 10727 RVA: 0x001236D7 File Offset: 0x001228D7 + private void _setLedDataAllOff() + { + this._ioCtrl.SetLedDataAllOff(); + } + + // Token: 0x060029E8 RID: 10728 RVA: 0x001236E4 File Offset: 0x001228E4 + private bool _isWithoutResponse() + { + return this._initParam.WithoutResponse; + } + + // Token: 0x060029E9 RID: 10729 RVA: 0x001236F1 File Offset: 0x001228F1 + private ushort _getLedInterval() + { + return this._initParam.LedInteval; + } + + // Token: 0x060029EA RID: 10730 RVA: 0x001236FE File Offset: 0x001228FE + private void _md_init() + { + this.Initialize(); + base.InitBase(); + this._mode = BoardCtrl15070_4.Mode.InitBoardInitReset; + } + + // Token: 0x060029EB RID: 10731 RVA: 0x00123713 File Offset: 0x00122913 + private void _md_initBoard_InitReset() + { + if (base.ExecCommand(this._resetCommand)) + { + this._modeTimer.Reset(); + this._modeTimer.Start(); + this._mode = BoardCtrl15070_4.Mode.InitBoardGetBoardInfo; + this._resetCommand.Reset(); + } + } + + // Token: 0x060029EC RID: 10732 RVA: 0x0012374C File Offset: 0x0012294C + private void _md_initBoard_GetBoardInfo() + { + if (base.ExecCommand(this._getBoardInfoCommand)) + { + this.BoardSpecInfo.BoardNo = this._getBoardInfoCommand.getBoardNo(); + this.BoardSpecInfo.FirmInfo.Revision = this._getBoardInfoCommand.getFirmRevision(); + if (!this.BoardSpecInfo.BoardNo.IsEqual(BoardCtrl15070_4.BoardNo)) + { + this._setError(ErrorNo.Timeout); + return; + } + this.BoardSpecInfoRecv = true; + this._mode = BoardCtrl15070_4.Mode.InitBoardGetProtocolVersion; + } + } + + // Token: 0x060029ED RID: 10733 RVA: 0x001237C8 File Offset: 0x001229C8 + private void _md_initBoard_GetProtocolVersion() + { + if (base.ExecCommand(this._getProtocolVersionCommand)) + { + this.BoardSpecInfo.FirmInfo.FirmAppli = this._getProtocolVersionCommand.isAppliMode(); + this.BoardSpecInfo.FirmInfo.Major = this._getProtocolVersionCommand.getMajor(); + this.BoardSpecInfo.FirmInfo.Minor = this._getProtocolVersionCommand.getMinor(); + this._mode = BoardCtrl15070_4.Mode.InitBoardReset; + } + } + + // Token: 0x060029EE RID: 10734 RVA: 0x0012383B File Offset: 0x00122A3B + private void _md_initBoard_SetTimeoutInfinite() + { + if (base.ExecCommand(this._setTimeoutCommand)) + { + this._resetCommand.set(); + this._mode = BoardCtrl15070_4.Mode.InitBoardReset; + } + } + + // Token: 0x060029EF RID: 10735 RVA: 0x0012385D File Offset: 0x00122A5D + private void _md_initBoard_Reset() + { + if (base.ExecCommand(this._resetCommand)) + { + this._modeTimer.Reset(); + this._modeTimer.Start(); + this._mode = BoardCtrl15070_4.Mode.InitBoardWaitReset; + } + } + + // Token: 0x060029F0 RID: 10736 RVA: 0x0012388C File Offset: 0x00122A8C + private void _md_initBoard_WaitReset() + { + if (this._modeTimer.ElapsedMilliseconds >= 1000L) + { + this._mode = BoardCtrl15070_4.Mode.InitBoardGetEepRom; + this._eepRomCheckAdress = BoardCtrl15070_4.EepRomAddress.Enable; + for (int i = 0; i < 8; i++) + { + this._eepRom[i].Check = BoardCtrl15070_4.EepRomCheck.None; + this._eepRom[i].ReadData = 0; + this._eepRom[i].WriteData = 0; + this._eepRom[i].WriteCount = 0; + } + this._getEepRomCommand.SetEEPDataAdress((byte)this._eepRomCheckAdress); + } + } + + // Token: 0x060029F1 RID: 10737 RVA: 0x00123924 File Offset: 0x00122B24 + private void _md_initBoard_GetEEPRom() + { + if (base.ExecCommand(this._getEepRomCommand)) + { + this._eepRom[(int)this._eepRomCheckAdress].ReadData = this._getEepRomCommand.GetEEPData(); + if (this._eepRom[(int)this._eepRomCheckAdress].ReadData != this._eepRom[(int)this._eepRomCheckAdress].WriteData) + { + if (this._eepRom[(int)this._eepRomCheckAdress].WriteCount >= 3) + { + this._setError(ErrorNo.EepWriteError); + return; + } + this._eepRom[(int)this._eepRomCheckAdress].Check = BoardCtrl15070_4.EepRomCheck.Ng; + this._setEepRomCommand.Reset(); + this._setEepRomCommand.SetEEPData((byte)this._eepRomCheckAdress, this._eepRom[(int)this._eepRomCheckAdress].WriteData); + this._mode = BoardCtrl15070_4.Mode.InitBoardSetEepRom; + return; + } + else + { + this._eepRom[(int)this._eepRomCheckAdress].Check = BoardCtrl15070_4.EepRomCheck.Ok; + this._eepRomCheckAdress++; + if (this._eepRomCheckAdress >= BoardCtrl15070_4.EepRomAddress.End) + { + this._mode = BoardCtrl15070_4.Mode.InitBoardSetDc; + this._setDcCommand.setDc(this._dcParam); + return; + } + this._getEepRomCommand.Reset(); + this._getEepRomCommand.SetEEPDataAdress((byte)this._eepRomCheckAdress); + } + } + } + + // Token: 0x060029F2 RID: 10738 RVA: 0x00123A6A File Offset: 0x00122C6A + private void _md_initBoard_SetEEPRom() + { + if (base.ExecCommand(this._setEepRomCommand)) + { + this._mode = BoardCtrl15070_4.Mode.InitBoardGetEepRom; + BoardCtrl15070_4.EepRom[] eepRom = this._eepRom; + BoardCtrl15070_4.EepRomAddress eepRomCheckAdress = this._eepRomCheckAdress; + eepRom[(int)eepRomCheckAdress].WriteCount = eepRom[(int)eepRomCheckAdress].WriteCount + 1; + } + } + + // Token: 0x060029F3 RID: 10739 RVA: 0x00123A9E File Offset: 0x00122C9E + private void _md_initBoard_SetDc() + { + if (base.ExecCommand(this._setDcCommand)) + { + this._mode = BoardCtrl15070_4.Mode.InitBoardSetDcUpdate; + } + } + + // Token: 0x060029F4 RID: 10740 RVA: 0x00123AB6 File Offset: 0x00122CB6 + private void _md_initBoard_SetDcUpdate() + { + if (base.ExecCommand(this._setDcUpdateCommand)) + { + this._setLedGs8BitMultiCommand.setAllOff(); + this._mode = BoardCtrl15070_4.Mode.InitBoardSetGsOff; + } + } + + // Token: 0x060029F5 RID: 10741 RVA: 0x00123AD9 File Offset: 0x00122CD9 + private void _md_initBoard_SetGsOff() + { + if (base.ExecCommand(this._setLedGs8BitMultiCommand)) + { + this._setLedFetCommand.setColorOff(); + this._mode = BoardCtrl15070_4.Mode.InitBoardSetFetOff; + } + } + + // Token: 0x060029F6 RID: 10742 RVA: 0x00123AFC File Offset: 0x00122CFC + private void _md_initBoard_SetFetOff() + { + if (base.ExecCommand(this._setLedFetCommand)) + { + this._mode = BoardCtrl15070_4.Mode.InitBoardSetGsUpdate; + } + } + + // Token: 0x060029F7 RID: 10743 RVA: 0x00123B14 File Offset: 0x00122D14 + private void _md_initBoard_SetGsUpdate() + { + if (base.ExecCommand(this._setLedGsUpdateCommand)) + { + this._mode = BoardCtrl15070_4.Mode.InitBoardGetBoardStatus; + } + } + + // Token: 0x060029F8 RID: 10744 RVA: 0x00123B2B File Offset: 0x00122D2B + private void _md_initBoard_GetBoardStatus() + { + if (base.ExecCommand(this._getBoardStatusCommand)) + { + this._setTimeoutCommand.setTimeout(this._initParam.Timeout); + this._mode = BoardCtrl15070_4.Mode.InitBoardSetTimeout; + } + } + + // Token: 0x060029F9 RID: 10745 RVA: 0x00123B58 File Offset: 0x00122D58 + private void _md_initBoard_SetTimeout() + { + this.InitBoard = true; + this._mode = BoardCtrl15070_4.Mode.Exec; + this._loop = true; + } + + // Token: 0x060029FA RID: 10746 RVA: 0x00123B70 File Offset: 0x00122D70 + private void _md_exec() + { + this._ioCtrl.Execute(); + } + + // Token: 0x060029FB RID: 10747 RVA: 0x00123B7D File Offset: 0x00122D7D + private void _md_error() + { + if (this._errorNo == ErrorNo.Begin) + { + this._mode = BoardCtrl15070_4.Mode.Init; + this._loop = true; + } + } + + // Token: 0x060029FC RID: 10748 RVA: 0x00123B98 File Offset: 0x00122D98 + private void _md_startHalt() + { + this._resetCommand.set(); + if (base.ExecCommand(this._resetCommand) || this._resetCommand.GetComState() == ComState.Def.Timeout) + { + this._modeTimer.Reset(); + this._modeTimer.Start(); + this._mode = BoardCtrl15070_4.Mode.StartHaltWaitReset; + } + } + + // Token: 0x060029FD RID: 10749 RVA: 0x00123BEF File Offset: 0x00122DEF + private void _md_startHalt_WaitReset() + { + if (this._modeTimer.ElapsedMilliseconds >= 1000L) + { + base.InitBase(); + this._mode = BoardCtrl15070_4.Mode.Halt; + } + } + + // Token: 0x060029FE RID: 10750 RVA: 0x00123C12 File Offset: 0x00122E12 + private void _md_halt() + { + if (this._resetOn) + { + this._mode = BoardCtrl15070_4.Mode.Init; + this._resetOn = false; + this._loop = true; + } + } + + // Token: 0x060029FF RID: 10751 RVA: 0x00003598 File Offset: 0x00002798 + private void _execute() + { + } + + // Token: 0x06002A00 RID: 10752 RVA: 0x00123C34 File Offset: 0x00122E34 + private void _execThread() + { + do + { + this._loop = false; + switch (this._mode) + { + case BoardCtrl15070_4.Mode.Init: + this._md_init(); + break; + case BoardCtrl15070_4.Mode.InitBoardInitReset: + this._md_initBoard_InitReset(); + break; + case BoardCtrl15070_4.Mode.InitBoardGetBoardInfo: + this._md_initBoard_GetBoardInfo(); + break; + case BoardCtrl15070_4.Mode.InitBoardGetProtocolVersion: + this._md_initBoard_GetProtocolVersion(); + break; + case BoardCtrl15070_4.Mode.InitBoardSetTimeoutInfinite: + this._md_initBoard_SetTimeoutInfinite(); + break; + case BoardCtrl15070_4.Mode.InitBoardReset: + this._md_initBoard_Reset(); + break; + case BoardCtrl15070_4.Mode.InitBoardWaitReset: + this._md_initBoard_WaitReset(); + break; + case BoardCtrl15070_4.Mode.InitBoardGetBoardStatus: + this._md_initBoard_GetBoardStatus(); + break; + case BoardCtrl15070_4.Mode.InitBoardSetTimeout: + this._md_initBoard_SetTimeout(); + break; + case BoardCtrl15070_4.Mode.InitBoardGetEepRom: + this._md_initBoard_GetEEPRom(); + break; + case BoardCtrl15070_4.Mode.InitBoardSetEepRom: + this._md_initBoard_SetEEPRom(); + break; + case BoardCtrl15070_4.Mode.InitBoardSetDc: + this._md_initBoard_SetDc(); + break; + case BoardCtrl15070_4.Mode.InitBoardSetDcUpdate: + this._md_initBoard_SetDcUpdate(); + break; + case BoardCtrl15070_4.Mode.InitBoardSetGsOff: + this._md_initBoard_SetGsOff(); + break; + case BoardCtrl15070_4.Mode.InitBoardSetFetOff: + this._md_initBoard_SetFetOff(); + break; + case BoardCtrl15070_4.Mode.InitBoardSetGsUpdate: + this._md_initBoard_SetGsUpdate(); + break; + case BoardCtrl15070_4.Mode.Exec: + this._md_exec(); + break; + case BoardCtrl15070_4.Mode.Error: + this._md_error(); + break; + case BoardCtrl15070_4.Mode.StartHalt: + this._md_startHalt(); + break; + case BoardCtrl15070_4.Mode.StartHaltWaitReset: + this._md_startHalt_WaitReset(); + break; + case BoardCtrl15070_4.Mode.Halt: + this._md_halt(); + break; + } + } + while (this._loop); + } + + // Token: 0x04003B64 RID: 15204 + private const uint ResetWait = 1000U; + + // Token: 0x04003B65 RID: 15205 + private static BoardNo BoardNo = new BoardNo("15070-04"); + + // Token: 0x04003B66 RID: 15206 + private const int EepromWriteRetryMax = 3; + + // Token: 0x04003B67 RID: 15207 + private Board15070_4.InitParam _initParam; + + // Token: 0x04003B68 RID: 15208 + private BoardCtrl15070_4.Mode _mode; + + // Token: 0x04003B69 RID: 15209 + private bool _loop; + + // Token: 0x04003B6A RID: 15210 + private bool _resetOn; + + // Token: 0x04003B6B RID: 15211 + private ErrorNo _errorNo; + + // Token: 0x04003B6C RID: 15212 + private GetBoardStatusCommand _getBoardStatusCommand; + + // Token: 0x04003B6D RID: 15213 + private SetTimeoutCommand _setTimeoutCommand; + + // Token: 0x04003B6E RID: 15214 + private GetBoardInfoCommand _getBoardInfoCommand; + + // Token: 0x04003B6F RID: 15215 + private GetProtocolVersionCommand _getProtocolVersionCommand; + + // Token: 0x04003B70 RID: 15216 + private ResetCommand _resetCommand; + + // Token: 0x04003B71 RID: 15217 + private GetEEPRomCommand _getEepRomCommand; + + // Token: 0x04003B72 RID: 15218 + private SetEEPRomCommand _setEepRomCommand; + + // Token: 0x04003B73 RID: 15219 + private SetDcCommand _setDcCommand; + + // Token: 0x04003B74 RID: 15220 + private SetDcUpdateCommand _setDcUpdateCommand; + + // Token: 0x04003B75 RID: 15221 + private SetLedGs8BitMultiCommand _setLedGs8BitMultiCommand; + + // Token: 0x04003B76 RID: 15222 + private SetLedFetCommand _setLedFetCommand; + + // Token: 0x04003B77 RID: 15223 + private SetLedGsUpdateCommand _setLedGsUpdateCommand; + + // Token: 0x04003B78 RID: 15224 + private IoCtrl _ioCtrl; + + // Token: 0x04003B79 RID: 15225 + private Stopwatch _modeTimer; + + // Token: 0x04003B7A RID: 15226 + private BoardCtrl15070_4.EepRom[] _eepRom; + + // Token: 0x04003B7B RID: 15227 + private BoardCtrl15070_4.EepRomAddress _eepRomCheckAdress; + + // Token: 0x04003B7C RID: 15228 + private Gs8BitMulti _dcParam; + + // Token: 0x02000C97 RID: 3223 + private enum Mode + { + // Token: 0x0400705F RID: 28767 + Init, + // Token: 0x04007060 RID: 28768 + InitBoardInitReset, + // Token: 0x04007061 RID: 28769 + InitBoardGetBoardInfo, + // Token: 0x04007062 RID: 28770 + InitBoardGetProtocolVersion, + // Token: 0x04007063 RID: 28771 + InitBoardSetTimeoutInfinite, + // Token: 0x04007064 RID: 28772 + InitBoardReset, + // Token: 0x04007065 RID: 28773 + InitBoardWaitReset, + // Token: 0x04007066 RID: 28774 + InitBoardGetBoardStatus, + // Token: 0x04007067 RID: 28775 + InitBoardSetTimeout, + // Token: 0x04007068 RID: 28776 + InitBoardGetEepRom, + // Token: 0x04007069 RID: 28777 + InitBoardSetEepRom, + // Token: 0x0400706A RID: 28778 + InitBoardSetDc, + // Token: 0x0400706B RID: 28779 + InitBoardSetDcUpdate, + // Token: 0x0400706C RID: 28780 + InitBoardSetGsOff, + // Token: 0x0400706D RID: 28781 + InitBoardSetFetOff, + // Token: 0x0400706E RID: 28782 + InitBoardSetGsUpdate, + // Token: 0x0400706F RID: 28783 + InitBoardSetLedCount, + // Token: 0x04007070 RID: 28784 + WaitAutoSend, + // Token: 0x04007071 RID: 28785 + Exec, + // Token: 0x04007072 RID: 28786 + Error, + // Token: 0x04007073 RID: 28787 + StartHalt, + // Token: 0x04007074 RID: 28788 + StartHaltWaitReset, + // Token: 0x04007075 RID: 28789 + Halt + } + + // Token: 0x02000C98 RID: 3224 + private enum EepRomAddress + { + // Token: 0x04007077 RID: 28791 + Enable, + // Token: 0x04007078 RID: 28792 + Fet0, + // Token: 0x04007079 RID: 28793 + Fet1, + // Token: 0x0400707A RID: 28794 + Fet2, + // Token: 0x0400707B RID: 28795 + DcRed, + // Token: 0x0400707C RID: 28796 + DcGreen, + // Token: 0x0400707D RID: 28797 + DcBlue, + // Token: 0x0400707E RID: 28798 + Out15, + // Token: 0x0400707F RID: 28799 + End + } + + // Token: 0x02000C99 RID: 3225 + private enum EepRomCheck + { + // Token: 0x04007081 RID: 28801 + None, + // Token: 0x04007082 RID: 28802 + Ok, + // Token: 0x04007083 RID: 28803 + Ng, + // Token: 0x04007084 RID: 28804 + End + } + + // Token: 0x02000C9A RID: 3226 + private struct EepRom + { + // Token: 0x04007085 RID: 28805 + public BoardCtrl15070_4.EepRomCheck Check; + + // Token: 0x04007086 RID: 28806 + public byte ReadData; + + // Token: 0x04007087 RID: 28807 + public byte WriteData; + + // Token: 0x04007088 RID: 28808 + public byte WriteCount; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/BoardStatus.cs b/Assembly-CSharp/Comio/BD15070_4/BoardStatus.cs new file mode 100644 index 0000000..08e61ed --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/BoardStatus.cs @@ -0,0 +1,29 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x0200051A RID: 1306 + public class BoardStatus + { + // Token: 0x06002A02 RID: 10754 RVA: 0x00123D84 File Offset: 0x00122F84 + public void Clear() + { + this.TimeoutStat = 0; + this.TimeoutSec = 0; + this.PwmIo = 0; + this.FetTimeout = 0; + } + + // Token: 0x04003B7D RID: 15229 + public byte TimeoutStat; + + // Token: 0x04003B7E RID: 15230 + public byte TimeoutSec; + + // Token: 0x04003B7F RID: 15231 + public byte PwmIo; + + // Token: 0x04003B80 RID: 15232 + public byte FetTimeout; + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/Def.cs b/Assembly-CSharp/Comio/BD15070_4/Def.cs new file mode 100644 index 0000000..9ff56e2 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/Def.cs @@ -0,0 +1,55 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000517 RID: 1303 + public class Def + { + // Token: 0x04003B5D RID: 15197 + public const byte NodeId = 17; + + // Token: 0x04003B5E RID: 15198 + public const byte LedCtrlUnitMax = 11; + + // Token: 0x04003B5F RID: 15199 + public const ushort LedCtrlIntervalMin = 33; + + // Token: 0x04003B60 RID: 15200 + public const int BaudRate = 115200; + + // Token: 0x04003B61 RID: 15201 + public const int SendTimeoutDef = 180; + + // Token: 0x04003B62 RID: 15202 + public const byte ColorElementMax = 3; + + // Token: 0x02000C95 RID: 3221 + public enum LedIndex + { + // Token: 0x0400704C RID: 28748 + Button1, + // Token: 0x0400704D RID: 28749 + Button2, + // Token: 0x0400704E RID: 28750 + Button3, + // Token: 0x0400704F RID: 28751 + Button4, + // Token: 0x04007050 RID: 28752 + Button5, + // Token: 0x04007051 RID: 28753 + Button6, + // Token: 0x04007052 RID: 28754 + Button7, + // Token: 0x04007053 RID: 28755 + Button8, + // Token: 0x04007054 RID: 28756 + Body, + // Token: 0x04007055 RID: 28757 + Circle, + // Token: 0x04007056 RID: 28758 + Side, + // Token: 0x04007057 RID: 28759 + End + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/ErrorNo.cs b/Assembly-CSharp/Comio/BD15070_4/ErrorNo.cs new file mode 100644 index 0000000..a7bb430 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/ErrorNo.cs @@ -0,0 +1,31 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x0200051B RID: 1307 + public enum ErrorNo + { + // Token: 0x04003B82 RID: 15234 + Begin, + // Token: 0x04003B83 RID: 15235 + None = 0, + // Token: 0x04003B84 RID: 15236 + Timeout, + // Token: 0x04003B85 RID: 15237 + SumError, + // Token: 0x04003B86 RID: 15238 + ReportError, + // Token: 0x04003B87 RID: 15239 + RecvError, + // Token: 0x04003B88 RID: 15240 + FirmError, + // Token: 0x04003B89 RID: 15241 + FirmVersionError, + // Token: 0x04003B8A RID: 15242 + EepWriteError, + // Token: 0x04003B8B RID: 15243 + End, + // Token: 0x04003B8C RID: 15244 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/ErrorNoEnum.cs b/Assembly-CSharp/Comio/BD15070_4/ErrorNoEnum.cs new file mode 100644 index 0000000..3c95b36 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/ErrorNoEnum.cs @@ -0,0 +1,43 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x0200051D RID: 1309 + public static class ErrorNoEnum + { + // Token: 0x06002A06 RID: 10758 RVA: 0x00123DBF File Offset: 0x00122FBF + public static bool IsValid(this ErrorNo self) + { + return self >= ErrorNo.Begin && self < ErrorNo.End; + } + + // Token: 0x06002A07 RID: 10759 RVA: 0x00123DCB File Offset: 0x00122FCB + public static string GetString(this ErrorNo self) + { + if (self.IsValid()) + { + return ErrorNoEnum.Records[(int)self].String; + } + return ""; + } + + // Token: 0x06002A08 RID: 10760 RVA: 0x00123DE7 File Offset: 0x00122FE7 + public static bool IsNeedFirmUpdate(this ErrorNo self) + { + return self.IsValid() && ErrorNoEnum.Records[(int)self].IsNeedFirmUpdate; + } + + // Token: 0x04003B90 RID: 15248 + private static readonly ErrorNoTableRecord[] Records = new ErrorNoTableRecord[] + { + new ErrorNoTableRecord(0, "None", false), + new ErrorNoTableRecord(0, "ComTimeout", false), + new ErrorNoTableRecord(0, "SumError", false), + new ErrorNoTableRecord(0, "ComResponse_ParamError", false), + new ErrorNoTableRecord(0, "ComResponse_Invalid", false), + new ErrorNoTableRecord(0, "FirmError", true), + new ErrorNoTableRecord(0, "FirmVersionError", true), + new ErrorNoTableRecord(0, "EEPRomWriteError", false) + }; + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/ErrorNoTableRecord.cs b/Assembly-CSharp/Comio/BD15070_4/ErrorNoTableRecord.cs new file mode 100644 index 0000000..5886998 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/ErrorNoTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x0200051C RID: 1308 + public class ErrorNoTableRecord + { + // Token: 0x06002A04 RID: 10756 RVA: 0x00003560 File Offset: 0x00002760 + public ErrorNoTableRecord() + { + } + + // Token: 0x06002A05 RID: 10757 RVA: 0x00123DA2 File Offset: 0x00122FA2 + public ErrorNoTableRecord(int enumValue, string String, bool isNeedFirmUpdate) + { + this.EnumValue = enumValue; + this.String = String; + this.IsNeedFirmUpdate = isNeedFirmUpdate; + } + + // Token: 0x04003B8D RID: 15245 + public int EnumValue; + + // Token: 0x04003B8E RID: 15246 + public string String; + + // Token: 0x04003B8F RID: 15247 + public bool IsNeedFirmUpdate; + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/GetBoardInfoCommand.cs b/Assembly-CSharp/Comio/BD15070_4/GetBoardInfoCommand.cs new file mode 100644 index 0000000..45c2541 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/GetBoardInfoCommand.cs @@ -0,0 +1,129 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x0200051E RID: 1310 + public class GetBoardInfoCommand : CommandBase + { + // Token: 0x06002A0A RID: 10762 RVA: 0x00123E90 File Offset: 0x00123090 + public override byte GetCommandNo() + { + return 240; + } + + // Token: 0x06002A0B RID: 10763 RVA: 0x00118752 File Offset: 0x00117952 + public override byte GetLength() + { + return 6; + } + + // Token: 0x06002A0C RID: 10764 RVA: 0x00123E97 File Offset: 0x00123097 + public override PacketReqHeader CreateReq() + { + return new GetBoardInfoCommand.Req(); + } + + // Token: 0x06002A0D RID: 10765 RVA: 0x00123E9E File Offset: 0x0012309E + public override PacketAckHeader CreateAck() + { + return new GetBoardInfoCommand.Ack(); + } + + // Token: 0x06002A0E RID: 10766 RVA: 0x00123EA5 File Offset: 0x001230A5 + public GetBoardInfoCommand() + { + this._boardNo = new BoardNo(""); + this._firmRevision = 0; + } + + // Token: 0x06002A0F RID: 10767 RVA: 0x00123EC4 File Offset: 0x001230C4 + public BoardNo getBoardNo() + { + return this._boardNo; + } + + // Token: 0x06002A10 RID: 10768 RVA: 0x00123ECC File Offset: 0x001230CC + public byte getFirmRevision() + { + return this._firmRevision; + } + + // Token: 0x06002A11 RID: 10769 RVA: 0x00123ED4 File Offset: 0x001230D4 + public override void DoRecv() + { + int count = this.AckPacket.Count; + int num = 7; + if (count <= num) + { + return; + } + this._boardNo.Clear(); + this._firmRevision = 0; + int num2 = 0; + int i = num; + while (i < count) + { + if (i >= count) + { + return; + } + if (this.AckPacket[i] == 255) + { + i++; + break; + } + BoardNo boardNo = this._boardNo; + boardNo.Text += ((char)this.AckPacket[i]).ToString(); + i++; + num2++; + } + if (i >= count) + { + return; + } + if (i < count) + { + this._firmRevision = this.AckPacket[i++]; + } + } + + // Token: 0x04003B91 RID: 15249 + private BoardNo _boardNo; + + // Token: 0x04003B92 RID: 15250 + private byte _firmRevision; + + // Token: 0x02000C9B RID: 3227 + public class Req : PacketReqHeader + { + // Token: 0x06005614 RID: 22036 RVA: 0x001B78EA File Offset: 0x001B6AEA + public Req() + : base(6) + { + } + + // Token: 0x17000905 RID: 2309 + // (get) Token: 0x06005615 RID: 22037 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x06005616 RID: 22038 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte Sum + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x04007089 RID: 28809 + public new const int Size = 6; + } + + // Token: 0x02000C9C RID: 3228 + public class Ack : PacketAckHeader + { + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/GetBoardStatusCommand.cs b/Assembly-CSharp/Comio/BD15070_4/GetBoardStatusCommand.cs new file mode 100644 index 0000000..dddcde4 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/GetBoardStatusCommand.cs @@ -0,0 +1,202 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x0200051F RID: 1311 + public class GetBoardStatusCommand : CommandBase + { + // Token: 0x06002A12 RID: 10770 RVA: 0x00123F80 File Offset: 0x00123180 + public override byte GetCommandNo() + { + return 241; + } + + // Token: 0x06002A13 RID: 10771 RVA: 0x00118752 File Offset: 0x00117952 + public override byte GetLength() + { + return 6; + } + + // Token: 0x06002A14 RID: 10772 RVA: 0x00123F87 File Offset: 0x00123187 + public override PacketReqHeader CreateReq() + { + return new GetBoardStatusCommand.Req(); + } + + // Token: 0x06002A15 RID: 10773 RVA: 0x00123F8E File Offset: 0x0012318E + public override PacketAckHeader CreateAck() + { + return new GetBoardStatusCommand.Ack(); + } + + // Token: 0x06002A16 RID: 10774 RVA: 0x00123F95 File Offset: 0x00123195 + public GetBoardStatusCommand() + { + this._boardStatus = new BoardStatus(); + } + + // Token: 0x06002A17 RID: 10775 RVA: 0x00123FA8 File Offset: 0x001231A8 + public override void DoRecv() + { + GetBoardStatusCommand.AppReportData appReportData = default(GetBoardStatusCommand.AppReportData); + if (this.AckPacket.Count == 12) + { + this._boardStatus.Clear(); + GetBoardStatusCommand.Ack ack = (GetBoardStatusCommand.Ack)this.AckPacket; + appReportData.timeoutStat = ack.timeoutStat; + appReportData.timeoutSec = ack.timeoutSec; + appReportData.pwmIo = ack.pwmIo; + appReportData.fetTimeout = ack.fetTimeout; + GetBoardStatusCommand.makeBoardStatus(this._boardStatus, appReportData); + } + } + + // Token: 0x06002A18 RID: 10776 RVA: 0x00124023 File Offset: 0x00123223 + public static void makeBoardStatus(BoardStatus boardStatus, GetBoardStatusCommand.AppReportData ack) + { + boardStatus.Clear(); + boardStatus.TimeoutStat = ack.timeoutStat; + boardStatus.TimeoutSec = ack.timeoutSec; + boardStatus.PwmIo = ack.pwmIo; + boardStatus.FetTimeout = ack.fetTimeout; + } + + // Token: 0x06002A19 RID: 10777 RVA: 0x0012405B File Offset: 0x0012325B + public BoardStatus getBoardStatus() + { + return this._boardStatus; + } + + // Token: 0x04003B93 RID: 15251 + private BoardStatus _boardStatus; + + // Token: 0x02000C9D RID: 3229 + public class Req : PacketReqHeader + { + // Token: 0x06005618 RID: 22040 RVA: 0x001B78EA File Offset: 0x001B6AEA + public Req() + : base(6) + { + } + + // Token: 0x17000906 RID: 2310 + // (get) Token: 0x06005619 RID: 22041 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x0600561A RID: 22042 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte sum + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x0400708A RID: 28810 + public new const int Size = 6; + } + + // Token: 0x02000C9E RID: 3230 + public class Ack : PacketAckHeader + { + // Token: 0x17000907 RID: 2311 + // (get) Token: 0x0600561B RID: 22043 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x0600561C RID: 22044 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte timeoutStat + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x17000908 RID: 2312 + // (get) Token: 0x0600561D RID: 22045 RVA: 0x001B7906 File Offset: 0x001B6B06 + // (set) Token: 0x0600561E RID: 22046 RVA: 0x001B790F File Offset: 0x001B6B0F + public byte timeoutSec + { + get + { + return base[8]; + } + set + { + base[8] = value; + } + } + + // Token: 0x17000909 RID: 2313 + // (get) Token: 0x0600561F RID: 22047 RVA: 0x001B7919 File Offset: 0x001B6B19 + // (set) Token: 0x06005620 RID: 22048 RVA: 0x001B7923 File Offset: 0x001B6B23 + public byte pwmIo + { + get + { + return base[9]; + } + set + { + base[9] = value; + } + } + + // Token: 0x1700090A RID: 2314 + // (get) Token: 0x06005621 RID: 22049 RVA: 0x001B792E File Offset: 0x001B6B2E + // (set) Token: 0x06005622 RID: 22050 RVA: 0x001B7938 File Offset: 0x001B6B38 + public byte fetTimeout + { + get + { + return base[10]; + } + set + { + base[10] = value; + } + } + + // Token: 0x1700090B RID: 2315 + // (get) Token: 0x06005623 RID: 22051 RVA: 0x001B7A05 File Offset: 0x001B6C05 + // (set) Token: 0x06005624 RID: 22052 RVA: 0x001B7A0F File Offset: 0x001B6C0F + public byte sum + { + get + { + return base[11]; + } + set + { + base[11] = value; + } + } + + // Token: 0x0400708B RID: 28811 + public new const int Size = 12; + } + + // Token: 0x02000C9F RID: 3231 + public struct AppReportData + { + // Token: 0x0400708C RID: 28812 + public const int size = 5; + + // Token: 0x0400708D RID: 28813 + public byte timeoutStat; + + // Token: 0x0400708E RID: 28814 + public byte timeoutSec; + + // Token: 0x0400708F RID: 28815 + public byte pwmIo; + + // Token: 0x04007090 RID: 28816 + public byte fetTimeout; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/GetEEPRomCommand.cs b/Assembly-CSharp/Comio/BD15070_4/GetEEPRomCommand.cs new file mode 100644 index 0000000..0ba4dc2 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/GetEEPRomCommand.cs @@ -0,0 +1,130 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000520 RID: 1312 + public class GetEEPRomCommand : CommandBase + { + // Token: 0x06002A1A RID: 10778 RVA: 0x00124063 File Offset: 0x00123263 + public override byte GetCommandNo() + { + return 124; + } + + // Token: 0x06002A1B RID: 10779 RVA: 0x0011884C File Offset: 0x00117A4C + public override byte GetLength() + { + return 7; + } + + // Token: 0x06002A1C RID: 10780 RVA: 0x00124067 File Offset: 0x00123267 + public override PacketReqHeader CreateReq() + { + return new GetEEPRomCommand.Req(); + } + + // Token: 0x06002A1D RID: 10781 RVA: 0x0012406E File Offset: 0x0012326E + public override PacketAckHeader CreateAck() + { + return new GetEEPRomCommand.Ack(); + } + + // Token: 0x06002A1F RID: 10783 RVA: 0x00124075 File Offset: 0x00123275 + public override void DoRecv() + { + int count = this.AckPacket.Count; + } + + // Token: 0x06002A20 RID: 10784 RVA: 0x00124086 File Offset: 0x00123286 + public void SetEEPDataAdress(byte adress) + { + ((GetEEPRomCommand.Req)this.ReqPacket).adress = adress; + } + + // Token: 0x06002A21 RID: 10785 RVA: 0x00124099 File Offset: 0x00123299 + public byte GetEEPData() + { + return ((GetEEPRomCommand.Ack)this.AckPacket).eepData; + } + + // Token: 0x02000CA0 RID: 3232 + public class Req : PacketReqHeader + { + // Token: 0x06005626 RID: 22054 RVA: 0x001B7A1A File Offset: 0x001B6C1A + public Req() + : base(7) + { + } + + // Token: 0x1700090C RID: 2316 + // (get) Token: 0x06005627 RID: 22055 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x06005628 RID: 22056 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte adress + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x1700090D RID: 2317 + // (get) Token: 0x06005629 RID: 22057 RVA: 0x00122DA9 File Offset: 0x00121FA9 + // (set) Token: 0x0600562A RID: 22058 RVA: 0x00122DB2 File Offset: 0x00121FB2 + public byte sum + { + get + { + return base[6]; + } + set + { + base[6] = value; + } + } + + // Token: 0x04007091 RID: 28817 + public new const int Size = 7; + } + + // Token: 0x02000CA1 RID: 3233 + public class Ack : PacketAckHeader + { + // Token: 0x1700090E RID: 2318 + // (get) Token: 0x0600562B RID: 22059 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x0600562C RID: 22060 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte eepData + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x1700090F RID: 2319 + // (get) Token: 0x0600562D RID: 22061 RVA: 0x001B7906 File Offset: 0x001B6B06 + // (set) Token: 0x0600562E RID: 22062 RVA: 0x001B790F File Offset: 0x001B6B0F + public byte sum + { + get + { + return base[8]; + } + set + { + base[8] = value; + } + } + + // Token: 0x04007092 RID: 28818 + public new const int Size = 9; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/GetFirmSumCommand.cs b/Assembly-CSharp/Comio/BD15070_4/GetFirmSumCommand.cs new file mode 100644 index 0000000..f1dcc03 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/GetFirmSumCommand.cs @@ -0,0 +1,138 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000521 RID: 1313 + public class GetFirmSumCommand : CommandBase + { + // Token: 0x06002A22 RID: 10786 RVA: 0x001240AB File Offset: 0x001232AB + public override byte GetCommandNo() + { + return 242; + } + + // Token: 0x06002A23 RID: 10787 RVA: 0x00118752 File Offset: 0x00117952 + public override byte GetLength() + { + return 6; + } + + // Token: 0x06002A24 RID: 10788 RVA: 0x001240B2 File Offset: 0x001232B2 + public override PacketReqHeader CreateReq() + { + return new GetFirmSumCommand.Req(); + } + + // Token: 0x06002A25 RID: 10789 RVA: 0x001240B9 File Offset: 0x001232B9 + public override PacketAckHeader CreateAck() + { + return new GetFirmSumCommand.Ack(); + } + + // Token: 0x06002A26 RID: 10790 RVA: 0x001240C0 File Offset: 0x001232C0 + public GetFirmSumCommand() + { + this._sum = 0; + } + + // Token: 0x06002A27 RID: 10791 RVA: 0x001240D0 File Offset: 0x001232D0 + public override void DoRecv() + { + if (this.AckPacket.Count == 10) + { + GetFirmSumCommand.Ack ack = (GetFirmSumCommand.Ack)this.AckPacket; + this._sum = (ushort)(ack.sum_upper << 8); + this._sum |= (ushort)ack.sum_lower; + } + } + + // Token: 0x06002A28 RID: 10792 RVA: 0x0012411B File Offset: 0x0012331B + public ushort getSum() + { + return this._sum; + } + + // Token: 0x04003B94 RID: 15252 + public ushort _sum; + + // Token: 0x02000CA2 RID: 3234 + public class Req : PacketReqHeader + { + // Token: 0x06005630 RID: 22064 RVA: 0x001B78EA File Offset: 0x001B6AEA + public Req() + : base(6) + { + } + + // Token: 0x17000910 RID: 2320 + // (get) Token: 0x06005631 RID: 22065 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x06005632 RID: 22066 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte sum + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x04007093 RID: 28819 + public new const int Size = 6; + } + + // Token: 0x02000CA3 RID: 3235 + public class Ack : PacketAckHeader + { + // Token: 0x17000911 RID: 2321 + // (get) Token: 0x06005633 RID: 22067 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x06005634 RID: 22068 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum_upper + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x17000912 RID: 2322 + // (get) Token: 0x06005635 RID: 22069 RVA: 0x001B7906 File Offset: 0x001B6B06 + // (set) Token: 0x06005636 RID: 22070 RVA: 0x001B790F File Offset: 0x001B6B0F + public byte sum_lower + { + get + { + return base[8]; + } + set + { + base[8] = value; + } + } + + // Token: 0x17000913 RID: 2323 + // (get) Token: 0x06005637 RID: 22071 RVA: 0x001B7919 File Offset: 0x001B6B19 + // (set) Token: 0x06005638 RID: 22072 RVA: 0x001B7923 File Offset: 0x001B6B23 + public byte sum + { + get + { + return base[9]; + } + set + { + base[9] = value; + } + } + + // Token: 0x04007094 RID: 28820 + public new const int Size = 10; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/Gs8BitMulti.cs b/Assembly-CSharp/Comio/BD15070_4/Gs8BitMulti.cs new file mode 100644 index 0000000..957489c --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/Gs8BitMulti.cs @@ -0,0 +1,24 @@ +using System; +using UnityEngine; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000523 RID: 1315 + public struct Gs8BitMulti + { + // Token: 0x04003BA1 RID: 15265 + public byte Start; + + // Token: 0x04003BA2 RID: 15266 + public byte End; + + // Token: 0x04003BA3 RID: 15267 + public byte Skip; + + // Token: 0x04003BA4 RID: 15268 + public Color32 Color; + + // Token: 0x04003BA5 RID: 15269 + public byte Speed; + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/IoCtrl.cs b/Assembly-CSharp/Comio/BD15070_4/IoCtrl.cs new file mode 100644 index 0000000..bbf104b --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/IoCtrl.cs @@ -0,0 +1,186 @@ +using System; +using System.Diagnostics; +using UnityEngine; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000522 RID: 1314 + public class IoCtrl + { + // Token: 0x06002A29 RID: 10793 RVA: 0x00124123 File Offset: 0x00123323 + public IoCtrl(BoardCtrl15070_4 boardCtrl) + { + this._construct(boardCtrl); + } + + // Token: 0x06002A2A RID: 10794 RVA: 0x00124132 File Offset: 0x00123332 + public void Initialize() + { + this._initialize(); + } + + // Token: 0x06002A2B RID: 10795 RVA: 0x0012413A File Offset: 0x0012333A + public void Execute() + { + this._sendLed(); + } + + // Token: 0x06002A2C RID: 10796 RVA: 0x00124144 File Offset: 0x00123344 + public void SetLedData(byte ledPos, LedData data) + { + if (ledPos == 8 || ledPos == 9 || ledPos == 10) + { + switch (ledPos) + { + case 8: + this._dc8Bit.Color.r = data.GetColor(ledPos).r; + break; + case 9: + this._dc8Bit.Color.g = data.GetColor(ledPos).g; + break; + case 10: + this._dc8Bit.Color.b = data.GetColor(ledPos).b; + break; + } + this.SetLedFetCommand.setColor(this._dc8Bit.Color); + this._boardCtrl.SendForceCommand(this.SetLedFetCommand); + return; + } + this.SetLedGs8BitCommand[(int)ledPos].setColor(ledPos, data.GetColor(ledPos)); + this._boardCtrl.SendForceCommand(this.SetLedGs8BitCommand[(int)ledPos]); + } + + // Token: 0x06002A2D RID: 10797 RVA: 0x00124220 File Offset: 0x00123420 + public void SetLedDataMulti(Color32 data, byte speed) + { + this._gs8BitMulti.Color = data; + this._gs8BitMulti.Start = 0; + this._gs8BitMulti.End = 8; + this._gs8BitMulti.Skip = 0; + this._gs8BitMulti.Speed = speed; + this.SetLedGs8BitMultiCommand.setColor(this._gs8BitMulti); + this._boardCtrl.SendForceCommand(this.SetLedGs8BitMultiCommand); + } + + // Token: 0x06002A2E RID: 10798 RVA: 0x0012428B File Offset: 0x0012348B + public void SetLedDataMultiFet(Color32 data) + { + this._dc8Bit.Color = data; + this.SetLedFetCommand.setColor(this._dc8Bit.Color); + this._boardCtrl.SendForceCommand(this.SetLedFetCommand); + } + + // Token: 0x06002A2F RID: 10799 RVA: 0x001242C0 File Offset: 0x001234C0 + public void SetLedDataMultiFade(Color32 data, byte speed) + { + this._gs8BitMultiFade.Color = data; + this._gs8BitMultiFade.Start = 0; + this._gs8BitMultiFade.End = 8; + this._gs8BitMultiFade.Skip = 0; + this._gs8BitMultiFade.Speed = speed; + this.SetLedGs8BitMultiFadeCommand.setColor(this._gs8BitMultiFade); + this._boardCtrl.SendForceCommand(this.SetLedGs8BitMultiFadeCommand); + } + + // Token: 0x06002A30 RID: 10800 RVA: 0x0012432C File Offset: 0x0012352C + public void SetLedDataAllOff() + { + this._gs8BitMulti.Color = Color.black; + this._gs8BitMulti.Start = 0; + this._gs8BitMulti.End = 32; + this._gs8BitMulti.Skip = 0; + this._gs8BitMulti.Speed = 0; + this.SetLedGs8BitMultiCommand.setColor(this._gs8BitMulti); + this._boardCtrl.SendForceCommand(this.SetLedGs8BitMultiCommand); + this._dc8Bit.Color = Color.black; + this.SetLedFetCommand.setColor(this._dc8Bit.Color); + this._boardCtrl.SendForceCommand(this.SetLedFetCommand); + } + + // Token: 0x06002A31 RID: 10801 RVA: 0x001243DD File Offset: 0x001235DD + public void SetUpdateGs() + { + this._boardCtrl.SendForceCommand(this.SetLedGsUpdateCommand); + } + + // Token: 0x06002A32 RID: 10802 RVA: 0x001243F0 File Offset: 0x001235F0 + private void _construct(BoardCtrl15070_4 boardCtrl) + { + this._boardCtrl = boardCtrl; + this._ledData = new LedData(); + this._modeTimer = new Stopwatch(); + this._gs8Bit = new Gs8BitMulti[11]; + for (int i = 0; i < this._gs8Bit.Length; i++) + { + this._gs8Bit[i] = default(Gs8BitMulti); + } + this._gs8BitMulti = default(Gs8BitMulti); + this._gs8BitMultiFade = default(Gs8BitMulti); + this._dc8Bit = default(Gs8BitMulti); + this.SetLedGs8BitCommand = new SetLedGs8BitCommand[11]; + for (int j = 0; j < 11; j++) + { + this.SetLedGs8BitCommand[j] = new SetLedGs8BitCommand(); + this._boardCtrl.InitCommand(this.SetLedGs8BitCommand[j], this.SetLedGs8BitCommand[j].GetCommandNo(), this.SetLedGs8BitCommand[j].GetLength()); + } + this.SetLedGs8BitMultiCommand = new SetLedGs8BitMultiCommand(); + this._boardCtrl.InitCommand(this.SetLedGs8BitMultiCommand, this.SetLedGs8BitMultiCommand.GetCommandNo(), this.SetLedGs8BitMultiCommand.GetLength()); + this.SetLedGs8BitMultiFadeCommand = new SetLedGs8BitMultiFadeCommand(); + this._boardCtrl.InitCommand(this.SetLedGs8BitMultiFadeCommand, this.SetLedGs8BitMultiFadeCommand.GetCommandNo(), this.SetLedGs8BitMultiFadeCommand.GetLength()); + this.SetLedFetCommand = new SetLedFetCommand(); + this._boardCtrl.InitCommand(this.SetLedFetCommand, this.SetLedFetCommand.GetCommandNo(), this.SetLedFetCommand.GetLength()); + this.SetLedGsUpdateCommand = new SetLedGsUpdateCommand(); + this._boardCtrl.InitCommand(this.SetLedGsUpdateCommand, this.SetLedGsUpdateCommand.GetCommandNo(), this.SetLedGsUpdateCommand.GetLength()); + } + + // Token: 0x06002A33 RID: 10803 RVA: 0x0012458C File Offset: 0x0012378C + private void _initialize() + { + this._modeTimer.Start(); + this._ledData.SetOff(); + } + + // Token: 0x06002A34 RID: 10804 RVA: 0x001245A4 File Offset: 0x001237A4 + private void _sendLed() + { + long elapsedMilliseconds = this._modeTimer.ElapsedMilliseconds; + ulong num = (ulong)this._boardCtrl.GetLedInterval(); + } + + // Token: 0x04003B95 RID: 15253 + private BoardCtrl15070_4 _boardCtrl; + + // Token: 0x04003B96 RID: 15254 + private LedData _ledData; + + // Token: 0x04003B97 RID: 15255 + public SetLedGs8BitCommand[] SetLedGs8BitCommand; + + // Token: 0x04003B98 RID: 15256 + public SetLedGs8BitMultiCommand SetLedGs8BitMultiCommand; + + // Token: 0x04003B99 RID: 15257 + public SetLedGs8BitMultiFadeCommand SetLedGs8BitMultiFadeCommand; + + // Token: 0x04003B9A RID: 15258 + public SetLedFetCommand SetLedFetCommand; + + // Token: 0x04003B9B RID: 15259 + public SetLedGsUpdateCommand SetLedGsUpdateCommand; + + // Token: 0x04003B9C RID: 15260 + private Gs8BitMulti[] _gs8Bit; + + // Token: 0x04003B9D RID: 15261 + private Gs8BitMulti _gs8BitMulti; + + // Token: 0x04003B9E RID: 15262 + private Gs8BitMulti _gs8BitMultiFade; + + // Token: 0x04003B9F RID: 15263 + private Gs8BitMulti _dc8Bit; + + // Token: 0x04003BA0 RID: 15264 + private Stopwatch _modeTimer; + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/LedData.cs b/Assembly-CSharp/Comio/BD15070_4/LedData.cs new file mode 100644 index 0000000..750b18a --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/LedData.cs @@ -0,0 +1,94 @@ +using System; +using UnityEngine; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000524 RID: 1316 + public class LedData + { + // Token: 0x06002A35 RID: 10805 RVA: 0x001245BF File Offset: 0x001237BF + public LedData() + { + this.SetOff(); + } + + // Token: 0x06002A36 RID: 10806 RVA: 0x001245DC File Offset: 0x001237DC + public void SetOff() + { + for (int i = 0; i < this.color.Length; i++) + { + this.color[i] = Color.black; + } + } + + // Token: 0x06002A37 RID: 10807 RVA: 0x00124614 File Offset: 0x00123814 + public void SetColorGrb(byte ledPos, byte green, byte red, byte blue) + { + if (11 > ledPos) + { + this.color[(int)ledPos].r = LedData.AdjustColorElement(green); + this.color[(int)ledPos].g = LedData.AdjustColorElement(red); + this.color[(int)ledPos].b = LedData.AdjustColorElement(blue); + } + } + + // Token: 0x06002A38 RID: 10808 RVA: 0x0012466C File Offset: 0x0012386C + public void SetColorRgb(byte ledPos, byte red, byte green, byte blue) + { + if (11 > ledPos) + { + this.color[(int)ledPos].r = LedData.AdjustColorElement(red); + this.color[(int)ledPos].g = LedData.AdjustColorElement(green); + this.color[(int)ledPos].b = LedData.AdjustColorElement(blue); + } + } + + // Token: 0x06002A39 RID: 10809 RVA: 0x001246C4 File Offset: 0x001238C4 + public void SetColorRgb(byte ledPos, byte colorBase) + { + if (11 > ledPos) + { + this.color[(int)ledPos].r = LedData.AdjustColorElement(colorBase); + this.color[(int)ledPos].g = LedData.AdjustColorElement(colorBase); + this.color[(int)ledPos].b = LedData.AdjustColorElement(colorBase); + } + } + + // Token: 0x06002A3A RID: 10810 RVA: 0x0012471B File Offset: 0x0012391B + public Color32 GetColor(byte ledPos) + { + if (11 > ledPos) + { + return this.color[(int)ledPos]; + } + return this.color[0]; + } + + // Token: 0x06002A3B RID: 10811 RVA: 0x0012473C File Offset: 0x0012393C + public void CopyFrom(LedData src) + { + for (int i = 0; i < 11; i++) + { + this.color[i] = src.color[i]; + } + } + + // Token: 0x06002A3C RID: 10812 RVA: 0x00124770 File Offset: 0x00123970 + private static byte AdjustColorElement(byte element) + { + byte b = element; + if (224 == b) + { + b += 1; + } + if (208 == b) + { + b += 1; + } + return b; + } + + // Token: 0x04003BA6 RID: 15270 + private Color32[] color = new Color32[11]; + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/SetBootModeCommand.cs b/Assembly-CSharp/Comio/BD15070_4/SetBootModeCommand.cs new file mode 100644 index 0000000..bbf60f4 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/SetBootModeCommand.cs @@ -0,0 +1,87 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000525 RID: 1317 + public class SetBootModeCommand : CommandBase + { + // Token: 0x06002A3D RID: 10813 RVA: 0x0012479A File Offset: 0x0012399A + public override byte GetCommandNo() + { + return 253; + } + + // Token: 0x06002A3E RID: 10814 RVA: 0x00118752 File Offset: 0x00117952 + public override byte GetLength() + { + return 6; + } + + // Token: 0x06002A3F RID: 10815 RVA: 0x001247A1 File Offset: 0x001239A1 + public override PacketReqHeader CreateReq() + { + return new SetBootModeCommand.Req(); + } + + // Token: 0x06002A40 RID: 10816 RVA: 0x001247A8 File Offset: 0x001239A8 + public override PacketAckHeader CreateAck() + { + return new SetBootModeCommand.Ack(); + } + + // Token: 0x06002A42 RID: 10818 RVA: 0x00003598 File Offset: 0x00002798 + public override void DoRecv() + { + } + + // Token: 0x02000CA4 RID: 3236 + public class Req : PacketReqHeader + { + // Token: 0x0600563A RID: 22074 RVA: 0x001B78EA File Offset: 0x001B6AEA + public Req() + : base(6) + { + } + + // Token: 0x17000914 RID: 2324 + // (get) Token: 0x0600563B RID: 22075 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x0600563C RID: 22076 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte sum + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x04007095 RID: 28821 + public new const int Size = 6; + } + + // Token: 0x02000CA5 RID: 3237 + public class Ack : PacketAckHeader + { + // Token: 0x17000915 RID: 2325 + // (get) Token: 0x0600563D RID: 22077 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x0600563E RID: 22078 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x04007096 RID: 28822 + public new const int Size = 8; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/SetDcCommand.cs b/Assembly-CSharp/Comio/BD15070_4/SetDcCommand.cs new file mode 100644 index 0000000..d08b934 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/SetDcCommand.cs @@ -0,0 +1,104 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000526 RID: 1318 + public class SetDcCommand : CommandBase + { + // Token: 0x06002A43 RID: 10819 RVA: 0x001247AF File Offset: 0x001239AF + public override byte GetCommandNo() + { + return 63; + } + + // Token: 0x06002A44 RID: 10820 RVA: 0x001247B3 File Offset: 0x001239B3 + public override byte GetLength() + { + return 12; + } + + // Token: 0x06002A45 RID: 10821 RVA: 0x001247B7 File Offset: 0x001239B7 + public override PacketReqHeader CreateReq() + { + return new SetDcCommand.Req(); + } + + // Token: 0x06002A46 RID: 10822 RVA: 0x001247BE File Offset: 0x001239BE + public override PacketAckHeader CreateAck() + { + return new SetDcCommand.Ack(); + } + + // Token: 0x06002A48 RID: 10824 RVA: 0x00003598 File Offset: 0x00002798 + public override void DoRecv() + { + } + + // Token: 0x06002A49 RID: 10825 RVA: 0x001247C5 File Offset: 0x001239C5 + public void setDc(Gs8BitMulti info) + { + ((SetDcCommand.Req)this.ReqPacket).setDc(info); + } + + // Token: 0x02000CA6 RID: 3238 + public class Req : PacketReqHeader + { + // Token: 0x06005640 RID: 22080 RVA: 0x001B7A23 File Offset: 0x001B6C23 + public Req() + : base(12) + { + } + + // Token: 0x06005641 RID: 22081 RVA: 0x001B7A30 File Offset: 0x001B6C30 + public void setDc(Gs8BitMulti info) + { + base[5] = info.Start; + base[6] = info.End; + base[7] = info.Skip; + base[8] = info.Color.r & 63; + base[9] = info.Color.g & 63; + base[10] = info.Color.b & 63; + } + + // Token: 0x17000916 RID: 2326 + // (get) Token: 0x06005642 RID: 22082 RVA: 0x001B7A05 File Offset: 0x001B6C05 + // (set) Token: 0x06005643 RID: 22083 RVA: 0x001B7A0F File Offset: 0x001B6C0F + public byte sum + { + get + { + return base[11]; + } + set + { + base[11] = value; + } + } + + // Token: 0x04007097 RID: 28823 + public new const int Size = 12; + } + + // Token: 0x02000CA7 RID: 3239 + public class Ack : PacketAckHeader + { + // Token: 0x17000917 RID: 2327 + // (get) Token: 0x06005644 RID: 22084 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x06005645 RID: 22085 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x04007098 RID: 28824 + public new const int Size = 8; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/SetDcUpdateCommand.cs b/Assembly-CSharp/Comio/BD15070_4/SetDcUpdateCommand.cs new file mode 100644 index 0000000..6d0ccbd --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/SetDcUpdateCommand.cs @@ -0,0 +1,88 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000527 RID: 1319 + public class SetDcUpdateCommand : CommandBase + { + // Token: 0x06002A4A RID: 10826 RVA: 0x001247D8 File Offset: 0x001239D8 + public override byte GetCommandNo() + { + return 59; + } + + // Token: 0x06002A4B RID: 10827 RVA: 0x00118752 File Offset: 0x00117952 + public override byte GetLength() + { + return 6; + } + + // Token: 0x06002A4C RID: 10828 RVA: 0x001247DC File Offset: 0x001239DC + public override PacketReqHeader CreateReq() + { + return new SetDcUpdateCommand.Req(); + } + + // Token: 0x06002A4D RID: 10829 RVA: 0x001247E3 File Offset: 0x001239E3 + public override PacketAckHeader CreateAck() + { + return new SetDcUpdateCommand.Ack(); + } + + // Token: 0x06002A4F RID: 10831 RVA: 0x001247EA File Offset: 0x001239EA + public override void DoRecv() + { + byte length = this.AckPacket.length; + } + + // Token: 0x02000CA8 RID: 3240 + public class Req : PacketReqHeader + { + // Token: 0x06005647 RID: 22087 RVA: 0x001B78EA File Offset: 0x001B6AEA + public Req() + : base(6) + { + } + + // Token: 0x17000918 RID: 2328 + // (get) Token: 0x06005648 RID: 22088 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x06005649 RID: 22089 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte sum + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x04007099 RID: 28825 + public new const int Size = 6; + } + + // Token: 0x02000CA9 RID: 3241 + public class Ack : PacketAckHeader + { + // Token: 0x17000919 RID: 2329 + // (get) Token: 0x0600564A RID: 22090 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x0600564B RID: 22091 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x0400709A RID: 28826 + public new const int Size = 8; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/SetDisableResponseCommand.cs b/Assembly-CSharp/Comio/BD15070_4/SetDisableResponseCommand.cs new file mode 100644 index 0000000..69ded6e --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/SetDisableResponseCommand.cs @@ -0,0 +1,65 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000528 RID: 1320 + public class SetDisableResponseCommand : CommandBase + { + // Token: 0x06002A50 RID: 10832 RVA: 0x001247FA File Offset: 0x001239FA + public override byte GetCommandNo() + { + return 126; + } + + // Token: 0x06002A51 RID: 10833 RVA: 0x00118752 File Offset: 0x00117952 + public override byte GetLength() + { + return 6; + } + + // Token: 0x06002A52 RID: 10834 RVA: 0x001247FE File Offset: 0x001239FE + public override PacketReqHeader CreateReq() + { + return new SetDisableResponseCommand.Req(); + } + + // Token: 0x06002A53 RID: 10835 RVA: 0x00049CF5 File Offset: 0x00048EF5 + public override PacketAckHeader CreateAck() + { + return null; + } + + // Token: 0x06002A55 RID: 10837 RVA: 0x00003598 File Offset: 0x00002798 + public override void DoRecv() + { + } + + // Token: 0x02000CAA RID: 3242 + public class Req : PacketReqHeader + { + // Token: 0x0600564D RID: 22093 RVA: 0x001B78EA File Offset: 0x001B6AEA + public Req() + : base(6) + { + } + + // Token: 0x1700091A RID: 2330 + // (get) Token: 0x0600564E RID: 22094 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x0600564F RID: 22095 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte sum + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x0400709B RID: 28827 + public new const int Size = 6; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/SetEEPRomCommand.cs b/Assembly-CSharp/Comio/BD15070_4/SetEEPRomCommand.cs new file mode 100644 index 0000000..177bd53 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/SetEEPRomCommand.cs @@ -0,0 +1,126 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000529 RID: 1321 + public class SetEEPRomCommand : CommandBase + { + // Token: 0x06002A56 RID: 10838 RVA: 0x00124805 File Offset: 0x00123A05 + public override byte GetCommandNo() + { + return 123; + } + + // Token: 0x06002A57 RID: 10839 RVA: 0x0011884F File Offset: 0x00117A4F + public override byte GetLength() + { + return 8; + } + + // Token: 0x06002A58 RID: 10840 RVA: 0x00124809 File Offset: 0x00123A09 + public override PacketReqHeader CreateReq() + { + return new SetEEPRomCommand.Req(); + } + + // Token: 0x06002A59 RID: 10841 RVA: 0x00124810 File Offset: 0x00123A10 + public override PacketAckHeader CreateAck() + { + return new SetEEPRomCommand.Ack(); + } + + // Token: 0x06002A5B RID: 10843 RVA: 0x00124817 File Offset: 0x00123A17 + public override void DoRecv() + { + int count = this.AckPacket.Count; + } + + // Token: 0x06002A5C RID: 10844 RVA: 0x00124827 File Offset: 0x00123A27 + public void SetEEPData(byte adress, byte data) + { + SetEEPRomCommand.Req req = (SetEEPRomCommand.Req)this.ReqPacket; + req.adress = adress; + req.writeData = data; + } + + // Token: 0x02000CAB RID: 3243 + public class Req : PacketReqHeader + { + // Token: 0x06005650 RID: 22096 RVA: 0x001B7AA8 File Offset: 0x001B6CA8 + public Req() + : base(8) + { + } + + // Token: 0x1700091B RID: 2331 + // (get) Token: 0x06005651 RID: 22097 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x06005652 RID: 22098 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte adress + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x1700091C RID: 2332 + // (get) Token: 0x06005653 RID: 22099 RVA: 0x00122DA9 File Offset: 0x00121FA9 + // (set) Token: 0x06005654 RID: 22100 RVA: 0x00122DB2 File Offset: 0x00121FB2 + public byte writeData + { + get + { + return base[6]; + } + set + { + base[6] = value; + } + } + + // Token: 0x1700091D RID: 2333 + // (get) Token: 0x06005655 RID: 22101 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x06005656 RID: 22102 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x0400709C RID: 28828 + public new const int Size = 8; + } + + // Token: 0x02000CAC RID: 3244 + public class Ack : PacketAckHeader + { + // Token: 0x1700091E RID: 2334 + // (get) Token: 0x06005657 RID: 22103 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x06005658 RID: 22104 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x0400709D RID: 28829 + public new const int Size = 8; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/SetEnableResponseCommand.cs b/Assembly-CSharp/Comio/BD15070_4/SetEnableResponseCommand.cs new file mode 100644 index 0000000..d4637ac --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/SetEnableResponseCommand.cs @@ -0,0 +1,65 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x0200052A RID: 1322 + public class SetEnableResponseCommand : CommandBase + { + // Token: 0x06002A5D RID: 10845 RVA: 0x00124841 File Offset: 0x00123A41 + public override byte GetCommandNo() + { + return 125; + } + + // Token: 0x06002A5E RID: 10846 RVA: 0x00118752 File Offset: 0x00117952 + public override byte GetLength() + { + return 6; + } + + // Token: 0x06002A5F RID: 10847 RVA: 0x00124845 File Offset: 0x00123A45 + public override PacketReqHeader CreateReq() + { + return new SetEnableResponseCommand.Req(); + } + + // Token: 0x06002A60 RID: 10848 RVA: 0x00049CF5 File Offset: 0x00048EF5 + public override PacketAckHeader CreateAck() + { + return null; + } + + // Token: 0x06002A62 RID: 10850 RVA: 0x00003598 File Offset: 0x00002798 + public override void DoRecv() + { + } + + // Token: 0x02000CAD RID: 3245 + public class Req : PacketReqHeader + { + // Token: 0x0600565A RID: 22106 RVA: 0x001B78EA File Offset: 0x001B6AEA + public Req() + : base(6) + { + } + + // Token: 0x1700091F RID: 2335 + // (get) Token: 0x0600565B RID: 22107 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x0600565C RID: 22108 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte sum + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x0400709E RID: 28830 + public new const int Size = 6; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/SetLedDirectCommand.cs b/Assembly-CSharp/Comio/BD15070_4/SetLedDirectCommand.cs new file mode 100644 index 0000000..23221b3 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/SetLedDirectCommand.cs @@ -0,0 +1,109 @@ +using System; +using UnityEngine; + +namespace Comio.BD15070_4 +{ + // Token: 0x0200052B RID: 1323 + public class SetLedDirectCommand : CommandBase + { + // Token: 0x06002A63 RID: 10851 RVA: 0x0012484C File Offset: 0x00123A4C + public override byte GetCommandNo() + { + return 130; + } + + // Token: 0x06002A64 RID: 10852 RVA: 0x00124853 File Offset: 0x00123A53 + public override byte GetLength() + { + return 39; + } + + // Token: 0x06002A65 RID: 10853 RVA: 0x00124857 File Offset: 0x00123A57 + public override PacketReqHeader CreateReq() + { + return new SetLedDirectCommand.Req(); + } + + // Token: 0x06002A66 RID: 10854 RVA: 0x0012485E File Offset: 0x00123A5E + public override PacketAckHeader CreateAck() + { + return new SetLedDirectCommand.Ack(); + } + + // Token: 0x06002A68 RID: 10856 RVA: 0x00003598 File Offset: 0x00002798 + public override void DoRecv() + { + } + + // Token: 0x06002A69 RID: 10857 RVA: 0x00124865 File Offset: 0x00123A65 + public void setColor(byte ledPos, Color color) + { + if (11 > ledPos) + { + ((SetLedDirectCommand.Req)this.ReqPacket).setColor((int)ledPos, color); + } + } + + // Token: 0x02000CAE RID: 3246 + public class Req : PacketReqHeader + { + // Token: 0x0600565D RID: 22109 RVA: 0x001B7AB1 File Offset: 0x001B6CB1 + public Req() + : base(39) + { + } + + // Token: 0x0600565E RID: 22110 RVA: 0x001B7ABC File Offset: 0x001B6CBC + public void setColor(int index, Color32 color) + { + int num = 5 + index * 3; + base[num] = color.r; + base[num + 1] = color.g; + base[num + 2] = color.b; + } + + // Token: 0x17000920 RID: 2336 + // (get) Token: 0x0600565F RID: 22111 RVA: 0x001B7AFA File Offset: 0x001B6CFA + // (set) Token: 0x06005660 RID: 22112 RVA: 0x001B7B04 File Offset: 0x001B6D04 + public byte sum + { + get + { + return base[38]; + } + set + { + base[38] = value; + } + } + + // Token: 0x0400709F RID: 28831 + private const int SumIndex = 38; + + // Token: 0x040070A0 RID: 28832 + public new const int Size = 39; + } + + // Token: 0x02000CAF RID: 3247 + public class Ack : PacketAckHeader + { + // Token: 0x17000921 RID: 2337 + // (get) Token: 0x06005661 RID: 22113 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x06005662 RID: 22114 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x040070A1 RID: 28833 + public new const int Size = 8; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/SetLedFetCommand.cs b/Assembly-CSharp/Comio/BD15070_4/SetLedFetCommand.cs new file mode 100644 index 0000000..9713fd5 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/SetLedFetCommand.cs @@ -0,0 +1,151 @@ +using System; +using UnityEngine; + +namespace Comio.BD15070_4 +{ + // Token: 0x0200052C RID: 1324 + public class SetLedFetCommand : CommandBase + { + // Token: 0x06002A6A RID: 10858 RVA: 0x00124883 File Offset: 0x00123A83 + public override byte GetCommandNo() + { + return 57; + } + + // Token: 0x06002A6B RID: 10859 RVA: 0x00124887 File Offset: 0x00123A87 + public override byte GetLength() + { + return 9; + } + + // Token: 0x06002A6C RID: 10860 RVA: 0x0012488B File Offset: 0x00123A8B + public override PacketReqHeader CreateReq() + { + return new SetLedFetCommand.Req(); + } + + // Token: 0x06002A6D RID: 10861 RVA: 0x00124892 File Offset: 0x00123A92 + public override PacketAckHeader CreateAck() + { + return new SetLedFetCommand.Ack(); + } + + // Token: 0x06002A6F RID: 10863 RVA: 0x00003598 File Offset: 0x00002798 + public override void DoRecv() + { + } + + // Token: 0x06002A70 RID: 10864 RVA: 0x00124899 File Offset: 0x00123A99 + public void setColor(Color32 color) + { + SetLedFetCommand.Req req = (SetLedFetCommand.Req)this.ReqPacket; + req.r = color.r; + req.g = color.g; + req.b = color.b; + } + + // Token: 0x06002A71 RID: 10865 RVA: 0x001248C9 File Offset: 0x00123AC9 + public void setColorOff() + { + SetLedFetCommand.Req req = (SetLedFetCommand.Req)this.ReqPacket; + req.r = 0; + req.g = 0; + req.b = 0; + } + + // Token: 0x02000CB0 RID: 3248 + public class Req : PacketReqHeader + { + // Token: 0x06005664 RID: 22116 RVA: 0x001B7B0F File Offset: 0x001B6D0F + public Req() + : base(9) + { + } + + // Token: 0x17000922 RID: 2338 + // (get) Token: 0x06005665 RID: 22117 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x06005666 RID: 22118 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte r + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x17000923 RID: 2339 + // (get) Token: 0x06005667 RID: 22119 RVA: 0x00122DA9 File Offset: 0x00121FA9 + // (set) Token: 0x06005668 RID: 22120 RVA: 0x00122DB2 File Offset: 0x00121FB2 + public byte g + { + get + { + return base[6]; + } + set + { + base[6] = value; + } + } + + // Token: 0x17000924 RID: 2340 + // (get) Token: 0x06005669 RID: 22121 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x0600566A RID: 22122 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte b + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x17000925 RID: 2341 + // (get) Token: 0x0600566B RID: 22123 RVA: 0x001B7906 File Offset: 0x001B6B06 + // (set) Token: 0x0600566C RID: 22124 RVA: 0x001B790F File Offset: 0x001B6B0F + public byte sum + { + get + { + return base[8]; + } + set + { + base[8] = value; + } + } + + // Token: 0x040070A2 RID: 28834 + public new const int Size = 9; + } + + // Token: 0x02000CB1 RID: 3249 + public class Ack : PacketAckHeader + { + // Token: 0x17000926 RID: 2342 + // (get) Token: 0x0600566D RID: 22125 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x0600566E RID: 22126 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x040070A3 RID: 28835 + public new const int Size = 8; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/SetLedGs8BitCommand.cs b/Assembly-CSharp/Comio/BD15070_4/SetLedGs8BitCommand.cs new file mode 100644 index 0000000..92af78a --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/SetLedGs8BitCommand.cs @@ -0,0 +1,161 @@ +using System; +using UnityEngine; + +namespace Comio.BD15070_4 +{ + // Token: 0x0200052D RID: 1325 + public class SetLedGs8BitCommand : CommandBase + { + // Token: 0x06002A72 RID: 10866 RVA: 0x001248EA File Offset: 0x00123AEA + public override byte GetCommandNo() + { + return 49; + } + + // Token: 0x06002A73 RID: 10867 RVA: 0x001248EE File Offset: 0x00123AEE + public override byte GetLength() + { + return 10; + } + + // Token: 0x06002A74 RID: 10868 RVA: 0x001248F2 File Offset: 0x00123AF2 + public override PacketReqHeader CreateReq() + { + return new SetLedGs8BitCommand.Req(); + } + + // Token: 0x06002A75 RID: 10869 RVA: 0x001248F9 File Offset: 0x00123AF9 + public override PacketAckHeader CreateAck() + { + return new SetLedGs8BitCommand.Ack(); + } + + // Token: 0x06002A77 RID: 10871 RVA: 0x00003598 File Offset: 0x00002798 + public override void DoRecv() + { + } + + // Token: 0x06002A78 RID: 10872 RVA: 0x00124900 File Offset: 0x00123B00 + public void setColor(byte ledPos, Color32 color) + { + if (11 > ledPos) + { + SetLedGs8BitCommand.Req req = (SetLedGs8BitCommand.Req)this.ReqPacket; + req.index = ledPos; + req.r = color.r; + req.g = color.g; + req.b = color.b; + } + } + + // Token: 0x02000CB2 RID: 3250 + public class Req : PacketReqHeader + { + // Token: 0x06005670 RID: 22128 RVA: 0x001B7B19 File Offset: 0x001B6D19 + public Req() + : base(10) + { + } + + // Token: 0x17000927 RID: 2343 + // (get) Token: 0x06005671 RID: 22129 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x06005672 RID: 22130 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte index + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x17000928 RID: 2344 + // (get) Token: 0x06005673 RID: 22131 RVA: 0x00122DA9 File Offset: 0x00121FA9 + // (set) Token: 0x06005674 RID: 22132 RVA: 0x00122DB2 File Offset: 0x00121FB2 + public byte r + { + get + { + return base[6]; + } + set + { + base[6] = value; + } + } + + // Token: 0x17000929 RID: 2345 + // (get) Token: 0x06005675 RID: 22133 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x06005676 RID: 22134 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte g + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x1700092A RID: 2346 + // (get) Token: 0x06005677 RID: 22135 RVA: 0x001B7906 File Offset: 0x001B6B06 + // (set) Token: 0x06005678 RID: 22136 RVA: 0x001B790F File Offset: 0x001B6B0F + public byte b + { + get + { + return base[8]; + } + set + { + base[8] = value; + } + } + + // Token: 0x1700092B RID: 2347 + // (get) Token: 0x06005679 RID: 22137 RVA: 0x001B7919 File Offset: 0x001B6B19 + // (set) Token: 0x0600567A RID: 22138 RVA: 0x001B7923 File Offset: 0x001B6B23 + public byte sum + { + get + { + return base[9]; + } + set + { + base[9] = value; + } + } + + // Token: 0x040070A4 RID: 28836 + public new const int Size = 10; + } + + // Token: 0x02000CB3 RID: 3251 + public class Ack : PacketAckHeader + { + // Token: 0x1700092C RID: 2348 + // (get) Token: 0x0600567B RID: 22139 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x0600567C RID: 22140 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x040070A5 RID: 28837 + public new const int Size = 8; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/SetLedGs8BitMultiCommand.cs b/Assembly-CSharp/Comio/BD15070_4/SetLedGs8BitMultiCommand.cs new file mode 100644 index 0000000..b6a75b0 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/SetLedGs8BitMultiCommand.cs @@ -0,0 +1,218 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x0200052E RID: 1326 + public class SetLedGs8BitMultiCommand : CommandBase + { + // Token: 0x06002A79 RID: 10873 RVA: 0x0012493C File Offset: 0x00123B3C + public override byte GetCommandNo() + { + return 50; + } + + // Token: 0x06002A7A RID: 10874 RVA: 0x00124940 File Offset: 0x00123B40 + public override byte GetLength() + { + return 13; + } + + // Token: 0x06002A7B RID: 10875 RVA: 0x00124944 File Offset: 0x00123B44 + public override PacketReqHeader CreateReq() + { + return new SetLedGs8BitMultiCommand.Req(); + } + + // Token: 0x06002A7C RID: 10876 RVA: 0x0012494B File Offset: 0x00123B4B + public override PacketAckHeader CreateAck() + { + return new SetLedGs8BitMultiCommand.Ack(); + } + + // Token: 0x06002A7E RID: 10878 RVA: 0x00003598 File Offset: 0x00002798 + public override void DoRecv() + { + } + + // Token: 0x06002A7F RID: 10879 RVA: 0x00124954 File Offset: 0x00123B54 + public void setColor(Gs8BitMulti info) + { + SetLedGs8BitMultiCommand.Req req = (SetLedGs8BitMultiCommand.Req)this.ReqPacket; + req.start = info.Start; + req.end = info.End; + req.skip = info.Skip; + req.r = info.Color.r; + req.g = info.Color.g; + req.b = info.Color.b; + req.speed = info.Speed; + } + + // Token: 0x06002A80 RID: 10880 RVA: 0x001249CE File Offset: 0x00123BCE + public void setAllOff() + { + SetLedGs8BitMultiCommand.Req req = (SetLedGs8BitMultiCommand.Req)this.ReqPacket; + req.start = 0; + req.end = 10; + req.skip = 0; + req.r = 0; + req.g = 0; + req.b = 0; + req.speed = 0; + } + + // Token: 0x02000CB4 RID: 3252 + public class Req : PacketReqHeader + { + // Token: 0x0600567E RID: 22142 RVA: 0x001B7B23 File Offset: 0x001B6D23 + public Req() + : base(13) + { + } + + // Token: 0x1700092D RID: 2349 + // (get) Token: 0x0600567F RID: 22143 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x06005680 RID: 22144 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte start + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x1700092E RID: 2350 + // (get) Token: 0x06005681 RID: 22145 RVA: 0x00122DA9 File Offset: 0x00121FA9 + // (set) Token: 0x06005682 RID: 22146 RVA: 0x00122DB2 File Offset: 0x00121FB2 + public byte end + { + get + { + return base[6]; + } + set + { + base[6] = value; + } + } + + // Token: 0x1700092F RID: 2351 + // (get) Token: 0x06005683 RID: 22147 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x06005684 RID: 22148 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte skip + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x17000930 RID: 2352 + // (get) Token: 0x06005685 RID: 22149 RVA: 0x001B7906 File Offset: 0x001B6B06 + // (set) Token: 0x06005686 RID: 22150 RVA: 0x001B790F File Offset: 0x001B6B0F + public byte r + { + get + { + return base[8]; + } + set + { + base[8] = value; + } + } + + // Token: 0x17000931 RID: 2353 + // (get) Token: 0x06005687 RID: 22151 RVA: 0x001B7919 File Offset: 0x001B6B19 + // (set) Token: 0x06005688 RID: 22152 RVA: 0x001B7923 File Offset: 0x001B6B23 + public byte g + { + get + { + return base[9]; + } + set + { + base[9] = value; + } + } + + // Token: 0x17000932 RID: 2354 + // (get) Token: 0x06005689 RID: 22153 RVA: 0x001B792E File Offset: 0x001B6B2E + // (set) Token: 0x0600568A RID: 22154 RVA: 0x001B7938 File Offset: 0x001B6B38 + public byte b + { + get + { + return base[10]; + } + set + { + base[10] = value; + } + } + + // Token: 0x17000933 RID: 2355 + // (get) Token: 0x0600568B RID: 22155 RVA: 0x001B7A05 File Offset: 0x001B6C05 + // (set) Token: 0x0600568C RID: 22156 RVA: 0x001B7A0F File Offset: 0x001B6C0F + public byte speed + { + get + { + return base[11]; + } + set + { + base[11] = value; + } + } + + // Token: 0x17000934 RID: 2356 + // (get) Token: 0x0600568D RID: 22157 RVA: 0x001B7B2D File Offset: 0x001B6D2D + // (set) Token: 0x0600568E RID: 22158 RVA: 0x001B7B37 File Offset: 0x001B6D37 + public byte sum + { + get + { + return base[12]; + } + set + { + base[12] = value; + } + } + + // Token: 0x040070A6 RID: 28838 + public new const int Size = 13; + } + + // Token: 0x02000CB5 RID: 3253 + public class Ack : PacketAckHeader + { + // Token: 0x17000935 RID: 2357 + // (get) Token: 0x0600568F RID: 22159 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x06005690 RID: 22160 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x040070A7 RID: 28839 + public new const int Size = 8; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/SetLedGs8BitMultiFadeCommand.cs b/Assembly-CSharp/Comio/BD15070_4/SetLedGs8BitMultiFadeCommand.cs new file mode 100644 index 0000000..0190994 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/SetLedGs8BitMultiFadeCommand.cs @@ -0,0 +1,205 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x0200052F RID: 1327 + public class SetLedGs8BitMultiFadeCommand : CommandBase + { + // Token: 0x06002A81 RID: 10881 RVA: 0x00124A0C File Offset: 0x00123C0C + public override byte GetCommandNo() + { + return 51; + } + + // Token: 0x06002A82 RID: 10882 RVA: 0x00124940 File Offset: 0x00123B40 + public override byte GetLength() + { + return 13; + } + + // Token: 0x06002A83 RID: 10883 RVA: 0x00124A10 File Offset: 0x00123C10 + public override PacketReqHeader CreateReq() + { + return new SetLedGs8BitMultiFadeCommand.Req(); + } + + // Token: 0x06002A84 RID: 10884 RVA: 0x00124A17 File Offset: 0x00123C17 + public override PacketAckHeader CreateAck() + { + return new SetLedGs8BitMultiFadeCommand.Ack(); + } + + // Token: 0x06002A86 RID: 10886 RVA: 0x00003598 File Offset: 0x00002798 + public override void DoRecv() + { + } + + // Token: 0x06002A87 RID: 10887 RVA: 0x00124A20 File Offset: 0x00123C20 + public void setColor(Gs8BitMulti info) + { + SetLedGs8BitMultiFadeCommand.Req req = (SetLedGs8BitMultiFadeCommand.Req)this.ReqPacket; + req.start = info.Start; + req.end = info.End; + req.skip = info.Skip; + req.r = info.Color.r; + req.g = info.Color.g; + req.b = info.Color.b; + req.speed = info.Speed; + } + + // Token: 0x02000CB6 RID: 3254 + public class Req : PacketReqHeader + { + // Token: 0x06005692 RID: 22162 RVA: 0x001B7B23 File Offset: 0x001B6D23 + public Req() + : base(13) + { + } + + // Token: 0x17000936 RID: 2358 + // (get) Token: 0x06005693 RID: 22163 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x06005694 RID: 22164 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte start + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x17000937 RID: 2359 + // (get) Token: 0x06005695 RID: 22165 RVA: 0x00122DA9 File Offset: 0x00121FA9 + // (set) Token: 0x06005696 RID: 22166 RVA: 0x00122DB2 File Offset: 0x00121FB2 + public byte end + { + get + { + return base[6]; + } + set + { + base[6] = value; + } + } + + // Token: 0x17000938 RID: 2360 + // (get) Token: 0x06005697 RID: 22167 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x06005698 RID: 22168 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte skip + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x17000939 RID: 2361 + // (get) Token: 0x06005699 RID: 22169 RVA: 0x001B7906 File Offset: 0x001B6B06 + // (set) Token: 0x0600569A RID: 22170 RVA: 0x001B790F File Offset: 0x001B6B0F + public byte r + { + get + { + return base[8]; + } + set + { + base[8] = value; + } + } + + // Token: 0x1700093A RID: 2362 + // (get) Token: 0x0600569B RID: 22171 RVA: 0x001B7919 File Offset: 0x001B6B19 + // (set) Token: 0x0600569C RID: 22172 RVA: 0x001B7923 File Offset: 0x001B6B23 + public byte g + { + get + { + return base[9]; + } + set + { + base[9] = value; + } + } + + // Token: 0x1700093B RID: 2363 + // (get) Token: 0x0600569D RID: 22173 RVA: 0x001B792E File Offset: 0x001B6B2E + // (set) Token: 0x0600569E RID: 22174 RVA: 0x001B7938 File Offset: 0x001B6B38 + public byte b + { + get + { + return base[10]; + } + set + { + base[10] = value; + } + } + + // Token: 0x1700093C RID: 2364 + // (get) Token: 0x0600569F RID: 22175 RVA: 0x001B7A05 File Offset: 0x001B6C05 + // (set) Token: 0x060056A0 RID: 22176 RVA: 0x001B7A0F File Offset: 0x001B6C0F + public byte speed + { + get + { + return base[11]; + } + set + { + base[11] = value; + } + } + + // Token: 0x1700093D RID: 2365 + // (get) Token: 0x060056A1 RID: 22177 RVA: 0x001B7B2D File Offset: 0x001B6D2D + // (set) Token: 0x060056A2 RID: 22178 RVA: 0x001B7B37 File Offset: 0x001B6D37 + public byte sum + { + get + { + return base[12]; + } + set + { + base[12] = value; + } + } + + // Token: 0x040070A8 RID: 28840 + public new const int Size = 13; + } + + // Token: 0x02000CB7 RID: 3255 + public class Ack : PacketAckHeader + { + // Token: 0x1700093E RID: 2366 + // (get) Token: 0x060056A3 RID: 22179 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x060056A4 RID: 22180 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x040070A9 RID: 28841 + public new const int Size = 8; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/SetLedGsUpdateCommand.cs b/Assembly-CSharp/Comio/BD15070_4/SetLedGsUpdateCommand.cs new file mode 100644 index 0000000..5542097 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/SetLedGsUpdateCommand.cs @@ -0,0 +1,87 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000530 RID: 1328 + public class SetLedGsUpdateCommand : CommandBase + { + // Token: 0x06002A88 RID: 10888 RVA: 0x00124A9A File Offset: 0x00123C9A + public override byte GetCommandNo() + { + return 60; + } + + // Token: 0x06002A89 RID: 10889 RVA: 0x00118752 File Offset: 0x00117952 + public override byte GetLength() + { + return 6; + } + + // Token: 0x06002A8A RID: 10890 RVA: 0x00124A9E File Offset: 0x00123C9E + public override PacketReqHeader CreateReq() + { + return new SetLedGsUpdateCommand.Req(); + } + + // Token: 0x06002A8B RID: 10891 RVA: 0x00124AA5 File Offset: 0x00123CA5 + public override PacketAckHeader CreateAck() + { + return new SetLedGsUpdateCommand.Ack(); + } + + // Token: 0x06002A8D RID: 10893 RVA: 0x00003598 File Offset: 0x00002798 + public override void DoRecv() + { + } + + // Token: 0x02000CB8 RID: 3256 + public class Req : PacketReqHeader + { + // Token: 0x060056A6 RID: 22182 RVA: 0x001B78EA File Offset: 0x001B6AEA + public Req() + : base(6) + { + } + + // Token: 0x1700093F RID: 2367 + // (get) Token: 0x060056A7 RID: 22183 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x060056A8 RID: 22184 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte sum + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x040070AA RID: 28842 + public new const int Size = 6; + } + + // Token: 0x02000CB9 RID: 3257 + public class Ack : PacketAckHeader + { + // Token: 0x17000940 RID: 2368 + // (get) Token: 0x060056A9 RID: 22185 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x060056AA RID: 22186 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x040070AB RID: 28843 + public new const int Size = 8; + } + } +} diff --git a/Assembly-CSharp/Comio/BD15070_4/SetTimeoutCommand.cs b/Assembly-CSharp/Comio/BD15070_4/SetTimeoutCommand.cs new file mode 100644 index 0000000..521bd85 --- /dev/null +++ b/Assembly-CSharp/Comio/BD15070_4/SetTimeoutCommand.cs @@ -0,0 +1,109 @@ +using System; + +namespace Comio.BD15070_4 +{ + // Token: 0x02000531 RID: 1329 + public class SetTimeoutCommand : CommandBase + { + // Token: 0x06002A8E RID: 10894 RVA: 0x00124AAC File Offset: 0x00123CAC + public override byte GetCommandNo() + { + return 17; + } + + // Token: 0x06002A8F RID: 10895 RVA: 0x0011884C File Offset: 0x00117A4C + public override byte GetLength() + { + return 7; + } + + // Token: 0x06002A90 RID: 10896 RVA: 0x00124AB0 File Offset: 0x00123CB0 + public override PacketReqHeader CreateReq() + { + return new SetTimeoutCommand.Req(); + } + + // Token: 0x06002A91 RID: 10897 RVA: 0x00124AB7 File Offset: 0x00123CB7 + public override PacketAckHeader CreateAck() + { + return new SetTimeoutCommand.Ack(); + } + + // Token: 0x06002A93 RID: 10899 RVA: 0x00124817 File Offset: 0x00123A17 + public override void DoRecv() + { + int count = this.AckPacket.Count; + } + + // Token: 0x06002A94 RID: 10900 RVA: 0x00124ABE File Offset: 0x00123CBE + public void setTimeout(byte timeout) + { + ((SetTimeoutCommand.Req)this.ReqPacket).timeout = timeout; + } + + // Token: 0x02000CBA RID: 3258 + public class Req : PacketReqHeader + { + // Token: 0x060056AC RID: 22188 RVA: 0x001B7A1A File Offset: 0x001B6C1A + public Req() + : base(7) + { + } + + // Token: 0x17000941 RID: 2369 + // (get) Token: 0x060056AD RID: 22189 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x060056AE RID: 22190 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte timeout + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x17000942 RID: 2370 + // (get) Token: 0x060056AF RID: 22191 RVA: 0x00122DA9 File Offset: 0x00121FA9 + // (set) Token: 0x060056B0 RID: 22192 RVA: 0x00122DB2 File Offset: 0x00121FB2 + public byte sum + { + get + { + return base[6]; + } + set + { + base[6] = value; + } + } + + // Token: 0x040070AC RID: 28844 + public new const int Size = 7; + } + + // Token: 0x02000CBB RID: 3259 + public class Ack : PacketAckHeader + { + // Token: 0x17000943 RID: 2371 + // (get) Token: 0x060056B1 RID: 22193 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x060056B2 RID: 22194 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x040070AD RID: 28845 + public new const int Size = 8; + } + } +} diff --git a/Assembly-CSharp/Comio/BoardBase.cs b/Assembly-CSharp/Comio/BoardBase.cs new file mode 100644 index 0000000..c987883 --- /dev/null +++ b/Assembly-CSharp/Comio/BoardBase.cs @@ -0,0 +1,59 @@ +using System; + +namespace Comio +{ + // Token: 0x02000509 RID: 1289 + public abstract class BoardBase + { + // Token: 0x06002917 RID: 10519 + public abstract BoardCtrlBase GetCtrlBase(); + + // Token: 0x06002918 RID: 10520 RVA: 0x00121299 File Offset: 0x00120499 + public bool IsInitBoard() + { + return this.GetCtrlBase().IsInitBoard(); + } + + // Token: 0x06002919 RID: 10521 RVA: 0x001212A6 File Offset: 0x001204A6 + public bool CheckFirmVersion(byte boardVersion, byte fileVersion) + { + return this.GetCtrlBase().CheckFirmVersion(boardVersion, fileVersion); + } + + // Token: 0x0600291A RID: 10522 RVA: 0x001212B5 File Offset: 0x001204B5 + public bool ReqHalt() + { + return this.GetCtrlBase().ReqHalt(); + } + + // Token: 0x0600291B RID: 10523 RVA: 0x001212C2 File Offset: 0x001204C2 + public bool IsHalted() + { + return this.GetCtrlBase().IsHalted(); + } + + // Token: 0x0600291C RID: 10524 RVA: 0x001212CF File Offset: 0x001204CF + public virtual void Reset() + { + this.GetCtrlBase().Reset(); + } + + // Token: 0x0600291D RID: 10525 RVA: 0x001212DC File Offset: 0x001204DC + public byte GetBoardNodeId() + { + return this.GetCtrlBase().GetBoardNodeId(); + } + + // Token: 0x0600291E RID: 10526 RVA: 0x001212E9 File Offset: 0x001204E9 + public bool IsBoardSpecInfoRecv() + { + return this.GetCtrlBase().IsBoardSpecInfoRecv(); + } + + // Token: 0x0600291F RID: 10527 RVA: 0x001212F6 File Offset: 0x001204F6 + public BoardSpecInfo GetBoardSpecInfo() + { + return this.GetCtrlBase().GetBoardSpecInfo(); + } + } +} diff --git a/Assembly-CSharp/Comio/BoardCtrlBase.cs b/Assembly-CSharp/Comio/BoardCtrlBase.cs new file mode 100644 index 0000000..0d7ef63 --- /dev/null +++ b/Assembly-CSharp/Comio/BoardCtrlBase.cs @@ -0,0 +1,419 @@ +using System; +using System.Collections.Generic; + +namespace Comio +{ + // Token: 0x0200050A RID: 1290 + public class BoardCtrlBase + { + // Token: 0x06002921 RID: 10529 RVA: 0x00121304 File Offset: 0x00120504 + public BoardCtrlBase(byte boardNodeId) + { + this.BoardNodeId = boardNodeId; + this.Cs = new object(); + this.InitBoard = false; + this.BoardSpecInfoRecv = false; + this.BoardSpecInfo = new BoardSpecInfo(); + this.Command = new BoardCtrlBase.CommandMap(); + this.Queue = new BoardCtrlBase.PacketQueue(); + this.QueueFet = new BoardCtrlBase.PacketQueue(); + this.ExecCommandNo = 0; + } + + // Token: 0x06002922 RID: 10530 RVA: 0x00003598 File Offset: 0x00002798 + public virtual void Initialize() + { + } + + // Token: 0x06002923 RID: 10531 RVA: 0x00003598 File Offset: 0x00002798 + public virtual void Terminate() + { + } + + // Token: 0x06002924 RID: 10532 RVA: 0x00003598 File Offset: 0x00002798 + public virtual void Execute() + { + } + + // Token: 0x06002925 RID: 10533 RVA: 0x00003598 File Offset: 0x00002798 + public virtual void ExecThread() + { + } + + // Token: 0x06002926 RID: 10534 RVA: 0x00003598 File Offset: 0x00002798 + public virtual void NotifyBaseError(BoardCtrlBase.BaseErrorNo baseErrorNo) + { + } + + // Token: 0x06002927 RID: 10535 RVA: 0x0012136C File Offset: 0x0012056C + public virtual bool IsInitBoard() + { + object cs = this.Cs; + bool initBoard; + lock (cs) + { + initBoard = this.InitBoard; + } + return initBoard; + } + + // Token: 0x06002928 RID: 10536 RVA: 0x001213B0 File Offset: 0x001205B0 + public virtual bool CheckFirmVersion(byte boardVersion, byte fileVersion) + { + return new FirmInfo + { + Revision = boardVersion + }.CheckFirmVersion(fileVersion); + } + + // Token: 0x06002929 RID: 10537 RVA: 0x001213C4 File Offset: 0x001205C4 + public virtual bool ReqHalt() + { + object cs = this.Cs; + bool flag2; + lock (cs) + { + flag2 = false; + } + return flag2; + } + + // Token: 0x0600292A RID: 10538 RVA: 0x00121404 File Offset: 0x00120604 + public virtual bool IsHalted() + { + object cs = this.Cs; + bool flag2; + lock (cs) + { + flag2 = false; + } + return flag2; + } + + // Token: 0x0600292B RID: 10539 RVA: 0x00121444 File Offset: 0x00120644 + public virtual void Reset() + { + object cs = this.Cs; + lock (cs) + { + } + } + + // Token: 0x0600292C RID: 10540 RVA: 0x00121480 File Offset: 0x00120680 + public byte GetBoardNodeId() + { + object cs = this.Cs; + byte boardNodeId; + lock (cs) + { + boardNodeId = this.BoardNodeId; + } + return boardNodeId; + } + + // Token: 0x0600292D RID: 10541 RVA: 0x001214C4 File Offset: 0x001206C4 + public bool IsBoardSpecInfoRecv() + { + object cs = this.Cs; + bool boardSpecInfoRecv; + lock (cs) + { + boardSpecInfoRecv = this.BoardSpecInfoRecv; + } + return boardSpecInfoRecv; + } + + // Token: 0x0600292E RID: 10542 RVA: 0x00121508 File Offset: 0x00120708 + public BoardSpecInfo GetBoardSpecInfo() + { + object cs = this.Cs; + BoardSpecInfo boardSpecInfo; + lock (cs) + { + boardSpecInfo = this.BoardSpecInfo; + } + return boardSpecInfo; + } + + // Token: 0x0600292F RID: 10543 RVA: 0x0012154C File Offset: 0x0012074C + public bool ExecCommand(byte cmdNo) + { + CommandBase commandBase; + if (!this.Command.TryGetValue(cmdNo, out commandBase)) + { + return false; + } + switch (commandBase.GetComState().GetEnum()) + { + case ComState.Def.Begin: + if (commandBase.ReqSend()) + { + this.Queue.Enqueue(commandBase.GetReq()); + } + break; + case ComState.Def.Complete: + commandBase.SetComState(ComState.Def.Begin); + return true; + } + return false; + } + + // Token: 0x06002930 RID: 10544 RVA: 0x001215C0 File Offset: 0x001207C0 + public bool ExecCommand(CommandBase cmd) + { + return this.ExecCommand(cmd.GetCommandNo()); + } + + // Token: 0x06002931 RID: 10545 RVA: 0x001215D0 File Offset: 0x001207D0 + public bool SendCommand(byte cmdNo) + { + CommandBase commandBase; + if (this.Command.TryGetValue(cmdNo, out commandBase) && commandBase.ReqSend()) + { + this.Queue.Enqueue(commandBase.GetReq()); + return true; + } + return false; + } + + // Token: 0x06002932 RID: 10546 RVA: 0x00121609 File Offset: 0x00120809 + public bool SendCommand(CommandBase cmd) + { + return this.SendCommand(cmd.GetCommandNo()); + } + + // Token: 0x06002933 RID: 10547 RVA: 0x00121618 File Offset: 0x00120818 + public bool SendtoCommand(byte cmdNo) + { + CommandBase commandBase; + if (this.Command.TryGetValue(cmdNo, out commandBase) && commandBase.ReqSendto()) + { + this.Queue.Enqueue(commandBase.GetReq()); + return true; + } + return false; + } + + // Token: 0x06002934 RID: 10548 RVA: 0x00121651 File Offset: 0x00120851 + public void SendtoCommand(CommandBase cmd) + { + this.SendtoCommand(cmd.GetCommandNo()); + } + + // Token: 0x06002935 RID: 10549 RVA: 0x00121660 File Offset: 0x00120860 + public void SendForceCommand(CommandBase cmd) + { + if (cmd.GetCommandNo() == 57) + { + this.QueueFet.Clear(); + this.QueueFet.Enqueue(cmd.GetReq()); + return; + } + this.Queue.Enqueue(cmd.GetReq()); + } + + // Token: 0x06002936 RID: 10550 RVA: 0x0012169A File Offset: 0x0012089A + protected void InitBase() + { + this.InitBoard = false; + this.ResetRegisteredCommand(); + } + + // Token: 0x06002937 RID: 10551 RVA: 0x001216A9 File Offset: 0x001208A9 + public bool RegisterCommand(byte cmdNo, CommandBase cmd) + { + if (!this.Command.ContainsKey(cmdNo)) + { + this.Command[cmdNo] = cmd; + return true; + } + return false; + } + + // Token: 0x06002938 RID: 10552 RVA: 0x001216C9 File Offset: 0x001208C9 + public void InitCommand(CommandBase cmd, byte cmdNo, byte length = 0) + { + PacketReqHeader req = cmd.GetReq(); + req.sync = 224; + req.dstNodeID = this.GetBoardNodeId(); + req.srcNodeID = 1; + req.length = length - 5; + req.command = cmdNo; + } + + // Token: 0x06002939 RID: 10553 RVA: 0x001216FF File Offset: 0x001208FF + public bool InitAndRegisterCommand(CommandBase cmd, byte cmdNo, byte length) + { + this.InitCommand(cmd, cmdNo, length); + return this.RegisterCommand(cmdNo, cmd); + } + + // Token: 0x0600293A RID: 10554 RVA: 0x00121712 File Offset: 0x00120912 + public bool InitAndRegisterCommand(CommandBase cmd) + { + return this.InitAndRegisterCommand(cmd, cmd.GetCommandNo(), cmd.GetLength()); + } + + // Token: 0x0600293B RID: 10555 RVA: 0x00121728 File Offset: 0x00120928 + public void ResetRegisteredCommand() + { + foreach (KeyValuePair keyValuePair in this.Command) + { + keyValuePair.Value.Reset(); + } + } + + // Token: 0x0600293C RID: 10556 RVA: 0x00121780 File Offset: 0x00120980 + public void ClearErrorRegisteredCommand() + { + foreach (KeyValuePair keyValuePair in this.Command) + { + keyValuePair.Value.ClearError(); + } + } + + // Token: 0x0600293D RID: 10557 RVA: 0x001217D8 File Offset: 0x001209D8 + public void UpdateCommand(BoardCtrlBase.PacketQueue sendPacketQueue) + { + object cs = this.Cs; + lock (cs) + { + while (this.Queue.Count > 0) + { + sendPacketQueue.Enqueue(this.Queue.Dequeue()); + } + while (this.QueueFet.Count > 0) + { + sendPacketQueue.Enqueue(this.QueueFet.Dequeue()); + } + foreach (KeyValuePair keyValuePair in this.Command) + { + CommandBase value = keyValuePair.Value; + bool flag2; + if (value.IsReportError()) + { + this.NotifyBaseError(BoardCtrlBase.BaseErrorNo.BaseErrorNoReportError); + } + else if (value.IsRecvError()) + { + this.NotifyBaseError(BoardCtrlBase.BaseErrorNo.BaseErrorNoRecvError); + } + else if (value.IsComError()) + { + this.NotifyBaseError(BoardCtrlBase.BaseErrorNo.BaseErrorNoComError); + } + else if (value.CheckTimeout(out flag2)) + { + if (flag2) + { + this.NotifyBaseError(BoardCtrlBase.BaseErrorNo.BaseErrorNoTimeout); + } + } + else if (value.GetComState() == ComState.Def.WaitSend) + { + if (value.GetRetryCount() != 0) + { + sendPacketQueue.Enqueue(value.GetReq()); + } + value.SetComState(ComState.Def.WaitRecv); + } + } + } + } + + // Token: 0x0600293E RID: 10558 RVA: 0x00121934 File Offset: 0x00120B34 + public void AcceptRecv(Packet packet) + { + object cs = this.Cs; + lock (cs) + { + PacketAckHeader packetAckHeader = (PacketAckHeader)packet; + byte b; + if (packetAckHeader.status == 1 && packetAckHeader.report == 1) + { + b = packetAckHeader.command; + } + else + { + b = this.ExecCommandNo; + } + CommandBase commandBase; + if (this.Command.TryGetValue(b, out commandBase)) + { + commandBase.AcceptRecv(packet); + } + } + } + + // Token: 0x0600293F RID: 10559 RVA: 0x001219B0 File Offset: 0x00120BB0 + public void SetExecCommandNo(byte no) + { + object cs = this.Cs; + lock (cs) + { + this.ExecCommandNo = no; + } + } + + // Token: 0x04003B1E RID: 15134 + protected byte BoardNodeId; + + // Token: 0x04003B1F RID: 15135 + protected object Cs; + + // Token: 0x04003B20 RID: 15136 + protected bool InitBoard; + + // Token: 0x04003B21 RID: 15137 + protected bool BoardSpecInfoRecv; + + // Token: 0x04003B22 RID: 15138 + protected BoardSpecInfo BoardSpecInfo; + + // Token: 0x04003B23 RID: 15139 + protected BoardCtrlBase.CommandMap Command; + + // Token: 0x04003B24 RID: 15140 + protected BoardCtrlBase.PacketQueue Queue; + + // Token: 0x04003B25 RID: 15141 + protected BoardCtrlBase.PacketQueue QueueFet; + + // Token: 0x04003B26 RID: 15142 + protected byte ExecCommandNo; + + // Token: 0x02000C8A RID: 3210 + public class PacketQueue : Queue + { + // Token: 0x060055FC RID: 22012 RVA: 0x001B78CF File Offset: 0x001B6ACF + public bool Empty() + { + return base.Count == 0; + } + } + + // Token: 0x02000C8B RID: 3211 + public class CommandMap : Dictionary + { + } + + // Token: 0x02000C8C RID: 3212 + public enum BaseErrorNo + { + // Token: 0x0400702F RID: 28719 + BaseErrorNoNone, + // Token: 0x04007030 RID: 28720 + BaseErrorNoTimeout, + // Token: 0x04007031 RID: 28721 + BaseErrorNoReportError, + // Token: 0x04007032 RID: 28722 + BaseErrorNoRecvError, + // Token: 0x04007033 RID: 28723 + BaseErrorNoComError, + // Token: 0x04007034 RID: 28724 + BaseErrorNoSumError, + // Token: 0x04007035 RID: 28725 + BaseErrorNoEnd + } + } +} diff --git a/Assembly-CSharp/Comio/BoardNo.cs b/Assembly-CSharp/Comio/BoardNo.cs new file mode 100644 index 0000000..720e27f --- /dev/null +++ b/Assembly-CSharp/Comio/BoardNo.cs @@ -0,0 +1,29 @@ +using System; + +namespace Comio +{ + // Token: 0x02000505 RID: 1285 + public class BoardNo + { + // Token: 0x0600290B RID: 10507 RVA: 0x00121166 File Offset: 0x00120366 + public BoardNo(string text = "") + { + this.Text = text; + } + + // Token: 0x0600290C RID: 10508 RVA: 0x00121175 File Offset: 0x00120375 + public void Clear() + { + this.Text = ""; + } + + // Token: 0x0600290D RID: 10509 RVA: 0x00121182 File Offset: 0x00120382 + public bool IsEqual(BoardNo no) + { + return this.Text == no.Text; + } + + // Token: 0x04003B16 RID: 15126 + public string Text; + } +} diff --git a/Assembly-CSharp/Comio/BoardSpecInfo.cs b/Assembly-CSharp/Comio/BoardSpecInfo.cs new file mode 100644 index 0000000..32bf662 --- /dev/null +++ b/Assembly-CSharp/Comio/BoardSpecInfo.cs @@ -0,0 +1,27 @@ +using System; + +namespace Comio +{ + // Token: 0x02000507 RID: 1287 + public class BoardSpecInfo + { + // Token: 0x06002913 RID: 10515 RVA: 0x00121202 File Offset: 0x00120402 + public void Clear() + { + this.BoardNo.Clear(); + this.FirmInfo.Clear(); + } + + // Token: 0x06002914 RID: 10516 RVA: 0x0012121C File Offset: 0x0012041C + public void Dump() + { + ComioLog.Log("" + "BoardSpecInfo.dump\n" + " boardNo : " + this.BoardNo.Text + "\n" + " firmRev : " + this.FirmInfo.Revision.ToString() + "\n"); + } + + // Token: 0x04003B1C RID: 15132 + public BoardNo BoardNo = new BoardNo(""); + + // Token: 0x04003B1D RID: 15133 + public FirmInfo FirmInfo = new FirmInfo(); + } +} diff --git a/Assembly-CSharp/Comio/ComParam.cs b/Assembly-CSharp/Comio/ComParam.cs new file mode 100644 index 0000000..753af02 --- /dev/null +++ b/Assembly-CSharp/Comio/ComParam.cs @@ -0,0 +1,36 @@ +using System; +using System.IO.Ports; + +namespace Comio +{ + // Token: 0x02000504 RID: 1284 + public class ComParam + { + // Token: 0x04003B0D RID: 15117 + public int BaudRate; + + // Token: 0x04003B0E RID: 15118 + public int DataBits; + + // Token: 0x04003B0F RID: 15119 + public bool DtrEnable; + + // Token: 0x04003B10 RID: 15120 + public bool RtsEnable; + + // Token: 0x04003B11 RID: 15121 + public int ReadTimeout; + + // Token: 0x04003B12 RID: 15122 + public int WriteTimeout; + + // Token: 0x04003B13 RID: 15123 + public Parity Parity; + + // Token: 0x04003B14 RID: 15124 + public StopBits StopBits; + + // Token: 0x04003B15 RID: 15125 + public Handshake Handshake; + } +} diff --git a/Assembly-CSharp/Comio/ComState.cs b/Assembly-CSharp/Comio/ComState.cs new file mode 100644 index 0000000..c49b06b --- /dev/null +++ b/Assembly-CSharp/Comio/ComState.cs @@ -0,0 +1,93 @@ +using System; + +namespace Comio +{ + // Token: 0x0200050E RID: 1294 + public struct ComState + { + // Token: 0x06002967 RID: 10599 RVA: 0x00121EC4 File Offset: 0x001210C4 + public ComState(ComState.Def state) + { + this._value = state; + } + + // Token: 0x06002968 RID: 10600 RVA: 0x00121ECD File Offset: 0x001210CD + public static implicit operator ComState(ComState.Def val) + { + return new ComState(val); + } + + // Token: 0x06002969 RID: 10601 RVA: 0x00121ED5 File Offset: 0x001210D5 + public static bool operator ==(ComState state, ComState.Def def) + { + return state._value == def; + } + + // Token: 0x0600296A RID: 10602 RVA: 0x00121EE0 File Offset: 0x001210E0 + public static bool operator !=(ComState state, ComState.Def def) + { + return !(state == def); + } + + // Token: 0x0600296B RID: 10603 RVA: 0x00121EEC File Offset: 0x001210EC + public ComState.Def GetEnum() + { + return this._value; + } + + // Token: 0x0600296C RID: 10604 RVA: 0x00121EF4 File Offset: 0x001210F4 + public string GetString() + { + return this._value.ToString(); + } + + // Token: 0x0600296D RID: 10605 RVA: 0x00121F08 File Offset: 0x00121108 + public bool IsBusy() + { + switch (this._value) + { + case ComState.Def.WaitSend: + return true; + case ComState.Def.WaitRecv: + return true; + } + return false; + } + + // Token: 0x0600296E RID: 10606 RVA: 0x000B6378 File Offset: 0x000B5578 + public override bool Equals(object obj) + { + return true; + } + + // Token: 0x0600296F RID: 10607 RVA: 0x00005B9A File Offset: 0x00004D9A + public override int GetHashCode() + { + return 0; + } + + // Token: 0x04003B39 RID: 15161 + private ComState.Def _value; + + // Token: 0x02000C91 RID: 3217 + public enum Def + { + // Token: 0x0400703B RID: 28731 + Begin, + // Token: 0x0400703C RID: 28732 + None = 0, + // Token: 0x0400703D RID: 28733 + WaitSend, + // Token: 0x0400703E RID: 28734 + WaitRecv, + // Token: 0x0400703F RID: 28735 + Timeout, + // Token: 0x04007040 RID: 28736 + Complete, + // Token: 0x04007041 RID: 28737 + End, + // Token: 0x04007042 RID: 28738 + Invalid = -1 + } + } +} diff --git a/Assembly-CSharp/Comio/ComioLog.cs b/Assembly-CSharp/Comio/ComioLog.cs new file mode 100644 index 0000000..122ae78 --- /dev/null +++ b/Assembly-CSharp/Comio/ComioLog.cs @@ -0,0 +1,13 @@ +using System; + +namespace Comio +{ + // Token: 0x02000508 RID: 1288 + public static class ComioLog + { + // Token: 0x06002916 RID: 10518 RVA: 0x00003598 File Offset: 0x00002798 + public static void Log(string text) + { + } + } +} diff --git a/Assembly-CSharp/Comio/CommandBase.cs b/Assembly-CSharp/Comio/CommandBase.cs new file mode 100644 index 0000000..00cb4a0 --- /dev/null +++ b/Assembly-CSharp/Comio/CommandBase.cs @@ -0,0 +1,320 @@ +using System; +using System.Diagnostics; + +namespace Comio +{ + // Token: 0x0200050B RID: 1291 + public abstract class CommandBase + { + // Token: 0x06002940 RID: 10560 RVA: 0x001219F4 File Offset: 0x00120BF4 + protected CommandBase() + { + this.ComState = ComState.Def.Begin; + this.ReqPacket = this.CreateReq(); + this.AckPacket = this.CreateAck(); + this.IsSendOnly = false; + this.IsRecvOnlyCheckTimeout = false; + this.RetryCount = 0; + this.ComErrorCount = 0; + this.ReportError = false; + this.RecvError = false; + this.Timeout = 500U; + this._stopWatch = new Stopwatch(); + this._stopWatch.Start(); + this._timerValue = 0L; + } + + // Token: 0x06002941 RID: 10561 + public abstract byte GetCommandNo(); + + // Token: 0x06002942 RID: 10562 + public abstract byte GetLength(); + + // Token: 0x06002943 RID: 10563 + public abstract PacketReqHeader CreateReq(); + + // Token: 0x06002944 RID: 10564 + public abstract PacketAckHeader CreateAck(); + + // Token: 0x06002945 RID: 10565 RVA: 0x00121A7E File Offset: 0x00120C7E + public void Reset() + { + this.ComState = ComState.Def.Begin; + this.IsRecvOnlyCheckTimeout = false; + this.RetryCount = 0; + this.ComErrorCount = 0; + this.ReportError = false; + this.RecvError = false; + } + + // Token: 0x06002946 RID: 10566 + public abstract void DoRecv(); + + // Token: 0x06002947 RID: 10567 RVA: 0x00121AB0 File Offset: 0x00120CB0 + public void AcceptRecv(Packet packet) + { + PacketAckHeader packetAckHeader = (PacketAckHeader)packet; + this._timerValue = 0L; + AckStatus status = (AckStatus)packetAckHeader.status; + if (status != AckStatus.Ok) + { + if (status - AckStatus.SumError > 4) + { + if (status != AckStatus.AckStatusInvalid) + { + } + this.RecvError = true; + this.ComState = ComState.Def.Complete; + return; + } + byte b = this.ComErrorCount + 1; + this.ComErrorCount = b; + if (b < 3) + { + this.ComState = ComState.Def.WaitSend; + return; + } + this.ComState = ComState.Def.Complete; + return; + } + else + { + switch (packetAckHeader.report) + { + case 1: + this.AckPacket.setBuffer(packetAckHeader); + this.ComState = ComState.Def.Complete; + this.DoRecv(); + return; + case 2: + { + byte b = this.ComErrorCount + 1; + this.ComErrorCount = b; + if (b < 3) + { + this.ComState = ComState.Def.WaitSend; + return; + } + this.ComState = ComState.Def.Complete; + return; + } + case 3: + case 4: + this.ReportError = true; + this.ComState = ComState.Def.Complete; + return; + default: + this.RecvError = true; + this.ComState = ComState.Def.Complete; + return; + } + } + } + + // Token: 0x06002948 RID: 10568 RVA: 0x00121BC9 File Offset: 0x00120DC9 + public ComState GetComState() + { + return this.ComState; + } + + // Token: 0x06002949 RID: 10569 RVA: 0x00121BD1 File Offset: 0x00120DD1 + public void SetComState(ComState comState) + { + this.ComState = comState; + } + + // Token: 0x0600294A RID: 10570 RVA: 0x00121BDA File Offset: 0x00120DDA + public void SetRecvOnlyTimeout(uint timeout) + { + if (timeout == 0U) + { + this.IsRecvOnlyCheckTimeout = false; + return; + } + if (timeout < 500U) + { + timeout = 500U; + } + this._timerValue = 0L; + this.Timeout = timeout; + this.IsRecvOnlyCheckTimeout = true; + } + + // Token: 0x0600294B RID: 10571 RVA: 0x00121C0C File Offset: 0x00120E0C + public void SetTimeout(uint value) + { + this.Timeout = value; + } + + // Token: 0x0600294C RID: 10572 RVA: 0x00121C15 File Offset: 0x00120E15 + public PacketReqHeader GetReq() + { + return this.ReqPacket; + } + + // Token: 0x0600294D RID: 10573 RVA: 0x00121C1D File Offset: 0x00120E1D + public PacketAckHeader GetAck() + { + return this.AckPacket; + } + + // Token: 0x0600294E RID: 10574 RVA: 0x00121C25 File Offset: 0x00120E25 + public byte GetRetryCount() + { + return this.RetryCount; + } + + // Token: 0x0600294F RID: 10575 RVA: 0x00121C30 File Offset: 0x00120E30 + public bool ReqSend() + { + if (!this.ComState.IsBusy()) + { + this.ComState = ComState.Def.WaitSend; + this.IsSendOnly = false; + this.RetryCount = 0; + this._timerValue = 0L; + this.ComErrorCount = 0; + this.ReportError = false; + this.RecvError = false; + return true; + } + return false; + } + + // Token: 0x06002950 RID: 10576 RVA: 0x00121C84 File Offset: 0x00120E84 + public bool ReqSendto() + { + if (this.ComState != ComState.Def.WaitSend) + { + this.ComState = ComState.Def.WaitSend; + this.IsSendOnly = true; + this.RetryCount = 0; + this._timerValue = 0L; + this.ComErrorCount = 0; + this.ReportError = false; + this.RecvError = false; + return true; + } + return false; + } + + // Token: 0x06002951 RID: 10577 RVA: 0x00121CD9 File Offset: 0x00120ED9 + public bool IsRecv() + { + return this.ComState == ComState.Def.Complete; + } + + // Token: 0x06002952 RID: 10578 RVA: 0x00121CEC File Offset: 0x00120EEC + public bool CheckTimeout(out bool isJustHappen) + { + isJustHappen = false; + if (this.IsSendOnly) + { + return false; + } + if (this.ComState == ComState.Def.Timeout) + { + return true; + } + long elapsedMilliseconds = this._stopWatch.ElapsedMilliseconds; + if (elapsedMilliseconds < 1000L) + { + this._timerValue += elapsedMilliseconds; + } + this._stopWatch.Reset(); + this._stopWatch.Start(); + if ((this.ComState.IsBusy() || this.IsRecvOnlyCheckTimeout) && this._timerValue > (long)((ulong)this.Timeout)) + { + byte b = this.RetryCount + 1; + this.RetryCount = b; + if (b >= 3) + { + this.ComState = ComState.Def.Timeout; + isJustHappen = true; + return true; + } + this._timerValue = 0L; + if (!this.IsRecvOnlyCheckTimeout) + { + this.ComState = ComState.Def.WaitSend; + } + } + return false; + } + + // Token: 0x06002953 RID: 10579 RVA: 0x00121DB6 File Offset: 0x00120FB6 + public bool IsComError() + { + return this.ComErrorCount >= 3; + } + + // Token: 0x06002954 RID: 10580 RVA: 0x00121DC4 File Offset: 0x00120FC4 + public bool IsReportError() + { + return this.ReportError; + } + + // Token: 0x06002955 RID: 10581 RVA: 0x00121DCC File Offset: 0x00120FCC + public bool IsRecvError() + { + return this.RecvError; + } + + // Token: 0x06002956 RID: 10582 RVA: 0x00121DD4 File Offset: 0x00120FD4 + public void ClearError() + { + this.RetryCount = 0; + this.ComErrorCount = 0; + this.ReportError = false; + this.RecvError = false; + this._stopWatch.Reset(); + this._stopWatch.Start(); + this._timerValue = 0L; + } + + // Token: 0x04003B27 RID: 15143 + private const uint TimeoutDef = 500U; + + // Token: 0x04003B28 RID: 15144 + private const uint RetryCountDef = 3U; + + // Token: 0x04003B29 RID: 15145 + private const uint RecvOnlyTimeoutMin = 500U; + + // Token: 0x04003B2A RID: 15146 + protected ComState ComState; + + // Token: 0x04003B2B RID: 15147 + protected PacketReqHeader ReqPacket; + + // Token: 0x04003B2C RID: 15148 + protected PacketAckHeader AckPacket; + + // Token: 0x04003B2D RID: 15149 + protected bool IsSendOnly; + + // Token: 0x04003B2E RID: 15150 + protected bool IsRecvOnlyCheckTimeout; + + // Token: 0x04003B2F RID: 15151 + protected byte RetryCount; + + // Token: 0x04003B30 RID: 15152 + protected byte ComErrorCount; + + // Token: 0x04003B31 RID: 15153 + protected bool ReportError; + + // Token: 0x04003B32 RID: 15154 + protected bool RecvError; + + // Token: 0x04003B33 RID: 15155 + protected uint Timeout; + + // Token: 0x04003B34 RID: 15156 + private readonly Stopwatch _stopWatch; + + // Token: 0x04003B35 RID: 15157 + private long _timerValue; + } +} diff --git a/Assembly-CSharp/Comio/Def.cs b/Assembly-CSharp/Comio/Def.cs new file mode 100644 index 0000000..322639f --- /dev/null +++ b/Assembly-CSharp/Comio/Def.cs @@ -0,0 +1,38 @@ +using System; + +namespace Comio +{ + // Token: 0x02000503 RID: 1283 + public class Def + { + // Token: 0x04003B03 RID: 15107 + public const byte InvalidCommandNo = 0; + + // Token: 0x04003B04 RID: 15108 + public const int SendTimeoutDef = 1; + + // Token: 0x04003B05 RID: 15109 + public const int RecvTimeoutDef = 1; + + // Token: 0x04003B06 RID: 15110 + public const int CtrlIntervalDef = 16; + + // Token: 0x04003B07 RID: 15111 + public const byte SyncCode = 224; + + // Token: 0x04003B08 RID: 15112 + public const byte MarkerCode = 208; + + // Token: 0x04003B09 RID: 15113 + public const uint PacketDataSizeMax = 33U; + + // Token: 0x04003B0A RID: 15114 + public const uint PacketSizeMax = 76U; + + // Token: 0x04003B0B RID: 15115 + public const byte BroadCastNodeID = 0; + + // Token: 0x04003B0C RID: 15116 + public const byte HostNodeID = 1; + } +} diff --git a/Assembly-CSharp/Comio/FirmInfo.cs b/Assembly-CSharp/Comio/FirmInfo.cs new file mode 100644 index 0000000..7d511eb --- /dev/null +++ b/Assembly-CSharp/Comio/FirmInfo.cs @@ -0,0 +1,61 @@ +using System; + +namespace Comio +{ + // Token: 0x02000506 RID: 1286 + public class FirmInfo + { + // Token: 0x0600290E RID: 10510 RVA: 0x00121195 File Offset: 0x00120395 + public void Clear() + { + this.FirmAppli = false; + this.Revision = 0; + this.Major = 0; + this.Minor = 0; + this.Sum = 0; + } + + // Token: 0x0600290F RID: 10511 RVA: 0x001211BA File Offset: 0x001203BA + public bool IsAppliMode() + { + return this.FirmAppli; + } + + // Token: 0x06002910 RID: 10512 RVA: 0x001211C4 File Offset: 0x001203C4 + public bool CheckFirmVersion(byte version) + { + bool flag = true; + if (version != 0 && version > this.Revision) + { + flag = false; + } + return flag; + } + + // Token: 0x06002911 RID: 10513 RVA: 0x001211E4 File Offset: 0x001203E4 + public bool CheckFirmVersionSame(byte version) + { + bool flag = true; + if (version != 0 && version != this.Revision) + { + flag = false; + } + return flag; + } + + // Token: 0x04003B17 RID: 15127 + public bool FirmAppli; + + // Token: 0x04003B18 RID: 15128 + public byte Revision; + + // Token: 0x04003B19 RID: 15129 + public byte Major; + + // Token: 0x04003B1A RID: 15130 + public byte Minor; + + // Token: 0x04003B1B RID: 15131 + public ushort Sum; + } +} diff --git a/Assembly-CSharp/Comio/GetProtocolVersionCommand.cs b/Assembly-CSharp/Comio/GetProtocolVersionCommand.cs new file mode 100644 index 0000000..6587328 --- /dev/null +++ b/Assembly-CSharp/Comio/GetProtocolVersionCommand.cs @@ -0,0 +1,174 @@ +using System; + +namespace Comio +{ + // Token: 0x0200050C RID: 1292 + public class GetProtocolVersionCommand : CommandBase + { + // Token: 0x06002957 RID: 10583 RVA: 0x00121E10 File Offset: 0x00121010 + public override byte GetCommandNo() + { + return 243; + } + + // Token: 0x06002958 RID: 10584 RVA: 0x00118752 File Offset: 0x00117952 + public override byte GetLength() + { + return 6; + } + + // Token: 0x06002959 RID: 10585 RVA: 0x00121E17 File Offset: 0x00121017 + public override PacketReqHeader CreateReq() + { + return new GetProtocolVersionCommand.Req(); + } + + // Token: 0x0600295A RID: 10586 RVA: 0x00121E1E File Offset: 0x0012101E + public override PacketAckHeader CreateAck() + { + return new GetProtocolVersionCommand.Ack(); + } + + // Token: 0x0600295B RID: 10587 RVA: 0x00121E25 File Offset: 0x00121025 + public GetProtocolVersionCommand() + { + this._appliMode = false; + this._major = 0; + this._minor = 0; + } + + // Token: 0x0600295C RID: 10588 RVA: 0x00121E44 File Offset: 0x00121044 + public override void DoRecv() + { + if (this.AckPacket.Count == 11) + { + GetProtocolVersionCommand.Ack ack = (GetProtocolVersionCommand.Ack)this.AckPacket; + this._appliMode = ack.appliMode != 0; + this._major = ack.major; + this._minor = ack.minor; + } + } + + // Token: 0x0600295D RID: 10589 RVA: 0x00121E96 File Offset: 0x00121096 + public bool isAppliMode() + { + return this._appliMode; + } + + // Token: 0x0600295E RID: 10590 RVA: 0x00121E9E File Offset: 0x0012109E + public byte getMajor() + { + return this._major; + } + + // Token: 0x0600295F RID: 10591 RVA: 0x00121EA6 File Offset: 0x001210A6 + public byte getMinor() + { + return this._minor; + } + + // Token: 0x04003B36 RID: 15158 + private bool _appliMode; + + // Token: 0x04003B37 RID: 15159 + private byte _major; + + // Token: 0x04003B38 RID: 15160 + private byte _minor; + + // Token: 0x02000C8D RID: 3213 + public class Req : PacketReqHeader + { + // Token: 0x060055FF RID: 22015 RVA: 0x001B78EA File Offset: 0x001B6AEA + public Req() + : base(6) + { + } + + // Token: 0x170008FE RID: 2302 + // (get) Token: 0x06005600 RID: 22016 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x06005601 RID: 22017 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte sum + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x04007036 RID: 28726 + public new const int Size = 6; + } + + // Token: 0x02000C8E RID: 3214 + public class Ack : PacketAckHeader + { + // Token: 0x170008FF RID: 2303 + // (get) Token: 0x06005602 RID: 22018 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x06005603 RID: 22019 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte appliMode + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x17000900 RID: 2304 + // (get) Token: 0x06005604 RID: 22020 RVA: 0x001B7906 File Offset: 0x001B6B06 + // (set) Token: 0x06005605 RID: 22021 RVA: 0x001B790F File Offset: 0x001B6B0F + public byte major + { + get + { + return base[8]; + } + set + { + base[8] = value; + } + } + + // Token: 0x17000901 RID: 2305 + // (get) Token: 0x06005606 RID: 22022 RVA: 0x001B7919 File Offset: 0x001B6B19 + // (set) Token: 0x06005607 RID: 22023 RVA: 0x001B7923 File Offset: 0x001B6B23 + public byte minor + { + get + { + return base[9]; + } + set + { + base[9] = value; + } + } + + // Token: 0x17000902 RID: 2306 + // (get) Token: 0x06005608 RID: 22024 RVA: 0x001B792E File Offset: 0x001B6B2E + // (set) Token: 0x06005609 RID: 22025 RVA: 0x001B7938 File Offset: 0x001B6B38 + public byte sum + { + get + { + return base[10]; + } + set + { + base[10] = value; + } + } + + // Token: 0x04007037 RID: 28727 + public new const int Size = 11; + } + } +} diff --git a/Assembly-CSharp/Comio/Host.cs b/Assembly-CSharp/Comio/Host.cs new file mode 100644 index 0000000..a731d72 --- /dev/null +++ b/Assembly-CSharp/Comio/Host.cs @@ -0,0 +1,537 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO.Ports; +using System.Threading; + +namespace Comio +{ + // Token: 0x0200050F RID: 1295 + public class Host + { + // Token: 0x06002970 RID: 10608 RVA: 0x00121F47 File Offset: 0x00121147 + [Conditional("APP_DEBUG")] + private void log(string message) + { + ComioLog.Log(message); + } + + // Token: 0x06002971 RID: 10609 RVA: 0x00121F50 File Offset: 0x00121150 + public Host() + { + Host.InitParam initParam = new Host.InitParam(); + this._construct(initParam); + } + + // Token: 0x06002972 RID: 10610 RVA: 0x00121F70 File Offset: 0x00121170 + public Host(Host.InitParam initParam) + { + this._construct(initParam); + } + + // Token: 0x06002973 RID: 10611 RVA: 0x00121F7F File Offset: 0x0012117F + public bool Initialize() + { + return this._initialize(); + } + + // Token: 0x06002974 RID: 10612 RVA: 0x00121F87 File Offset: 0x00121187 + public void Terminate() + { + this._terminate(); + } + + // Token: 0x06002975 RID: 10613 RVA: 0x00121F8F File Offset: 0x0012118F + public bool IsOpened() + { + return this._isOpened(); + } + + // Token: 0x06002976 RID: 10614 RVA: 0x00121F97 File Offset: 0x00121197 + public bool RegisterBoard(BoardBase board) + { + return this._registerBoard(board); + } + + // Token: 0x06002977 RID: 10615 RVA: 0x00121FA0 File Offset: 0x001211A0 + public bool ReqHaltBoard() + { + return this._reqHaltBoard(); + } + + // Token: 0x06002978 RID: 10616 RVA: 0x00121FA8 File Offset: 0x001211A8 + public void Execute() + { + this._execute(); + } + + // Token: 0x06002979 RID: 10617 RVA: 0x00121FB0 File Offset: 0x001211B0 + private void _construct(Host.InitParam initParam) + { + this._mode = Host.Mode.Init; + this._initParam = initParam; + this._thread = null; + this._threadExit = false; + this._initialized = false; + this._port = null; + this._boardMap = new Host.BoardMap(); + this._reqPacketQueue = new BoardCtrlBase.PacketQueue(); + this._sendPacketQueue = new BoardCtrlBase.PacketQueue(); + this._recvPacketQueue = new BoardCtrlBase.PacketQueue(); + this._writeBufferIndex = 0; + this._writeBuffer = new Packet(); + this._readBuffer = new Packet(); + this._readBufferTmp = new byte[1024]; + this._sumErrorCount = 0; + this._waitTimer = new Stopwatch(); + } + + // Token: 0x0600297A RID: 10618 RVA: 0x00122054 File Offset: 0x00121254 + private bool _initialize() + { + this._finishThread(); + this._mode = Host.Mode.Init; + this._port = new SerialPort(this._initParam.PortName, this._initParam.ComParam.BaudRate, this._initParam.ComParam.Parity, this._initParam.ComParam.DataBits, this._initParam.ComParam.StopBits) + { + DtrEnable = this._initParam.ComParam.DtrEnable, + RtsEnable = this._initParam.ComParam.RtsEnable, + ReadTimeout = this._initParam.ComParam.ReadTimeout, + WriteTimeout = this._initParam.ComParam.WriteTimeout, + Handshake = this._initParam.ComParam.Handshake + }; + try + { + this._port.Open(); + } + catch (Exception) + { + } + this._reqPacketQueue.Clear(); + this._sendPacketQueue.Clear(); + this._recvPacketQueue.Clear(); + this._boardMap.Clear(); + this._sumErrorCount = 0; + this._initialized = this._port.IsOpen; + return this._initialized; + } + + // Token: 0x0600297B RID: 10619 RVA: 0x0012219C File Offset: 0x0012139C + private void _execute() + { + switch (this._mode) + { + case Host.Mode.Init: + if (this._initialized) + { + this._mode = Host.Mode.StartThread; + return; + } + break; + case Host.Mode.StartThread: + if (this._startThread()) + { + this._mode = Host.Mode.Exec; + return; + } + break; + case Host.Mode.Exec: + if (this._initialized) + { + this._execBoard(); + return; + } + this._mode = Host.Mode.Init; + break; + default: + return; + } + } + + // Token: 0x0600297C RID: 10620 RVA: 0x001221FC File Offset: 0x001213FC + private void _terminate() + { + foreach (KeyValuePair keyValuePair in this._boardMap) + { + keyValuePair.Value.GetCtrlBase().Terminate(); + } + this._finishThread(); + if (this._port != null && this._port.IsOpen) + { + this._port.Close(); + } + this._initialized = false; + } + + // Token: 0x0600297D RID: 10621 RVA: 0x00122288 File Offset: 0x00121488 + private bool _isOpened() + { + return this._port.IsOpen; + } + + // Token: 0x0600297E RID: 10622 RVA: 0x00122298 File Offset: 0x00121498 + private bool _startThread() + { + if (this._thread == null) + { + if (this._initParam.AsyncIo) + { + throw new NotImplementedException(); + } + this._thread = new Thread(new ThreadStart(this._execSync)); + } + if (!this._thread.IsAlive) + { + this._threadExit = false; + this._thread.Start(); + } + return true; + } + + // Token: 0x0600297F RID: 10623 RVA: 0x001222F9 File Offset: 0x001214F9 + private void _finishThread() + { + if (this._thread != null && this._thread.IsAlive) + { + this._threadExit = true; + this._thread.Join(); + } + } + + // Token: 0x06002980 RID: 10624 RVA: 0x00122324 File Offset: 0x00121524 + private bool _registerBoard(BoardBase board) + { + uint boardNodeId = (uint)board.GetBoardNodeId(); + if (this._boardMap.ContainsKey(boardNodeId)) + { + return false; + } + this._boardMap[boardNodeId] = board; + board.GetCtrlBase().Initialize(); + return true; + } + + // Token: 0x06002981 RID: 10625 RVA: 0x00122364 File Offset: 0x00121564 + private bool _reqHaltBoard() + { + bool flag = true; + foreach (KeyValuePair keyValuePair in this._boardMap) + { + keyValuePair.Value.ReqHalt(); + flag = flag && keyValuePair.Value.IsHalted(); + } + return flag; + } + + // Token: 0x06002982 RID: 10626 RVA: 0x001223D4 File Offset: 0x001215D4 + private void _updateCommand() + { + foreach (KeyValuePair keyValuePair in this._boardMap) + { + BoardCtrlBase.PacketQueue packetQueue = new BoardCtrlBase.PacketQueue(); + keyValuePair.Value.GetCtrlBase().UpdateCommand(packetQueue); + while (packetQueue.Count > 0) + { + this._reqPacketQueue.Enqueue(packetQueue.Dequeue()); + } + } + } + + // Token: 0x06002983 RID: 10627 RVA: 0x00122454 File Offset: 0x00121654 + private void _execBoard() + { + foreach (KeyValuePair keyValuePair in this._boardMap) + { + keyValuePair.Value.GetCtrlBase().Execute(); + } + } + + // Token: 0x06002984 RID: 10628 RVA: 0x001224B4 File Offset: 0x001216B4 + private void _execThreadBoard() + { + foreach (KeyValuePair keyValuePair in this._boardMap) + { + keyValuePair.Value.GetCtrlBase().ExecThread(); + } + } + + // Token: 0x06002985 RID: 10629 RVA: 0x00122514 File Offset: 0x00121714 + private void _setExecCommandNo(Packet plain) + { + PacketReqHeader packetReqHeader = (PacketReqHeader)plain; + uint dstNodeID = (uint)packetReqHeader.dstNodeID; + BoardBase boardBase; + if (this._boardMap.TryGetValue(dstNodeID, out boardBase)) + { + boardBase.GetCtrlBase().SetExecCommandNo(packetReqHeader.command); + } + } + + // Token: 0x06002986 RID: 10630 RVA: 0x00122550 File Offset: 0x00121750 + private void _recv() + { + try + { + int num = this._port.Read(this._readBufferTmp, 0, this._readBufferTmp.Length); + if (num != 0) + { + uint num2 = 0U; + while ((ulong)num2 < (ulong)((long)num)) + { + this._readBuffer.Add(this._readBufferTmp[(int)num2]); + num2 += 1U; + } + } + } + catch (Exception) + { + } + this._decodeRecvData(); + } + + // Token: 0x06002987 RID: 10631 RVA: 0x001225B8 File Offset: 0x001217B8 + private void _send() + { + while (this._reqPacketQueue.Count > 0) + { + this._sendPacketQueue.Enqueue(this._reqPacketQueue.Dequeue()); + } + if (this._sendPacketQueue.Empty()) + { + return; + } + if (this._writeBuffer.Count == 0) + { + JvsSyncProtect.SetSum(this._sendPacketQueue.Peek()); + if (!JvsSyncProtect.Encode(this._writeBuffer, this._sendPacketQueue.Peek())) + { + this._writeBufferIndex = 0; + this._writeBuffer.Clear(); + } + } + if (this._writeBufferIndex < this._writeBuffer.Count) + { + int num = this._writeBuffer.Count - this._writeBufferIndex; + this._port.Write(this._writeBuffer.ToArray(), this._writeBufferIndex, num); + this._writeBufferIndex += num; + if (this._writeBufferIndex >= this._writeBuffer.Count) + { + this._setExecCommandNo(this._sendPacketQueue.Peek()); + this._sendPacketQueue.Dequeue(); + this._writeBufferIndex = 0; + this._writeBuffer.Clear(); + return; + } + } + else + { + this._writeBufferIndex = 0; + this._writeBuffer.Clear(); + } + } + + // Token: 0x06002988 RID: 10632 RVA: 0x001226EC File Offset: 0x001218EC + private void _execSync() + { + this._waitTimer.Start(); + while (!this._threadExit && this._port != null && this._port.IsOpen) + { + try + { + this._updateCommand(); + this._recv(); + this._execThreadBoard(); + this._send(); + } + catch (Exception) + { + } + this._waitTimer.Reset(); + this._waitTimer.Start(); + } + } + + // Token: 0x06002989 RID: 10633 RVA: 0x0012276C File Offset: 0x0012196C + private void _decodeRecvData() + { + if (this._readBuffer.Count == 0) + { + return; + } + bool flag = false; + for (;;) + { + if (flag) + { + this._readBuffer[0] = 31; + } + bool flag2 = false; + if (this._readBuffer[0] == 224) + { + flag2 = true; + } + else + { + for (int i = 1; i < this._readBuffer.Count; i++) + { + if (this._readBuffer[i] == 224) + { + flag2 = true; + this._readBuffer.RemoveRange(0, i); + break; + } + } + if (!flag2) + { + this._readBuffer.Clear(); + } + } + if (!flag2) + { + break; + } + PacketAckHeader packetAckHeader = new PacketAckHeader(); + bool flag3; + bool flag4; + if (!JvsSyncProtect.Decode(packetAckHeader, this._readBuffer, out flag3, out flag4)) + { + if (!flag4) + { + return; + } + flag = true; + } + else if (flag3) + { + int num = this._sumErrorCount + 1; + this._sumErrorCount = num; + if ((long)num >= 3L) + { + foreach (KeyValuePair keyValuePair in this._boardMap) + { + keyValuePair.Value.GetCtrlBase().NotifyBaseError(BoardCtrlBase.BaseErrorNo.BaseErrorNoSumError); + } + } + flag = true; + } + else if (packetAckHeader.srcNodeID == 1) + { + flag = true; + } + else + { + uint srcNodeID = (uint)packetAckHeader.srcNodeID; + BoardBase boardBase; + if (this._boardMap.TryGetValue(srcNodeID, out boardBase)) + { + boardBase.GetCtrlBase().AcceptRecv(packetAckHeader); + } + this._sumErrorCount = 0; + flag = true; + } + } + } + + // Token: 0x04003B3A RID: 15162 + private const uint SumErrorCountMax = 3U; + + // Token: 0x04003B3B RID: 15163 + private Host.Mode _mode; + + // Token: 0x04003B3C RID: 15164 + private Host.InitParam _initParam; + + // Token: 0x04003B3D RID: 15165 + private Thread _thread; + + // Token: 0x04003B3E RID: 15166 + private volatile bool _threadExit; + + // Token: 0x04003B3F RID: 15167 + private bool _initialized; + + // Token: 0x04003B40 RID: 15168 + private SerialPort _port; + + // Token: 0x04003B41 RID: 15169 + private Host.BoardMap _boardMap; + + // Token: 0x04003B42 RID: 15170 + private BoardCtrlBase.PacketQueue _reqPacketQueue; + + // Token: 0x04003B43 RID: 15171 + private BoardCtrlBase.PacketQueue _sendPacketQueue; + + // Token: 0x04003B44 RID: 15172 + private BoardCtrlBase.PacketQueue _recvPacketQueue; + + // Token: 0x04003B45 RID: 15173 + private int _writeBufferIndex; + + // Token: 0x04003B46 RID: 15174 + private Packet _writeBuffer; + + // Token: 0x04003B47 RID: 15175 + private Packet _readBuffer; + + // Token: 0x04003B48 RID: 15176 + private byte[] _readBufferTmp; + + // Token: 0x04003B49 RID: 15177 + private int _sumErrorCount; + + // Token: 0x04003B4A RID: 15178 + private Stopwatch _waitTimer; + + // Token: 0x02000C92 RID: 3218 + private class BoardMap : Dictionary + { + } + + // Token: 0x02000C93 RID: 3219 + public class InitParam + { + // Token: 0x06005612 RID: 22034 RVA: 0x001B7954 File Offset: 0x001B6B54 + public InitParam() + { + this.PortName = "COM1"; + this.AsyncIo = true; + this.ComParam = new ComParam + { + BaudRate = 115200, + Parity = Parity.None, + DataBits = 8, + StopBits = StopBits.One, + DtrEnable = false, + RtsEnable = false, + ReadTimeout = 1, + WriteTimeout = 1, + Handshake = Handshake.None + }; + this.Interval = 16; + } + + // Token: 0x04007043 RID: 28739 + public string PortName; + + // Token: 0x04007044 RID: 28740 + public bool AsyncIo; + + // Token: 0x04007045 RID: 28741 + public ComParam ComParam; + + // Token: 0x04007046 RID: 28742 + public int Interval; + } + + // Token: 0x02000C94 RID: 3220 + private enum Mode + { + // Token: 0x04007048 RID: 28744 + Init, + // Token: 0x04007049 RID: 28745 + StartThread, + // Token: 0x0400704A RID: 28746 + Exec + } + } +} diff --git a/Assembly-CSharp/Comio/JvsSyncProtect.cs b/Assembly-CSharp/Comio/JvsSyncProtect.cs new file mode 100644 index 0000000..a53ca28 --- /dev/null +++ b/Assembly-CSharp/Comio/JvsSyncProtect.cs @@ -0,0 +1,170 @@ +using System; + +namespace Comio +{ + // Token: 0x02000510 RID: 1296 + public class JvsSyncProtect + { + // Token: 0x0600298A RID: 10634 RVA: 0x001228E8 File Offset: 0x00121AE8 + public static bool IsSync(byte data) + { + return data == 224; + } + + // Token: 0x0600298B RID: 10635 RVA: 0x001228F5 File Offset: 0x00121AF5 + public static bool IsMarker(byte data) + { + return data == 208; + } + + // Token: 0x0600298C RID: 10636 RVA: 0x00122902 File Offset: 0x00121B02 + public static bool IsSyncOrMarker(byte data) + { + return JvsSyncProtect.IsSync(data) || JvsSyncProtect.IsMarker(data); + } + + // Token: 0x0600298D RID: 10637 RVA: 0x00122918 File Offset: 0x00121B18 + public static void MakeReq(Packet plain, byte dstNodeId, byte commandNo, byte[] data, byte dataSize) + { + plain.Clear(); + plain.Add(224); + plain.Add(dstNodeId); + plain.Add(1); + plain.Add(dataSize + 1); + plain.Add(commandNo); + if (dataSize != 0 && data.Length != 0) + { + plain.AddRange(data); + } + JvsSyncProtect.SetSum(plain); + } + + // Token: 0x0600298E RID: 10638 RVA: 0x0012296C File Offset: 0x00121B6C + public static void SetSum(Packet plain) + { + if (plain.Count < 5) + { + return; + } + int num = plain.Count - 2; + byte b = 0; + int num2 = 1; + for (int i = 0; i < num; i++) + { + b += plain[num2++]; + } + plain[plain.Count - 1] = b; + } + + // Token: 0x0600298F RID: 10639 RVA: 0x001229BC File Offset: 0x00121BBC + public static bool Encode(Packet encode, Packet plain) + { + int num = 5; + if (plain.Count < num) + { + return false; + } + if (plain[0] != 224) + { + return false; + } + encode.Clear(); + encode.Add(224); + for (int i = 1; i < plain.Count; i++) + { + if (JvsSyncProtect.IsSyncOrMarker(plain[i])) + { + if ((long)(encode.Count + 1) >= 76L) + { + return false; + } + encode.Add(208); + encode.Add(plain[i] - 1); + } + else + { + if ((long)encode.Count >= 76L) + { + return false; + } + encode.Add(plain[i]); + } + } + return true; + } + + // Token: 0x06002990 RID: 10640 RVA: 0x00122A64 File Offset: 0x00121C64 + public static bool Decode(Packet plain, Packet encode, out bool sumError, out bool middleSync) + { + sumError = false; + middleSync = false; + if (encode.Count == 0) + { + return false; + } + if (encode[0] != 224) + { + return false; + } + plain.Clear(); + plain.Add(224); + bool flag = false; + int num = encode.Count - 1; + for (int i = 1; i < encode.Count; i++) + { + if (JvsSyncProtect.IsSync(encode[i])) + { + flag = true; + break; + } + if (JvsSyncProtect.IsMarker(encode[i])) + { + if (num < 2) + { + return false; + } + plain.Add(encode[i + 1] + 1); + i++; + num--; + } + else + { + plain.Add(encode[i]); + } + num--; + } + PacketHeader packetHeader = (PacketHeader)plain; + if (plain.Count < 4) + { + if (flag) + { + middleSync = true; + } + return false; + } + int num2 = (int)(4 + packetHeader.length + 1); + if (plain.Count < num2) + { + if (flag) + { + middleSync = true; + } + return false; + } + if (plain.Count > num2) + { + plain.RemoveRange(num2, plain.Count - num2); + } + byte b = 0; + for (int j = 1; j < plain.Count - 1; j++) + { + b += plain[j]; + } + if (b != plain[plain.Count - 1]) + { + sumError = true; + } + return true; + } + } +} diff --git a/Assembly-CSharp/Comio/Packet.cs b/Assembly-CSharp/Comio/Packet.cs new file mode 100644 index 0000000..95531b7 --- /dev/null +++ b/Assembly-CSharp/Comio/Packet.cs @@ -0,0 +1,105 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; + +namespace Comio +{ + // Token: 0x02000513 RID: 1299 + public class Packet + { + // Token: 0x06002992 RID: 10642 RVA: 0x00122BA7 File Offset: 0x00121DA7 + public Packet() + { + this._buffer = new List(); + } + + // Token: 0x06002993 RID: 10643 RVA: 0x00122BBA File Offset: 0x00121DBA + public Packet(int length) + { + this._buffer = new List(); + this._buffer.AddRange(new byte[length]); + } + + // Token: 0x06002994 RID: 10644 RVA: 0x00122BDE File Offset: 0x00121DDE + public Packet(Packet packet) + { + this._buffer = packet._buffer; + } + + // Token: 0x06002995 RID: 10645 RVA: 0x00122BF2 File Offset: 0x00121DF2 + public void setBuffer(Packet packet) + { + this._buffer = packet._buffer; + } + + // Token: 0x1700033A RID: 826 + public byte this[int index] + { + get + { + return this._buffer[index]; + } + set + { + this._buffer[index] = value; + } + } + + // Token: 0x1700033B RID: 827 + // (get) Token: 0x06002998 RID: 10648 RVA: 0x00122C1D File Offset: 0x00121E1D + public int Count + { + get + { + return this._buffer.Count; + } + } + + // Token: 0x06002999 RID: 10649 RVA: 0x00122C2A File Offset: 0x00121E2A + public void Add(byte item) + { + this._buffer.Add(item); + } + + // Token: 0x0600299A RID: 10650 RVA: 0x00122C38 File Offset: 0x00121E38 + public void Clear() + { + this._buffer.Clear(); + } + + // Token: 0x0600299B RID: 10651 RVA: 0x00122C45 File Offset: 0x00121E45 + public byte[] ToArray() + { + return this._buffer.ToArray(); + } + + // Token: 0x0600299C RID: 10652 RVA: 0x00122C52 File Offset: 0x00121E52 + public void AddRange(IEnumerable collection) + { + this._buffer.AddRange(collection); + } + + // Token: 0x0600299D RID: 10653 RVA: 0x00122C60 File Offset: 0x00121E60 + public void RemoveRange(int index, int count) + { + this._buffer.RemoveRange(index, count); + } + + // Token: 0x0600299E RID: 10654 RVA: 0x00122C70 File Offset: 0x00121E70 + [Conditional("APP_DEBUG")] + public void dump() + { + ComioLog.Log("PACKET DUMP"); + ComioLog.Log(" length : " + this.Count.ToString()); + string text = ""; + foreach (byte b in this._buffer) + { + text += b.ToString("X2"); + } + ComioLog.Log(" data : " + text); + } + + // Token: 0x04003B59 RID: 15193 + private List _buffer; + } +} diff --git a/Assembly-CSharp/Comio/PacketAckHeader.cs b/Assembly-CSharp/Comio/PacketAckHeader.cs new file mode 100644 index 0000000..16fbc69 --- /dev/null +++ b/Assembly-CSharp/Comio/PacketAckHeader.cs @@ -0,0 +1,67 @@ +using System; + +namespace Comio +{ + // Token: 0x02000516 RID: 1302 + public class PacketAckHeader : PacketHeader + { + // Token: 0x060029AD RID: 10669 RVA: 0x00122D8E File Offset: 0x00121F8E + public PacketAckHeader() + { + } + + // Token: 0x060029AE RID: 10670 RVA: 0x00122D72 File Offset: 0x00121F72 + public PacketAckHeader(int length) + : base(length) + { + } + + // Token: 0x17000341 RID: 833 + // (get) Token: 0x060029AF RID: 10671 RVA: 0x00122D7B File Offset: 0x00121F7B + // (set) Token: 0x060029B0 RID: 10672 RVA: 0x00122D84 File Offset: 0x00121F84 + public byte status + { + get + { + return base[4]; + } + set + { + base[4] = value; + } + } + + // Token: 0x17000342 RID: 834 + // (get) Token: 0x060029B1 RID: 10673 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x060029B2 RID: 10674 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte command + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x17000343 RID: 835 + // (get) Token: 0x060029B3 RID: 10675 RVA: 0x00122DA9 File Offset: 0x00121FA9 + // (set) Token: 0x060029B4 RID: 10676 RVA: 0x00122DB2 File Offset: 0x00121FB2 + public byte report + { + get + { + return base[6]; + } + set + { + base[6] = value; + } + } + + // Token: 0x04003B5C RID: 15196 + public new const int Size = 7; + } +} diff --git a/Assembly-CSharp/Comio/PacketHeader.cs b/Assembly-CSharp/Comio/PacketHeader.cs new file mode 100644 index 0000000..bcb3231 --- /dev/null +++ b/Assembly-CSharp/Comio/PacketHeader.cs @@ -0,0 +1,82 @@ +using System; + +namespace Comio +{ + // Token: 0x02000514 RID: 1300 + public class PacketHeader : Packet + { + // Token: 0x0600299F RID: 10655 RVA: 0x00122D0C File Offset: 0x00121F0C + public PacketHeader() + { + } + + // Token: 0x060029A0 RID: 10656 RVA: 0x00122D14 File Offset: 0x00121F14 + public PacketHeader(int length) + : base(length) + { + } + + // Token: 0x1700033C RID: 828 + // (get) Token: 0x060029A1 RID: 10657 RVA: 0x00122D1D File Offset: 0x00121F1D + // (set) Token: 0x060029A2 RID: 10658 RVA: 0x00122D26 File Offset: 0x00121F26 + public byte sync + { + get + { + return base[0]; + } + set + { + base[0] = value; + } + } + + // Token: 0x1700033D RID: 829 + // (get) Token: 0x060029A3 RID: 10659 RVA: 0x00122D30 File Offset: 0x00121F30 + // (set) Token: 0x060029A4 RID: 10660 RVA: 0x00122D39 File Offset: 0x00121F39 + public byte dstNodeID + { + get + { + return base[1]; + } + set + { + base[1] = value; + } + } + + // Token: 0x1700033E RID: 830 + // (get) Token: 0x060029A5 RID: 10661 RVA: 0x00122D43 File Offset: 0x00121F43 + // (set) Token: 0x060029A6 RID: 10662 RVA: 0x00122D4C File Offset: 0x00121F4C + public byte srcNodeID + { + get + { + return base[2]; + } + set + { + base[2] = value; + } + } + + // Token: 0x1700033F RID: 831 + // (get) Token: 0x060029A7 RID: 10663 RVA: 0x00122D56 File Offset: 0x00121F56 + // (set) Token: 0x060029A8 RID: 10664 RVA: 0x00122D5F File Offset: 0x00121F5F + public byte length + { + get + { + return base[3]; + } + set + { + base[3] = value; + } + } + + // Token: 0x04003B5A RID: 15194 + public const byte Size = 4; + } +} diff --git a/Assembly-CSharp/Comio/PacketReqHeader.cs b/Assembly-CSharp/Comio/PacketReqHeader.cs new file mode 100644 index 0000000..bdc3b9b --- /dev/null +++ b/Assembly-CSharp/Comio/PacketReqHeader.cs @@ -0,0 +1,38 @@ +using System; + +namespace Comio +{ + // Token: 0x02000515 RID: 1301 + public class PacketReqHeader : PacketHeader + { + // Token: 0x060029A9 RID: 10665 RVA: 0x00122D69 File Offset: 0x00121F69 + public PacketReqHeader() + : base(5) + { + } + + // Token: 0x060029AA RID: 10666 RVA: 0x00122D72 File Offset: 0x00121F72 + public PacketReqHeader(int length) + : base(length) + { + } + + // Token: 0x17000340 RID: 832 + // (get) Token: 0x060029AB RID: 10667 RVA: 0x00122D7B File Offset: 0x00121F7B + // (set) Token: 0x060029AC RID: 10668 RVA: 0x00122D84 File Offset: 0x00121F84 + public byte command + { + get + { + return base[4]; + } + set + { + base[4] = value; + } + } + + // Token: 0x04003B5B RID: 15195 + public new const int Size = 5; + } +} diff --git a/Assembly-CSharp/Comio/ResetCommand.cs b/Assembly-CSharp/Comio/ResetCommand.cs new file mode 100644 index 0000000..6c9855f --- /dev/null +++ b/Assembly-CSharp/Comio/ResetCommand.cs @@ -0,0 +1,92 @@ +using System; + +namespace Comio +{ + // Token: 0x0200050D RID: 1293 + public class ResetCommand : CommandBase + { + // Token: 0x06002960 RID: 10592 RVA: 0x0009FD1B File Offset: 0x0009EF1B + public override byte GetCommandNo() + { + return 16; + } + + // Token: 0x06002961 RID: 10593 RVA: 0x00118752 File Offset: 0x00117952 + public override byte GetLength() + { + return 6; + } + + // Token: 0x06002962 RID: 10594 RVA: 0x00121EAE File Offset: 0x001210AE + public override PacketReqHeader CreateReq() + { + return new ResetCommand.Req(); + } + + // Token: 0x06002963 RID: 10595 RVA: 0x00121EB5 File Offset: 0x001210B5 + public override PacketAckHeader CreateAck() + { + return new ResetCommand.Ack(); + } + + // Token: 0x06002965 RID: 10597 RVA: 0x00003598 File Offset: 0x00002798 + public override void DoRecv() + { + } + + // Token: 0x06002966 RID: 10598 RVA: 0x00003598 File Offset: 0x00002798 + public void set() + { + } + + // Token: 0x02000C8F RID: 3215 + public class Req : PacketReqHeader + { + // Token: 0x0600560B RID: 22027 RVA: 0x001B78EA File Offset: 0x001B6AEA + public Req() + : base(6) + { + } + + // Token: 0x17000903 RID: 2307 + // (get) Token: 0x0600560C RID: 22028 RVA: 0x00122D96 File Offset: 0x00121F96 + // (set) Token: 0x0600560D RID: 22029 RVA: 0x00122D9F File Offset: 0x00121F9F + public byte sum + { + get + { + return base[5]; + } + set + { + base[5] = value; + } + } + + // Token: 0x04007038 RID: 28728 + public new const int Size = 6; + } + + // Token: 0x02000C90 RID: 3216 + public class Ack : PacketAckHeader + { + // Token: 0x17000904 RID: 2308 + // (get) Token: 0x0600560E RID: 22030 RVA: 0x001B78F3 File Offset: 0x001B6AF3 + // (set) Token: 0x0600560F RID: 22031 RVA: 0x001B78FC File Offset: 0x001B6AFC + public byte sum + { + get + { + return base[7]; + } + set + { + base[7] = value; + } + } + + // Token: 0x04007039 RID: 28729 + public new const int Size = 8; + } + } +} diff --git a/Assembly-CSharp/CommonCharaObject.cs b/Assembly-CSharp/CommonCharaObject.cs new file mode 100644 index 0000000..197101a --- /dev/null +++ b/Assembly-CSharp/CommonCharaObject.cs @@ -0,0 +1,104 @@ +using System; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x0200002A RID: 42 +public class CommonCharaObject : MonoBehaviour +{ + // Token: 0x060000DD RID: 221 RVA: 0x00004EE1 File Offset: 0x000040E1 + private void Awake() + { + this._charaAnimator = base.GetComponent(); + } + + // Token: 0x060000DE RID: 222 RVA: 0x00004EEF File Offset: 0x000040EF + public void Initialize(CommonCharaObject.CharaType chara) + { + this._charaType = chara; + this.UpdateCharaType(); + } + + // Token: 0x060000DF RID: 223 RVA: 0x00004EFE File Offset: 0x000040FE + public void SetFace(CommonCharaObject.MouthType mouth) + { + this._mouth = mouth; + this.UpdateChara(); + } + + // Token: 0x060000E0 RID: 224 RVA: 0x00004F0D File Offset: 0x0000410D + public void UpdateCharaType() + { + this._noseObj.sprite = this._noseImage[(int)this._charaType]; + this._bodyObj.sprite = this._bodyImage[(int)this._charaType]; + } + + // Token: 0x060000E1 RID: 225 RVA: 0x00004F3F File Offset: 0x0000413F + public void UpdateChara() + { + this._mouthObj.sprite = this._mouthImage[(int)this._mouth]; + } + + // Token: 0x060000E2 RID: 226 RVA: 0x00004F59 File Offset: 0x00004159 + public void PlayIdle() + { + if (base.gameObject.activeInHierarchy) + { + this._charaAnimator.SetTrigger("Pressed"); + } + } + + // Token: 0x0400008B RID: 139 + [SerializeField] + private Image _noseObj; + + // Token: 0x0400008C RID: 140 + [SerializeField] + private Image _bodyObj; + + // Token: 0x0400008D RID: 141 + [SerializeField] + private Image _mouthObj; + + // Token: 0x0400008E RID: 142 + [SerializeField] + private Sprite[] _noseImage = new Sprite[2]; + + // Token: 0x0400008F RID: 143 + [SerializeField] + private Sprite[] _bodyImage = new Sprite[2]; + + // Token: 0x04000090 RID: 144 + [SerializeField] + private Sprite[] _mouthImage = new Sprite[2]; + + // Token: 0x04000091 RID: 145 + private CommonCharaObject.CharaType _charaType; + + // Token: 0x04000092 RID: 146 + private CommonCharaObject.MouthType _mouth; + + // Token: 0x04000093 RID: 147 + private Animator _charaAnimator; + + // Token: 0x0200094F RID: 2383 + public enum CharaType + { + // Token: 0x04005F09 RID: 24329 + Red, + // Token: 0x04005F0A RID: 24330 + Blue, + // Token: 0x04005F0B RID: 24331 + Max + } + + // Token: 0x02000950 RID: 2384 + public enum MouthType + { + // Token: 0x04005F0D RID: 24333 + Open, + // Token: 0x04005F0E RID: 24334 + Close, + // Token: 0x04005F0F RID: 24335 + Max + } +} diff --git a/Assembly-CSharp/CommonPrefab.cs b/Assembly-CSharp/CommonPrefab.cs new file mode 100644 index 0000000..e4a9786 --- /dev/null +++ b/Assembly-CSharp/CommonPrefab.cs @@ -0,0 +1,136 @@ +using System; +using Manager; +using UI; +using UnityEngine; + +// Token: 0x02000026 RID: 38 +public static class CommonPrefab +{ + // Token: 0x060000C7 RID: 199 RVA: 0x00004C98 File Offset: 0x00003E98 + public static CommonTimer GetCommonTimerPrefab() + { + CommonPrefab.CreatePrefab(); + return CommonPrefab._timerPrefab; + } + + // Token: 0x060000C8 RID: 200 RVA: 0x00004CA4 File Offset: 0x00003EA4 + public static CommonButtonObject GetCirclebuButtonObject() + { + CommonPrefab.CreatePrefab(); + return CommonPrefab._circleButtonPrefab; + } + + // Token: 0x060000C9 RID: 201 RVA: 0x00004CB0 File Offset: 0x00003EB0 + public static CommonButtonObject GetFlatButtonObject() + { + CommonPrefab.CreatePrefab(); + return CommonPrefab._flatButtonPrefab; + } + + // Token: 0x060000CA RID: 202 RVA: 0x00004CBC File Offset: 0x00003EBC + public static MovieController GetMovieCtrlObject() + { + CommonPrefab.CreatePrefab(); + return CommonPrefab._moviePrefab; + } + + // Token: 0x060000CB RID: 203 RVA: 0x00004CC8 File Offset: 0x00003EC8 + public static CommonCharaObject GetNaviCharaObject() + { + CommonPrefab.CreatePrefab(); + return CommonPrefab._naviCharaPrefab; + } + + // Token: 0x060000CC RID: 204 RVA: 0x00004CD4 File Offset: 0x00003ED4 + public static CommonCharaObject GetNaviCharaTateObject() + { + CommonPrefab.CreatePrefab(); + return CommonPrefab._naviCharaTatePrefab; + } + + // Token: 0x060000CD RID: 205 RVA: 0x00004CE0 File Offset: 0x00003EE0 + public static Sprite[] GetMusicLevelSprites(int difficulty) + { + CommonPrefab.CreatePrefab(); + return CommonPrefab._musicLevelSheetTable.MusicLevelSprites[difficulty].Sheet; + } + + // Token: 0x060000CE RID: 206 RVA: 0x00004CFC File Offset: 0x00003EFC + public static Sprite[] GetUtageMusicLevelSprites() + { + CommonPrefab.CreatePrefab(); + return CommonPrefab._utageMusicLevelSheetTable.MusicLevelSprites[0].Sheet; + } + + // Token: 0x060000CF RID: 207 RVA: 0x00004D18 File Offset: 0x00003F18 + public static Sprite[] GetAchieveIntSprites(int difficulty) + { + CommonPrefab.CreatePrefab(); + return CommonPrefab._achieveSheetTable.AchieveIntSprites[difficulty].Sheet; + } + + // Token: 0x060000D0 RID: 208 RVA: 0x00004D34 File Offset: 0x00003F34 + public static Sprite[] GetAchieveDecimalSprites(int difficulty) + { + CommonPrefab.CreatePrefab(); + return CommonPrefab._achieveSheetTable.AchieveDecimalSprites[difficulty].Sheet; + } + + // Token: 0x060000D1 RID: 209 RVA: 0x00004D50 File Offset: 0x00003F50 + public static void CreatePrefab() + { + if (!CommonPrefab._initialized) + { + CommonPrefab._timerPrefab = Resources.Load("Common/Prefabs/CommonTimer"); + CommonPrefab._circleButtonPrefab = Resources.Load("Common/Prefabs/CircleButton"); + CommonPrefab._flatButtonPrefab = Resources.Load("Common/Prefabs/FlatButton"); + CommonPrefab._moviePrefab = Resources.Load("Common/Prefabs/MovieController"); + CommonPrefab._naviCharaPrefab = Resources.Load("Common/Prefabs/NaviCharaExtend"); + CommonPrefab._naviCharaTatePrefab = Resources.Load("Common/Prefabs/NaviCharaTateExtend"); + CommonPrefab._musicLevelSheetTable = Resources.Load("Common/Table/MusicDifficultyTable"); + CommonPrefab._utageMusicLevelSheetTable = Resources.Load("Common/Table/UtageMusicDifficultyTable"); + CommonPrefab._achieveSheetTable = Resources.Load("Common/Table/AhieveNumTable"); + CommonPrefab._initialized = true; + CommonPrefab._timerPrefab.name = CommonPrefab._timerPrefab.name.Replace("(Clone)", ""); + } + } + + // Token: 0x060000D2 RID: 210 RVA: 0x00004E17 File Offset: 0x00004017 + public static void DestroyPrefab() + { + if (CommonPrefab._initialized) + { + CommonPrefab._initialized = false; + } + } + + // Token: 0x04000079 RID: 121 + private static bool _initialized; + + // Token: 0x0400007A RID: 122 + private static CommonTimer _timerPrefab; + + // Token: 0x0400007B RID: 123 + private static CommonButtonObject _circleButtonPrefab; + + // Token: 0x0400007C RID: 124 + private static CommonButtonObject _flatButtonPrefab; + + // Token: 0x0400007D RID: 125 + private static MovieController _moviePrefab; + + // Token: 0x0400007E RID: 126 + private static CommonCharaObject _naviCharaPrefab; + + // Token: 0x0400007F RID: 127 + private static CommonCharaObject _naviCharaTatePrefab; + + // Token: 0x04000080 RID: 128 + private static MusicDifficultySheet _musicLevelSheetTable; + + // Token: 0x04000081 RID: 129 + private static MusicDifficultySheet _utageMusicLevelSheetTable; + + // Token: 0x04000082 RID: 130 + private static AchieveNumSheet _achieveSheetTable; +} diff --git a/Assembly-CSharp/CommonScriptable.cs b/Assembly-CSharp/CommonScriptable.cs new file mode 100644 index 0000000..ed1db76 --- /dev/null +++ b/Assembly-CSharp/CommonScriptable.cs @@ -0,0 +1,71 @@ +using System; +using UnityEngine; + +// Token: 0x02000027 RID: 39 +public static class CommonScriptable +{ + // Token: 0x060000D3 RID: 211 RVA: 0x00004E26 File Offset: 0x00004026 + public static LedColorTable GetLedSetting() + { + CommonScriptable.CreateScriptable(); + return CommonScriptable._ledSetting; + } + + // Token: 0x060000D4 RID: 212 RVA: 0x00004E32 File Offset: 0x00004032 + public static GameColorTable GetColorSetting() + { + CommonScriptable.CreateScriptable(); + return CommonScriptable._gameSetting; + } + + // Token: 0x060000D5 RID: 213 RVA: 0x00004E3E File Offset: 0x0000403E + public static NotesEffectColorTable GetNotesEffectSetting() + { + CommonScriptable.CreateScriptable(); + return CommonScriptable._notesEffectSetting; + } + + // Token: 0x060000D6 RID: 214 RVA: 0x00004E4A File Offset: 0x0000404A + public static SpecialEffectParamTable GetSpecialEffectParamTable() + { + CommonScriptable.CreateScriptable(); + return CommonScriptable._specialEffectParamTable; + } + + // Token: 0x060000D7 RID: 215 RVA: 0x00004E58 File Offset: 0x00004058 + public static void CreateScriptable() + { + if (!CommonScriptable._initialized) + { + CommonScriptable._ledSetting = Resources.Load("Common/Table/LedColorTable"); + CommonScriptable._gameSetting = Resources.Load("Common/Table/GameColorTable"); + CommonScriptable._notesEffectSetting = Resources.Load("Process/Game/Table/NotesEffectTable"); + CommonScriptable._specialEffectParamTable = Resources.Load("Common/Table/SpecialEffectParamTable"); + CommonScriptable._initialized = true; + } + } + + // Token: 0x060000D8 RID: 216 RVA: 0x00004EAE File Offset: 0x000040AE + public static void DestroyScriptable() + { + if (CommonScriptable._initialized) + { + CommonScriptable._initialized = false; + } + } + + // Token: 0x04000083 RID: 131 + private static bool _initialized; + + // Token: 0x04000084 RID: 132 + private static LedColorTable _ledSetting; + + // Token: 0x04000085 RID: 133 + private static GameColorTable _gameSetting; + + // Token: 0x04000086 RID: 134 + private static NotesEffectColorTable _notesEffectSetting; + + // Token: 0x04000087 RID: 135 + private static SpecialEffectParamTable _specialEffectParamTable; +} diff --git a/Assembly-CSharp/CommonTimer.cs b/Assembly-CSharp/CommonTimer.cs new file mode 100644 index 0000000..fe7dbf6 --- /dev/null +++ b/Assembly-CSharp/CommonTimer.cs @@ -0,0 +1,130 @@ +using System; +using Mai2.Mai2Cue; +using Manager; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x0200002E RID: 46 +public class CommonTimer : MonoBehaviour +{ + // Token: 0x17000025 RID: 37 + // (get) Token: 0x060000F8 RID: 248 RVA: 0x00005113 File Offset: 0x00004313 + // (set) Token: 0x060000F9 RID: 249 RVA: 0x0000511B File Offset: 0x0000431B + public int MonitorIndex { get; set; } + + // Token: 0x060000FA RID: 250 RVA: 0x00005124 File Offset: 0x00004324 + private void Awake() + { + this._normaiTime = base.transform.Find("NormalNum").gameObject.GetComponent(); + this._limitTime = base.transform.Find("LimitNum").gameObject.GetComponent(); + this._infinityImage = base.transform.Find("Infinity").gameObject.GetComponent(); + this._animator = base.gameObject.GetComponent(); + this._preDispTime = 0U; + } + + // Token: 0x060000FB RID: 251 RVA: 0x000051A9 File Offset: 0x000043A9 + public void SetVisible(bool isVisible) + { + base.gameObject.SetActive(isVisible); + this._isPlaySound = isVisible; + } + + // Token: 0x060000FC RID: 252 RVA: 0x000051BE File Offset: 0x000043BE + private void SetActiveNormalTime(bool isActive) + { + if (this._normaiTime.gameObject.activeSelf != isActive) + { + this._normaiTime.gameObject.SetActive(isActive); + } + } + + // Token: 0x060000FD RID: 253 RVA: 0x000051E4 File Offset: 0x000043E4 + private void SetActiveLimitTime(bool isActive) + { + if (this._limitTime.gameObject.activeSelf != isActive) + { + this._limitTime.gameObject.SetActive(isActive); + } + } + + // Token: 0x060000FE RID: 254 RVA: 0x0000520C File Offset: 0x0000440C + public void SetTimerCount(uint dispTime, bool isInfinity = false) + { + if (isInfinity) + { + this.SetActiveNormalTime(false); + this.SetActiveLimitTime(false); + if (!GameManager.IsFreedomMode) + { + this._infinityImage.gameObject.SetActive(true); + } + } + else if (dispTime >= 10U) + { + if (dispTime > 99U) + { + dispTime = 99U; + } + this.SetActiveNormalTime(true); + this.SetActiveLimitTime(false); + this._infinityImage.gameObject.SetActive(false); + if (this._isPlaySound) + { + this._normaiTime.ChangeText(dispTime.ToString()); + } + } + else + { + this.SetActiveNormalTime(false); + this.SetActiveLimitTime(true); + this._infinityImage.gameObject.SetActive(false); + if (this._isPlaySound) + { + this._limitTime.ChangeText(dispTime.ToString()); + } + } + if (this._preDispTime != dispTime) + { + if (dispTime == 30U || dispTime == 20U || dispTime == 10U) + { + if (this._isPlaySound) + { + SoundManager.PlaySE(Cue.SE_SYS_COUNT_30_20_10, this.MonitorIndex); + } + } + else if (dispTime <= 9U && dispTime >= 0U) + { + if (this._isPlaySound) + { + SoundManager.PlaySE(Cue.SE_SYS_COUNT, this.MonitorIndex); + } + if (this._animator.gameObject.activeSelf && this._animator.gameObject.activeInHierarchy) + { + this._animator.Play("LimitAction", 0, 0f); + } + } + } + this._preDispTime = dispTime; + } + + // Token: 0x0400009A RID: 154 + private SpriteCounter _normaiTime; + + // Token: 0x0400009B RID: 155 + private SpriteCounter _limitTime; + + // Token: 0x0400009C RID: 156 + private Image _infinityImage; + + // Token: 0x0400009D RID: 157 + private Animator _animator; + + // Token: 0x0400009E RID: 158 + private bool _isPlaySound; + + // Token: 0x0400009F RID: 159 + private uint _preDispTime; + + // Token: 0x040000A0 RID: 160 + public const int TimeMax = 99; +} diff --git a/Assembly-CSharp/CommonWindow.cs b/Assembly-CSharp/CommonWindow.cs new file mode 100644 index 0000000..94e7c83 --- /dev/null +++ b/Assembly-CSharp/CommonWindow.cs @@ -0,0 +1,577 @@ +using System; +using System.Text; +using DB; +using Process; +using TMPro; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x020000A1 RID: 161 +public class CommonWindow : MonoBehaviour +{ + // Token: 0x170000B9 RID: 185 + // (get) Token: 0x06000586 RID: 1414 RVA: 0x00016A61 File Offset: 0x00015C61 + public WindowPositionID PositionID + { + get + { + return this._positionID; + } + } + + // Token: 0x170000BA RID: 186 + // (get) Token: 0x06000587 RID: 1415 RVA: 0x00016A69 File Offset: 0x00015C69 + public bool IsOpening + { + get + { + return this._isOpening; + } + } + + // Token: 0x06000588 RID: 1416 RVA: 0x00016A74 File Offset: 0x00015C74 + public void Prepare(IMessageMonitor monitor, WindowMessageID id, WindowPositionID positionId, Vector3 position, WindowParam param = null) + { + WindowKindID windowKindID = id.GetKind(); + WindowSizeID windowSizeID = id.GetSize(); + string text = id.GetFileName(); + Sprite sprite = null; + if (param != null) + { + if (param.changeKind) + { + windowKindID = param.kindID; + } + if (param.changeSize) + { + windowSizeID = param.sizeID; + } + if (param.insertImage) + { + text = param.imageName; + } + if (param.directSprite) + { + sprite = param.sprite; + } + } + this.SetSprites(monitor, windowKindID, windowSizeID, text, sprite); + this.CommonPrepare(id, positionId, param); + this.SetPosition(position); + } + + // Token: 0x06000589 RID: 1417 RVA: 0x00016B00 File Offset: 0x00015D00 + public void Close() + { + if (!this._isOpening || this._state != CommonWindow.WindowState.LifeCounting) + { + return; + } + this._state = CommonWindow.WindowState.EndAnim; + this._startPos = base.transform.localPosition; + this._endPos = base.transform.localPosition - this.ADJUST_POS; + this._lifeCounter = 0f; + } + + // Token: 0x0600058A RID: 1418 RVA: 0x00016B60 File Offset: 0x00015D60 + public void ForcedClose() + { + this._state = CommonWindow.WindowState.EndAnim; + this._startPos = base.transform.localPosition; + this._endPos = base.transform.localPosition - this.ADJUST_POS; + this._lifeCounter = 0f; + } + + // Token: 0x0600058B RID: 1419 RVA: 0x00016BAC File Offset: 0x00015DAC + protected void CommonPrepare(WindowMessageID id, WindowPositionID positionId, WindowParam param = null) + { + this.SetPivot(positionId); + StringBuilder stringBuilder = new StringBuilder(id.GetName()); + stringBuilder.Append(id.GetNameEx()); + WindowKindID windowKindID = id.GetKind(); + WindowSizeID windowSizeID = id.GetSize(); + this._messageText.alignment = 514; + if (param != null && param.alignment) + { + this._messageText.alignment = param.alignmentOption; + } + this._messageText.text = stringBuilder.ToString(); + if (param != null && param.changeKind) + { + windowKindID = param.kindID; + } + this._messageText.color = ((windowKindID == WindowKindID.Attention) ? CommonWindow.AttentionColor : CommonWindow.NormalColor); + if (param != null && param.replaceText) + { + this._messageText.text = param.text; + } + if (param != null && param.changeSize) + { + windowSizeID = param.sizeID; + } + if (windowSizeID == WindowSizeID.LargeHorizontal || windowSizeID == WindowSizeID.LargeVertical || windowSizeID == WindowSizeID.LargeVerticalPostImage) + { + this.SetPadding(windowSizeID); + } + else + { + this.SetHeight(); + } + this._titleGroup.alpha = (float)((id.GetTitle() == "") ? 0 : 1); + this._titleText.text = id.GetTitle(); + if (param != null) + { + if (param.replaceTitle) + { + this._titleText.text = param.title; + } + if (param.hideTitle) + { + this._titleGroup.alpha = 0f; + this._titleGroup.gameObject.SetActive(false); + } + } + this._lifeCounter = 0f; + this.LifeTime = (float)id.GetLifetime(); + this._state = CommonWindow.WindowState.Prepare; + this._positionID = positionId; + this._isOpening = true; + } + + // Token: 0x0600058C RID: 1420 RVA: 0x00016D40 File Offset: 0x00015F40 + private bool IsOverLineNum(string message) + { + int num = 0; + for (int i = 0; i < message.Length; i++) + { + if (message[i].ToString() == "\n") + { + num++; + } + if (3 <= num) + { + return true; + } + } + return false; + } + + // Token: 0x0600058D RID: 1421 RVA: 0x00016D88 File Offset: 0x00015F88 + private int GetTextLineNum(string message) + { + int num = 0; + for (int i = 0; i < message.Length; i++) + { + if (message[i].ToString() == "\n") + { + num++; + } + } + return num; + } + + // Token: 0x0600058E RID: 1422 RVA: 0x00016DC8 File Offset: 0x00015FC8 + protected void SetPadding(WindowSizeID sizeID) + { + float preferredWidth = this._messageText.preferredWidth; + if (preferredWidth < 650f) + { + float num = 650f - preferredWidth; + if (this._horizontalLayoutGroup != null) + { + num -= this._horizontalLayoutGroup.spacing; + if (this._iconImage != null) + { + num -= this._iconImage.preferredWidth; + } + } + int num2 = Mathf.FloorToInt(num * 0.5f); + if ((float)num2 < 60f) + { + num2 = 60; + } + this.SetPaddingValue(num2, sizeID); + return; + } + this.SetPaddingValue(60, sizeID); + } + + // Token: 0x0600058F RID: 1423 RVA: 0x00016E54 File Offset: 0x00016054 + protected void SetHeight() + { + float preferredHeight = this._messageText.preferredHeight; + float num = (float)(CommonWindow.NormalVerticalPadding.x + CommonWindow.NormalVerticalPadding.y); + float num2 = Mathf.Max(preferredHeight + num, 124f); + this._windowImage.rectTransform.sizeDelta = new Vector2(650f, num2); + } + + // Token: 0x06000590 RID: 1424 RVA: 0x00016EB4 File Offset: 0x000160B4 + private void SetPaddingValue(int side, WindowSizeID sizeID) + { + Vector2Int vector2Int = CommonWindow.NormalVerticalPadding; + if (this.IsOverLineNum(this._messageText.text)) + { + vector2Int = CommonWindow.WideVerticalPadding; + } + else if (sizeID == WindowSizeID.LargeHorizontal && this.GetTextLineNum(this._messageText.text) == 1) + { + vector2Int.x = 40; + vector2Int.y = 40; + } + if (this._verticalLayoutGroup != null) + { + this._verticalLayoutGroup.padding = new RectOffset(side, side, vector2Int.x, vector2Int.y); + } + if (this._horizontalLayoutGroup != null) + { + this._horizontalLayoutGroup.padding = new RectOffset(side, side, vector2Int.x, vector2Int.y); + } + } + + // Token: 0x06000591 RID: 1425 RVA: 0x00016F68 File Offset: 0x00016168 + private void SetSprites(IMessageMonitor monitor, WindowKindID kind, WindowSizeID sizeId, string fileName, Sprite sprite = null) + { + if (kind == WindowKindID.Attention) + { + this._windowImage.sprite = monitor.AttentionWindow; + this._titleImage.sprite = monitor.AttentionTitle; + } + else if (kind == WindowKindID.Common) + { + this._windowImage.sprite = monitor.DefaultWindow; + this._titleImage.sprite = monitor.DefaultTitle; + } + if (sizeId == WindowSizeID.LargeHorizontal || sizeId == WindowSizeID.LargeVertical || sizeId == WindowSizeID.LargeVerticalPostImage) + { + Sprite sprite2 = Resources.Load("Process/Generic/Sprites/" + fileName); + bool flag = false; + if (sprite2 != null) + { + this.SetIconSprite(sprite2); + flag = true; + } + if (sprite != null) + { + this.SetIconSprite(sprite); + flag = true; + } + if (this._iconImage != null) + { + if (!flag) + { + this._iconImage.gameObject.SetActive(false); + return; + } + this._iconImage.gameObject.SetActive(true); + } + } + } + + // Token: 0x06000592 RID: 1426 RVA: 0x0001703C File Offset: 0x0001623C + protected void SetPivot(WindowPositionID positionId) + { + switch (positionId) + { + case WindowPositionID.Upper: + this._titleImage.rectTransform.pivot = CommonWindow.PivotUpper; + return; + case WindowPositionID.Middle: + this._titleImage.rectTransform.pivot = CommonWindow.PivotMiddle; + return; + case WindowPositionID.Lower: + this._titleImage.rectTransform.pivot = CommonWindow.PivotLower; + return; + default: + return; + } + } + + // Token: 0x06000593 RID: 1427 RVA: 0x0001709D File Offset: 0x0001629D + protected void SetIconSprite(Sprite sprite) + { + if (this._iconImage != null) + { + this._iconImage.sprite = sprite; + this._iconImage.SetNativeSize(); + } + } + + // Token: 0x06000594 RID: 1428 RVA: 0x000170C4 File Offset: 0x000162C4 + protected void SetPosition(Vector3 position) + { + base.transform.localPosition = position; + } + + // Token: 0x06000595 RID: 1429 RVA: 0x000170D2 File Offset: 0x000162D2 + public void Interrupt() + { + this._state = CommonWindow.WindowState.Idle; + this._lifeCounter = 0f; + this._isOpening = false; + this.SetVisible(false); + } + + // Token: 0x06000596 RID: 1430 RVA: 0x000170F4 File Offset: 0x000162F4 + public void SetVisible(bool isActive) + { + this._windowGroup.alpha = (float)(isActive ? 1 : 0); + if (this._titleGroup != null && this._titleText.text != "") + { + this._titleGroup.alpha = (float)(isActive ? 1 : 0); + } + } + + // Token: 0x06000597 RID: 1431 RVA: 0x0001714C File Offset: 0x0001634C + public void UpdateView(long gameMSec) + { + switch (this._state) + { + case CommonWindow.WindowState.Idle: + break; + case CommonWindow.WindowState.Prepare: + this.PrepareAnimation(); + return; + case CommonWindow.WindowState.StartAnim: + this.StartAnimation(gameMSec); + return; + case CommonWindow.WindowState.LifeCounting: + this.CountLifeTime(gameMSec); + return; + case CommonWindow.WindowState.EndAnim: + this.EndAnimation(gameMSec); + break; + default: + return; + } + } + + // Token: 0x06000598 RID: 1432 RVA: 0x0001719C File Offset: 0x0001639C + private void PrepareAnimation() + { + this.SetColor(0f); + base.transform.localPosition -= this.ADJUST_POS; + this._startPos = base.transform.localPosition; + this._endPos = base.transform.localPosition + this.ADJUST_POS; + this._animationCounter = 0f; + this._state = CommonWindow.WindowState.StartAnim; + } + + // Token: 0x06000599 RID: 1433 RVA: 0x00017210 File Offset: 0x00016410 + private void CountLifeTime(long gameMSec) + { + if (this.LifeTime == -1f) + { + return; + } + if (this.LifeTime < this._lifeCounter) + { + this._lifeCounter = 0f; + this._state = CommonWindow.WindowState.EndAnim; + this._startPos = base.transform.localPosition; + this._endPos = base.transform.localPosition - this.ADJUST_POS; + } + this._lifeCounter += (float)gameMSec; + } + + // Token: 0x0600059A RID: 1434 RVA: 0x00017288 File Offset: 0x00016488 + private void StartAnimation(long gameMSec) + { + float num = this._animationCounter / 350f; + base.transform.localPosition = this.CalculatePosition(this._startPos, this._endPos, num); + this.SetColor(num); + if (350f <= this._animationCounter) + { + this._state = CommonWindow.WindowState.LifeCounting; + this._isOpening = true; + this._animationCounter = 0f; + this.ResetPosition(this._endPos); + this.SetColor(1f); + } + this._animationCounter += (float)gameMSec; + } + + // Token: 0x0600059B RID: 1435 RVA: 0x000170C4 File Offset: 0x000162C4 + private void ResetPosition(Vector3 position) + { + base.transform.localPosition = position; + } + + // Token: 0x0600059C RID: 1436 RVA: 0x00017313 File Offset: 0x00016513 + private void SetColor(float weight) + { + this._windowGroup.alpha = weight; + if (this._titleText.text != "") + { + this._titleGroup.alpha = weight; + } + } + + // Token: 0x0600059D RID: 1437 RVA: 0x00017344 File Offset: 0x00016544 + private void EndAnimation(long gameMSec) + { + float num = this._animationCounter / 350f; + base.transform.localPosition = this.CalculatePosition(this._startPos, this._endPos, num); + this.SetColor(1f - num); + if (350f <= this._animationCounter) + { + this.Refresh(); + this._state = CommonWindow.WindowState.Idle; + } + this._animationCounter += (float)gameMSec; + } + + // Token: 0x0600059E RID: 1438 RVA: 0x000173B2 File Offset: 0x000165B2 + private void Refresh() + { + this.SetVisible(false); + this.ResetPosition(this._startPos); + this._isOpening = false; + this._animationCounter = 0f; + } + + // Token: 0x0600059F RID: 1439 RVA: 0x000173DC File Offset: 0x000165DC + private Vector3 CalculatePosition(Vector3 start, Vector3 end, float weight) + { + float num = this.CalculateCurrentValue(start.x, end.x, weight); + float num2 = this.CalculateCurrentValue(start.y, end.y, weight); + float num3 = this.CalculateCurrentValue(start.z, end.z, weight); + return new Vector3(num, num2, num3); + } + + // Token: 0x060005A0 RID: 1440 RVA: 0x0001742B File Offset: 0x0001662B + private float CalculateCurrentValue(float start, float end, float weight) + { + return start * (1f - weight) + end * weight; + } + + // Token: 0x0400042C RID: 1068 + private const string MESSAGE_WINDOW_DIRECTORY_PATH = "Process/Generic/Sprites/"; + + // Token: 0x0400042D RID: 1069 + protected const string TYPE_SPRITE_PREFIX = "UI_WND_Type_"; + + // Token: 0x0400042E RID: 1070 + protected const string TYPE_TITLE_SPRITE_PREFIX = "UI_WND_Title_Type_"; + + // Token: 0x0400042F RID: 1071 + private static readonly Color AttentionColor = new Color(1f, 1f, 1f, 1f); + + // Token: 0x04000430 RID: 1072 + private static readonly Color NormalColor = new Color(0f, 0f, 0f, 1f); + + // Token: 0x04000431 RID: 1073 + private const float MIN_VERTICAL_PADDING_L = 60f; + + // Token: 0x04000432 RID: 1074 + private const float MIN_WINDOW_WIDTH = 650f; + + // Token: 0x04000433 RID: 1075 + private const float MIN_WINDOW_HEIGHT = 124f; + + // Token: 0x04000434 RID: 1076 + private const int BORDER_LINE_NUM = 3; + + // Token: 0x04000435 RID: 1077 + private static readonly Vector2Int NormalVerticalPadding = new Vector2Int(32, 42); + + // Token: 0x04000436 RID: 1078 + private static readonly Vector2Int WideVerticalPadding = new Vector2Int(42, 52); + + // Token: 0x04000437 RID: 1079 + private static readonly Vector2 PivotUpper = new Vector2(0.5f, 0.5f); + + // Token: 0x04000438 RID: 1080 + private static readonly Vector2 PivotMiddle = new Vector2(0.5f, 0.5f); + + // Token: 0x04000439 RID: 1081 + private static readonly Vector2 PivotLower = new Vector2(0.5f, 0.5f); + + // Token: 0x0400043A RID: 1082 + [SerializeField] + protected Image _titleImage; + + // Token: 0x0400043B RID: 1083 + [SerializeField] + protected Image _windowImage; + + // Token: 0x0400043C RID: 1084 + [SerializeField] + [Header("タイトルテキスト")] + protected TextMeshProUGUI _titleText; + + // Token: 0x0400043D RID: 1085 + [SerializeField] + [Header("メッセージ本体")] + protected TextMeshProUGUI _messageText; + + // Token: 0x0400043E RID: 1086 + [SerializeField] + private VerticalLayoutGroup _verticalLayoutGroup; + + // Token: 0x0400043F RID: 1087 + [SerializeField] + private HorizontalLayoutGroup _horizontalLayoutGroup; + + // Token: 0x04000440 RID: 1088 + [SerializeField] + [Tooltip("ウィンドウ用")] + private CanvasGroup _windowGroup; + + // Token: 0x04000441 RID: 1089 + [SerializeField] + [Tooltip("タイトルグループ")] + protected CanvasGroup _titleGroup; + + // Token: 0x04000442 RID: 1090 + [SerializeField] + [Header("個別パーツ")] + private Image _iconImage; + + // Token: 0x04000443 RID: 1091 + protected CommonWindow.WindowState _state; + + // Token: 0x04000444 RID: 1092 + private WindowPositionID _positionID; + + // Token: 0x04000445 RID: 1093 + protected float LifeTime; + + // Token: 0x04000446 RID: 1094 + protected float _lifeCounter; + + // Token: 0x04000447 RID: 1095 + protected bool _isOpening; + + // Token: 0x04000448 RID: 1096 + private const float START_ANIM_TIME = 350f; + + // Token: 0x04000449 RID: 1097 + private const float END_ANIM_TIME = 350f; + + // Token: 0x0400044A RID: 1098 + private readonly Vector3 ADJUST_POS = new Vector3(0f, 50f, 0f); + + // Token: 0x0400044B RID: 1099 + private Vector3 _startPos = Vector3.zero; + + // Token: 0x0400044C RID: 1100 + private Vector3 _endPos = Vector3.zero; + + // Token: 0x0400044D RID: 1101 + private float _animationCounter; + + // Token: 0x02000984 RID: 2436 + public enum WindowState + { + // Token: 0x04006034 RID: 24628 + Idle, + // Token: 0x04006035 RID: 24629 + Prepare, + // Token: 0x04006036 RID: 24630 + StartAnim, + // Token: 0x04006037 RID: 24631 + LifeCounting, + // Token: 0x04006038 RID: 24632 + EndAnim + } +} diff --git a/Assembly-CSharp/ComponentUtility.cs b/Assembly-CSharp/ComponentUtility.cs new file mode 100644 index 0000000..2c88a88 --- /dev/null +++ b/Assembly-CSharp/ComponentUtility.cs @@ -0,0 +1,34 @@ +using System; +using System.Reflection; +using UnityEngine; + +// Token: 0x02000190 RID: 400 +public static class ComponentUtility +{ + // Token: 0x06000E17 RID: 3607 RVA: 0x00042FD4 File Offset: 0x000421D4 + public static T CopyFrom(this T self, T other) where T : Component + { + Type typeFromHandle = typeof(T); + foreach (FieldInfo fieldInfo in typeFromHandle.GetFields()) + { + if (!fieldInfo.IsStatic) + { + fieldInfo.SetValue(self, fieldInfo.GetValue(other)); + } + } + foreach (PropertyInfo propertyInfo in typeFromHandle.GetProperties()) + { + if (propertyInfo.CanWrite && propertyInfo.CanRead && !(propertyInfo.Name == "name")) + { + propertyInfo.SetValue(self, propertyInfo.GetValue(other)); + } + } + return self; + } + + // Token: 0x06000E18 RID: 3608 RVA: 0x00043082 File Offset: 0x00042282 + public static T AddComponent(this GameObject self, T other) where T : Component + { + return self.AddComponent().CopyFrom(other); + } +} diff --git a/Assembly-CSharp/ConfirmNameWindow.cs b/Assembly-CSharp/ConfirmNameWindow.cs new file mode 100644 index 0000000..ba1816f --- /dev/null +++ b/Assembly-CSharp/ConfirmNameWindow.cs @@ -0,0 +1,35 @@ +using System; +using DB; +using MAI2System; +using UnityEngine; + +// Token: 0x0200010C RID: 268 +public class ConfirmNameWindow : CommonWindow +{ + // Token: 0x06000865 RID: 2149 RVA: 0x0002070C File Offset: 0x0001F90C + public void Prepare(NameField[] nameField, WindowMessageID id) + { + this._inputController.AllResetString(); + for (int i = 0; i < nameField.Length; i++) + { + string str = nameField[i].GetStr(); + if (str == ConstParameter.SymboleChar_End) + { + break; + } + this._inputController.SetString(i, (str == ConstParameter.SymboleChar_Space) ? "\u3000" : str); + } + this._titleText.text = id.GetTitle(); + this._messageText.text = id.GetName(); + this._lifeCounter = 0f; + this.LifeTime = -1f; + this._state = CommonWindow.WindowState.Prepare; + this._isOpening = true; + base.SetPosition(Vector3.zero); + } + + // Token: 0x040006AE RID: 1710 + [SerializeField] + [Header("名前入力フィールド")] + private InputNameFieldController _inputController; +} diff --git a/Assembly-CSharp/Console.cs b/Assembly-CSharp/Console.cs new file mode 100644 index 0000000..fa901e3 --- /dev/null +++ b/Assembly-CSharp/Console.cs @@ -0,0 +1,30 @@ +using System; +using System.Diagnostics; + +// Token: 0x02000033 RID: 51 +public static class Console +{ + // Token: 0x06000129 RID: 297 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("APP_DEBUG")] + public static void Initialize() + { + } + + // Token: 0x0600012A RID: 298 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("APP_DEBUG")] + public static void Terminate() + { + } + + // Token: 0x0600012B RID: 299 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("APP_DEBUG")] + public static void Log(string msg) + { + } + + // Token: 0x0600012C RID: 300 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("APP_DEBUG")] + public static void LogFormat(string msg, params object[] args) + { + } +} diff --git a/Assembly-CSharp/ContinueButtonController.cs b/Assembly-CSharp/ContinueButtonController.cs new file mode 100644 index 0000000..cf543d1 --- /dev/null +++ b/Assembly-CSharp/ContinueButtonController.cs @@ -0,0 +1,34 @@ +using System; +using Manager; +using UI; +using UnityEngine; + +// Token: 0x02000085 RID: 133 +public class ContinueButtonController : ButtonControllerBase +{ + // Token: 0x060004D2 RID: 1234 RVA: 0x00011C5C File Offset: 0x00010E5C + public override void Initialize(int monitorIndex) + { + base.Initialize(monitorIndex); + this.CommonButtons = new CommonButtonObject[this._positions.Length]; + this.CommonButtons[3] = Object.Instantiate(CommonPrefab.GetFlatButtonObject(), this._positions[3]); + this.CommonButtons[3].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Yes).LedColor); + this.CommonButtons[3].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Yes).Image, false); + this.CommonButtons[3].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Yes).Cue); + this.CommonButtons[4] = Object.Instantiate(CommonPrefab.GetFlatButtonObject(), this._positions[4]); + this.CommonButtons[4].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button05, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).LedColor); + this.CommonButtons[4].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).Image, true); + this.CommonButtons[4].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).Cue); + } + + // Token: 0x060004D3 RID: 1235 RVA: 0x00011D58 File Offset: 0x00010F58 + public void ChangeFlatButtonSymbol(int index, int spriteNum) + { + if (this.CommonButtons[index] != null) + { + this.CommonButtons[index].SetSymbol(ButtonControllerBase.GetFlatButtonParam(spriteNum).Image, false); + this.CommonButtons[index].ChangeColor(ButtonControllerBase.GetFlatButtonParam(spriteNum).LedColor, false); + this.CommonButtons[index].SetSE(ButtonControllerBase.GetFlatButtonParam(spriteNum).Cue); + } + } +} diff --git a/Assembly-CSharp/CopyButtons.cs b/Assembly-CSharp/CopyButtons.cs new file mode 100644 index 0000000..2ce7e63 --- /dev/null +++ b/Assembly-CSharp/CopyButtons.cs @@ -0,0 +1,30 @@ +using System; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x0200000B RID: 11 +public class CopyButtons : MonoBehaviour +{ + // Token: 0x06000033 RID: 51 RVA: 0x00002AEC File Offset: 0x00001CEC + public void Prepare(IInputField inputField) + { + this._copyTButton.onClick.RemoveAllListeners(); + this._copyTButton.onClick.AddListener(delegate + { + GUIUtility.systemCopyBuffer = inputField.Title(); + }); + this._copyMButton.onClick.RemoveAllListeners(); + this._copyMButton.onClick.AddListener(delegate + { + GUIUtility.systemCopyBuffer = inputField.Message(); + }); + } + + // Token: 0x04000015 RID: 21 + [SerializeField] + private Button _copyTButton; + + // Token: 0x04000016 RID: 22 + [SerializeField] + private Button _copyMButton; +} diff --git a/Assembly-CSharp/CoroutineHandler.cs b/Assembly-CSharp/CoroutineHandler.cs new file mode 100644 index 0000000..f730ae9 --- /dev/null +++ b/Assembly-CSharp/CoroutineHandler.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections; +using UnityEngine; + +// Token: 0x02000036 RID: 54 +public class CoroutineHandler : MonoBehaviour +{ + // Token: 0x17000042 RID: 66 + // (get) Token: 0x06000161 RID: 353 RVA: 0x00005C45 File Offset: 0x00004E45 + public static CoroutineHandler instance + { + get + { + if (CoroutineHandler.m_Instance == null) + { + GameObject gameObject = new GameObject("CoroutineHandler"); + Object.DontDestroyOnLoad(gameObject); + CoroutineHandler.m_Instance = gameObject.AddComponent(); + } + return CoroutineHandler.m_Instance; + } + } + + // Token: 0x06000162 RID: 354 RVA: 0x00005C73 File Offset: 0x00004E73 + public static Coroutine StartStaticCoroutine(IEnumerator coroutine) + { + return CoroutineHandler.instance.StartCoroutine(coroutine); + } + + // Token: 0x06000163 RID: 355 RVA: 0x00005C80 File Offset: 0x00004E80 + public static void StopStaticCoroutine(Coroutine coroutine) + { + CoroutineHandler.instance.StopCoroutine(coroutine); + Object.Destroy(CoroutineHandler.m_Instance.gameObject); + CoroutineHandler.m_Instance = null; + } + + // Token: 0x040000E0 RID: 224 + protected static CoroutineHandler m_Instance; +} diff --git a/Assembly-CSharp/CourseBGController.cs b/Assembly-CSharp/CourseBGController.cs new file mode 100644 index 0000000..17cb003 --- /dev/null +++ b/Assembly-CSharp/CourseBGController.cs @@ -0,0 +1,58 @@ +using System; +using UnityEngine; + +// Token: 0x02000089 RID: 137 +public class CourseBGController : MonoBehaviour +{ + // Token: 0x060004DE RID: 1246 RVA: 0x0001229C File Offset: 0x0001149C + public void SetAnim(CourseBGController.BGAnim anim) + { + string text = ""; + switch (anim) + { + case CourseBGController.BGAnim.Dani_Loop: + text = "Dani_Loop"; + break; + case CourseBGController.BGAnim.Dani_Track_Loop: + text = "Dani_Track_Loop"; + break; + case CourseBGController.BGAnim.Idle: + text = "Idle"; + break; + case CourseBGController.BGAnim.SinDani_In: + text = "ShinDani_In"; + break; + case CourseBGController.BGAnim.SinDani_Loop: + text = "ShinDani_Loop"; + break; + case CourseBGController.BGAnim.SinDani_Track_Loop: + text = "ShinDani_Track_Loop"; + break; + } + if (text != "" && this._anim != null) + { + this._anim.Play(text); + } + } + + // Token: 0x0400034F RID: 847 + [SerializeField] + private Animator _anim; + + // Token: 0x02000977 RID: 2423 + public enum BGAnim + { + // Token: 0x04005FFE RID: 24574 + Dani_Loop, + // Token: 0x04005FFF RID: 24575 + Dani_Track_Loop, + // Token: 0x04006000 RID: 24576 + Idle, + // Token: 0x04006001 RID: 24577 + SinDani_In, + // Token: 0x04006002 RID: 24578 + SinDani_Loop, + // Token: 0x04006003 RID: 24579 + SinDani_Track_Loop + } +} diff --git a/Assembly-CSharp/CourseCard.cs b/Assembly-CSharp/CourseCard.cs new file mode 100644 index 0000000..a6ba167 --- /dev/null +++ b/Assembly-CSharp/CourseCard.cs @@ -0,0 +1,249 @@ +using System; +using DB; +using Manager; +using TMPro; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x0200008A RID: 138 +public class CourseCard : MonoBehaviour +{ + // Token: 0x060004E0 RID: 1248 RVA: 0x00012324 File Offset: 0x00011524 + public void Initialize() + { + if (this._originalClearPlateObj != null && this._clearPlateTransform != null) + { + this._clearPlate = Object.Instantiate(this._originalClearPlateObj, this._clearPlateTransform).GetComponent(); + this._clearPlate.gameObject.SetActive(false); + } + } + + // Token: 0x060004E1 RID: 1249 RVA: 0x0001237C File Offset: 0x0001157C + public void Prepare(Sprite sprite, int mode, MusicLevelID level, int life, int recover, int greatDamage, int goodDamage, int missDamage, int achieve, int restLife, bool isPlay, bool isMain) + { + string text = life.ToString(); + int i = life; + int num = 0; + while (i < 100) + { + i *= 10; + text += " "; + num++; + if (num >= 2) + { + break; + } + } + if (this._image != null) + { + this._image.sprite = sprite; + } + if (isMain) + { + if (this._levelText != null) + { + this._levelText.text = CommonMessageID.DaniMaxLevel.GetName() + level.GetLevelNum(); + if (mode - 1 >= 0 && mode - 1 < this._materials.Length) + { + this._levelText.fontMaterial = this._materials[mode - 1]; + } + } + } + else if (this._levelText != null) + { + this._levelText.text = "等级上限\n" + level.GetLevelNum(); + if (mode - 1 >= 0 && mode - 1 < this._materials.Length) + { + this._levelText.fontMaterial = this._materials[mode - 1]; + } + } + if (this._lifeText != null) + { + this._lifeText.ChangeText(text); + } + if (this._recoverText != null) + { + this._recoverText.text = ""; + if (recover > 0) + { + this._recoverText.text = "+"; + } + TextMeshProUGUI recoverText = this._recoverText; + recoverText.text += recover.ToString(); + } + if (this._greatDamegeText != null) + { + this._greatDamegeText.text = ""; + if (greatDamage > 0) + { + this._greatDamegeText.text = "-"; + } + TextMeshProUGUI greatDamegeText = this._greatDamegeText; + greatDamegeText.text += greatDamage.ToString(); + } + if (this._goodDamegeText != null) + { + this._goodDamegeText.text = ""; + if (goodDamage > 0) + { + this._goodDamegeText.text = "-"; + } + TextMeshProUGUI goodDamegeText = this._goodDamegeText; + goodDamegeText.text += goodDamage.ToString(); + } + if (this._missDamegeText != null) + { + this._missDamegeText.text = ""; + if (missDamage > 0) + { + this._missDamegeText.text = "-"; + } + TextMeshProUGUI missDamegeText = this._missDamegeText; + missDamegeText.text += missDamage.ToString(); + } + if (this._achieveText != null) + { + this._achieveText.text = ((float)achieve / 10000f).ToString("0.0000") + "%"; + } + if (this._daniBG != null && this._sinDaniBG != null && this._sinDaniBG != null) + { + switch (mode) + { + case 1: + this._daniBG.SetActive(true); + this._sinDaniBG.SetActive(false); + this._randomBG.SetActive(false); + break; + case 2: + this._daniBG.SetActive(false); + this._sinDaniBG.SetActive(true); + this._randomBG.SetActive(false); + break; + case 3: + this._daniBG.SetActive(false); + this._sinDaniBG.SetActive(false); + this._randomBG.SetActive(true); + break; + } + } + bool flag = restLife != 0; + this.SetClearPlate(isPlay, flag); + this._totalScoreDaniText.text = CommonMessageID.DaniTotalScore.GetName(); + this._totalScoreShinDaniText.text = CommonMessageID.DaniTotalScore.GetName(); + this._totalScoreRandomDaniText.text = CommonMessageID.DaniTotalScore.GetName(); + } + + // Token: 0x060004E2 RID: 1250 RVA: 0x0001271B File Offset: 0x0001191B + public void SetPlayAnim(string animName) + { + if (this._anim != null) + { + this._anim.Play(animName); + } + } + + // Token: 0x060004E3 RID: 1251 RVA: 0x00012737 File Offset: 0x00011937 + public void SetClearPlate(bool isActive, bool isClear) + { + CourseClearPlate clearPlate = this._clearPlate; + if (clearPlate != null) + { + clearPlate.gameObject.SetActive(isActive); + } + if (isActive) + { + CourseClearPlate clearPlate2 = this._clearPlate; + if (clearPlate2 != null) + { + clearPlate2.ViewClear(isClear); + } + CourseClearPlate clearPlate3 = this._clearPlate; + if (clearPlate3 == null) + { + return; + } + clearPlate3.SetAnim(CourseClearPlate.BGAnim.Loop); + } + } + + // Token: 0x060004E4 RID: 1252 RVA: 0x00012778 File Offset: 0x00011978 + public void Prepare(CourseCardData data, bool isMain) + { + this.Prepare(data._sprite, data._courseMode, data._level, data._life, data._recover, data._greatDamage, data._goodDamage, data._missDamage, data._achievement, data._restLife, data._isPlay, isMain); + } + + // Token: 0x04000350 RID: 848 + [SerializeField] + private Image _image; + + // Token: 0x04000351 RID: 849 + [SerializeField] + private GameObject _daniBG; + + // Token: 0x04000352 RID: 850 + [SerializeField] + private GameObject _sinDaniBG; + + // Token: 0x04000353 RID: 851 + [SerializeField] + private GameObject _randomBG; + + // Token: 0x04000354 RID: 852 + [SerializeField] + private Material[] _materials; + + // Token: 0x04000355 RID: 853 + [SerializeField] + private TextMeshProUGUI _levelText; + + // Token: 0x04000356 RID: 854 + [SerializeField] + private SpriteCounter _lifeText; + + // Token: 0x04000357 RID: 855 + [SerializeField] + private TextMeshProUGUI _recoverText; + + // Token: 0x04000358 RID: 856 + [SerializeField] + private TextMeshProUGUI _greatDamegeText; + + // Token: 0x04000359 RID: 857 + [SerializeField] + private TextMeshProUGUI _goodDamegeText; + + // Token: 0x0400035A RID: 858 + [SerializeField] + private TextMeshProUGUI _missDamegeText; + + // Token: 0x0400035B RID: 859 + [SerializeField] + private TextMeshProUGUI _achieveText; + + // Token: 0x0400035C RID: 860 + [SerializeField] + private TextMeshProUGUI _totalScoreDaniText; + + // Token: 0x0400035D RID: 861 + [SerializeField] + private TextMeshProUGUI _totalScoreShinDaniText; + + // Token: 0x0400035E RID: 862 + [SerializeField] + private TextMeshProUGUI _totalScoreRandomDaniText; + + // Token: 0x0400035F RID: 863 + [SerializeField] + private Animator _anim; + + // Token: 0x04000360 RID: 864 + [SerializeField] + private Transform _clearPlateTransform; + + // Token: 0x04000361 RID: 865 + [SerializeField] + private GameObject _originalClearPlateObj; + + // Token: 0x04000362 RID: 866 + private CourseClearPlate _clearPlate; +} diff --git a/Assembly-CSharp/CourseCardData.cs b/Assembly-CSharp/CourseCardData.cs new file mode 100644 index 0000000..92e08fd --- /dev/null +++ b/Assembly-CSharp/CourseCardData.cs @@ -0,0 +1,61 @@ +using System; +using Manager; +using UnityEngine; + +// Token: 0x02000151 RID: 337 +public class CourseCardData +{ + // Token: 0x06000BF6 RID: 3062 RVA: 0x00003560 File Offset: 0x00002760 + public CourseCardData() + { + } + + // Token: 0x06000BF7 RID: 3063 RVA: 0x00037810 File Offset: 0x00036A10 + public CourseCardData(Sprite sprite, int courseMode, MusicLevelID level, int life, int recover, int greatDamage, int goodDamage, int missDamage, int achievement, int restLife, bool isPlay) + { + this._sprite = sprite; + this._courseMode = courseMode; + this._level = level; + this._life = life; + this._recover = recover; + this._greatDamage = greatDamage; + this._goodDamage = goodDamage; + this._missDamage = missDamage; + this._achievement = achievement; + this._restLife = restLife; + this._isPlay = isPlay; + } + + // Token: 0x0400093A RID: 2362 + public Sprite _sprite; + + // Token: 0x0400093B RID: 2363 + public int _courseMode; + + // Token: 0x0400093C RID: 2364 + public MusicLevelID _level; + + // Token: 0x0400093D RID: 2365 + public int _life; + + // Token: 0x0400093E RID: 2366 + public int _recover; + + // Token: 0x0400093F RID: 2367 + public int _greatDamage; + + // Token: 0x04000940 RID: 2368 + public int _goodDamage; + + // Token: 0x04000941 RID: 2369 + public int _missDamage; + + // Token: 0x04000942 RID: 2370 + public int _achievement; + + // Token: 0x04000943 RID: 2371 + public int _restLife; + + // Token: 0x04000944 RID: 2372 + public bool _isPlay; +} diff --git a/Assembly-CSharp/CourseCardSelectController.cs b/Assembly-CSharp/CourseCardSelectController.cs new file mode 100644 index 0000000..ba98433 --- /dev/null +++ b/Assembly-CSharp/CourseCardSelectController.cs @@ -0,0 +1,280 @@ +using System; +using System.Collections.Generic; +using UnityEngine; + +// Token: 0x0200008B RID: 139 +public class CourseCardSelectController : CourseControllerBase +{ + // Token: 0x060004E6 RID: 1254 RVA: 0x000127D0 File Offset: 0x000119D0 + private void Awake() + { + this._leftSelectCard = new CourseCard[this._leftTransforms.Length]; + this._rightSelectCard = new CourseCard[this._rightTransforms.Length]; + this._leftModeSelectCard = new CourseModeCard[this._leftTransforms.Length]; + this._rightModeSelectCard = new CourseModeCard[this._rightTransforms.Length]; + this._leftSeparator = new CourseSeparator[this._leftTransforms.Length]; + this._rightSeparator = new CourseSeparator[this._leftTransforms.Length]; + for (int i = 0; i < this._leftTransforms.Length; i++) + { + this._leftSelectCard[i] = Object.Instantiate(this._miniSelectCardOrigin, this._leftTransforms[i]).GetComponent(); + this._leftSelectCard[i].Initialize(); + this._leftModeSelectCard[i] = Object.Instantiate(this._miniModeSelectCardOrigin, this._leftTransforms[i]).GetComponent(); + this._leftSeparator[i] = Object.Instantiate(this._separatorOrigin, this._leftTransforms[i]).GetComponent(); + } + for (int j = 0; j < this._rightTransforms.Length; j++) + { + this._rightSelectCard[j] = Object.Instantiate(this._miniSelectCardOrigin, this._rightTransforms[j]).GetComponent(); + this._rightSelectCard[j].Initialize(); + this._rightModeSelectCard[j] = Object.Instantiate(this._miniModeSelectCardOrigin, this._rightTransforms[j]).GetComponent(); + this._rightSeparator[j] = Object.Instantiate(this._separatorOrigin, this._rightTransforms[j]).GetComponent(); + } + this._mainSelectCard = Object.Instantiate(this._mainSelectCardOrigin, this._mainCardTransform).GetComponent(); + this._mainSelectCard.Initialize(); + this._mainModeSelectCard = Object.Instantiate(this._mainModeSelectCardOrigin, this._mainModeCardTransform).GetComponent(); + this._tabButtons = new TabButton[this._tabButtonTrans.Length]; + for (int k = 0; k < this._tabButtons.Length; k++) + { + this._tabButtons[k] = Object.Instantiate(this._tabButtonObj, this._tabButtonTrans[k]).GetComponent(); + } + } + + // Token: 0x060004E7 RID: 1255 RVA: 0x000129D8 File Offset: 0x00011BD8 + public void PrepareModeSelectMainPanel(CourseModeCardData modeCardData) + { + this._mainModeSelectCard.Prepare(modeCardData); + } + + // Token: 0x060004E8 RID: 1256 RVA: 0x000129E6 File Offset: 0x00011BE6 + public void SetModeSelectData(List modeCardDatas) + { + this._modeCardDatas = modeCardDatas; + this._isAnimation = true; + } + + // Token: 0x060004E9 RID: 1257 RVA: 0x000129F6 File Offset: 0x00011BF6 + public void SetSelectData(List carDatas) + { + this._cardDatas = carDatas; + this._isAnimation = true; + } + + // Token: 0x060004EA RID: 1258 RVA: 0x00012A08 File Offset: 0x00011C08 + public void UpdateSelectCard(int currentCategoryId, int currentCardId) + { + if (!this._isAnimation) + { + return; + } + int num = currentCardId; + int num2 = currentCategoryId; + int num3 = this._leftSelectCard.Length - 1; + while (-1 < num3) + { + if (num < 0) + { + this._leftSelectCard[num3].gameObject.SetActive(false); + if (num == -1) + { + num2 = (num2 + this._modeCardDatas.Count - 1) % this._modeCardDatas.Count; + this._leftSeparator[num3].SetShow(this._modeCardDatas[num2]._courseMode, false); + this._leftSeparator[num3].gameObject.SetActive(true); + } + else + { + this._leftSeparator[num3].gameObject.SetActive(false); + } + } + if (0 <= num) + { + this._leftSelectCard[num3].gameObject.SetActive(true); + this._leftSelectCard[num3].Prepare(this._cardDatas[num], false); + this._leftSelectCard[num3].SetPlayAnim("Loop"); + num--; + this._leftSeparator[num3].gameObject.SetActive(false); + } + num3--; + } + num = currentCardId; + num2 = currentCategoryId; + for (int i = 0; i < this._rightSelectCard.Length; i++) + { + if (this._cardDatas.Count <= num) + { + this._rightSelectCard[i].gameObject.SetActive(false); + if (this._cardDatas.Count == num) + { + num2 = (num2 + 1) % this._modeCardDatas.Count; + this._rightSeparator[i].SetShow(this._modeCardDatas[num2]._courseMode, true); + this._rightSeparator[i].gameObject.SetActive(true); + } + else + { + this._rightSeparator[i].gameObject.SetActive(false); + } + } + if (num < this._cardDatas.Count) + { + this._rightSelectCard[i].gameObject.SetActive(true); + this._rightSelectCard[i].Prepare(this._cardDatas[num], false); + this._rightSelectCard[i].SetPlayAnim("Loop"); + num++; + this._rightSeparator[i].gameObject.SetActive(false); + } + } + CourseCardData courseCardData = this._cardDatas[currentCardId]; + this._mainSelectCard.gameObject.SetActive(true); + this._mainSelectCard.Prepare(courseCardData, true); + this._mainSelectCard.SetPlayAnim("Loop"); + } + + // Token: 0x060004EB RID: 1259 RVA: 0x00012C64 File Offset: 0x00011E64 + public void UpdateModeSelectCard(int currentCategoryId) + { + if (!this._isAnimation) + { + return; + } + int num = currentCategoryId; + int num2 = this._leftModeSelectCard.Length - 1; + while (-1 < num2) + { + if (num < 0) + { + this._leftModeSelectCard[num2].gameObject.SetActive(false); + } + if (0 <= num) + { + this._leftModeSelectCard[num2].gameObject.SetActive(true); + this._leftModeSelectCard[num2].Prepare(this._modeCardDatas[num]); + this._leftModeSelectCard[num2].SetPlayAnim("Loop"); + num--; + } + num2--; + } + num = currentCategoryId; + for (int i = 0; i < this._rightModeSelectCard.Length; i++) + { + if (this._modeCardDatas.Count <= num) + { + this._rightModeSelectCard[i].gameObject.SetActive(false); + } + if (num < this._modeCardDatas.Count) + { + this._rightModeSelectCard[i].gameObject.SetActive(true); + this._rightModeSelectCard[i].Prepare(this._modeCardDatas[num]); + this._rightModeSelectCard[i].SetPlayAnim("Loop"); + num++; + } + } + CourseModeCardData courseModeCardData = this._modeCardDatas[currentCategoryId]; + this._mainModeSelectCard.gameObject.SetActive(true); + this._mainModeSelectCard.Prepare(courseModeCardData); + this._mainModeSelectCard.SetPlayAnim("Loop"); + } + + // Token: 0x060004EC RID: 1260 RVA: 0x00012DB0 File Offset: 0x00011FB0 + public void SetHideSelectCard() + { + for (int i = 0; i < this._leftSelectCard.Length; i++) + { + this._leftSelectCard[i].gameObject.SetActive(false); + this._leftSeparator[i].gameObject.SetActive(false); + } + for (int j = 0; j < this._rightSelectCard.Length; j++) + { + this._rightSelectCard[j].gameObject.SetActive(false); + this._rightSeparator[j].gameObject.SetActive(false); + } + this._mainSelectCard.gameObject.SetActive(false); + } + + // Token: 0x060004ED RID: 1261 RVA: 0x00012E40 File Offset: 0x00012040 + public void SetHideModeSelectCard() + { + for (int i = 0; i < this._leftModeSelectCard.Length; i++) + { + this._leftModeSelectCard[i].gameObject.SetActive(false); + } + for (int j = 0; j < this._rightModeSelectCard.Length; j++) + { + this._rightModeSelectCard[j].gameObject.SetActive(false); + } + this._mainModeSelectCard.gameObject.SetActive(false); + } + + // Token: 0x060004EE RID: 1262 RVA: 0x00012EAC File Offset: 0x000120AC + public void SetVisiblSelecteParts(bool isActive) + { + for (int i = 0; i < this._tabButtons.Length; i++) + { + this._tabButtons[i].SetActiveButton(isActive); + } + } + + // Token: 0x060004EF RID: 1263 RVA: 0x00012EDC File Offset: 0x000120DC + public void SetVisibleModeSelectParts(bool isActive) + { + for (int i = 0; i < this._tabButtons.Length; i++) + { + this._tabButtons[i].SetActiveButton(isActive); + } + } + + // Token: 0x04000363 RID: 867 + [SerializeField] + private Transform _mainCardTransform; + + // Token: 0x04000364 RID: 868 + [SerializeField] + private Transform _mainModeCardTransform; + + // Token: 0x04000365 RID: 869 + [SerializeField] + private GameObject _miniSelectCardOrigin; + + // Token: 0x04000366 RID: 870 + [SerializeField] + private GameObject _miniModeSelectCardOrigin; + + // Token: 0x04000367 RID: 871 + [SerializeField] + private GameObject _mainSelectCardOrigin; + + // Token: 0x04000368 RID: 872 + [SerializeField] + private GameObject _mainModeSelectCardOrigin; + + // Token: 0x04000369 RID: 873 + [SerializeField] + private GameObject _separatorOrigin; + + // Token: 0x0400036A RID: 874 + private CourseCard _mainSelectCard; + + // Token: 0x0400036B RID: 875 + private CourseModeCard _mainModeSelectCard; + + // Token: 0x0400036C RID: 876 + private CourseCard[] _leftSelectCard; + + // Token: 0x0400036D RID: 877 + private CourseCard[] _rightSelectCard; + + // Token: 0x0400036E RID: 878 + private CourseModeCard[] _leftModeSelectCard; + + // Token: 0x0400036F RID: 879 + private CourseModeCard[] _rightModeSelectCard; + + // Token: 0x04000370 RID: 880 + private CourseSeparator[] _leftSeparator; + + // Token: 0x04000371 RID: 881 + private CourseSeparator[] _rightSeparator; + + // Token: 0x04000372 RID: 882 + private List _cardDatas = new List(); + + // Token: 0x04000373 RID: 883 + private List _modeCardDatas = new List(); +} diff --git a/Assembly-CSharp/CourseClearPlate.cs b/Assembly-CSharp/CourseClearPlate.cs new file mode 100644 index 0000000..80fcedb --- /dev/null +++ b/Assembly-CSharp/CourseClearPlate.cs @@ -0,0 +1,63 @@ +using System; +using UnityEngine; + +// Token: 0x0200008C RID: 140 +public class CourseClearPlate : MonoBehaviour +{ + // Token: 0x060004F1 RID: 1265 RVA: 0x00012F28 File Offset: 0x00012128 + public void SetAnim(CourseClearPlate.BGAnim anim) + { + string text = ""; + switch (anim) + { + case CourseClearPlate.BGAnim.Idle: + text = "Idle"; + break; + case CourseClearPlate.BGAnim.In: + text = "In"; + break; + case CourseClearPlate.BGAnim.Loop: + text = "Loop"; + break; + case CourseClearPlate.BGAnim.Out: + text = "Out"; + break; + } + if (text != "" && this._anim != null) + { + this._anim.Play(text); + } + } + + // Token: 0x060004F2 RID: 1266 RVA: 0x00012F98 File Offset: 0x00012198 + public void ViewClear(bool isClear) + { + this._clearObj.SetActive(isClear); + this._noClearObj.SetActive(!isClear); + } + + // Token: 0x04000374 RID: 884 + [SerializeField] + private Animator _anim; + + // Token: 0x04000375 RID: 885 + [SerializeField] + private GameObject _clearObj; + + // Token: 0x04000376 RID: 886 + [SerializeField] + private GameObject _noClearObj; + + // Token: 0x02000978 RID: 2424 + public enum BGAnim + { + // Token: 0x04006005 RID: 24581 + Idle, + // Token: 0x04006006 RID: 24582 + In, + // Token: 0x04006007 RID: 24583 + Loop, + // Token: 0x04006008 RID: 24584 + Out + } +} diff --git a/Assembly-CSharp/CourseControllerBase.cs b/Assembly-CSharp/CourseControllerBase.cs new file mode 100644 index 0000000..1462175 --- /dev/null +++ b/Assembly-CSharp/CourseControllerBase.cs @@ -0,0 +1,174 @@ +using System; +using Manager; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x0200008D RID: 141 +public class CourseControllerBase : MonoBehaviour +{ + // Token: 0x060004F4 RID: 1268 RVA: 0x00003598 File Offset: 0x00002798 + private void Awake() + { + } + + // Token: 0x060004F5 RID: 1269 RVA: 0x00012FB8 File Offset: 0x000121B8 + public virtual void Initialize(int monitorIndex) + { + this._monitorIndex = monitorIndex; + for (int i = 0; i < this._tabButtons.Length; i++) + { + this._tabButtons[i].Initialize(this._monitorIndex); + } + this._tabButtons[0].UseRightArrow(); + this._tabButtons[1].UseLeftArrow(); + this._animation.Play("Out"); + this.SetVisibleParts(false); + } + + // Token: 0x060004F6 RID: 1270 RVA: 0x00013024 File Offset: 0x00012224 + public void UpdateButtonView() + { + if (!this._isAnimation) + { + return; + } + this._syncTimer += (float)GameManager.GetGameMSecAdd() / 1000f; + for (int i = 0; i < this._tabButtons.Length; i++) + { + this._tabButtons[i].ViewUpdate(this._syncTimer); + } + if (1f < this._syncTimer) + { + this._syncTimer = 0f; + } + } + + // Token: 0x060004F7 RID: 1271 RVA: 0x00013091 File Offset: 0x00012291 + public void PlayInAnimation() + { + this._animation.Play("In"); + this._isAnimation = true; + this.SetVisibleParts(true); + } + + // Token: 0x060004F8 RID: 1272 RVA: 0x000130B4 File Offset: 0x000122B4 + public void PlayOutAnimation() + { + if (this._isAnimation) + { + this._animation.Play("Out"); + this._isAnimation = false; + this.SetVisibleParts(false); + Image leftIcon = this._leftIcon; + if (leftIcon != null) + { + leftIcon.gameObject.SetActive(false); + } + Image rightIcon = this._rightIcon; + if (rightIcon == null) + { + return; + } + rightIcon.gameObject.SetActive(false); + } + } + + // Token: 0x060004F9 RID: 1273 RVA: 0x00013114 File Offset: 0x00012314 + public void PlayChangeAnimation() + { + this._animation.Play("In_Change"); + } + + // Token: 0x060004FA RID: 1274 RVA: 0x00013126 File Offset: 0x00012326 + public void PlayMoveRightAnimation() + { + this._animation.Play("Move_Right"); + } + + // Token: 0x060004FB RID: 1275 RVA: 0x00013138 File Offset: 0x00012338 + public void PlayMoveLeftAnimation() + { + this._animation.Play("Move_Left"); + } + + // Token: 0x060004FC RID: 1276 RVA: 0x0001314A File Offset: 0x0001234A + public void PressedTabButton(bool isRight) + { + this._tabButtons[isRight ? 0 : 1].Pressed(); + } + + // Token: 0x060004FD RID: 1277 RVA: 0x00003598 File Offset: 0x00002798 + public virtual void SetVisibleParts(bool isActive) + { + } + + // Token: 0x060004FE RID: 1278 RVA: 0x00013160 File Offset: 0x00012360 + public void SetLeftIcon(Sprite sprite) + { + if (this._leftIcon != null) + { + if (sprite != null) + { + this._leftIcon.gameObject.SetActive(true); + this._leftIcon.sprite = sprite; + return; + } + this._leftIcon.gameObject.SetActive(false); + } + } + + // Token: 0x060004FF RID: 1279 RVA: 0x000131B4 File Offset: 0x000123B4 + public void SetRightIcon(Sprite sprite) + { + if (this._rightIcon != null) + { + if (sprite != null) + { + this._rightIcon.gameObject.SetActive(true); + this._rightIcon.sprite = sprite; + return; + } + this._rightIcon.gameObject.SetActive(false); + } + } + + // Token: 0x04000377 RID: 887 + [SerializeField] + protected Transform[] _leftTransforms; + + // Token: 0x04000378 RID: 888 + [SerializeField] + protected Transform[] _rightTransforms; + + // Token: 0x04000379 RID: 889 + [SerializeField] + protected AnimationParts _animation; + + // Token: 0x0400037A RID: 890 + [SerializeField] + protected Transform[] _tabButtonTrans; + + // Token: 0x0400037B RID: 891 + [SerializeField] + protected GameObject _tabButtonObj; + + // Token: 0x0400037C RID: 892 + [SerializeField] + protected Image _leftIcon; + + // Token: 0x0400037D RID: 893 + [SerializeField] + protected Image _rightIcon; + + // Token: 0x0400037E RID: 894 + protected TabButton[] _tabButtons; + + // Token: 0x0400037F RID: 895 + protected bool _isAnimation; + + // Token: 0x04000380 RID: 896 + protected int _monitorIndex; + + // Token: 0x04000381 RID: 897 + protected float _syncTimer; +} diff --git a/Assembly-CSharp/CourseItemInfo.cs b/Assembly-CSharp/CourseItemInfo.cs new file mode 100644 index 0000000..2d53671 --- /dev/null +++ b/Assembly-CSharp/CourseItemInfo.cs @@ -0,0 +1,61 @@ +using System; +using UnityEngine; + +// Token: 0x0200008E RID: 142 +public class CourseItemInfo : MonoBehaviour +{ + // Token: 0x06000501 RID: 1281 RVA: 0x00013208 File Offset: 0x00012408 + public void SetAnim(CourseItemInfo.BGAnim anim) + { + string text = ""; + switch (anim) + { + case CourseItemInfo.BGAnim.Hide: + text = "Hide"; + break; + case CourseItemInfo.BGAnim.Idle: + text = "Idle"; + break; + case CourseItemInfo.BGAnim.In: + text = "In"; + break; + case CourseItemInfo.BGAnim.Loop: + text = "Loop"; + break; + case CourseItemInfo.BGAnim.Out: + text = "Out"; + break; + } + if (text != "" && this._anim != null) + { + this._anim.Play(text); + } + if (this._ItemGot != null) + { + this._ItemGot.SetActive(false); + } + } + + // Token: 0x04000382 RID: 898 + [SerializeField] + private Animator _anim; + + // Token: 0x04000383 RID: 899 + [SerializeField] + private GameObject _ItemGot; + + // Token: 0x02000979 RID: 2425 + public enum BGAnim + { + // Token: 0x0400600A RID: 24586 + Hide, + // Token: 0x0400600B RID: 24587 + Idle, + // Token: 0x0400600C RID: 24588 + In, + // Token: 0x0400600D RID: 24589 + Loop, + // Token: 0x0400600E RID: 24590 + Out + } +} diff --git a/Assembly-CSharp/CourseLife.cs b/Assembly-CSharp/CourseLife.cs new file mode 100644 index 0000000..01a6764 --- /dev/null +++ b/Assembly-CSharp/CourseLife.cs @@ -0,0 +1,114 @@ +using System; +using MAI2.Util; +using Manager; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x02000086 RID: 134 +public class CourseLife : MonoBehaviour +{ + // Token: 0x060004D5 RID: 1237 RVA: 0x00011DC0 File Offset: 0x00010FC0 + public void SetLife(uint life, bool isGame = false, uint initLife = 0U) + { + for (int i = 0; i < this._lifeText.Length; i++) + { + string text = life.ToString("D000"); + if (life > 999U) + { + text = "999"; + } + this._lifeText[i].ChangeText(text); + if (life < 100U) + { + this._lifeText[i].FrameList[2].Scale = 0f; + this._lifeText[i].FrameList[0].RelativePosition.x = 47f; + this._lifeText[i].FrameList[1].RelativePosition.x = 29f; + if (life < 10U) + { + this._lifeText[i].FrameList[1].Scale = 0f; + this._lifeText[i].FrameList[0].RelativePosition.x = 74f; + } + else + { + this._lifeText[i].FrameList[1].Scale = 1f; + } + } + else + { + this._lifeText[i].FrameList[2].Scale = 1f; + this._lifeText[i].FrameList[0].RelativePosition.x = 18f; + this._lifeText[i].FrameList[1].RelativePosition.x = 0f; + this._lifeText[i].FrameList[2].RelativePosition.x = -18f; + } + } + this._lifeZeroText.ChangeText("0"); + switch (Singleton.Instance.GetLifeColor(life, initLife)) + { + case CourseManager.LifeColor.Green: + this._lifeGreenObj.gameObject.SetActive(true); + this._lifeOrangeObj.gameObject.SetActive(false); + this._lifeRedObj.gameObject.SetActive(false); + this._lifeGrayObj.gameObject.SetActive(false); + break; + case CourseManager.LifeColor.Orange: + this._lifeGreenObj.gameObject.SetActive(false); + this._lifeOrangeObj.gameObject.SetActive(true); + this._lifeRedObj.gameObject.SetActive(false); + this._lifeGrayObj.gameObject.SetActive(false); + break; + case CourseManager.LifeColor.Red: + this._lifeGreenObj.gameObject.SetActive(false); + this._lifeOrangeObj.gameObject.SetActive(false); + this._lifeRedObj.gameObject.SetActive(true); + this._lifeGrayObj.gameObject.SetActive(false); + break; + case CourseManager.LifeColor.Gray: + this._lifeGreenObj.gameObject.SetActive(false); + this._lifeOrangeObj.gameObject.SetActive(false); + this._lifeRedObj.gameObject.SetActive(false); + this._lifeGrayObj.gameObject.SetActive(true); + break; + } + if (!isGame) + { + this._mainGroup.alpha = 1f; + this._lifeGreenObj.color = Color.white; + this._lifeOrangeObj.color = Color.white; + this._lifeRedObj.color = Color.white; + this._lifeGrayObj.color = Color.white; + for (int j = 0; j < this._lifeText.Length; j++) + { + this._lifeText[j].SetColor(Color.white); + this._lifeZeroText.SetColor(Color.white); + } + } + } + + // Token: 0x04000344 RID: 836 + [SerializeField] + private CanvasGroup _mainGroup; + + // Token: 0x04000345 RID: 837 + [SerializeField] + private Image _lifeGreenObj; + + // Token: 0x04000346 RID: 838 + [SerializeField] + private Image _lifeOrangeObj; + + // Token: 0x04000347 RID: 839 + [SerializeField] + private Image _lifeRedObj; + + // Token: 0x04000348 RID: 840 + [SerializeField] + private Image _lifeGrayObj; + + // Token: 0x04000349 RID: 841 + [SerializeField] + private SpriteCounter[] _lifeText; + + // Token: 0x0400034A RID: 842 + [SerializeField] + private SpriteCounter _lifeZeroText; +} diff --git a/Assembly-CSharp/CourseModeCard.cs b/Assembly-CSharp/CourseModeCard.cs new file mode 100644 index 0000000..020a035 --- /dev/null +++ b/Assembly-CSharp/CourseModeCard.cs @@ -0,0 +1,122 @@ +using System; +using DB; +using MAI2.Util; +using Manager; +using Manager.MaiStudio; +using TMPro; +using UI; +using UnityEngine; +using UnityEngine.UI; +using Util; + +// Token: 0x0200008F RID: 143 +public class CourseModeCard : MonoBehaviour +{ + // Token: 0x06000503 RID: 1283 RVA: 0x000132A0 File Offset: 0x000124A0 + public void Prepare(Sprite sprite, int mode) + { + if (this._image != null) + { + this._image.sprite = sprite; + } + if (this._daniBG != null && this._sinDaniBG != null && this._sinDaniBG != null) + { + switch (mode) + { + case 1: + this._daniBG.SetActive(true); + this._sinDaniBG.SetActive(false); + this._randomBG.SetActive(false); + break; + case 2: + this._daniBG.SetActive(false); + this._sinDaniBG.SetActive(true); + this._randomBG.SetActive(false); + break; + case 3: + this._daniBG.SetActive(false); + this._sinDaniBG.SetActive(false); + this._randomBG.SetActive(true); + break; + } + } + if (this._modeText != null && this._modeText.Length == 3) + { + if (base.name.Equals("UI_DNM_CategoryBase_Main(Clone)")) + { + this._modeText[0].text = CommonMessageID.CourseModeDani.GetName(); + this._modeText[1].text = CommonMessageID.CourseModeShinDani.GetName(); + this._modeText[2].text = CommonMessageID.CourseModeRandom.GetName(); + } + else if (base.name.Equals("UI_DNM_Tab_MiniBase(Clone)")) + { + Safe.ReadonlySortedDictionary courseModes = Singleton.Instance.GetCourseModes(); + this._modeText[0].text = courseModes[1].name.str; + this._modeText[1].text = courseModes[2].name.str; + this._modeText[2].text = courseModes[3].name.str; + } + } + int num = 0; + switch (mode) + { + case 1: + num = 0; + break; + case 2: + num = 1; + break; + case 3: + num = 2; + break; + } + if (this._backgroundColorGroup != null) + { + this._backgroundColorGroup.SetColor(num); + } + } + + // Token: 0x06000504 RID: 1284 RVA: 0x000134A5 File Offset: 0x000126A5 + public void SetPlayAnim(string animName) + { + if (this._anim != null) + { + this._anim.Play(animName); + } + } + + // Token: 0x06000505 RID: 1285 RVA: 0x000134C1 File Offset: 0x000126C1 + public void Prepare(CourseModeCardData data) + { + this.Prepare(data._sprite, data._courseMode); + } + + // Token: 0x04000384 RID: 900 + [SerializeField] + private Image _image; + + // Token: 0x04000385 RID: 901 + [SerializeField] + private GameObject _daniBG; + + // Token: 0x04000386 RID: 902 + [SerializeField] + private GameObject _sinDaniBG; + + // Token: 0x04000387 RID: 903 + [SerializeField] + private GameObject _randomBG; + + // Token: 0x04000388 RID: 904 + [SerializeField] + private Animator _anim; + + // Token: 0x04000389 RID: 905 + [SerializeField] + [Header("DBテキスト")] + private TextMeshProUGUI[] _modeText; + + // Token: 0x0400038A RID: 906 + [SerializeField] + [Header("背景色関連")] + private ImageColorGroup _backgroundColorGroup; +} diff --git a/Assembly-CSharp/CourseModeCardData.cs b/Assembly-CSharp/CourseModeCardData.cs new file mode 100644 index 0000000..d9d8e8b --- /dev/null +++ b/Assembly-CSharp/CourseModeCardData.cs @@ -0,0 +1,24 @@ +using System; +using UnityEngine; + +// Token: 0x02000152 RID: 338 +public class CourseModeCardData +{ + // Token: 0x06000BF8 RID: 3064 RVA: 0x00003560 File Offset: 0x00002760 + public CourseModeCardData() + { + } + + // Token: 0x06000BF9 RID: 3065 RVA: 0x00037878 File Offset: 0x00036A78 + public CourseModeCardData(Sprite sprite, int courseMode, Color color) + { + this._sprite = sprite; + this._courseMode = courseMode; + } + + // Token: 0x04000945 RID: 2373 + public Sprite _sprite; + + // Token: 0x04000946 RID: 2374 + public int _courseMode; +} diff --git a/Assembly-CSharp/CourseRankUp.cs b/Assembly-CSharp/CourseRankUp.cs new file mode 100644 index 0000000..aa7bcb5 --- /dev/null +++ b/Assembly-CSharp/CourseRankUp.cs @@ -0,0 +1,67 @@ +using System; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x02000087 RID: 135 +public class CourseRankUp : MonoBehaviour +{ + // Token: 0x060004D7 RID: 1239 RVA: 0x00012148 File Offset: 0x00011348 + public void SetAnim(CourseRankUp.BGAnim anim) + { + string text = ""; + switch (anim) + { + case CourseRankUp.BGAnim.Idle: + text = "Idle"; + break; + case CourseRankUp.BGAnim.In_Dani: + text = "In_Dani"; + break; + case CourseRankUp.BGAnim.In_SinDani: + text = "In_ShinDani"; + break; + case CourseRankUp.BGAnim.In_Random: + text = "In_Random"; + break; + case CourseRankUp.BGAnim.Out: + text = "Out"; + break; + } + if (text != "" && this._anim != null) + { + this._anim.Play(text); + } + } + + // Token: 0x060004D8 RID: 1240 RVA: 0x000121C4 File Offset: 0x000113C4 + public void SetClassSprite(Sprite sprite) + { + for (int i = 0; i < this._classImage.Length; i++) + { + this._classImage[i].sprite = sprite; + } + } + + // Token: 0x0400034B RID: 843 + [SerializeField] + private Animator _anim; + + // Token: 0x0400034C RID: 844 + [SerializeField] + private Image[] _classImage; + + // Token: 0x02000975 RID: 2421 + public enum BGAnim + { + // Token: 0x04005FF4 RID: 24564 + Idle, + // Token: 0x04005FF5 RID: 24565 + In_Dani, + // Token: 0x04005FF6 RID: 24566 + In_SinDani, + // Token: 0x04005FF7 RID: 24567 + In_Random, + // Token: 0x04005FF8 RID: 24568 + Out + } +} diff --git a/Assembly-CSharp/CourseSeparator.cs b/Assembly-CSharp/CourseSeparator.cs new file mode 100644 index 0000000..b9aa2c2 --- /dev/null +++ b/Assembly-CSharp/CourseSeparator.cs @@ -0,0 +1,82 @@ +using System; +using UnityEngine; + +// Token: 0x02000090 RID: 144 +public class CourseSeparator : MonoBehaviour +{ + // Token: 0x06000507 RID: 1287 RVA: 0x000134D8 File Offset: 0x000126D8 + public void SetShow(int mode, bool isRight) + { + switch (mode) + { + case 1: + this._sinDaniRight.SetActive(false); + this._sinDaniLeft.SetActive(false); + this._randomRight.SetActive(false); + this._randomLeft.SetActive(false); + if (isRight) + { + this._daniRight.SetActive(true); + this._daniLeft.SetActive(false); + return; + } + this._daniRight.SetActive(false); + this._daniLeft.SetActive(true); + return; + case 2: + this._daniRight.SetActive(false); + this._daniLeft.SetActive(false); + this._randomRight.SetActive(false); + this._randomLeft.SetActive(false); + if (isRight) + { + this._sinDaniRight.SetActive(true); + this._sinDaniLeft.SetActive(false); + return; + } + this._sinDaniRight.SetActive(false); + this._sinDaniLeft.SetActive(true); + return; + case 3: + this._daniRight.SetActive(false); + this._daniLeft.SetActive(false); + this._sinDaniRight.SetActive(false); + this._sinDaniLeft.SetActive(false); + if (isRight) + { + this._randomRight.SetActive(true); + this._randomLeft.SetActive(false); + return; + } + this._randomRight.SetActive(false); + this._randomLeft.SetActive(true); + return; + default: + return; + } + } + + // Token: 0x0400038B RID: 907 + [SerializeField] + private GameObject _daniRight; + + // Token: 0x0400038C RID: 908 + [SerializeField] + private GameObject _daniLeft; + + // Token: 0x0400038D RID: 909 + [SerializeField] + private GameObject _sinDaniRight; + + // Token: 0x0400038E RID: 910 + [SerializeField] + private GameObject _sinDaniLeft; + + // Token: 0x0400038F RID: 911 + [SerializeField] + private GameObject _randomRight; + + // Token: 0x04000390 RID: 912 + [SerializeField] + private GameObject _randomLeft; +} diff --git a/Assembly-CSharp/CourseStamp.cs b/Assembly-CSharp/CourseStamp.cs new file mode 100644 index 0000000..2b33e8d --- /dev/null +++ b/Assembly-CSharp/CourseStamp.cs @@ -0,0 +1,62 @@ +using System; +using UnityEngine; + +// Token: 0x02000088 RID: 136 +public class CourseStamp : MonoBehaviour +{ + // Token: 0x060004DA RID: 1242 RVA: 0x000121F2 File Offset: 0x000113F2 + public void SetClear(bool isClear) + { + this._isClear = isClear; + } + + // Token: 0x060004DB RID: 1243 RVA: 0x000121FC File Offset: 0x000113FC + public void PlayClearAnim() + { + string text = (this._isClear ? "Clear" : "NoClear"); + if (this._anim != null) + { + this._anim.Play(text); + } + } + + // Token: 0x060004DC RID: 1244 RVA: 0x00012238 File Offset: 0x00011438 + public void SetAnim(CourseStamp.BGAnim anim) + { + string text = ""; + switch (anim) + { + case CourseStamp.BGAnim.Clear: + text = "Clear"; + break; + case CourseStamp.BGAnim.Idle: + text = "Idle"; + break; + case CourseStamp.BGAnim.Not_Clear: + text = "NoClear"; + break; + } + if (text != "" && this._anim != null) + { + this._anim.Play(text); + } + } + + // Token: 0x0400034D RID: 845 + [SerializeField] + private Animator _anim; + + // Token: 0x0400034E RID: 846 + private bool _isClear; + + // Token: 0x02000976 RID: 2422 + public enum BGAnim + { + // Token: 0x04005FFA RID: 24570 + Clear, + // Token: 0x04005FFB RID: 24571 + Idle, + // Token: 0x04005FFC RID: 24572 + Not_Clear + } +} diff --git a/Assembly-CSharp/CourseTab.cs b/Assembly-CSharp/CourseTab.cs new file mode 100644 index 0000000..440ba67 --- /dev/null +++ b/Assembly-CSharp/CourseTab.cs @@ -0,0 +1,16 @@ +using System; +using UnityEngine; + +// Token: 0x02000091 RID: 145 +public class CourseTab : MonoBehaviour +{ + // Token: 0x06000509 RID: 1289 RVA: 0x00003598 File Offset: 0x00002798 + private void Start() + { + } + + // Token: 0x0600050A RID: 1290 RVA: 0x00003598 File Offset: 0x00002798 + private void Update() + { + } +} diff --git a/Assembly-CSharp/CourseTabController.cs b/Assembly-CSharp/CourseTabController.cs new file mode 100644 index 0000000..5d3d49f --- /dev/null +++ b/Assembly-CSharp/CourseTabController.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using DB; +using TMPro; +using UnityEngine; + +// Token: 0x02000092 RID: 146 +public class CourseTabController : CourseControllerBase +{ + // Token: 0x0600050C RID: 1292 RVA: 0x00013628 File Offset: 0x00012828 + private void Awake() + { + this._textDaniInfo.text = CommonMessageID.CourseDaniInfo.GetName(); + this._textShinDaniInfo.text = CommonMessageID.CourceShinDaniInfo.GetName(); + this._textRandomInfo.text = CommonMessageID.CourseDaniInfo.GetName(); + } + + // Token: 0x0600050D RID: 1293 RVA: 0x00013674 File Offset: 0x00012874 + public new void Initialize(int monitorIndex) + { + this._monitorIndex = monitorIndex; + this._leftPanels = new CourseModeCard[this._leftTransforms.Length]; + this._rightPanels = new CourseModeCard[this._rightTransforms.Length]; + for (int i = 0; i < this._leftTransforms.Length; i++) + { + this._leftPanels[i] = Object.Instantiate(this._miniCardOrigin, this._leftTransforms[i]).GetComponent(); + } + for (int j = 0; j < this._rightTransforms.Length; j++) + { + this._rightPanels[j] = Object.Instantiate(this._miniCardOrigin, this._rightTransforms[j]).GetComponent(); + } + this._tabButtons = new TabButton[this._tabButtonTrans.Length]; + for (int k = 0; k < this._tabButtons.Length; k++) + { + this._tabButtons[k] = Object.Instantiate(this._tabButtonObj, this._tabButtonTrans[k]).GetComponent(); + this._tabButtons[k].Initialize(this._monitorIndex); + } + this._tabButtons[0].UseRightArrow(); + this._tabButtons[1].UseLeftArrow(); + } + + // Token: 0x0600050E RID: 1294 RVA: 0x00013787 File Offset: 0x00012987 + public void PrepareMainPanel(CourseModeCardData cardData) + { + this._main.Prepare(cardData); + } + + // Token: 0x0600050F RID: 1295 RVA: 0x00013795 File Offset: 0x00012995 + public void SetData(List datas) + { + this._cardDatas = datas; + this._isAnimation = true; + } + + // Token: 0x06000510 RID: 1296 RVA: 0x000137A8 File Offset: 0x000129A8 + public void UpdateTab(int currentCategoryId) + { + if (!this._isAnimation) + { + return; + } + int num = currentCategoryId; + int num2 = this._leftPanels.Length - 1; + while (-1 < num2) + { + if (num < 0) + { + num = this._cardDatas.Count - 1; + } + if (0 <= num) + { + this._leftPanels[num2].Prepare(this._cardDatas[num]); + num--; + } + num2--; + } + num = currentCategoryId; + for (int i = 0; i < this._rightPanels.Length; i++) + { + if (this._cardDatas.Count <= num) + { + num = 0; + } + if (num < this._cardDatas.Count) + { + this._rightPanels[i].Prepare(this._cardDatas[num]); + num++; + } + } + CourseModeCardData courseModeCardData = this._cardDatas[currentCategoryId]; + this._main.Prepare(courseModeCardData); + this.SetCourseBG(courseModeCardData._courseMode); + } + + // Token: 0x06000511 RID: 1297 RVA: 0x00013880 File Offset: 0x00012A80 + public void SetVisibleTab(bool isActive) + { + for (int i = 0; i < this._leftPanels.Length; i++) + { + this._leftPanels[i].gameObject.SetActive(isActive); + this._rightPanels[i].gameObject.SetActive(isActive); + } + this._main.gameObject.SetActive(isActive); + if (!isActive) + { + GameObject daniBG = this._daniBG; + if (daniBG != null) + { + daniBG.gameObject.SetActive(isActive); + } + GameObject sinDaniBG = this._sinDaniBG; + if (sinDaniBG != null) + { + sinDaniBG.gameObject.SetActive(isActive); + } + GameObject randomBG = this._randomBG; + if (randomBG == null) + { + return; + } + randomBG.gameObject.SetActive(isActive); + } + } + + // Token: 0x06000512 RID: 1298 RVA: 0x00013920 File Offset: 0x00012B20 + public new void SetVisibleParts(bool isActive) + { + this.SetVisibleTab(isActive); + for (int i = 0; i < this._tabButtons.Length; i++) + { + this._tabButtons[i].SetActiveButton(isActive); + } + } + + // Token: 0x06000513 RID: 1299 RVA: 0x00013958 File Offset: 0x00012B58 + public void SetCourseBG(int modeId) + { + switch (modeId) + { + case 1: + { + GameObject daniBG = this._daniBG; + if (daniBG != null) + { + daniBG.gameObject.SetActive(true); + } + GameObject sinDaniBG = this._sinDaniBG; + if (sinDaniBG != null) + { + sinDaniBG.gameObject.SetActive(false); + } + GameObject randomBG = this._randomBG; + if (randomBG == null) + { + return; + } + randomBG.gameObject.SetActive(false); + return; + } + case 2: + { + GameObject daniBG2 = this._daniBG; + if (daniBG2 != null) + { + daniBG2.gameObject.SetActive(false); + } + GameObject sinDaniBG2 = this._sinDaniBG; + if (sinDaniBG2 != null) + { + sinDaniBG2.gameObject.SetActive(true); + } + GameObject randomBG2 = this._randomBG; + if (randomBG2 == null) + { + return; + } + randomBG2.gameObject.SetActive(false); + return; + } + case 3: + { + GameObject daniBG3 = this._daniBG; + if (daniBG3 != null) + { + daniBG3.gameObject.SetActive(false); + } + GameObject sinDaniBG3 = this._sinDaniBG; + if (sinDaniBG3 != null) + { + sinDaniBG3.gameObject.SetActive(false); + } + GameObject randomBG3 = this._randomBG; + if (randomBG3 == null) + { + return; + } + randomBG3.gameObject.SetActive(true); + return; + } + default: + return; + } + } + + // Token: 0x04000391 RID: 913 + [SerializeField] + private CourseModeCard _miniCardOrigin; + + // Token: 0x04000392 RID: 914 + [SerializeField] + private CourseModeCard _main; + + // Token: 0x04000393 RID: 915 + [SerializeField] + private GameObject _daniBG; + + // Token: 0x04000394 RID: 916 + [SerializeField] + private GameObject _sinDaniBG; + + // Token: 0x04000395 RID: 917 + [SerializeField] + private GameObject _randomBG; + + // Token: 0x04000396 RID: 918 + [SerializeField] + [Header("DBテキスト")] + private TextMeshProUGUI _textDaniInfo; + + // Token: 0x04000397 RID: 919 + [SerializeField] + private TextMeshProUGUI _textShinDaniInfo; + + // Token: 0x04000398 RID: 920 + [SerializeField] + private TextMeshProUGUI _textRandomInfo; + + // Token: 0x04000399 RID: 921 + private CourseModeCard[] _leftPanels; + + // Token: 0x0400039A RID: 922 + private CourseModeCard[] _rightPanels; + + // Token: 0x0400039B RID: 923 + private List _cardDatas = new List(); +} diff --git a/Assembly-CSharp/CourseTrackStart.cs b/Assembly-CSharp/CourseTrackStart.cs new file mode 100644 index 0000000..a8ca2e2 --- /dev/null +++ b/Assembly-CSharp/CourseTrackStart.cs @@ -0,0 +1,229 @@ +using System; +using System.Collections; +using Mai2.Mai2Cue; +using Manager; +using UI; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x0200013B RID: 315 +public class CourseTrackStart : MonoBehaviour +{ + // Token: 0x06000AA7 RID: 2727 RVA: 0x0002D1F8 File Offset: 0x0002C3F8 + public void Initialize() + { + this._courseBg = Object.Instantiate(this._courseBGObj, this._courseBGTransform).GetComponent(); + this._courseLife = Object.Instantiate(this._courseLifeObj, this._courseLifeTransform).GetComponent(); + this._anim.Play("Idle"); + } + + // Token: 0x06000AA8 RID: 2728 RVA: 0x0002D250 File Offset: 0x0002C450 + public void Prepare(Sprite sprite, int mode, int beforeLife, int afterLife, int track) + { + if (this._image != null) + { + this._image.sprite = sprite; + } + if (this._daniBG != null && this._sinDaniBG != null && this._sinDaniBG != null) + { + switch (mode) + { + case 1: + this._daniBG.SetActive(true); + this._sinDaniBG.SetActive(false); + this._randomBG.SetActive(false); + break; + case 2: + this._daniBG.SetActive(false); + this._sinDaniBG.SetActive(true); + this._randomBG.SetActive(false); + break; + case 3: + this._daniBG.SetActive(false); + this._sinDaniBG.SetActive(false); + this._randomBG.SetActive(true); + break; + } + } + if (this._courseBg != null) + { + switch (mode) + { + case 1: + case 3: + this._courseBg.SetAnim(CourseBGController.BGAnim.Dani_Track_Loop); + break; + case 2: + this._courseBg.SetAnim(CourseBGController.BGAnim.SinDani_Track_Loop); + break; + } + } + int num = 0; + switch (mode) + { + case 1: + num = 0; + break; + case 2: + num = 1; + break; + case 3: + num = 2; + break; + } + if (this._backgroundColorGroup != null) + { + this._backgroundColorGroup.SetColor(num); + } + this._courseLife.SetLife((uint)beforeLife, false, 0U); + int num2 = afterLife - beforeLife; + string text = "+" + num2.ToString(); + int i = num2; + int num3 = 0; + while (i < 100) + { + i *= 10; + text += " "; + num3++; + if (num3 >= 2) + { + break; + } + } + if (this._lifeUpObj != null) + { + this._lifeUpObj.SetActive(false); + } + if (track >= 0 && track <= 4) + { + this._trackImage.ChangeSprite(track - 1); + } + if (this._recoverLife != null) + { + this._recoverLife.ChangeText(text); + } + this._beforeLife = beforeLife; + this._afterLife = afterLife; + this._courseMode = mode; + } + + // Token: 0x06000AA9 RID: 2729 RVA: 0x0002D45A File Offset: 0x0002C65A + public void SetFadeInAnimation(int monitorIndex) + { + base.StartCoroutine(this.PlayAnimCoroutine(monitorIndex)); + } + + // Token: 0x06000AAA RID: 2730 RVA: 0x0002D46A File Offset: 0x0002C66A + private IEnumerator PlayAnimCoroutine(int monitorIndex) + { + SoundManager.PlaySE(Cue.SE_TRACK_START_DANI, monitorIndex); + switch (this._courseMode) + { + case 1: + this._anim.Play("TrackStart_Dani"); + break; + case 2: + this._anim.Play("TrackStart_ShinDani"); + break; + case 3: + this._anim.Play("TrackStart_Random"); + break; + } + yield return new WaitForSeconds(2f); + int upLife = this._afterLife - this._beforeLife; + if (upLife != 0) + { + SoundManager.PlaySE(Cue.SE_DANI_LIFE_RECOVER_01, monitorIndex); + this._lifeUpObj.SetActive(true); + this._anim.Play("ClearBonus"); + } + int num3; + for (int i = 0; i < 10; i = num3 + 1) + { + if (i != 0) + { + yield return new WaitForSeconds(0.04f); + } + int num = upLife * (i + 1) / 10; + int num2 = this._beforeLife + num; + this._courseLife.SetLife((uint)num2, false, 0U); + num3 = i; + } + yield return new WaitForSeconds(2f); + this._isEnd = true; + yield break; + } + + // Token: 0x040008B6 RID: 2230 + [SerializeField] + private Image _image; + + // Token: 0x040008B7 RID: 2231 + [SerializeField] + private GameObject _daniBG; + + // Token: 0x040008B8 RID: 2232 + [SerializeField] + private GameObject _sinDaniBG; + + // Token: 0x040008B9 RID: 2233 + [SerializeField] + private GameObject _randomBG; + + // Token: 0x040008BA RID: 2234 + [SerializeField] + private Animator _anim; + + // Token: 0x040008BB RID: 2235 + [SerializeField] + [Header("背景色関連")] + private ImageColorGroup _backgroundColorGroup; + + // Token: 0x040008BC RID: 2236 + [SerializeField] + [Header("背景")] + private GameObject _courseBGObj; + + // Token: 0x040008BD RID: 2237 + [SerializeField] + private Transform _courseBGTransform; + + // Token: 0x040008BE RID: 2238 + private CourseBGController _courseBg; + + // Token: 0x040008BF RID: 2239 + [SerializeField] + [Header("ライフ")] + private GameObject _courseLifeObj; + + // Token: 0x040008C0 RID: 2240 + [SerializeField] + private Transform _courseLifeTransform; + + // Token: 0x040008C1 RID: 2241 + private CourseLife _courseLife; + + // Token: 0x040008C2 RID: 2242 + [SerializeField] + private GameObject _lifeUpObj; + + // Token: 0x040008C3 RID: 2243 + [SerializeField] + private MultipleImage _trackImage; + + // Token: 0x040008C4 RID: 2244 + [SerializeField] + private SpriteCounter _recoverLife; + + // Token: 0x040008C5 RID: 2245 + private int _beforeLife; + + // Token: 0x040008C6 RID: 2246 + private int _afterLife; + + // Token: 0x040008C7 RID: 2247 + private int _courseMode; + + // Token: 0x040008C8 RID: 2248 + public bool _isEnd; +} diff --git a/Assembly-CSharp/CourseTransition.cs b/Assembly-CSharp/CourseTransition.cs new file mode 100644 index 0000000..557d2f3 --- /dev/null +++ b/Assembly-CSharp/CourseTransition.cs @@ -0,0 +1,72 @@ +using System; +using Mai2.Mai2Cue; +using Manager; +using UnityEngine; + +// Token: 0x02000093 RID: 147 +public class CourseTransition : MonoBehaviour +{ + // Token: 0x06000515 RID: 1301 RVA: 0x00013A5C File Offset: 0x00012C5C + public void SetAnim(CourseTransition.BGAnim anim, int playerIndex) + { + string text = ""; + switch (anim) + { + case CourseTransition.BGAnim.ClearBonus: + text = "ClearBonus"; + break; + case CourseTransition.BGAnim.Idle: + text = "Idle"; + break; + case CourseTransition.BGAnim.In: + text = "In"; + SoundManager.PlaySE(Cue.SE_DANI_SHOJI_OPEN, playerIndex); + break; + case CourseTransition.BGAnim.Loop: + text = "Loop"; + break; + case CourseTransition.BGAnim.Out: + text = "Out"; + SoundManager.PlaySE(Cue.SE_DANI_SHOJI_CLOSE, playerIndex); + break; + case CourseTransition.BGAnim.TrackStart_Dani: + text = "TrackStart_Dani"; + break; + case CourseTransition.BGAnim.TrackStart_Random: + text = "TrackStart_Random"; + break; + case CourseTransition.BGAnim.TrackStart_SinDani: + text = "TrackStart_ShinDani"; + break; + } + if (text != "" && this._anim != null) + { + this._anim.Play(text); + } + } + + // Token: 0x0400039C RID: 924 + [SerializeField] + private Animator _anim; + + // Token: 0x0200097A RID: 2426 + public enum BGAnim + { + // Token: 0x04006010 RID: 24592 + ClearBonus, + // Token: 0x04006011 RID: 24593 + Idle, + // Token: 0x04006012 RID: 24594 + In, + // Token: 0x04006013 RID: 24595 + Loop, + // Token: 0x04006014 RID: 24596 + Out, + // Token: 0x04006015 RID: 24597 + TrackStart_Dani, + // Token: 0x04006016 RID: 24598 + TrackStart_Random, + // Token: 0x04006017 RID: 24599 + TrackStart_SinDani + } +} diff --git a/Assembly-CSharp/CustomAlphaMask.cs b/Assembly-CSharp/CustomAlphaMask.cs new file mode 100644 index 0000000..3707126 --- /dev/null +++ b/Assembly-CSharp/CustomAlphaMask.cs @@ -0,0 +1,247 @@ +using System; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x02000179 RID: 377 +[DisallowMultipleComponent] +[ExecuteInEditMode] +[RequireComponent(typeof(RectTransform))] +public class CustomAlphaMask : Mask +{ + // Token: 0x1700014F RID: 335 + // (get) Token: 0x06000D8F RID: 3471 RVA: 0x0003F938 File Offset: 0x0003EB38 + // (set) Token: 0x06000D90 RID: 3472 RVA: 0x0003F940 File Offset: 0x0003EB40 + public bool IsScreen { get; private set; } + + // Token: 0x17000150 RID: 336 + // (get) Token: 0x06000D91 RID: 3473 RVA: 0x0003F949 File Offset: 0x0003EB49 + public Vector2 Tiling + { + get + { + return this.tiling; + } + } + + // Token: 0x17000151 RID: 337 + // (get) Token: 0x06000D92 RID: 3474 RVA: 0x0003F951 File Offset: 0x0003EB51 + public Vector2 Offset + { + get + { + return this.offset; + } + } + + // Token: 0x17000152 RID: 338 + // (get) Token: 0x06000D93 RID: 3475 RVA: 0x0003F95C File Offset: 0x0003EB5C + public Graphic GetGraphic + { + get + { + Graphic graphic; + if ((graphic = this.maskGraphic) == null) + { + graphic = (this.maskGraphic = base.GetComponent()); + } + return graphic; + } + } + + // Token: 0x17000153 RID: 339 + // (get) Token: 0x06000D94 RID: 3476 RVA: 0x0003F984 File Offset: 0x0003EB84 + public RectTransform GetRectTransform + { + get + { + RectTransform rectTransform; + if ((rectTransform = this.maskRectTransform) == null) + { + rectTransform = (this.maskRectTransform = base.GetComponent()); + } + return rectTransform; + } + } + + // Token: 0x06000D95 RID: 3477 RVA: 0x0003F9AA File Offset: 0x0003EBAA + public override bool MaskEnabled() + { + return this.IsActive() && this.GetGraphic != null; + } + + // Token: 0x06000D96 RID: 3478 RVA: 0x0003F9C2 File Offset: 0x0003EBC2 + protected override void OnEnable() + { + base.OnEnable(); + if (this.GetGraphic != null) + { + this.GetGraphic.canvasRenderer.hasPopInstruction = true; + this.GetGraphic.SetMaterialDirty(); + } + this.UpdateMask(); + MaskUtilities.NotifyStencilStateChanged(this); + } + + // Token: 0x06000D97 RID: 3479 RVA: 0x0003FA00 File Offset: 0x0003EC00 + protected override void OnDisable() + { + base.OnDisable(); + if (this.GetGraphic != null) + { + this.GetGraphic.SetMaterialDirty(); + this.GetGraphic.canvasRenderer.hasPopInstruction = false; + this.GetGraphic.canvasRenderer.popMaterialCount = 0; + } + StencilMaterial.Remove(this.stencilMaskMaterial); + this.stencilMaskMaterial = null; + StencilMaterial.Remove(this.stencilUnmaskMaterial); + this.stencilUnmaskMaterial = null; + this.UpdateMask(); + MaskUtilities.NotifyStencilStateChanged(this); + } + + // Token: 0x06000D98 RID: 3480 RVA: 0x00003598 File Offset: 0x00002798 + private void Update() + { + } + + // Token: 0x06000D99 RID: 3481 RVA: 0x0003FA7E File Offset: 0x0003EC7E + private void LateUpdate() + { + this.UpdateMask(); + } + + // Token: 0x06000D9A RID: 3482 RVA: 0x0003FA88 File Offset: 0x0003EC88 + private void OnRenderObject() + { + RectTransform component = base.GetComponent(); + Vector3 vector = base.transform.lossyScale; + if (component != null) + { + vector = Vector3.Scale(vector, component.rect.size); + } + vector.z = 0.1f; + Vector3 vector2; + vector2..ctor(1f, 1f, 1f); + vector2.x = 1f / vector2.x; + vector2.y = 1f / vector2.y; + Vector3 vector3 = Vector3.Scale(vector, vector2); + Matrix4x4 matrix4x = Matrix4x4.TRS(base.transform.position, base.transform.rotation, vector3); + Vector3 vector4 = base.transform.rotation * -vector * 0.5f; + Vector3 vector5 = Vector3.Scale(new Vector3(0f, 0f, 0f), -vector3); + Matrix4x4 matrix4x2 = Matrix4x4.TRS(vector4 + vector5, Quaternion.identity, Vector3.one); + this.maskQuadMatrix = matrix4x2 * matrix4x; + this.UpdateMask(); + } + + // Token: 0x06000D9B RID: 3483 RVA: 0x0003FBA8 File Offset: 0x0003EDA8 + private void OnDrawGizmos() + { + Gizmos.matrix = this.maskQuadMatrix; + Vector3 one = Vector3.one; + one.z = 0f; + Gizmos.color = new Color(0f, 0f, 0f, 0f); + Gizmos.DrawCube(new Vector3(0.5f, 0.5f, 0.5f), one); + } + + // Token: 0x06000D9C RID: 3484 RVA: 0x0003FC0C File Offset: 0x0003EE0C + public override Material GetModifiedMaterial(Material baseMaterial) + { + if (!this.MaskEnabled()) + { + return baseMaterial; + } + int stencilDepth = MaskUtilities.GetStencilDepth(base.transform, MaskUtilities.FindRootSortOverrideCanvas(base.transform)); + if (stencilDepth >= 8) + { + return baseMaterial; + } + int num = 1 << stencilDepth; + if (num == 1) + { + Material material = StencilMaterial.Add(baseMaterial, 1, 2, 8, 0); + StencilMaterial.Remove(this.stencilMaskMaterial); + this.stencilMaskMaterial = material; + Material material2 = StencilMaterial.Add(baseMaterial, 1, 1, 8, 0); + StencilMaterial.Remove(this.stencilUnmaskMaterial); + this.stencilUnmaskMaterial = material2; + this.GetGraphic.canvasRenderer.popMaterialCount = 1; + this.GetGraphic.canvasRenderer.SetPopMaterial(this.stencilUnmaskMaterial, 0); + } + else + { + Material material3 = StencilMaterial.Add(baseMaterial, num | (num - 1), 2, 3, 0, num - 1, num | (num - 1)); + StencilMaterial.Remove(this.stencilMaskMaterial); + this.stencilMaskMaterial = material3; + this.GetGraphic.canvasRenderer.hasPopInstruction = true; + Material material4 = StencilMaterial.Add(baseMaterial, num - 1, 2, 3, 0, num - 1, num | (num - 1)); + StencilMaterial.Remove(this.stencilUnmaskMaterial); + this.stencilUnmaskMaterial = material4; + this.GetGraphic.canvasRenderer.popMaterialCount = 1; + this.GetGraphic.canvasRenderer.SetPopMaterial(this.stencilUnmaskMaterial, 0); + } + return this.stencilMaskMaterial; + } + + // Token: 0x06000D9D RID: 3485 RVA: 0x0003FD48 File Offset: 0x0003EF48 + private void UpdateMask() + { + if (this.GetGraphic == null) + { + return; + } + this.maskMatrix = base.transform.worldToLocalMatrix; + Vector3 vector = this.GetRectTransform.rect.size; + vector.z = 1f; + vector = Vector3.Scale(vector, base.transform.lossyScale); + this.maskMatrix.SetTRS(base.transform.position, base.transform.rotation, vector); + this.maskMatrix = Matrix4x4.Inverse(this.maskMatrix); + if (this.maskMatrix != this.prevMatrix) + { + Matrix4x4 matrix4x = Matrix4x4.identity; + Canvas canvas = this.GetGraphic.canvas; + this.IsScreen = canvas != null && (canvas.renderMode == null || (canvas.renderMode == 1 && canvas.worldCamera == null)); + if (this.IsScreen) + { + matrix4x = Matrix4x4.TRS(canvas.GetComponent().rect.size / 2f * canvas.scaleFactor, Quaternion.identity, Vector3.one * canvas.scaleFactor); + this.maskMatrix *= matrix4x; + } + MaskUtilities.NotifyStencilStateChanged(this); + } + this.prevMatrix = this.maskMatrix; + } + + // Token: 0x04000A64 RID: 2660 + [SerializeField] + private Vector2 tiling = new Vector2(1f, 1f); + + // Token: 0x04000A65 RID: 2661 + [SerializeField] + private Vector2 offset = new Vector2(0f, 0f); + + // Token: 0x04000A66 RID: 2662 + [NonSerialized] + private Material stencilMaskMaterial; + + // Token: 0x04000A67 RID: 2663 + [NonSerialized] + private Material stencilUnmaskMaterial; + + // Token: 0x04000A68 RID: 2664 + [NonSerialized] + public Matrix4x4 maskMatrix = Matrix4x4.identity; + + // Token: 0x04000A69 RID: 2665 + [NonSerialized] + private RectTransform maskRectTransform; + + // Token: 0x04000A6A RID: 2666 + [NonSerialized] + private Graphic maskGraphic; + + // Token: 0x04000A6B RID: 2667 + private Matrix4x4 maskQuadMatrix = Matrix4x4.identity; + + // Token: 0x04000A6D RID: 2669 + private Matrix4x4 prevMatrix = Matrix4x4.identity; +} diff --git a/Assembly-CSharp/CustomDebug.cs b/Assembly-CSharp/CustomDebug.cs new file mode 100644 index 0000000..81000cd --- /dev/null +++ b/Assembly-CSharp/CustomDebug.cs @@ -0,0 +1,145 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Text; +using MAI2; +using UnityEngine; + +// Token: 0x0200001E RID: 30 +[ProjectPrefs("outputlogPathKey", "ログ出力ファイル先", "DebugLog", typeof(string))] +public static class CustomDebug +{ + // Token: 0x0600009A RID: 154 RVA: 0x0000405D File Offset: 0x0000325D + [Conditional("APP_DEBUG")] + public static void Log(object message) + { + CustomDebug.LogInternal(message, null, Color.white); + } + + // Token: 0x0600009B RID: 155 RVA: 0x00004070 File Offset: 0x00003270 + [Conditional("APP_DEBUG")] + public static void Log(object message, Object context) + { + CustomDebug.LogInternal(message, context, Color.white); + } + + // Token: 0x0600009C RID: 156 RVA: 0x00004083 File Offset: 0x00003283 + [Conditional("APP_DEBUG")] + public static void Log(object message, Object context, Color color) + { + CustomDebug.LogInternal(message, context, color); + } + + // Token: 0x17000017 RID: 23 + // (get) Token: 0x0600009D RID: 157 RVA: 0x00004092 File Offset: 0x00003292 + // (set) Token: 0x0600009E RID: 158 RVA: 0x00004099 File Offset: 0x00003299 + public static bool IsWatching { get; private set; } + + // Token: 0x0600009F RID: 159 RVA: 0x000040A4 File Offset: 0x000032A4 + [Conditional("UNITY_EDITOR")] + public static void Watch(string keyName, object message) + { + if (CustomDebug.watchList == null) + { + CustomDebug.watchList = new Dictionary(); + } + if (CustomDebug.watchList.ContainsKey(keyName)) + { + CustomDebug.watchList[keyName].Message = message; + } + else + { + CustomDebug.watchList.Add(keyName, new DebugWatchData + { + Key = keyName, + Message = message, + StackTrace = StackTraceUtility.ExtractStackTrace() + }); + } + CustomDebug.IsWatching = true; + } + + // Token: 0x060000A0 RID: 160 RVA: 0x00004111 File Offset: 0x00003311 + public static int GetWatchCount() + { + if (CustomDebug.watchList != null) + { + return CustomDebug.watchList.Count; + } + return 0; + } + + // Token: 0x060000A1 RID: 161 RVA: 0x00004128 File Offset: 0x00003328 + public static string GetWatch() + { + if (CustomDebug.watchList == null) + { + return string.Empty; + } + CustomDebug.sb.Length = 0; + foreach (string text in CustomDebug.watchList.Keys) + { + CustomDebug.sb.AppendLine(text + "\t" + CustomDebug.watchList[text]); + } + CustomDebug.IsWatching = false; + return CustomDebug.sb.ToString(); + } + + // Token: 0x060000A2 RID: 162 RVA: 0x000041C4 File Offset: 0x000033C4 + public static DebugWatchData GetWatchData(int i) + { + int num = 0; + foreach (DebugWatchData debugWatchData in CustomDebug.watchList.Values) + { + if (num == i) + { + return debugWatchData; + } + num++; + } + return null; + } + + // Token: 0x060000A3 RID: 163 RVA: 0x00004228 File Offset: 0x00003428 + public static void ClearWatchs() + { + if (CustomDebug.watchList != null) + { + CustomDebug.watchList.Clear(); + CustomDebug.watchList = null; + } + } + + // Token: 0x060000A4 RID: 164 RVA: 0x00004244 File Offset: 0x00003444 + private static void LogInternal(object message, Object context, Color32 color) + { + color.r.ToString("X2") + color.g.ToString("X2") + color.b.ToString("X2"); + global::MAI2.DateTime.Now.ToString("HH:mm:ss"); + } + + // Token: 0x060000A5 RID: 165 RVA: 0x000042A0 File Offset: 0x000034A0 + private static void LogWarning(object message, Color32 color) + { + color.r.ToString("X2") + color.g.ToString("X2") + color.b.ToString("X2"); + global::MAI2.DateTime.Now.ToString("HH:mm:ss"); + } + + // Token: 0x060000A6 RID: 166 RVA: 0x000042FC File Offset: 0x000034FC + private static void LogError(object message, Color32 color) + { + color.r.ToString("X2") + color.g.ToString("X2") + color.b.ToString("X2"); + global::MAI2.DateTime.Now.ToString("HH:mm:ss"); + } + + // Token: 0x04000058 RID: 88 + private const string LOG_PATH = "outputlogPathKey"; + + // Token: 0x04000059 RID: 89 + public const string LOG_CLASS_NAME = ""; + + // Token: 0x0400005A RID: 90 + private static StringBuilder sb = new StringBuilder(); + + // Token: 0x0400005B RID: 91 + private static Dictionary watchList = new Dictionary(); +} diff --git a/Assembly-CSharp/CustomDropDown.cs b/Assembly-CSharp/CustomDropDown.cs new file mode 100644 index 0000000..0e2dc8c --- /dev/null +++ b/Assembly-CSharp/CustomDropDown.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using TMPro; +using UnityEngine; +using UnityEngine.Events; + +// Token: 0x0200000C RID: 12 +public class CustomDropDown : MonoBehaviour +{ + // Token: 0x06000035 RID: 53 RVA: 0x00002B60 File Offset: 0x00001D60 + public TMP_Dropdown.OptionData GetCurrentOption() + { + int value = this._dropDown.value; + return this._dropDown.options[value]; + } + + // Token: 0x06000036 RID: 54 RVA: 0x00002B8A File Offset: 0x00001D8A + public void Prepare(string captionText, List optionData) + { + this._dropDown.captionText.text = captionText; + this._dropDown.ClearOptions(); + this._dropDown.AddOptions(optionData); + this._dropDown.value = 0; + } + + // Token: 0x06000037 RID: 55 RVA: 0x00002BC0 File Offset: 0x00001DC0 + public void AddListener(UnityAction action) + { + this._dropDown.onValueChanged.RemoveAllListeners(); + this._dropDown.onValueChanged.AddListener(action); + } + + // Token: 0x04000017 RID: 23 + [SerializeField] + private TMP_Dropdown _dropDown; +} diff --git a/Assembly-CSharp/CustomGraphic.cs b/Assembly-CSharp/CustomGraphic.cs new file mode 100644 index 0000000..c7926e0 --- /dev/null +++ b/Assembly-CSharp/CustomGraphic.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x02000184 RID: 388 +public class CustomGraphic : Graphic +{ + // Token: 0x06000DD0 RID: 3536 RVA: 0x00041138 File Offset: 0x00040338 + protected override void OnPopulateMesh(VertexHelper vh) + { + vh.Clear(); + List list = new List(new Triangulator(this.vertex.ToArray(), Camera.main.transform.position).Triangulate()); + List list2 = new List(); + for (int i = 0; i < this.vertex.Count; i++) + { + UIVertex simpleVert = UIVertex.simpleVert; + simpleVert.position = new Vector3(this.vertex[i].x, this.vertex[i].y, 0f); + simpleVert.color = this.color; + list2.Add(simpleVert); + } + vh.AddUIVertexStream(list2, list); + } + + // Token: 0x04000A95 RID: 2709 + public List vertex = new List + { + new Vector2(-50f, 50f), + new Vector2(50f, 50f), + new Vector2(50f, -50f), + new Vector2(-50f, -50f) + }; +} diff --git a/Assembly-CSharp/CustomImage.cs b/Assembly-CSharp/CustomImage.cs new file mode 100644 index 0000000..179f43e --- /dev/null +++ b/Assembly-CSharp/CustomImage.cs @@ -0,0 +1,37 @@ +using System; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x0200017A RID: 378 +public class CustomImage : Image +{ + // Token: 0x06000D9F RID: 3487 RVA: 0x0003FF10 File Offset: 0x0003F110 + public override Material GetModifiedMaterial(Material baseMaterial) + { + Material material = baseMaterial; + if (this.m_ShouldRecalculateStencil) + { + this.alphaValue = (base.maskable ? CustomMaskUtilities.GetStencilDepth(base.transform, MaskUtilities.FindRootSortOverrideCanvas(base.transform)) : 0); + this.m_StencilValue = (base.maskable ? MaskUtilities.GetStencilDepth(base.transform, MaskUtilities.FindRootSortOverrideCanvas(base.transform)) : 0); + this.m_ShouldRecalculateStencil = false; + } + if ((this.m_StencilValue > 0 || this.alphaValue > 0) && baseMaterial.HasProperty("_MaskTex")) + { + CustomAlphaMask componentInParent = base.GetComponentInParent(); + Texture2D texture2D = (Texture2D)componentInParent.GetGraphic.mainTexture; + Vector4 vector; + vector..ctor(componentInParent.Tiling.x, componentInParent.Tiling.y, componentInParent.Offset.x, componentInParent.Offset.y); + CustomAlphaMask[] maskParentComponents = CustomMaskUtilities.GetMaskParentComponents(base.transform, MaskUtilities.FindRootSortOverrideCanvas(base.transform)); + material = CustomMaterial.Add(base.gameObject.GetInstanceID(), maskParentComponents, baseMaterial, texture2D, componentInParent.maskMatrix, vector, componentInParent.IsScreen, (1 << this.m_StencilValue) - 1, 0, 3, 15, (1 << this.m_StencilValue) - 1, 0); + CustomMaterial.Remove(this.m_MaskMaterial); + this.m_MaskMaterial = material; + } + return material; + } + + // Token: 0x04000A6E RID: 2670 + public int num; + + // Token: 0x04000A6F RID: 2671 + private int alphaValue; +} diff --git a/Assembly-CSharp/CustomIndicator.cs b/Assembly-CSharp/CustomIndicator.cs new file mode 100644 index 0000000..e3058ca --- /dev/null +++ b/Assembly-CSharp/CustomIndicator.cs @@ -0,0 +1,50 @@ +using System; +using UnityEngine; + +// Token: 0x0200016E RID: 366 +public class CustomIndicator : MonoBehaviour +{ + // Token: 0x06000D32 RID: 3378 RVA: 0x00009BDF File Offset: 0x00008DDF + public void SetVisible(bool isActive) + { + base.gameObject.SetActive(isActive); + } + + // Token: 0x06000D33 RID: 3379 RVA: 0x0003E96D File Offset: 0x0003DB6D + public void Preapre(int numerator, int denominator) + { + this._number.Prepare(numerator, denominator); + this._slider.Prepare(denominator, true); + } + + // Token: 0x06000D34 RID: 3380 RVA: 0x0003E989 File Offset: 0x0003DB89 + public void ViewUpdate(int index, int number) + { + this.MoveSlider(index); + this.SetNumerator(number); + } + + // Token: 0x06000D35 RID: 3381 RVA: 0x0003E999 File Offset: 0x0003DB99 + private void MoveSlider(int index) + { + this._slider.MoveSlider(index); + } + + // Token: 0x06000D36 RID: 3382 RVA: 0x0003E9A7 File Offset: 0x0003DBA7 + private void SetNumerator(int number) + { + this._number.SetNumerator(number); + } + + // Token: 0x04000A27 RID: 2599 + [SerializeField] + private CanvasGroup _canvasGroup; + + // Token: 0x04000A28 RID: 2600 + [SerializeField] + private CustomNum _number; + + // Token: 0x04000A29 RID: 2601 + [SerializeField] + private CustomSlider _slider; +} diff --git a/Assembly-CSharp/CustomInputField.cs b/Assembly-CSharp/CustomInputField.cs new file mode 100644 index 0000000..cdb8762 --- /dev/null +++ b/Assembly-CSharp/CustomInputField.cs @@ -0,0 +1,52 @@ +using System; +using TMPro; +using UnityEngine; + +// Token: 0x0200000D RID: 13 +public class CustomInputField : MonoBehaviour +{ + // Token: 0x06000039 RID: 57 RVA: 0x00002BE3 File Offset: 0x00001DE3 + private void Awake() + { + this._inputField.richText = false; + } + + // Token: 0x0600003A RID: 58 RVA: 0x00002BF1 File Offset: 0x00001DF1 + public void Clear() + { + this._inputField.text = ""; + } + + // Token: 0x0600003B RID: 59 RVA: 0x00002C03 File Offset: 0x00001E03 + public void UpdateCaretPos() + { + if (this._inputField.caretPosition != 0) + { + this._caretIndex = this._inputField.caretPosition; + } + } + + // Token: 0x0600003C RID: 60 RVA: 0x00002C23 File Offset: 0x00001E23 + public string GetText() + { + return this._inputField.text; + } + + // Token: 0x0600003D RID: 61 RVA: 0x00002C30 File Offset: 0x00001E30 + public void InsertText(string message) + { + string text = this.GetText(); + if (text.Length == 0) + { + this._caretIndex = 0; + } + this._inputField.text = text.Insert(this._caretIndex, message); + } + + // Token: 0x04000018 RID: 24 + [SerializeField] + private TMP_InputField _inputField; + + // Token: 0x04000019 RID: 25 + private int _caretIndex; +} diff --git a/Assembly-CSharp/CustomListPool.cs b/Assembly-CSharp/CustomListPool.cs new file mode 100644 index 0000000..3dbc5e4 --- /dev/null +++ b/Assembly-CSharp/CustomListPool.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; + +// Token: 0x0200017E RID: 382 +public static class CustomListPool +{ + // Token: 0x06000DB0 RID: 3504 RVA: 0x00040613 File Offset: 0x0003F813 + public static List Get() + { + return CustomListPool.listPool.Get(); + } + + // Token: 0x06000DB1 RID: 3505 RVA: 0x0004061F File Offset: 0x0003F81F + public static void Release(List toRelease) + { + CustomListPool.listPool.Release(toRelease); + } + + // Token: 0x04000A75 RID: 2677 + private static readonly CustomObjectPool> listPool = new CustomObjectPool>(null, delegate(List l) + { + l.Clear(); + }); +} diff --git a/Assembly-CSharp/CustomMaskUtilities.cs b/Assembly-CSharp/CustomMaskUtilities.cs new file mode 100644 index 0000000..891c94f --- /dev/null +++ b/Assembly-CSharp/CustomMaskUtilities.cs @@ -0,0 +1,68 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x0200017B RID: 379 +public static class CustomMaskUtilities +{ + // Token: 0x06000DA1 RID: 3489 RVA: 0x00040060 File Offset: 0x0003F260 + public static int GetStencilDepth(Transform transform, Transform stopAfter) where T : Mask + { + int num = 0; + if (transform == stopAfter) + { + return num; + } + Transform transform2 = transform.parent; + List list = CustomListPool.Get(); + while (transform2 != null) + { + transform2.GetComponents(list); + for (int i = 0; i < list.Count; i++) + { + if (list[i] != null && list[i].MaskEnabled()) + { + num++; + break; + } + } + if (transform2 == stopAfter) + { + break; + } + transform2 = transform2.parent; + } + CustomListPool.Release(list); + return num; + } + + // Token: 0x06000DA2 RID: 3490 RVA: 0x000400F0 File Offset: 0x0003F2F0 + public static T[] GetMaskParentComponents(Transform transform, Transform stopAfter) where T : Mask + { + List list = CustomListPool.Get(); + Transform transform2 = transform.parent; + List list2 = CustomListPool.Get(); + while (transform2 != null) + { + transform2.GetComponents(list2); + for (int i = 0; i < list2.Count; i++) + { + if (list2[i] != null && list2[i].MaskEnabled()) + { + list.Add(list2[i]); + break; + } + } + if (transform2 == stopAfter) + { + break; + } + transform2 = transform2.parent; + } + T[] array = list.ToArray(); + CustomListPool.Release(list2); + CustomListPool.Release(list); + return array; + } +} diff --git a/Assembly-CSharp/CustomMaterial.cs b/Assembly-CSharp/CustomMaterial.cs new file mode 100644 index 0000000..e1cff0b --- /dev/null +++ b/Assembly-CSharp/CustomMaterial.cs @@ -0,0 +1,199 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.Rendering; + +// Token: 0x0200017C RID: 380 +public static class CustomMaterial +{ + // Token: 0x06000DA3 RID: 3491 RVA: 0x00040194 File Offset: 0x0003F394 + private static bool CheckStencilValue(CustomMaterial.StencilMatEntry entry, int stencilId, StencilOp operation, CompareFunction compare, ColorWriteMask colorWriteMask, int readMask, int writeMask) + { + return entry.stencilId == stencilId && entry.operation == operation && entry.compareFunction == compare && (entry.readMask == readMask && entry.writeMask == writeMask) && entry.colorMask == colorWriteMask; + } + + // Token: 0x06000DA4 RID: 3492 RVA: 0x000401D4 File Offset: 0x0003F3D4 + public static Material Add(int instanceId, CustomAlphaMask[] parentComponents, Material baseMaterial, Texture maskTexture, Matrix4x4 maskMatrix, Vector4 tilingOffset, bool isScreen, int stencilId, StencilOp operation, CompareFunction compare, ColorWriteMask colorWriteMask, int readMask = 255, int writeMask = 255) + { + for (int i = 0; i < CustomMaterial.list.Count; i++) + { + CustomMaterial.MaterialEntry materialEntry = CustomMaterial.list[i]; + if (materialEntry.id == instanceId) + { + CustomMaterial.SetMaterial(materialEntry, parentComponents, maskTexture, maskMatrix, tilingOffset, isScreen); + materialEntry.count++; + return materialEntry.customMaterial; + } + } + CustomMaterial.MaterialEntry materialEntry2 = new CustomMaterial.MaterialEntry + { + id = instanceId, + count = 1, + customMaterial = new Material(baseMaterial), + stencilId = stencilId, + operation = operation, + compareFunction = compare, + readMask = readMask, + writeMask = writeMask, + colorMask = colorWriteMask, + useAlphaClip = (operation != null && writeMask > 0), + isScreenSpace = isScreen, + matrix = maskMatrix, + tilingAndOffset = tilingOffset + }; + materialEntry2.customMaterial.hideFlags = 61; + if (materialEntry2.customMaterial.HasProperty("_UseAlphaClip")) + { + materialEntry2.customMaterial.SetInt("_UseAlphaClip", (!materialEntry2.useAlphaClip) ? 0 : 1); + } + if (materialEntry2.useAlphaClip) + { + materialEntry2.customMaterial.EnableKeyword("UNITY_UI_ALPHACLIP"); + } + else + { + materialEntry2.customMaterial.DisableKeyword("UNITY_UI_ALPHACLIP"); + } + CustomMaterial.SetMaterial(materialEntry2, parentComponents, maskTexture, maskMatrix, tilingOffset, isScreen); + CustomMaterial.list.Add(materialEntry2); + return materialEntry2.customMaterial; + } + + // Token: 0x06000DA5 RID: 3493 RVA: 0x00040330 File Offset: 0x0003F530 + public static void Remove(Material material) + { + if (material == null) + { + return; + } + int i = 0; + while (i < CustomMaterial.list.Count) + { + CustomMaterial.MaterialEntry materialEntry = CustomMaterial.list[i]; + if (materialEntry.customMaterial == material) + { + CustomMaterial.MaterialEntry materialEntry2 = materialEntry; + int num = materialEntry2.count - 1; + materialEntry2.count = num; + if (num == 0) + { + if (Application.isEditor) + { + Object.DestroyImmediate(materialEntry.customMaterial); + materialEntry.customMaterial = null; + } + else + { + Object.Destroy(materialEntry.customMaterial); + materialEntry.customMaterial = null; + } + CustomMaterial.list.RemoveAt(i); + return; + } + break; + } + else + { + i++; + } + } + } + + // Token: 0x06000DA6 RID: 3494 RVA: 0x000403C4 File Offset: 0x0003F5C4 + public static void RemoveAll() + { + for (int i = 0; i < CustomMaterial.list.Count; i++) + { + CustomMaterial.MaterialEntry materialEntry = CustomMaterial.list[i]; + if (Application.isEditor) + { + Object.DestroyImmediate(materialEntry.customMaterial); + materialEntry.customMaterial = null; + } + else + { + Object.Destroy(materialEntry.customMaterial); + materialEntry.customMaterial = null; + } + } + CustomMaterial.list.Clear(); + } + + // Token: 0x06000DA7 RID: 3495 RVA: 0x0004042C File Offset: 0x0003F62C + private static void SetMaterial(CustomMaterial.MaterialEntry entry, CustomAlphaMask[] parentComponents, Texture maskTexture, Matrix4x4 maskMatrix, Vector4 tilingOffset, bool isScreen) + { + if (isScreen) + { + entry.customMaterial.EnableKeyword("UI_WORLD_COORDINATE"); + } + else + { + entry.customMaterial.DisableKeyword("UI_WORLD_COORDINATE"); + } + entry.customMaterial.SetVector("_MaskTex_ST", tilingOffset); + entry.customMaterial.SetTexture("_MaskTex", maskTexture); + entry.customMaterial.SetMatrix("_World", maskMatrix); + if (parentComponents.Length > 1) + { + CustomAlphaMask customAlphaMask = parentComponents[1]; + Texture2D texture2D = (Texture2D)customAlphaMask.GetGraphic.mainTexture; + entry.customMaterial.SetTexture("_ParentMaskTex", texture2D); + entry.customMaterial.SetMatrix("_Parent", customAlphaMask.maskMatrix); + if (parentComponents.Length > 2) + { + entry.customMaterial.SetTexture("_Parent2MaskTex", parentComponents[2].GetGraphic.mainTexture); + entry.customMaterial.SetMatrix("_Parent2", parentComponents[2].maskMatrix); + } + } + } + + // Token: 0x04000A70 RID: 2672 + private static List list = new List(); + + // Token: 0x02000A4A RID: 2634 + private class StencilMatEntry + { + // Token: 0x040063B6 RID: 25526 + public StencilOp operation; + + // Token: 0x040063B7 RID: 25527 + public CompareFunction compareFunction = 8; + + // Token: 0x040063B8 RID: 25528 + public Material customMaterial; + + // Token: 0x040063B9 RID: 25529 + public int count; + + // Token: 0x040063BA RID: 25530 + public int stencilId; + + // Token: 0x040063BB RID: 25531 + public int readMask; + + // Token: 0x040063BC RID: 25532 + public int writeMask; + + // Token: 0x040063BD RID: 25533 + public bool useAlphaClip; + + // Token: 0x040063BE RID: 25534 + public ColorWriteMask colorMask; + } + + // Token: 0x02000A4B RID: 2635 + private class MaterialEntry : CustomMaterial.StencilMatEntry + { + // Token: 0x040063BF RID: 25535 + public int id; + + // Token: 0x040063C0 RID: 25536 + public bool isScreenSpace; + + // Token: 0x040063C1 RID: 25537 + public Matrix4x4 matrix; + + // Token: 0x040063C2 RID: 25538 + public Vector4 tilingAndOffset; + } +} diff --git a/Assembly-CSharp/CustomNote/CustomNote.cs b/Assembly-CSharp/CustomNote/CustomNote.cs new file mode 100644 index 0000000..485985e --- /dev/null +++ b/Assembly-CSharp/CustomNote/CustomNote.cs @@ -0,0 +1,19 @@ +using System; +using UnityEngine; + +namespace CustomNote +{ + // Token: 0x02000920 RID: 2336 + [AddComponentMenu("CustomNote")] + public class CustomNote : MonoBehaviour + { + // Token: 0x06004B98 RID: 19352 RVA: 0x00003598 File Offset: 0x00002798 + private void Reset() + { + } + + // Token: 0x04005E0A RID: 24074 + [SerializeField] + private string _noteText; + } +} diff --git a/Assembly-CSharp/CustomNum.cs b/Assembly-CSharp/CustomNum.cs new file mode 100644 index 0000000..0bcded8 --- /dev/null +++ b/Assembly-CSharp/CustomNum.cs @@ -0,0 +1,84 @@ +using System; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x0200016F RID: 367 +public class CustomNum : MonoBehaviour +{ + // Token: 0x06000D38 RID: 3384 RVA: 0x0003E9B8 File Offset: 0x0003DBB8 + public void Prepare(int numerator, int denominator) + { + Image[] array = this._leftImages; + for (int i = 0; i < array.Length; i++) + { + array[i].gameObject.SetActive(true); + } + array = this._rightImages; + for (int i = 0; i < array.Length; i++) + { + array[i].gameObject.SetActive(true); + } + this.SetNumerator(numerator); + this.SetDenominator(denominator); + } + + // Token: 0x06000D39 RID: 3385 RVA: 0x0003EA19 File Offset: 0x0003DC19 + private void SetBgColor(Color color) + { + this._bgImage.color = color; + } + + // Token: 0x06000D3A RID: 3386 RVA: 0x0003EA28 File Offset: 0x0003DC28 + public void SetNumerator(int number) + { + number = Mathf.Abs(number); + string text = number.ToString(); + for (int i = 0; i < this._leftImages.Length; i++) + { + if (i < text.Length) + { + this._leftImages[i].gameObject.SetActive(true); + this._leftImages[i].sprite = this._numberSprites[(int)(text[i] - '0')]; + } + else + { + this._leftImages[i].gameObject.SetActive(false); + } + } + } + + // Token: 0x06000D3B RID: 3387 RVA: 0x0003EAA8 File Offset: 0x0003DCA8 + private void SetDenominator(int number) + { + number = Mathf.Abs(number); + string text = number.ToString(); + for (int i = 0; i < this._leftImages.Length; i++) + { + if (i < text.Length) + { + this._rightImages[i].gameObject.SetActive(true); + this._rightImages[i].sprite = this._numberSprites[(int)(text[i] - '0')]; + } + else + { + this._rightImages[i].gameObject.SetActive(false); + } + } + } + + // Token: 0x04000A2A RID: 2602 + [SerializeField] + private Image _bgImage; + + // Token: 0x04000A2B RID: 2603 + [SerializeField] + private Sprite[] _numberSprites; + + // Token: 0x04000A2C RID: 2604 + [SerializeField] + private Image[] _leftImages; + + // Token: 0x04000A2D RID: 2605 + [SerializeField] + private Image[] _rightImages; +} diff --git a/Assembly-CSharp/CustomObjectPool.cs b/Assembly-CSharp/CustomObjectPool.cs new file mode 100644 index 0000000..41394a8 --- /dev/null +++ b/Assembly-CSharp/CustomObjectPool.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using UnityEngine.Events; + +// Token: 0x0200017D RID: 381 +public class CustomObjectPool where T : new() +{ + // Token: 0x06000DA9 RID: 3497 RVA: 0x0004051C File Offset: 0x0003F71C + public CustomObjectPool(UnityAction onGet, UnityAction onRelease) + { + this.actionOnGet = onGet; + this.actionOnRelease = onRelease; + } + + // Token: 0x17000154 RID: 340 + // (get) Token: 0x06000DAA RID: 3498 RVA: 0x0004053D File Offset: 0x0003F73D + // (set) Token: 0x06000DAB RID: 3499 RVA: 0x00040545 File Offset: 0x0003F745 + public int CountAll { get; private set; } + + // Token: 0x17000155 RID: 341 + // (get) Token: 0x06000DAC RID: 3500 RVA: 0x0004054E File Offset: 0x0003F74E + public int CountActive + { + get + { + return this.CountAll - this.CountInactive; + } + } + + // Token: 0x17000156 RID: 342 + // (get) Token: 0x06000DAD RID: 3501 RVA: 0x0004055D File Offset: 0x0003F75D + public int CountInactive + { + get + { + return this.stack.Count; + } + } + + // Token: 0x06000DAE RID: 3502 RVA: 0x0004056C File Offset: 0x0003F76C + public T Get() + { + T t; + if (this.stack.Count == 0) + { + t = new T(); + int countAll = this.CountAll; + this.CountAll = countAll + 1; + } + else + { + t = this.stack.Pop(); + } + if (this.actionOnGet != null) + { + this.actionOnGet.Invoke(t); + } + return t; + } + + // Token: 0x06000DAF RID: 3503 RVA: 0x000405C0 File Offset: 0x0003F7C0 + public void Release(T element) + { + if (this.stack.Count > 0) + { + T t = this.stack.Peek(); + T t2 = element; + } + if (this.actionOnRelease != null) + { + this.actionOnRelease.Invoke(element); + } + this.stack.Push(element); + } + + // Token: 0x04000A71 RID: 2673 + private readonly Stack stack = new Stack(); + + // Token: 0x04000A72 RID: 2674 + private readonly UnityAction actionOnGet; + + // Token: 0x04000A73 RID: 2675 + private readonly UnityAction actionOnRelease; +} diff --git a/Assembly-CSharp/CustomSlider.cs b/Assembly-CSharp/CustomSlider.cs new file mode 100644 index 0000000..05963f1 --- /dev/null +++ b/Assembly-CSharp/CustomSlider.cs @@ -0,0 +1,71 @@ +using System; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x02000170 RID: 368 +public class CustomSlider : MonoBehaviour +{ + // Token: 0x06000D3D RID: 3389 RVA: 0x0003EB28 File Offset: 0x0003DD28 + public void Prepare(int num, bool changeSliderSize) + { + this._sliderImage.transform.localPosition = Vector3.zero; + float num2 = 10f; + float x = this._bgImage.rectTransform.sizeDelta.x; + if (changeSliderSize) + { + if (num != 0) + { + this.baseSize = (x - num2) / (float)num; + } + float num3 = ((this.baseSize < 20f) ? 20f : this.baseSize); + if (num > 1) + { + this.baseSize = (x - num2 - num3) / (float)(num - 1); + } + this._sliderImage.rectTransform.sizeDelta = new Vector2(num3, this._sliderImage.rectTransform.sizeDelta.y); + this._sliderImage.rectTransform.anchoredPosition = new Vector2(5f, this._sliderImage.transform.localPosition.y); + return; + } + float x2 = this._sliderImage.rectTransform.sizeDelta.x; + this.baseSize = ((num > 1) ? ((x - num2 - x2) / (float)(num - 1)) : 0f); + } + + // Token: 0x06000D3E RID: 3390 RVA: 0x0003EC38 File Offset: 0x0003DE38 + public void MoveSlider(int index) + { + float num = 5f + this.baseSize * (float)index; + float num2 = this._bgImage.rectTransform.sizeDelta.x * this._sliderImage.rectTransform.pivot.x; + float num3 = this._sliderImage.rectTransform.sizeDelta.x * this._sliderImage.rectTransform.pivot.x; + num += -num2 + num3; + this._sliderImage.rectTransform.anchoredPosition = new Vector2(num, this._sliderImage.transform.localPosition.y); + } + + // Token: 0x06000D3F RID: 3391 RVA: 0x0003ECE5 File Offset: 0x0003DEE5 + private void SetBgColor(Color color) + { + this._bgImage.color = color; + } + + // Token: 0x06000D40 RID: 3392 RVA: 0x0003ECF3 File Offset: 0x0003DEF3 + private void SetSliderColor(Color color) + { + this._sliderImage.color = color; + } + + // Token: 0x04000A2E RID: 2606 + private const float Margin = 5f; + + // Token: 0x04000A2F RID: 2607 + private const float MinWidth = 20f; + + // Token: 0x04000A30 RID: 2608 + [SerializeField] + private Image _bgImage; + + // Token: 0x04000A31 RID: 2609 + [SerializeField] + private Image _sliderImage; + + // Token: 0x04000A32 RID: 2610 + private float baseSize; +} diff --git a/Assembly-CSharp/CustomTextScroll.cs b/Assembly-CSharp/CustomTextScroll.cs new file mode 100644 index 0000000..10a1683 --- /dev/null +++ b/Assembly-CSharp/CustomTextScroll.cs @@ -0,0 +1,237 @@ +using System; +using System.Collections; +using Manager; +using TMPro; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x0200017F RID: 383 +[RequireComponent(typeof(RectTransform))] +public class CustomTextScroll : MonoBehaviour +{ + // Token: 0x06000DB3 RID: 3507 RVA: 0x00040649 File Offset: 0x0003F849 + protected void Awake() + { + this.Initialize(); + } + + // Token: 0x06000DB4 RID: 3508 RVA: 0x00040654 File Offset: 0x0003F854 + protected void Initialize() + { + if (this.initialized) + { + return; + } + if (this.maskRectTransform == null) + { + this.maskRectTransform = base.GetComponent(); + } + if (this.scrollParent != null) + { + if (this.layout == null) + { + this.layout = this.scrollParent.GetComponent(); + } + this.layout.enabled = true; + if (this._contentSize == null) + { + this._contentSize = this.scrollParent.GetComponent(); + } + this._contentSize.enabled = true; + this.meshText = this.scrollParent.GetComponentsInChildren(true); + this._images = this.scrollParent.GetComponentsInChildren(true); + this._spacing = this.layout.spacing; + } + if (this.forceScroll) + { + this.isScroll = this.forceScroll; + } + this.initialized = true; + } + + // Token: 0x06000DB5 RID: 3509 RVA: 0x0004073C File Offset: 0x0003F93C + public void SetData(string text) + { + this.Initialize(); + if (this._contentSize != null && !this._contentSize.enabled) + { + this._contentSize.enabled = true; + } + if (this.layout != null && !this.layout.enabled) + { + this.layout.enabled = true; + } + if (this.meshText != null && this.meshText.Length != 0) + { + this.meshText[0].text = text; + this.meshText[0] == null; + try + { + this.width = this.meshText[0].preferredWidth; + } + catch + { + this.width = this.maskRectTransform.sizeDelta.x; + } + this.isScroll = this.width > this.maskRectTransform.sizeDelta.x; + if (!this.isScroll) + { + this.width = this.maskRectTransform.sizeDelta.x; + } + Vector2 vector; + vector..ctor(this.width, this.maskRectTransform.sizeDelta.y); + for (int i = 0; i < this.meshText.Length; i++) + { + this.meshText[i].enableWordWrapping = false; + this.meshText[i].text = text; + this.meshText[i].rectTransform.sizeDelta = vector; + } + } + else if (this._images != null && this._images.Length != 0) + { + this.width = this._images[0].preferredWidth; + this.isScroll = this.width * 2f >= this.maskRectTransform.sizeDelta.x; + if (!this.isScroll) + { + this.width = this.maskRectTransform.sizeDelta.x; + } + } + if (this.forceScroll) + { + this.isScroll = this.forceScroll; + } + if (this.layout != null) + { + this.layout.CalculateLayoutInputHorizontal(); + this.layout.SetLayoutHorizontal(); + } + if (base.isActiveAndEnabled && base.gameObject.activeInHierarchy) + { + base.StartCoroutine(this.WaitEnable()); + } + } + + // Token: 0x06000DB6 RID: 3510 RVA: 0x00040970 File Offset: 0x0003FB70 + private IEnumerator WaitEnable() + { + yield return null; + yield return new WaitForEndOfFrame(); + if (this.layout != null && this.layout.enabled) + { + if (this._contentSize != null) + { + this._contentSize.enabled = false; + } + this.layout.enabled = false; + } + yield break; + } + + // Token: 0x06000DB7 RID: 3511 RVA: 0x0004097F File Offset: 0x0003FB7F + public void ResetPosition() + { + this.timer = 0f; + this.state = CustomTextScroll.ScrollState.Wait; + this.scrollParent.anchoredPosition = Vector2.zero; + } + + // Token: 0x06000DB8 RID: 3512 RVA: 0x000409A4 File Offset: 0x0003FBA4 + public void ViewUpdate() + { + if (this.isScroll) + { + this.timer += (float)GameManager.GetGameMSecAdd(); + if (this.state == CustomTextScroll.ScrollState.Wait && this.timer >= this.scrollWaitTimeMSec) + { + this.timer = 0f; + this.state = CustomTextScroll.ScrollState.Scroll; + return; + } + if (this.state == CustomTextScroll.ScrollState.Scroll) + { + this.scrollParent.anchoredPosition += new Vector2(this.scrollSpeed, 0f) * (float)this.Direction; + if (this.Direction < 0) + { + if (this.scrollParent.anchoredPosition.x <= -(this.width + this._spacing)) + { + this.scrollParent.anchoredPosition = Vector2.zero; + this.timer = 0f; + this.state = CustomTextScroll.ScrollState.Wait; + return; + } + } + else if (this.scrollParent.anchoredPosition.x >= this.width + this._spacing) + { + this.scrollParent.anchoredPosition = Vector2.zero; + this.timer = 0f; + this.state = CustomTextScroll.ScrollState.Wait; + } + } + } + } + + // Token: 0x04000A76 RID: 2678 + [SerializeField] + [Header("長さに関係なくスクロールさせる")] + private bool forceScroll; + + // Token: 0x04000A77 RID: 2679 + [SerializeField] + private float scrollSpeed = 1f; + + // Token: 0x04000A78 RID: 2680 + [SerializeField] + private float scrollWaitTimeMSec = 1000f; + + // Token: 0x04000A79 RID: 2681 + [SerializeField] + private RectTransform scrollParent; + + // Token: 0x04000A7A RID: 2682 + [SerializeField] + [Range(-1f, 1f)] + private int Direction = -1; + + // Token: 0x04000A7B RID: 2683 + [SerializeField] + private RectTransform maskRectTransform; + + // Token: 0x04000A7C RID: 2684 + private TextMeshProUGUI[] meshText; + + // Token: 0x04000A7D RID: 2685 + private Image[] _images; + + // Token: 0x04000A7E RID: 2686 + private CustomTextScroll.ScrollState state; + + // Token: 0x04000A7F RID: 2687 + private HorizontalOrVerticalLayoutGroup layout; + + // Token: 0x04000A80 RID: 2688 + private ContentSizeFitter _contentSize; + + // Token: 0x04000A81 RID: 2689 + private float width; + + // Token: 0x04000A82 RID: 2690 + private float timer; + + // Token: 0x04000A83 RID: 2691 + private bool isScroll; + + // Token: 0x04000A84 RID: 2692 + private bool initialized; + + // Token: 0x04000A85 RID: 2693 + private float _spacing; + + // Token: 0x02000A4D RID: 2637 + private enum ScrollState + { + // Token: 0x040063C5 RID: 25541 + Wait, + // Token: 0x040063C6 RID: 25542 + Scroll + } +} diff --git a/Assembly-CSharp/CustomTypewriter.cs b/Assembly-CSharp/CustomTypewriter.cs new file mode 100644 index 0000000..fce1e07 --- /dev/null +++ b/Assembly-CSharp/CustomTypewriter.cs @@ -0,0 +1,358 @@ +using System; +using System.Collections; +using TMPro; +using UnityEngine; +using UnityEngine.EventSystems; + +// Token: 0x0200018D RID: 397 +[RequireComponent(typeof(TMP_Text))] +public class CustomTypewriter : UIBehaviour +{ + // Token: 0x1700015D RID: 349 + // (get) Token: 0x06000DF9 RID: 3577 RVA: 0x00042615 File Offset: 0x00041815 + public TMP_Text TmpText + { + get + { + return this._tmpText ?? base.GetComponent(); + } + } + + // Token: 0x1700015E RID: 350 + // (get) Token: 0x06000DFA RID: 3578 RVA: 0x00042627 File Offset: 0x00041827 + public RectTransform RectTransform + { + get + { + return this._rectTransform ?? base.GetComponent(); + } + } + + // Token: 0x06000DFB RID: 3579 RVA: 0x00042639 File Offset: 0x00041839 + protected override void Awake() + { + this._animationTime = 0f; + this._textMoveEffect = base.GetComponent(); + this._message = this.TmpText.text; + this.TmpText.text = string.Empty; + base.Awake(); + } + + // Token: 0x06000DFC RID: 3580 RVA: 0x00042679 File Offset: 0x00041879 + private void Update() + { + this.UpdateAnimation(); + } + + // Token: 0x06000DFD RID: 3581 RVA: 0x00042681 File Offset: 0x00041881 + public void StartTypewriter() + { + if (this._coroutine == null) + { + this._coroutine = base.StartCoroutine(this.Show()); + } + } + + // Token: 0x06000DFE RID: 3582 RVA: 0x0004269D File Offset: 0x0004189D + public void StartTypewriter(string text) + { + this.ResetTypewirter(); + this._message = text; + this.StartTypewriter(); + } + + // Token: 0x06000DFF RID: 3583 RVA: 0x000426B2 File Offset: 0x000418B2 + public void ResetTypewirter() + { + if (this._coroutine != null) + { + base.StopCoroutine(this._coroutine); + this._coroutine = null; + } + this.TmpText.text = string.Empty; + } + + // Token: 0x06000E00 RID: 3584 RVA: 0x000426E0 File Offset: 0x000418E0 + private void UpdateAnimation() + { + if (this._isAnimation) + { + this.UpdateMesh(); + this._animationTime += Time.deltaTime; + if (this._animationTime > this._interval) + { + this._animationTime = 1f; + this.UpdateMesh(); + this._animationTime = 0f; + this._isAnimation = false; + if (this._textMoveEffect != null) + { + this._textMoveEffect.IsTypewriter = false; + } + this.TmpText.ForceMeshUpdate(); + } + } + } + + // Token: 0x06000E01 RID: 3585 RVA: 0x00042763 File Offset: 0x00041963 + public void UpdateMesh() + { + if (this._interval <= 0f) + { + return; + } + this.UpdateMesh(this._animationTime / this._interval); + } + + // Token: 0x06000E02 RID: 3586 RVA: 0x00042786 File Offset: 0x00041986 + public void UpdateTypewriter(float rate) + { + this.TmpText.text = this.GetCurrentText(rate); + this.UpdateMesh(rate); + } + + // Token: 0x06000E03 RID: 3587 RVA: 0x000427A1 File Offset: 0x000419A1 + public void SetMessage(string message) + { + this._message = message; + } + + // Token: 0x06000E04 RID: 3588 RVA: 0x000427AC File Offset: 0x000419AC + private string GetCurrentText(float rate) + { + string text = ""; + if (this._message == null) + { + return ""; + } + int num = (int)((float)this._message.Length * rate); + for (int i = 0; i < num; i++) + { + text += this._message[i].ToString(); + } + return text; + } + + // Token: 0x06000E05 RID: 3589 RVA: 0x00042808 File Offset: 0x00041A08 + public void UpdateMesh(float rate) + { + if (this._interval <= 0f) + { + return; + } + if (!this._textMoveEffect || !this._textMoveEffect.enabled) + { + this.TmpText.ForceMeshUpdate(); + } + TMP_TextInfo textInfo = this.TmpText.textInfo; + int num = textInfo.characterCount - 1; + if (num < 0) + { + return; + } + int vertexIndex = textInfo.characterInfo[num].vertexIndex; + if (num <= 0 || vertexIndex != 0) + { + int materialReferenceIndex = textInfo.characterInfo[num].materialReferenceIndex; + Vector3[] vertices = textInfo.meshInfo[materialReferenceIndex].vertices; + float num2 = 0f; + float num3 = 1f; + float num4 = 0f; + if (this._isPositionAnime) + { + num2 = this._positionCurve.Evaluate(rate) * 10f; + } + if (this._isScaleAnime) + { + num3 = this._scaleCurve.Evaluate(rate); + } + if (this._isRotatAnime) + { + num4 = this._rotatoinCurve.Evaluate(rate); + } + if (this._isColorAnime) + { + Color32 color = this._colorGradient.Evaluate(rate); + Color32[] colors = textInfo.meshInfo[materialReferenceIndex].colors32; + colors[vertexIndex] = color; + colors[vertexIndex + 1] = color; + colors[vertexIndex + 2] = color; + colors[vertexIndex + 3] = color; + } + float num5 = textInfo.characterInfo[num].baseLine; + int lineCount = textInfo.lineCount; + float lineHeight = textInfo.lineInfo[lineCount - 1].lineHeight; + TextAlignmentOptions alignment = this.TmpText.alignment; + if (alignment <= 1026) + { + if (alignment <= 272) + { + if (alignment <= 260) + { + if (alignment - 257 > 1 && alignment != 260) + { + goto IL_0330; + } + } + else if (alignment != 264 && alignment != 272) + { + goto IL_0330; + } + } + else if (alignment <= 514) + { + if (alignment != 288) + { + if (alignment - 513 > 1) + { + goto IL_0330; + } + goto IL_02EA; + } + } + else + { + if (alignment == 516) + { + goto IL_02EA; + } + if (alignment - 1025 > 1) + { + goto IL_0330; + } + goto IL_02FD; + } + num5 = this.RectTransform.sizeDelta.y / 2f - this.TmpText.margin.y - lineHeight / 2f - lineHeight * (float)(lineCount - 1); + goto IL_0330; + } + if (alignment <= 1056) + { + if (alignment <= 1032) + { + if (alignment != 1028 && alignment != 1032) + { + goto IL_0330; + } + goto IL_02FD; + } + else + { + if (alignment != 1040 && alignment != 1056) + { + goto IL_0330; + } + goto IL_02FD; + } + } + else if (alignment <= 4100) + { + if (alignment - 4097 > 1 && alignment != 4100) + { + goto IL_0330; + } + } + else if (alignment != 4104 && alignment != 4112 && alignment != 4128) + { + goto IL_0330; + } + IL_02EA: + num5 = lineHeight / 2f * (float)(-(float)(lineCount - 1)); + goto IL_0330; + IL_02FD: + num5 = -(this.RectTransform.sizeDelta.y / 2f - this.TmpText.margin.w) + lineHeight / 2f; + IL_0330: + Vector3 vector = new Vector2((vertices[vertexIndex].x + vertices[vertexIndex + 2].x) / 2f, num5); + Matrix4x4 matrix4x = Matrix4x4.TRS(new Vector3(0f, num2, 0f), Quaternion.Euler(new Vector3(0f, 0f, num4)), new Vector3(num3, num3, 1f)); + for (int i = 0; i < 4; i++) + { + vertices[vertexIndex + i] += -vector; + vertices[vertexIndex + i] = matrix4x.MultiplyPoint3x4(vertices[vertexIndex + i]); + vertices[vertexIndex + i] += vector; + } + if (this._textMoveEffect && this._textMoveEffect.enabled) + { + this._textMoveEffect.TextMove(vertexIndex, ref vertices); + } + this.TmpText.UpdateVertexData(); + } + } + + // Token: 0x06000E06 RID: 3590 RVA: 0x00042C51 File Offset: 0x00041E51 + private IEnumerator Show() + { + this.TmpText.text = ""; + foreach (char c in this._message) + { + TMP_Text tmpText = this.TmpText; + tmpText.text += c.ToString(); + this._isAnimation = true; + if (this._textMoveEffect != null) + { + this._textMoveEffect.IsTypewriter = true; + } + this.UpdateAnimation(); + yield return new WaitForSeconds(this._interval + 0.1f); + } + string text = null; + this._coroutine = null; + yield break; + } + + // Token: 0x04000ABC RID: 2748 + private string _message; + + // Token: 0x04000ABD RID: 2749 + [SerializeField] + [Range(0f, 1f)] + private float _interval = 0.125f; + + // Token: 0x04000ABE RID: 2750 + [SerializeField] + private bool _isPositionAnime; + + // Token: 0x04000ABF RID: 2751 + [SerializeField] + private AnimationCurve _positionCurve = AnimationCurve.Linear(0f, 0f, 1f, 0f); + + // Token: 0x04000AC0 RID: 2752 + [SerializeField] + private bool _isScaleAnime; + + // Token: 0x04000AC1 RID: 2753 + [SerializeField] + private AnimationCurve _scaleCurve = AnimationCurve.Linear(0f, 1f, 1f, 1f); + + // Token: 0x04000AC2 RID: 2754 + [SerializeField] + private bool _isRotatAnime; + + // Token: 0x04000AC3 RID: 2755 + [SerializeField] + private AnimationCurve _rotatoinCurve = AnimationCurve.Linear(0f, 0f, 1f, 0f); + + // Token: 0x04000AC4 RID: 2756 + [SerializeField] + private bool _isColorAnime; + + // Token: 0x04000AC5 RID: 2757 + [SerializeField] + private Gradient _colorGradient; + + // Token: 0x04000AC6 RID: 2758 + private readonly TMP_Text _tmpText; + + // Token: 0x04000AC7 RID: 2759 + private readonly RectTransform _rectTransform; + + // Token: 0x04000AC8 RID: 2760 + private TextMoveEffect _textMoveEffect; + + // Token: 0x04000AC9 RID: 2761 + private Coroutine _coroutine; + + // Token: 0x04000ACA RID: 2762 + private float _animationTime; + + // Token: 0x04000ACB RID: 2763 + private bool _isAnimation; +} diff --git a/Assembly-CSharp/CustomTypewriterObject.cs b/Assembly-CSharp/CustomTypewriterObject.cs new file mode 100644 index 0000000..ff22edc --- /dev/null +++ b/Assembly-CSharp/CustomTypewriterObject.cs @@ -0,0 +1,75 @@ +using System; +using Timeline; +using UnityEngine; + +// Token: 0x0200016C RID: 364 +public class CustomTypewriterObject : TimeControlBaseObject +{ + // Token: 0x06000D23 RID: 3363 RVA: 0x0003E83A File Offset: 0x0003DA3A + public void SetMessages(string[] messages) + { + this._messages = messages; + } + + // Token: 0x06000D24 RID: 3364 RVA: 0x0003E843 File Offset: 0x0003DA43 + public override void OnBehaviourPlay() + { + this._typewriter.SetMessage(this.GetRandomMessage()); + this.UpdateTypewriter(0f); + } + + // Token: 0x06000D25 RID: 3365 RVA: 0x0003E861 File Offset: 0x0003DA61 + public override void OnClipPlay() + { + this.UpdateTypewriter(0f); + } + + // Token: 0x06000D26 RID: 3366 RVA: 0x0003E86E File Offset: 0x0003DA6E + public override void OnClipTailEnd() + { + this.UpdateTypewriter(1f); + } + + // Token: 0x06000D27 RID: 3367 RVA: 0x0003E861 File Offset: 0x0003DA61 + public override void OnClipHeadEnd() + { + this.UpdateTypewriter(0f); + } + + // Token: 0x06000D28 RID: 3368 RVA: 0x0003E861 File Offset: 0x0003DA61 + public override void OnGraphStop() + { + this.UpdateTypewriter(0f); + } + + // Token: 0x06000D29 RID: 3369 RVA: 0x0003E87B File Offset: 0x0003DA7B + public override void PrepareFrame(double normalizeTime) + { + this.UpdateTypewriter((float)normalizeTime); + } + + // Token: 0x06000D2A RID: 3370 RVA: 0x0003E888 File Offset: 0x0003DA88 + private string GetRandomMessage() + { + int num = Random.Range(0, this._messages.Length); + if (num < 0 || this._messages.Length <= num) + { + return ""; + } + return this._messages[num]; + } + + // Token: 0x06000D2B RID: 3371 RVA: 0x0003E8C1 File Offset: 0x0003DAC1 + private void UpdateTypewriter(float rate) + { + this._typewriter.UpdateTypewriter(rate); + } + + // Token: 0x04000A23 RID: 2595 + [SerializeField] + private CustomTypewriter _typewriter; + + // Token: 0x04000A24 RID: 2596 + [SerializeField] + private string[] _messages; +} diff --git a/Assembly-CSharp/CustomUI/NumImage.cs b/Assembly-CSharp/CustomUI/NumImage.cs new file mode 100644 index 0000000..4995b0c --- /dev/null +++ b/Assembly-CSharp/CustomUI/NumImage.cs @@ -0,0 +1,464 @@ +using System; +using UnityEngine; +using UnityEngine.UI; + +namespace CustomUI +{ + // Token: 0x020001A5 RID: 421 + [DisallowMultipleComponent] + public class NumImage : NumImageBase + { + // Token: 0x17000175 RID: 373 + // (get) Token: 0x06000EF1 RID: 3825 RVA: 0x0004604C File Offset: 0x0004524C + // (set) Token: 0x06000EF2 RID: 3826 RVA: 0x00046054 File Offset: 0x00045254 + public double Counter + { + get + { + return this.counter_; + } + set + { + if (value != this.counter_) + { + this.counter_ = value; + this.updatePosition(); + this.SetVerticesDirty(); + } + } + } + + // Token: 0x17000176 RID: 374 + // (get) Token: 0x06000EF3 RID: 3827 RVA: 0x00046072 File Offset: 0x00045272 + // (set) Token: 0x06000EF4 RID: 3828 RVA: 0x0004607B File Offset: 0x0004527B + public int CounterAsInt + { + get + { + return (int)this.counter_; + } + set + { + this.Counter = (double)value; + } + } + + // Token: 0x06000EF5 RID: 3829 RVA: 0x00046085 File Offset: 0x00045285 + public void setForceDirty() + { + this.updatePosition(); + this.SetVerticesDirty(); + } + + // Token: 0x06000EF6 RID: 3830 RVA: 0x00046094 File Offset: 0x00045294 + protected void calcNumFiguresInt(int value) + { + this.numFigures_ = 0; + int num = 0; + bool isDispCamma = base.isDispCamma; + if (value == 0) + { + base.pushFigure(0); + num = 1; + } + else + { + int num2 = Mathf.Abs(value); + while (0 < num2) + { + int num3 = num2 / 10; + int num4 = num2 - num3 * 10; + base.pushFigure((byte)num4); + num2 = num3; + num++; + if (isDispCamma && num % 3 == 0 && 0 < num2) + { + base.pushFigure(11); + } + } + } + bool flag = false; + if (base.ZeroPadding && num < this.numDigits_) + { + flag = true; + base.pushFigure(16); + int num5 = this.numDigits_ - num - 1; + while (0 <= num5) + { + base.pushFigure(0); + num++; + if (isDispCamma && num % 3 == 0 && 0 < num5) + { + base.pushFigure(11); + } + num5--; + } + } + if (value < 0) + { + base.pushFigure(12); + } + else if (base.isDispPlus) + { + if (value == 0) + { + if (!base.isEraseZeroSign) + { + base.pushFigure(10); + } + } + else + { + base.pushFigure(10); + } + } + if (flag) + { + base.pushFigure(15); + } + } + + // Token: 0x06000EF7 RID: 3831 RVA: 0x00046194 File Offset: 0x00045394 + protected void calcNumFiguresFloat(double value) + { + this.numFigures_ = 0; + double num = ((value < 0.0) ? (-value) : value); + int num2 = (int)num; + int num3 = (int)Math.Ceiling((num - (double)num2) * (double)Mathf.Pow(10f, (float)(this.decimalNumDigits_ + 1))); + if (num3 == 0 && !base.DecimalZeroPadding) + { + base.pushFigure(0); + } + else + { + num3 /= 10; + bool flag = false; + for (int i = 0; i < this.decimalNumDigits_; i++) + { + int num4 = num3 / 10; + int num5 = num3 - num4 * 10; + if (!flag && num5 != 0) + { + flag = true; + } + if (base.DecimalZeroPadding || flag) + { + base.pushFigure((byte)num5); + } + num3 = num4; + } + } + base.pushFigure(13); + int num6 = 0; + bool isDispCamma = base.isDispCamma; + bool flag2 = false; + if (num2 == 0) + { + if (base.ZeroPadding && base.PaddingIncludeZero) + { + flag2 = true; + base.pushFigure(16); + } + base.pushFigure(0); + num6 = 1; + } + else + { + int num7 = num2; + while (0 < num7) + { + int num8 = num7 / 10; + int num9 = num7 - num8 * 10; + base.pushFigure((byte)num9); + num7 = num8; + num6++; + if (isDispCamma && num6 % 3 == 0 && 0 < num7) + { + base.pushFigure(11); + } + } + } + bool flag3 = false; + if (base.ZeroPadding && (num6 < this.numDigits_ || (base.PaddingIncludeZero && num6 <= this.numDigits_))) + { + flag3 = true; + if (!flag2) + { + base.pushFigure(16); + } + int num10 = this.numDigits_ - num6 - 1; + while (0 <= num10) + { + base.pushFigure(0); + num6++; + if (isDispCamma && num6 % 3 == 0 && 0 < num10) + { + base.pushFigure(11); + } + num10--; + } + } + if (value < 0.0) + { + base.pushFigure(12); + } + else if (base.isDispPlus) + { + if (num < 1E-10) + { + if (!base.isEraseZeroSign) + { + base.pushFigure(10); + } + } + else + { + base.pushFigure(10); + } + } + if (flag3) + { + base.pushFigure(15); + } + } + + // Token: 0x06000EF8 RID: 3832 RVA: 0x00046380 File Offset: 0x00045580 + private Vector2 calcTotalSize() + { + Vector2 vector = this.size_; + Vector2 vector2; + vector2..ctor(0f, Mathf.Max(vector.y, this.signSize_.y)); + float charSpacing_ = this.charSpacing_; + int num = this.numFigures_ - 1; + while (0 <= num) + { + switch (this.figures_[num]) + { + case 10: + case 12: + vector2.x += this.signSize_.x; + vector2.x += charSpacing_; + break; + case 11: + vector2.x += this.signSize_.x; + vector2.x += 2f * this.cammaSidePadding_; + vector2.x += charSpacing_; + break; + case 13: + vector2.x += this.signSize_.x; + vector2.x += 2f * this.decimalDotSidePadding_; + vector = Vector2.Scale(this.decimalScale_, this.size_); + if (!base.DecimalUseIntegerSpacing) + { + charSpacing_ = this.decimalCharSpacing_; + } + vector2.x += charSpacing_; + break; + case 14: + goto IL_0131; + case 15: + case 16: + break; + default: + goto IL_0131; + } + IL_0152: + num--; + continue; + IL_0131: + vector2.x += vector.x; + if (0 < num) + { + vector2.x += charSpacing_; + goto IL_0152; + } + goto IL_0152; + } + return vector2; + } + + // Token: 0x06000EF9 RID: 3833 RVA: 0x000464EC File Offset: 0x000456EC + private void updatePosition() + { + if (null == base.sprite) + { + return; + } + if (base.isDecimal) + { + this.calcNumFiguresFloat(this.counter_); + } + else + { + this.calcNumFiguresInt((int)this.counter_); + } + Rect rect = base.rectTransform.rect; + Vector2 anchorPivot = NumImageBase.getAnchorPivot(this.align_); + Vector2 vector = this.calcTotalSize(); + Vector2 vector2 = Vector2.Scale(base.rectTransform.pivot, rect.size) - rect.size * 0.5f; + Vector2 vector3 = Vector2.Scale(anchorPivot, vector); + vector2 += vector3; + float num = vector.x - vector2.x; + if (this.rightObject_) + { + float num2 = 0.5f * this.rightObject_.rect.width + num + this.rightOffset_; + this.rightObject_.anchoredPosition = new Vector2(num2, this.rightObject_.anchoredPosition.y); + } + if (this.leftObject_) + { + float num3 = -0.5f * this.leftObject_.rect.width - vector2.x - this.leftOffset_; + this.leftObject_.anchoredPosition = new Vector2(num3, this.leftObject_.anchoredPosition.y); + } + } + + // Token: 0x06000EFA RID: 3834 RVA: 0x00046644 File Offset: 0x00045844 + protected override void OnPopulateMesh(VertexHelper toFill) + { + toFill.Clear(); + if (null == base.sprite) + { + return; + } + Rect rect = base.rectTransform.rect; + Vector2 anchorPivot = NumImageBase.getAnchorPivot(this.align_); + Vector2 vector = this.calcTotalSize(); + Vector2 vector2 = Vector2.Scale(base.rectTransform.pivot, rect.size) - rect.size * 0.5f; + Vector2 vector3 = Vector2.Scale(anchorPivot, vector); + vector2 += vector3; + float num = 1f / (float)base.sprite.texture.width; + float num2 = 1f / (float)base.sprite.texture.height; + Vector4 noPaddingOuterUV = NumImageBase.GetNoPaddingOuterUV(base.sprite, num, num2); + float num3 = -vector2.x; + float num4 = this.size_.y - this.signSize_.y; + float num5; + float num6; + if (0f <= num4) + { + num5 = -vector2.y; + num6 = -vector2.y + 0.5f * num4; + } + else + { + num5 = -vector2.y - 0.5f * num4; + num6 = -vector2.y; + } + Vector2 vector4 = this.size_; + float num7 = 0f; + float charSpacing_ = this.charSpacing_; + Color color = this.color; + bool flag = false; + int num8 = this.numFigures_ - 1; + while (0 <= num8) + { + float num9 = 0f; + float num10; + float num11; + float num12; + switch (this.figures_[num8]) + { + case 10: + case 12: + num10 = num3 + this.signSize_.x; + num11 = this.signSize_.y + num6; + num12 = num6; + goto IL_02BB; + case 11: + num3 += this.cammaSidePadding_; + num9 = this.cammaSidePadding_; + num10 = num3 + this.signSize_.x; + num11 = this.signSize_.y + num6 + this.cammaYOffset_; + num12 = num6 + this.cammaYOffset_; + goto IL_02BB; + case 13: + num3 += this.decimalDotSidePadding_; + num9 = this.decimalDotSidePadding_; + num10 = num3 + this.signSize_.x; + num11 = this.signSize_.y + num6; + num12 = num6 + this.decimalDotYOffset_; + vector4 = Vector2.Scale(this.decimalScale_, this.size_); + num7 = this.decimalYOffset_; + if (!base.DecimalUseIntegerSpacing) + { + charSpacing_ = this.decimalCharSpacing_; + goto IL_02BB; + } + goto IL_02BB; + case 14: + num3 = num3 + vector4.x + charSpacing_; + break; + case 15: + flag = base.ZeroPaddingOtherUV; + break; + case 16: + flag = false; + break; + default: + num10 = num3 + vector4.x; + num11 = vector4.y + num5 + num7; + num12 = num5 + num7; + goto IL_02BB; + } + IL_0446: + num8--; + continue; + IL_02BB: + Vector4 vector5 = NumImageBase.toLocalUV(noPaddingOuterUV, NumImageBase.getNormalizedUV(this.figures_[num8], flag), num, num2); + this.tempVertices_[0].position = new Vector3(num3, num11); + this.tempVertices_[0].uv0 = new Vector2(vector5.x, vector5.w); + this.tempVertices_[0].color = color; + this.tempVertices_[1].position = new Vector3(num10, num11); + this.tempVertices_[1].uv0 = new Vector2(vector5.z, vector5.w); + this.tempVertices_[1].color = color; + this.tempVertices_[2].position = new Vector3(num10, num12); + this.tempVertices_[2].uv0 = new Vector2(vector5.z, vector5.y); + this.tempVertices_[2].color = color; + this.tempVertices_[3].position = new Vector3(num3, num12); + this.tempVertices_[3].uv0 = new Vector2(vector5.x, vector5.y); + this.tempVertices_[3].color = color; + toFill.AddUIVertexQuad(this.tempVertices_); + num3 = num10 + charSpacing_ + num9; + goto IL_0446; + } + } + + // Token: 0x06000EFB RID: 3835 RVA: 0x00046AA5 File Offset: 0x00045CA5 + protected override void Start() + { + base.resetSprite(); + this.updatePosition(); + base.Start(); + } + + // Token: 0x04000B18 RID: 2840 + [SerializeField] + private double counter_; + + // Token: 0x04000B19 RID: 2841 + public const int MaxDecimalDigits = 5; + + // Token: 0x04000B1A RID: 2842 + [SerializeField] + [Range(1f, 5f)] + private int decimalNumDigits_ = 1; + + // Token: 0x04000B1B RID: 2843 + [SerializeField] + private Vector2 decimalScale_ = Vector2.one; + + // Token: 0x04000B1C RID: 2844 + [SerializeField] + private float decimalCharSpacing_; + + // Token: 0x04000B1D RID: 2845 + [SerializeField] + private float decimalYOffset_; + + // Token: 0x04000B1E RID: 2846 + [SerializeField] + private float decimalDotYOffset_; + + // Token: 0x04000B1F RID: 2847 + [SerializeField] + private float decimalDotSidePadding_; + } +} diff --git a/Assembly-CSharp/CustomUI/NumImageBase.cs b/Assembly-CSharp/CustomUI/NumImageBase.cs new file mode 100644 index 0000000..7470c1f --- /dev/null +++ b/Assembly-CSharp/CustomUI/NumImageBase.cs @@ -0,0 +1,497 @@ +using System; +using UnityEngine; +using UnityEngine.Sprites; +using UnityEngine.UI; + +namespace CustomUI +{ + // Token: 0x020001A6 RID: 422 + public abstract class NumImageBase : Image + { + // Token: 0x17000177 RID: 375 + // (get) Token: 0x06000EFD RID: 3837 RVA: 0x00046AD3 File Offset: 0x00045CD3 + public int SpriteCount + { + get + { + if (this.sprites_ == null) + { + return 0; + } + return this.sprites_.Length; + } + } + + // Token: 0x17000178 RID: 376 + // (get) Token: 0x06000EFE RID: 3838 RVA: 0x00046AE7 File Offset: 0x00045CE7 + // (set) Token: 0x06000EFF RID: 3839 RVA: 0x00046AEF File Offset: 0x00045CEF + public int SpriteIndex + { + get + { + return this.spriteIndex_; + } + set + { + if (value != this.spriteIndex_) + { + this.spriteIndex_ = value; + this.resetSprite(); + } + } + } + + // Token: 0x06000F00 RID: 3840 RVA: 0x00046B07 File Offset: 0x00045D07 + public void resetSprite() + { + if (this.sprites_ != null && this.spriteIndex_ < this.sprites_.Length) + { + base.sprite = this.sprites_[this.spriteIndex_]; + } + } + + // Token: 0x17000179 RID: 377 + // (get) Token: 0x06000F01 RID: 3841 RVA: 0x00046B34 File Offset: 0x00045D34 + // (set) Token: 0x06000F02 RID: 3842 RVA: 0x00046B41 File Offset: 0x00045D41 + public bool isDispPlus + { + get + { + return (this.flags_ & 1) != 0; + } + set + { + if (value) + { + this.flags_ |= 1; + return; + } + this.flags_ &= -2; + } + } + + // Token: 0x1700017A RID: 378 + // (get) Token: 0x06000F03 RID: 3843 RVA: 0x00046B64 File Offset: 0x00045D64 + // (set) Token: 0x06000F04 RID: 3844 RVA: 0x00046B71 File Offset: 0x00045D71 + public bool isDispCamma + { + get + { + return (this.flags_ & 2) != 0; + } + set + { + if (value) + { + this.flags_ |= 2; + return; + } + this.flags_ &= -3; + } + } + + // Token: 0x1700017B RID: 379 + // (get) Token: 0x06000F05 RID: 3845 RVA: 0x00046B94 File Offset: 0x00045D94 + // (set) Token: 0x06000F06 RID: 3846 RVA: 0x00046BA5 File Offset: 0x00045DA5 + public bool isEraseZeroSign + { + get + { + return (this.flags_ & 128) != 0; + } + set + { + if (value) + { + this.flags_ |= 128; + return; + } + this.flags_ &= -129; + } + } + + // Token: 0x1700017C RID: 380 + // (get) Token: 0x06000F07 RID: 3847 RVA: 0x00046BCF File Offset: 0x00045DCF + // (set) Token: 0x06000F08 RID: 3848 RVA: 0x00046BDC File Offset: 0x00045DDC + public bool ZeroPadding + { + get + { + return (this.flags_ & 4) != 0; + } + set + { + if (value) + { + this.flags_ |= 4; + return; + } + this.flags_ &= -5; + } + } + + // Token: 0x1700017D RID: 381 + // (get) Token: 0x06000F09 RID: 3849 RVA: 0x00046BFF File Offset: 0x00045DFF + // (set) Token: 0x06000F0A RID: 3850 RVA: 0x00046C0D File Offset: 0x00045E0D + public bool ZeroPaddingOtherUV + { + get + { + return (this.flags_ & 64) != 0; + } + set + { + if (value) + { + this.flags_ |= 64; + return; + } + this.flags_ &= -65; + } + } + + // Token: 0x1700017E RID: 382 + // (get) Token: 0x06000F0B RID: 3851 RVA: 0x00046C31 File Offset: 0x00045E31 + // (set) Token: 0x06000F0C RID: 3852 RVA: 0x00046C3E File Offset: 0x00045E3E + public bool isDecimal + { + get + { + return (this.flags_ & 8) != 0; + } + set + { + if (value) + { + this.flags_ |= 8; + return; + } + this.flags_ &= -9; + } + } + + // Token: 0x1700017F RID: 383 + // (get) Token: 0x06000F0D RID: 3853 RVA: 0x00046C61 File Offset: 0x00045E61 + // (set) Token: 0x06000F0E RID: 3854 RVA: 0x00046C6F File Offset: 0x00045E6F + public bool DecimalZeroPadding + { + get + { + return (this.flags_ & 16) != 0; + } + set + { + if (value) + { + this.flags_ |= 16; + return; + } + this.flags_ &= -17; + } + } + + // Token: 0x17000180 RID: 384 + // (get) Token: 0x06000F0F RID: 3855 RVA: 0x00046C93 File Offset: 0x00045E93 + // (set) Token: 0x06000F10 RID: 3856 RVA: 0x00046CA1 File Offset: 0x00045EA1 + public bool DecimalUseIntegerSpacing + { + get + { + return (this.flags_ & 32) != 0; + } + set + { + if (value) + { + this.flags_ |= 32; + return; + } + this.flags_ &= -33; + } + } + + // Token: 0x17000181 RID: 385 + // (get) Token: 0x06000F11 RID: 3857 RVA: 0x00046CC5 File Offset: 0x00045EC5 + // (set) Token: 0x06000F12 RID: 3858 RVA: 0x00046CD6 File Offset: 0x00045ED6 + public bool PaddingIncludeZero + { + get + { + return (this.flags_ & 256) != 0; + } + set + { + if (value) + { + this.flags_ |= 256; + return; + } + this.flags_ &= -257; + } + } + + // Token: 0x17000182 RID: 386 + // (get) Token: 0x06000F13 RID: 3859 RVA: 0x00046D00 File Offset: 0x00045F00 + // (set) Token: 0x06000F14 RID: 3860 RVA: 0x00046D11 File Offset: 0x00045F11 + public bool UseUpper + { + get + { + return (this.flags_ & 512) != 0; + } + set + { + if (value) + { + this.flags_ |= 512; + return; + } + this.flags_ &= -513; + } + } + + // Token: 0x17000183 RID: 387 + // (get) Token: 0x06000F15 RID: 3861 RVA: 0x00046D3B File Offset: 0x00045F3B + // (set) Token: 0x06000F16 RID: 3862 RVA: 0x00046D4C File Offset: 0x00045F4C + public bool UpperUseIntegerSpacing + { + get + { + return (this.flags_ & 1024) != 0; + } + set + { + if (value) + { + this.flags_ |= 1024; + return; + } + this.flags_ &= -1025; + } + } + + // Token: 0x06000F17 RID: 3863 RVA: 0x00046D78 File Offset: 0x00045F78 + public static Vector2 getAnchorPivot(NumImageBase.Align align) + { + switch (align) + { + case NumImageBase.Align.Center: + return new Vector2(0.5f, 0.5f); + case NumImageBase.Align.Left: + return new Vector2(0f, 0.5f); + case NumImageBase.Align.Right: + return new Vector2(1f, 0.5f); + default: + return Vector2.zero; + } + } + + // Token: 0x06000F18 RID: 3864 RVA: 0x00046DD0 File Offset: 0x00045FD0 + public static Vector4 toLocalUV(Vector4 spriteUV, Vector4 normalizedUV, float iw, float ih) + { + float num = spriteUV.z - spriteUV.x; + float num2 = spriteUV.w - spriteUV.y; + float num3 = 0.5f * iw; + float num4 = 1f - num3; + float num5 = 0.5f * ih; + float num6 = 1f - num5; + Vector4 vector; + vector.x = Mathf.Max(spriteUV.x + num * normalizedUV.x, num3); + vector.y = Mathf.Max(spriteUV.y + num2 * normalizedUV.y, num5); + vector.z = Mathf.Min(spriteUV.x + num * normalizedUV.z, num4); + vector.w = Mathf.Min(spriteUV.y + num2 * normalizedUV.w, num6); + return vector; + } + + // Token: 0x06000F19 RID: 3865 RVA: 0x00046E90 File Offset: 0x00046090 + public static Vector4 GetNoPaddingOuterUV(Sprite sprite, float iw, float ih) + { + Rect textureRect = sprite.textureRect; + Vector4 padding = DataUtility.GetPadding(sprite); + Vector4 vector; + vector.x = (textureRect.xMin - padding.x) * iw; + vector.y = (textureRect.yMin - padding.y) * ih; + vector.z = (textureRect.xMax + padding.z) * iw; + vector.w = (textureRect.yMax + padding.w) * ih; + return vector; + } + + // Token: 0x06000F1A RID: 3866 RVA: 0x00046F08 File Offset: 0x00046108 + public static Vector4 getNormalizedUV(byte figure, bool zeropadding) + { + Vector4 zero; + switch (figure) + { + case 10: + zero..ctor(0.5f, 0.25f, 0.75f, 0.5f); + break; + case 11: + zero..ctor(0.25f, 0f, 0.5f, 0.25f); + break; + case 12: + zero..ctor(0.75f, 0.25f, 1f, 0.5f); + break; + case 13: + zero..ctor(0f, 0f, 0.25f, 0.25f); + break; + case 14: + zero = Vector4.zero; + break; + default: + if (zeropadding) + { + zero..ctor(0.75f, 0f, 1f, 0.25f); + } + else + { + int num = figure >> 2; + int num2 = (int)figure - (num << 2); + zero.x = 0.25f * (float)num2; + zero.z = zero.x + 0.25f; + zero.w = 1f - 0.25f * (float)num; + zero.y = zero.w - 0.25f; + } + break; + } + return zero; + } + + // Token: 0x06000F1B RID: 3867 RVA: 0x00047031 File Offset: 0x00046231 + protected void pushFigure(byte c) + { + this.figures_[this.numFigures_] = c; + this.numFigures_++; + } + + // Token: 0x04000B20 RID: 2848 + [SerializeField] + protected NumImageBase.Align align_; + + // Token: 0x04000B21 RID: 2849 + [SerializeField] + protected Sprite[] sprites_; + + // Token: 0x04000B22 RID: 2850 + [SerializeField] + protected int spriteIndex_; + + // Token: 0x04000B23 RID: 2851 + [SerializeField] + protected Vector2 size_ = new Vector2(50f, 50f); + + // Token: 0x04000B24 RID: 2852 + [SerializeField] + protected Vector2 signSize_ = new Vector2(50f, 50f); + + // Token: 0x04000B25 RID: 2853 + [SerializeField] + [Range(1f, 9f)] + protected int numDigits_ = 1; + + // Token: 0x04000B26 RID: 2854 + [SerializeField] + protected float charSpacing_; + + // Token: 0x04000B27 RID: 2855 + [SerializeField] + protected float cammaYOffset_; + + // Token: 0x04000B28 RID: 2856 + [SerializeField] + protected float cammaSidePadding_; + + // Token: 0x04000B29 RID: 2857 + [SerializeField] + protected int flags_; + + // Token: 0x04000B2A RID: 2858 + [SerializeField] + protected RectTransform leftObject_; + + // Token: 0x04000B2B RID: 2859 + [SerializeField] + protected float leftOffset_; + + // Token: 0x04000B2C RID: 2860 + [SerializeField] + protected RectTransform rightObject_; + + // Token: 0x04000B2D RID: 2861 + [SerializeField] + protected float rightOffset_; + + // Token: 0x04000B2E RID: 2862 + public const int Flag_DispPlus = 1; + + // Token: 0x04000B2F RID: 2863 + public const int Flag_DispCamma = 2; + + // Token: 0x04000B30 RID: 2864 + public const int Flag_ZeroPadding = 4; + + // Token: 0x04000B31 RID: 2865 + public const int Flag_Decimal = 8; + + // Token: 0x04000B32 RID: 2866 + public const int Flag_DecimalZeroPadding = 16; + + // Token: 0x04000B33 RID: 2867 + public const int Flag_DecimalUseIntegerSpacing = 32; + + // Token: 0x04000B34 RID: 2868 + public const int Flag_ZeroPaddingOtherUV = 64; + + // Token: 0x04000B35 RID: 2869 + public const int Flag_EraseZeroSign = 128; + + // Token: 0x04000B36 RID: 2870 + public const int Flag_PaddingIncludeZero = 256; + + // Token: 0x04000B37 RID: 2871 + public const int Flag_Upper = 512; + + // Token: 0x04000B38 RID: 2872 + public const int Flag_UpperUseIntegerSpacing = 1024; + + // Token: 0x04000B39 RID: 2873 + public const byte FigurePlus = 10; + + // Token: 0x04000B3A RID: 2874 + public const byte FigureComma = 11; + + // Token: 0x04000B3B RID: 2875 + public const byte FigureMinus = 12; + + // Token: 0x04000B3C RID: 2876 + public const byte FigureDot = 13; + + // Token: 0x04000B3D RID: 2877 + public const byte FigureSpace = 14; + + // Token: 0x04000B3E RID: 2878 + public const byte FigureBeginZeroPadding = 15; + + // Token: 0x04000B3F RID: 2879 + public const byte FigureEndZeroPadding = 16; + + // Token: 0x04000B40 RID: 2880 + protected int numFigures_; + + // Token: 0x04000B41 RID: 2881 + protected byte[] figures_ = new byte[28]; + + // Token: 0x04000B42 RID: 2882 + protected UIVertex[] tempVertices_ = new UIVertex[4]; + + // Token: 0x02000A64 RID: 2660 + public enum Align + { + // Token: 0x04006402 RID: 25602 + Center, + // Token: 0x04006403 RID: 25603 + Left, + // Token: 0x04006404 RID: 25604 + Right + } + } +} diff --git a/Assembly-CSharp/CustomUI/NumImageInt.cs b/Assembly-CSharp/CustomUI/NumImageInt.cs new file mode 100644 index 0000000..34b3984 --- /dev/null +++ b/Assembly-CSharp/CustomUI/NumImageInt.cs @@ -0,0 +1,362 @@ +using System; +using UnityEngine; +using UnityEngine.UI; + +namespace CustomUI +{ + // Token: 0x020001A7 RID: 423 + [DisallowMultipleComponent] + public class NumImageInt : NumImageBase + { + // Token: 0x17000184 RID: 388 + // (get) Token: 0x06000F1D RID: 3869 RVA: 0x000470AD File Offset: 0x000462AD + // (set) Token: 0x06000F1E RID: 3870 RVA: 0x000470B5 File Offset: 0x000462B5 + public int Counter + { + get + { + return this.counter_; + } + set + { + if (value != this.counter_) + { + this.counter_ = value; + this.updatePosition(); + this.SetVerticesDirty(); + } + } + } + + // Token: 0x06000F1F RID: 3871 RVA: 0x000470D3 File Offset: 0x000462D3 + public void setForceDirty() + { + this.updatePosition(); + this.SetVerticesDirty(); + } + + // Token: 0x06000F20 RID: 3872 RVA: 0x000470E4 File Offset: 0x000462E4 + protected void calcNumFiguresInt(int value) + { + this.numFigures_ = 0; + int num = 0; + bool isDispCamma = base.isDispCamma; + if (value == 0) + { + base.pushFigure(0); + num = 1; + } + else + { + int num2 = Mathf.Abs(value); + while (0 < num2) + { + int num3 = num2 / 10; + int num4 = num2 - num3 * 10; + base.pushFigure((byte)num4); + num2 = num3; + num++; + if (isDispCamma && num % 3 == 0 && 0 < num2) + { + base.pushFigure(11); + } + } + } + bool flag = false; + if (base.ZeroPadding && num < this.numDigits_) + { + flag = true; + base.pushFigure(16); + int num5 = this.numDigits_ - num - 1; + while (0 <= num5) + { + base.pushFigure(0); + num++; + if (isDispCamma && num % 3 == 0 && 0 < num5) + { + base.pushFigure(11); + } + num5--; + } + } + if (value < 0) + { + base.pushFigure(12); + } + else if (base.isDispPlus) + { + if (value == 0) + { + if (!base.isEraseZeroSign) + { + base.pushFigure(10); + } + } + else + { + base.pushFigure(10); + } + } + if (flag) + { + base.pushFigure(15); + } + } + + // Token: 0x06000F21 RID: 3873 RVA: 0x000471E4 File Offset: 0x000463E4 + private Vector2 calcTotalSize() + { + float num = Mathf.Max(this.size_.y, this.signSize_.y); + Vector2 vector; + float num2; + if (base.UseUpper) + { + vector = this.upperScale_; + num2 = (base.UpperUseIntegerSpacing ? this.charSpacing_ : this.upperCharSpacing_); + num = Mathf.Max(this.upperScale_.y, num); + } + else + { + vector = this.size_; + num2 = this.charSpacing_; + } + Vector2 vector2; + vector2..ctor(0f, num); + int num3 = 0; + int num4 = this.numFigures_ - 1; + while (0 <= num4) + { + switch (this.figures_[num4]) + { + case 10: + case 12: + vector2.x += this.signSize_.x; + vector2.x += num2; + break; + case 11: + vector2.x += this.signSize_.x; + vector2.x += 2f * this.cammaSidePadding_; + vector2.x += num2; + break; + case 13: + case 14: + goto IL_0118; + case 15: + case 16: + break; + default: + goto IL_0118; + } + IL_0171: + num4--; + continue; + IL_0118: + if (base.UseUpper) + { + if (num3 == this.upperNumDigits_) + { + vector = this.size_; + num2 = this.charSpacing_; + vector2.x += this.upperLowerSpace_; + } + num3++; + } + vector2.x += vector.x; + if (0 < num4) + { + vector2.x += num2; + goto IL_0171; + } + goto IL_0171; + } + return vector2; + } + + // Token: 0x06000F22 RID: 3874 RVA: 0x00047374 File Offset: 0x00046574 + private void updatePosition() + { + if (null == base.sprite) + { + return; + } + this.calcNumFiguresInt(this.counter_); + Rect rect = base.rectTransform.rect; + Vector2 anchorPivot = NumImageBase.getAnchorPivot(this.align_); + Vector2 vector = this.calcTotalSize(); + Vector2 vector2 = Vector2.Scale(base.rectTransform.pivot, rect.size) - rect.size * 0.5f; + Vector2 vector3 = Vector2.Scale(anchorPivot, vector); + vector2 += vector3; + float num = vector.x - vector2.x; + if (this.rightObject_) + { + float num2 = 0.5f * this.rightObject_.rect.width + num + this.rightOffset_; + this.rightObject_.anchoredPosition = new Vector2(num2, this.rightObject_.anchoredPosition.y); + } + if (this.leftObject_) + { + float num3 = -0.5f * this.leftObject_.rect.width - vector2.x - this.leftOffset_; + this.leftObject_.anchoredPosition = new Vector2(num3, this.leftObject_.anchoredPosition.y); + } + } + + // Token: 0x06000F23 RID: 3875 RVA: 0x000474B4 File Offset: 0x000466B4 + protected override void OnPopulateMesh(VertexHelper toFill) + { + toFill.Clear(); + if (null == base.sprite) + { + return; + } + Rect rect = base.rectTransform.rect; + Vector2 anchorPivot = NumImageBase.getAnchorPivot(this.align_); + Vector2 vector = this.calcTotalSize(); + Vector2 vector2 = Vector2.Scale(base.rectTransform.pivot, rect.size) - rect.size * 0.5f; + Vector2 vector3 = Vector2.Scale(anchorPivot, vector); + vector2 += vector3; + float num = 1f / (float)base.sprite.texture.width; + float num2 = 1f / (float)base.sprite.texture.height; + Vector4 noPaddingOuterUV = NumImageBase.GetNoPaddingOuterUV(base.sprite, num, num2); + float num3 = -vector2.x; + float num4 = this.size_.y - this.signSize_.y; + float num5; + float num6; + if (0f <= num4) + { + num5 = -vector2.y; + num6 = -vector2.y + 0.5f * num4; + } + else + { + num5 = -vector2.y - 0.5f * num4; + num6 = -vector2.y; + } + Vector2 vector4 = this.size_; + float num7 = this.charSpacing_; + float num8; + if (base.UseUpper) + { + vector4 = this.upperScale_; + num8 = this.upperYOffset_; + num7 = (base.UpperUseIntegerSpacing ? this.charSpacing_ : this.upperCharSpacing_); + } + else + { + vector4 = this.size_; + num8 = 0f; + num7 = this.charSpacing_; + } + Color color = this.color; + bool flag = false; + int num9 = 0; + int num10 = this.numFigures_ - 1; + while (0 <= num10) + { + float num11 = 0f; + float num12; + float num13; + float num14; + switch (this.figures_[num10]) + { + case 10: + case 12: + num12 = num3 + this.signSize_.x; + num13 = this.signSize_.y + num6; + num14 = num6; + goto IL_02D3; + case 11: + num3 += this.cammaSidePadding_; + num11 = this.cammaSidePadding_; + num12 = num3 + this.signSize_.x; + num13 = this.signSize_.y + num6 + this.cammaYOffset_; + num14 = num6 + this.cammaYOffset_; + goto IL_02D3; + case 13: + goto IL_0277; + case 14: + num3 = num3 + vector4.x + num7; + break; + case 15: + flag = base.ZeroPaddingOtherUV; + break; + case 16: + flag = false; + break; + default: + goto IL_0277; + } + IL_045E: + num10--; + continue; + IL_02D3: + Vector4 vector5 = NumImageBase.toLocalUV(noPaddingOuterUV, NumImageBase.getNormalizedUV(this.figures_[num10], flag), num, num2); + this.tempVertices_[0].position = new Vector3(num3, num13); + this.tempVertices_[0].uv0 = new Vector2(vector5.x, vector5.w); + this.tempVertices_[0].color = color; + this.tempVertices_[1].position = new Vector3(num12, num13); + this.tempVertices_[1].uv0 = new Vector2(vector5.z, vector5.w); + this.tempVertices_[1].color = color; + this.tempVertices_[2].position = new Vector3(num12, num14); + this.tempVertices_[2].uv0 = new Vector2(vector5.z, vector5.y); + this.tempVertices_[2].color = color; + this.tempVertices_[3].position = new Vector3(num3, num14); + this.tempVertices_[3].uv0 = new Vector2(vector5.x, vector5.y); + this.tempVertices_[3].color = color; + toFill.AddUIVertexQuad(this.tempVertices_); + num3 = num12 + num7 + num11; + goto IL_045E; + IL_0277: + if (base.UseUpper) + { + if (num9 == this.upperNumDigits_) + { + vector4 = this.size_; + num7 = this.charSpacing_; + num8 = 0f; + num3 += this.upperLowerSpace_; + } + num9++; + } + num12 = num3 + vector4.x; + num13 = vector4.y + num5 + num8; + num14 = num5 + num8; + goto IL_02D3; + } + } + + // Token: 0x06000F24 RID: 3876 RVA: 0x0004792D File Offset: 0x00046B2D + protected override void Start() + { + base.resetSprite(); + this.updatePosition(); + base.Start(); + } + + // Token: 0x04000B43 RID: 2883 + [SerializeField] + private int counter_; + + // Token: 0x04000B44 RID: 2884 + public const int MaxUpperDigits = 4; + + // Token: 0x04000B45 RID: 2885 + [SerializeField] + [Range(1f, 4f)] + private int upperNumDigits_ = 1; + + // Token: 0x04000B46 RID: 2886 + [SerializeField] + private Vector2 upperScale_ = Vector2.one; + + // Token: 0x04000B47 RID: 2887 + [SerializeField] + private float upperCharSpacing_; + + // Token: 0x04000B48 RID: 2888 + [SerializeField] + private float upperYOffset_; + + // Token: 0x04000B49 RID: 2889 + [SerializeField] + private float upperLowerSpace_; + } +} diff --git a/Assembly-CSharp/CustomUIVertex.cs b/Assembly-CSharp/CustomUIVertex.cs new file mode 100644 index 0000000..40e0437 --- /dev/null +++ b/Assembly-CSharp/CustomUIVertex.cs @@ -0,0 +1,26 @@ +using System; +using UnityEngine; + +// Token: 0x0200018B RID: 395 +[Serializable] +public class CustomUIVertex +{ + // Token: 0x06000DF6 RID: 3574 RVA: 0x000425D8 File Offset: 0x000417D8 + public UIVertex Get() + { + UIVertex uivertex = default(UIVertex); + uivertex.position = this.Position; + uivertex.color = this.Color; + uivertex.uv0 = this.UV; + return uivertex; + } + + // Token: 0x04000AB8 RID: 2744 + public Vector2 UV; + + // Token: 0x04000AB9 RID: 2745 + public Vector3 Position; + + // Token: 0x04000ABA RID: 2746 + public Color32 Color; +} diff --git a/Assembly-CSharp/CustomWindow.cs b/Assembly-CSharp/CustomWindow.cs new file mode 100644 index 0000000..7058cc9 --- /dev/null +++ b/Assembly-CSharp/CustomWindow.cs @@ -0,0 +1,58 @@ +using System; +using DB; +using UnityEngine; + +// Token: 0x0200000E RID: 14 +public class CustomWindow : CommonWindow +{ + // Token: 0x0600003F RID: 63 RVA: 0x00002C6C File Offset: 0x00001E6C + public void Prepare(MessageController.MessageInfo info, IMessageController controller) + { + this.SetSprites(info, controller); + base.SetPivot(info.PositionId); + this._messageText.text = info.Message; + this._messageText.color = ((info.KindId == WindowKindID.Attention) ? Color.white : Color.black); + if (info.SizeId == WindowSizeID.LargeHorizontal || info.SizeId == WindowSizeID.LargeVertical || info.SizeId == WindowSizeID.LargeVerticalPostImage) + { + base.SetPadding(info.SizeId); + } + else + { + base.SetHeight(); + } + this._titleGroup.alpha = (float)((info.Title == "") ? 0 : 1); + this._titleText.text = info.Title; + this._lifeCounter = 0f; + this.LifeTime = -1f; + this._state = CommonWindow.WindowState.Prepare; + this._isOpening = true; + base.SetPosition(info.Position); + } + + // Token: 0x06000040 RID: 64 RVA: 0x00002D50 File Offset: 0x00001F50 + private void SetSprites(MessageController.MessageInfo info, IMessageController controller) + { + if (info.KindId == WindowKindID.Attention) + { + this._windowImage.sprite = controller.AttentionSp(); + this._titleImage.sprite = controller.AttentionTitleSp(); + } + else if (info.KindId == WindowKindID.Common) + { + this._windowImage.sprite = controller.DefaultSp(); + this._titleImage.sprite = controller.DefaultTitleSp(); + } + else + { + Sprite sprite = Resources.Load("TextView/UI_WND_Type_" + 0.ToString("000")); + Sprite sprite2 = Resources.Load("TextView/UI_WND_Title_Type_" + 0.ToString("000")); + this._windowImage.sprite = sprite; + this._titleImage.sprite = sprite2; + } + if (info.SizeId == WindowSizeID.LargeHorizontal || info.SizeId == WindowSizeID.LargeVertical) + { + Sprite sprite3 = Resources.Load("TextView/0"); + base.SetIconSprite(sprite3); + } + } +} diff --git a/Assembly-CSharp/DB/AddFriendTextID.cs b/Assembly-CSharp/DB/AddFriendTextID.cs new file mode 100644 index 0000000..2784272 --- /dev/null +++ b/Assembly-CSharp/DB/AddFriendTextID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x02000723 RID: 1827 + public enum AddFriendTextID + { + // Token: 0x04004D62 RID: 19810 + FriendInfo, + // Token: 0x04004D63 RID: 19811 + AddFriend, + // Token: 0x04004D64 RID: 19812 + AddFriendCaution, + // Token: 0x04004D65 RID: 19813 + Begin = 0, + // Token: 0x04004D66 RID: 19814 + End = 3, + // Token: 0x04004D67 RID: 19815 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/AddFriendTextIDEnum.cs b/Assembly-CSharp/DB/AddFriendTextIDEnum.cs new file mode 100644 index 0000000..a9a2175 --- /dev/null +++ b/Assembly-CSharp/DB/AddFriendTextIDEnum.cs @@ -0,0 +1,97 @@ +using System; + +namespace DB +{ + // Token: 0x02000725 RID: 1829 + public static class AddFriendTextIDEnum + { + // Token: 0x0600428F RID: 17039 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this AddFriendTextID self) + { + return self >= AddFriendTextID.FriendInfo && self < AddFriendTextID.End && self > AddFriendTextID.FriendInfo; + } + + // Token: 0x06004290 RID: 17040 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this AddFriendTextID self) + { + return self >= AddFriendTextID.FriendInfo && self < AddFriendTextID.End; + } + + // Token: 0x06004291 RID: 17041 RVA: 0x001739D9 File Offset: 0x00172BD9 + public static void Clamp(this AddFriendTextID self) + { + if (self < AddFriendTextID.FriendInfo) + { + self = AddFriendTextID.FriendInfo; + return; + } + if (self >= (AddFriendTextID)AddFriendTextIDEnum.GetEnd()) + { + self = (AddFriendTextID)AddFriendTextIDEnum.GetEnd(); + } + } + + // Token: 0x06004292 RID: 17042 RVA: 0x001739F2 File Offset: 0x00172BF2 + public static int GetEnd(this AddFriendTextID self) + { + return AddFriendTextIDEnum.GetEnd(); + } + + // Token: 0x06004293 RID: 17043 RVA: 0x001739FC File Offset: 0x00172BFC + public static AddFriendTextID FindID(string enumName) + { + for (AddFriendTextID addFriendTextID = AddFriendTextID.FriendInfo; addFriendTextID < AddFriendTextID.End; addFriendTextID++) + { + if (addFriendTextID.GetEnumName() == enumName) + { + return addFriendTextID; + } + } + return AddFriendTextID.Invalid; + } + + // Token: 0x06004294 RID: 17044 RVA: 0x00173A26 File Offset: 0x00172C26 + public static int GetEnd() + { + return AddFriendTextIDEnum.records.Length; + } + + // Token: 0x06004295 RID: 17045 RVA: 0x00173A2F File Offset: 0x00172C2F + public static int GetEnumValue(this AddFriendTextID self) + { + if (self.IsValid()) + { + return AddFriendTextIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004296 RID: 17046 RVA: 0x00173A47 File Offset: 0x00172C47 + public static string GetEnumName(this AddFriendTextID self) + { + if (self.IsValid()) + { + return AddFriendTextIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004297 RID: 17047 RVA: 0x00173A63 File Offset: 0x00172C63 + public static string GetName(this AddFriendTextID self) + { + if (self.IsValid()) + { + return AddFriendTextIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04004D6B RID: 19819 + private static readonly AddFriendTextTableRecord[] records = new AddFriendTextTableRecord[] + { + new AddFriendTextTableRecord(0, "FriendInfo", "要与{0}成为好友吗?"), + new AddFriendTextTableRecord(1, "AddFriend", "已与{0}成为好友。"), + new AddFriendTextTableRecord(2, "AddFriendCaution", "如果可以添加为对手,将自动添加。") + }; + } +} diff --git a/Assembly-CSharp/DB/AddFriendTextTableRecord.cs b/Assembly-CSharp/DB/AddFriendTextTableRecord.cs new file mode 100644 index 0000000..e16d40f --- /dev/null +++ b/Assembly-CSharp/DB/AddFriendTextTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000724 RID: 1828 + public class AddFriendTextTableRecord + { + // Token: 0x0600428D RID: 17037 RVA: 0x00003560 File Offset: 0x00002760 + public AddFriendTextTableRecord() + { + } + + // Token: 0x0600428E RID: 17038 RVA: 0x001739A0 File Offset: 0x00172BA0 + public AddFriendTextTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04004D68 RID: 19816 + public int EnumValue; + + // Token: 0x04004D69 RID: 19817 + public string EnumName; + + // Token: 0x04004D6A RID: 19818 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/AdvertiseVolumeID.cs b/Assembly-CSharp/DB/AdvertiseVolumeID.cs new file mode 100644 index 0000000..20b7a5c --- /dev/null +++ b/Assembly-CSharp/DB/AdvertiseVolumeID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x02000726 RID: 1830 + public enum AdvertiseVolumeID + { + // Token: 0x04004D6D RID: 19821 + _0, + // Token: 0x04004D6E RID: 19822 + _25, + // Token: 0x04004D6F RID: 19823 + _50, + // Token: 0x04004D70 RID: 19824 + _75, + // Token: 0x04004D71 RID: 19825 + _100, + // Token: 0x04004D72 RID: 19826 + Begin = 0, + // Token: 0x04004D73 RID: 19827 + End = 5, + // Token: 0x04004D74 RID: 19828 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/AdvertiseVolumeIDEnum.cs b/Assembly-CSharp/DB/AdvertiseVolumeIDEnum.cs new file mode 100644 index 0000000..b08da75 --- /dev/null +++ b/Assembly-CSharp/DB/AdvertiseVolumeIDEnum.cs @@ -0,0 +1,109 @@ +using System; + +namespace DB +{ + // Token: 0x02000728 RID: 1832 + public static class AdvertiseVolumeIDEnum + { + // Token: 0x0600429B RID: 17051 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this AdvertiseVolumeID self) + { + return self >= AdvertiseVolumeID._0 && self < AdvertiseVolumeID.End && self > AdvertiseVolumeID._0; + } + + // Token: 0x0600429C RID: 17052 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this AdvertiseVolumeID self) + { + return self >= AdvertiseVolumeID._0 && self < AdvertiseVolumeID.End; + } + + // Token: 0x0600429D RID: 17053 RVA: 0x00173B12 File Offset: 0x00172D12 + public static void Clamp(this AdvertiseVolumeID self) + { + if (self < AdvertiseVolumeID._0) + { + self = AdvertiseVolumeID._0; + return; + } + if (self >= (AdvertiseVolumeID)AdvertiseVolumeIDEnum.GetEnd()) + { + self = (AdvertiseVolumeID)AdvertiseVolumeIDEnum.GetEnd(); + } + } + + // Token: 0x0600429E RID: 17054 RVA: 0x00173B2B File Offset: 0x00172D2B + public static int GetEnd(this AdvertiseVolumeID self) + { + return AdvertiseVolumeIDEnum.GetEnd(); + } + + // Token: 0x0600429F RID: 17055 RVA: 0x00173B34 File Offset: 0x00172D34 + public static AdvertiseVolumeID FindID(string enumName) + { + for (AdvertiseVolumeID advertiseVolumeID = AdvertiseVolumeID._0; advertiseVolumeID < AdvertiseVolumeID.End; advertiseVolumeID++) + { + if (advertiseVolumeID.GetEnumName() == enumName) + { + return advertiseVolumeID; + } + } + return AdvertiseVolumeID.Invalid; + } + + // Token: 0x060042A0 RID: 17056 RVA: 0x00173B5E File Offset: 0x00172D5E + public static int GetEnd() + { + return AdvertiseVolumeIDEnum.records.Length; + } + + // Token: 0x060042A1 RID: 17057 RVA: 0x00173B67 File Offset: 0x00172D67 + public static int GetEnumValue(this AdvertiseVolumeID self) + { + if (self.IsValid()) + { + return AdvertiseVolumeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060042A2 RID: 17058 RVA: 0x00173B7F File Offset: 0x00172D7F + public static string GetEnumName(this AdvertiseVolumeID self) + { + if (self.IsValid()) + { + return AdvertiseVolumeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060042A3 RID: 17059 RVA: 0x00173B9B File Offset: 0x00172D9B + public static string GetName(this AdvertiseVolumeID self) + { + if (self.IsValid()) + { + return AdvertiseVolumeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060042A4 RID: 17060 RVA: 0x00173BB7 File Offset: 0x00172DB7 + public static int GetVolume(this AdvertiseVolumeID self) + { + if (self.IsValid()) + { + return AdvertiseVolumeIDEnum.records[(int)self].Volume; + } + return 0; + } + + // Token: 0x04004D79 RID: 19833 + private static readonly AdvertiseVolumeTableRecord[] records = new AdvertiseVolumeTableRecord[] + { + new AdvertiseVolumeTableRecord(0, "_0", "0%", 0), + new AdvertiseVolumeTableRecord(1, "_25", "25%", 25), + new AdvertiseVolumeTableRecord(2, "_50", "50%", 50), + new AdvertiseVolumeTableRecord(3, "_75", "75%", 75), + new AdvertiseVolumeTableRecord(4, "_100", "100%", 100) + }; + } +} diff --git a/Assembly-CSharp/DB/AdvertiseVolumeTableRecord.cs b/Assembly-CSharp/DB/AdvertiseVolumeTableRecord.cs new file mode 100644 index 0000000..e1187d5 --- /dev/null +++ b/Assembly-CSharp/DB/AdvertiseVolumeTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000727 RID: 1831 + public class AdvertiseVolumeTableRecord + { + // Token: 0x06004299 RID: 17049 RVA: 0x00003560 File Offset: 0x00002760 + public AdvertiseVolumeTableRecord() + { + } + + // Token: 0x0600429A RID: 17050 RVA: 0x00173AD1 File Offset: 0x00172CD1 + public AdvertiseVolumeTableRecord(int EnumValue, string EnumName, string Name, int Volume) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.Volume = Volume; + } + + // Token: 0x04004D75 RID: 19829 + public int EnumValue; + + // Token: 0x04004D76 RID: 19830 + public string EnumName; + + // Token: 0x04004D77 RID: 19831 + public string Name; + + // Token: 0x04004D78 RID: 19832 + public int Volume; + } +} diff --git a/Assembly-CSharp/DB/ButtonID.cs b/Assembly-CSharp/DB/ButtonID.cs new file mode 100644 index 0000000..4cbb301 --- /dev/null +++ b/Assembly-CSharp/DB/ButtonID.cs @@ -0,0 +1,17 @@ +using System; + +namespace DB +{ + // Token: 0x02000729 RID: 1833 + public enum ButtonID + { + // Token: 0x04004D7B RID: 19835 + NPlus, + // Token: 0x04004D7C RID: 19836 + Begin = 0, + // Token: 0x04004D7D RID: 19837 + End, + // Token: 0x04004D7E RID: 19838 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/ButtonIDEnum.cs b/Assembly-CSharp/DB/ButtonIDEnum.cs new file mode 100644 index 0000000..085c3b1 --- /dev/null +++ b/Assembly-CSharp/DB/ButtonIDEnum.cs @@ -0,0 +1,115 @@ +using System; + +namespace DB +{ + // Token: 0x0200072B RID: 1835 + public static class ButtonIDEnum + { + // Token: 0x060042A8 RID: 17064 RVA: 0x00173C7D File Offset: 0x00172E7D + public static bool IsActive(this ButtonID self) + { + return self >= ButtonID.NPlus && self < ButtonID.End && self > ButtonID.NPlus; + } + + // Token: 0x060042A9 RID: 17065 RVA: 0x00173C8D File Offset: 0x00172E8D + public static bool IsValid(this ButtonID self) + { + return self >= ButtonID.NPlus && self < ButtonID.End; + } + + // Token: 0x060042AA RID: 17066 RVA: 0x00173C99 File Offset: 0x00172E99 + public static void Clamp(this ButtonID self) + { + if (self < ButtonID.NPlus) + { + self = ButtonID.NPlus; + return; + } + if (self >= (ButtonID)ButtonIDEnum.GetEnd()) + { + self = (ButtonID)ButtonIDEnum.GetEnd(); + } + } + + // Token: 0x060042AB RID: 17067 RVA: 0x00173CB2 File Offset: 0x00172EB2 + public static int GetEnd(this ButtonID self) + { + return ButtonIDEnum.GetEnd(); + } + + // Token: 0x060042AC RID: 17068 RVA: 0x00173CBC File Offset: 0x00172EBC + public static ButtonID FindID(string enumName) + { + for (ButtonID buttonID = ButtonID.NPlus; buttonID < ButtonID.End; buttonID++) + { + if (buttonID.GetEnumName() == enumName) + { + return buttonID; + } + } + return ButtonID.Invalid; + } + + // Token: 0x060042AD RID: 17069 RVA: 0x00173CE6 File Offset: 0x00172EE6 + public static int GetEnd() + { + return ButtonIDEnum.records.Length; + } + + // Token: 0x060042AE RID: 17070 RVA: 0x00173CEF File Offset: 0x00172EEF + public static int GetEnumValue(this ButtonID self) + { + if (self.IsValid()) + { + return ButtonIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060042AF RID: 17071 RVA: 0x00173D07 File Offset: 0x00172F07 + public static string GetEnumName(this ButtonID self) + { + if (self.IsValid()) + { + return ButtonIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060042B0 RID: 17072 RVA: 0x00173D23 File Offset: 0x00172F23 + public static ButtonKindID GetKind(this ButtonID self) + { + if (self.IsValid()) + { + return ButtonIDEnum.records[(int)self].Kind; + } + return ButtonKindID.Invalid; + } + + // Token: 0x060042B1 RID: 17073 RVA: 0x00173D3B File Offset: 0x00172F3B + public static ButtonTypeID GetType(this ButtonID self) + { + if (self.IsValid()) + { + return ButtonIDEnum.records[(int)self].Type; + } + return ButtonTypeID.Invalid; + } + + // Token: 0x060042B2 RID: 17074 RVA: 0x00173D53 File Offset: 0x00172F53 + public static int GetName(this ButtonID self) + { + if (self.IsValid()) + { + return ButtonIDEnum.records[(int)self].Name; + } + return 0; + } + + // Token: 0x04004D84 RID: 19844 + private static readonly ButtonTableRecord[] records = new ButtonTableRecord[] + { + new ButtonTableRecord(0, "NPlus", 0, 0, 0) + }; + } +} diff --git a/Assembly-CSharp/DB/ButtonKindID.cs b/Assembly-CSharp/DB/ButtonKindID.cs new file mode 100644 index 0000000..1c11cf8 --- /dev/null +++ b/Assembly-CSharp/DB/ButtonKindID.cs @@ -0,0 +1,23 @@ +using System; + +namespace DB +{ + // Token: 0x0200072C RID: 1836 + public enum ButtonKindID + { + // Token: 0x04004D86 RID: 19846 + Circle, + // Token: 0x04004D87 RID: 19847 + Flat, + // Token: 0x04004D88 RID: 19848 + Square, + // Token: 0x04004D89 RID: 19849 + Horizon, + // Token: 0x04004D8A RID: 19850 + Begin = 0, + // Token: 0x04004D8B RID: 19851 + End = 4, + // Token: 0x04004D8C RID: 19852 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/ButtonKindIDEnum.cs b/Assembly-CSharp/DB/ButtonKindIDEnum.cs new file mode 100644 index 0000000..108ab50 --- /dev/null +++ b/Assembly-CSharp/DB/ButtonKindIDEnum.cs @@ -0,0 +1,98 @@ +using System; + +namespace DB +{ + // Token: 0x0200072E RID: 1838 + public static class ButtonKindIDEnum + { + // Token: 0x060042B6 RID: 17078 RVA: 0x00173DA6 File Offset: 0x00172FA6 + public static bool IsActive(this ButtonKindID self) + { + return self >= ButtonKindID.Circle && self < ButtonKindID.End && self > ButtonKindID.Circle; + } + + // Token: 0x060042B7 RID: 17079 RVA: 0x00173DB6 File Offset: 0x00172FB6 + public static bool IsValid(this ButtonKindID self) + { + return self >= ButtonKindID.Circle && self < ButtonKindID.End; + } + + // Token: 0x060042B8 RID: 17080 RVA: 0x00173DC2 File Offset: 0x00172FC2 + public static void Clamp(this ButtonKindID self) + { + if (self < ButtonKindID.Circle) + { + self = ButtonKindID.Circle; + return; + } + if (self >= (ButtonKindID)ButtonKindIDEnum.GetEnd()) + { + self = (ButtonKindID)ButtonKindIDEnum.GetEnd(); + } + } + + // Token: 0x060042B9 RID: 17081 RVA: 0x00173DDB File Offset: 0x00172FDB + public static int GetEnd(this ButtonKindID self) + { + return ButtonKindIDEnum.GetEnd(); + } + + // Token: 0x060042BA RID: 17082 RVA: 0x00173DE4 File Offset: 0x00172FE4 + public static ButtonKindID FindID(string enumName) + { + for (ButtonKindID buttonKindID = ButtonKindID.Circle; buttonKindID < ButtonKindID.End; buttonKindID++) + { + if (buttonKindID.GetEnumName() == enumName) + { + return buttonKindID; + } + } + return ButtonKindID.Invalid; + } + + // Token: 0x060042BB RID: 17083 RVA: 0x00173E0E File Offset: 0x0017300E + public static int GetEnd() + { + return ButtonKindIDEnum.records.Length; + } + + // Token: 0x060042BC RID: 17084 RVA: 0x00173E17 File Offset: 0x00173017 + public static int GetEnumValue(this ButtonKindID self) + { + if (self.IsValid()) + { + return ButtonKindIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060042BD RID: 17085 RVA: 0x00173E2F File Offset: 0x0017302F + public static string GetEnumName(this ButtonKindID self) + { + if (self.IsValid()) + { + return ButtonKindIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060042BE RID: 17086 RVA: 0x00173E4B File Offset: 0x0017304B + public static string GetName(this ButtonKindID self) + { + if (self.IsValid()) + { + return ButtonKindIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04004D90 RID: 19856 + private static readonly ButtonKindTableRecord[] records = new ButtonKindTableRecord[] + { + new ButtonKindTableRecord(0, "Circle", "丸ボタン"), + new ButtonKindTableRecord(1, "Flat", "フラットボタン"), + new ButtonKindTableRecord(2, "Square", "四角ボタン"), + new ButtonKindTableRecord(3, "Horizon", "垂直ボタン") + }; + } +} diff --git a/Assembly-CSharp/DB/ButtonKindTableRecord.cs b/Assembly-CSharp/DB/ButtonKindTableRecord.cs new file mode 100644 index 0000000..b30bfc3 --- /dev/null +++ b/Assembly-CSharp/DB/ButtonKindTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x0200072D RID: 1837 + public class ButtonKindTableRecord + { + // Token: 0x060042B4 RID: 17076 RVA: 0x00003560 File Offset: 0x00002760 + public ButtonKindTableRecord() + { + } + + // Token: 0x060042B5 RID: 17077 RVA: 0x00173D89 File Offset: 0x00172F89 + public ButtonKindTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04004D8D RID: 19853 + public int EnumValue; + + // Token: 0x04004D8E RID: 19854 + public string EnumName; + + // Token: 0x04004D8F RID: 19855 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/ButtonPosID.cs b/Assembly-CSharp/DB/ButtonPosID.cs new file mode 100644 index 0000000..7c4071a --- /dev/null +++ b/Assembly-CSharp/DB/ButtonPosID.cs @@ -0,0 +1,31 @@ +using System; + +namespace DB +{ + // Token: 0x0200072F RID: 1839 + public enum ButtonPosID + { + // Token: 0x04004D92 RID: 19858 + Button1, + // Token: 0x04004D93 RID: 19859 + Button2, + // Token: 0x04004D94 RID: 19860 + Button3, + // Token: 0x04004D95 RID: 19861 + Button4, + // Token: 0x04004D96 RID: 19862 + Button5, + // Token: 0x04004D97 RID: 19863 + Button6, + // Token: 0x04004D98 RID: 19864 + Button7, + // Token: 0x04004D99 RID: 19865 + Button8, + // Token: 0x04004D9A RID: 19866 + Begin = 0, + // Token: 0x04004D9B RID: 19867 + End = 8, + // Token: 0x04004D9C RID: 19868 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/ButtonPosIDEnum.cs b/Assembly-CSharp/DB/ButtonPosIDEnum.cs new file mode 100644 index 0000000..28dde63 --- /dev/null +++ b/Assembly-CSharp/DB/ButtonPosIDEnum.cs @@ -0,0 +1,102 @@ +using System; + +namespace DB +{ + // Token: 0x02000731 RID: 1841 + public static class ButtonPosIDEnum + { + // Token: 0x060042C2 RID: 17090 RVA: 0x00173EE9 File Offset: 0x001730E9 + public static bool IsActive(this ButtonPosID self) + { + return self >= ButtonPosID.Button1 && self < ButtonPosID.End && self > ButtonPosID.Button1; + } + + // Token: 0x060042C3 RID: 17091 RVA: 0x00123DBF File Offset: 0x00122FBF + public static bool IsValid(this ButtonPosID self) + { + return self >= ButtonPosID.Button1 && self < ButtonPosID.End; + } + + // Token: 0x060042C4 RID: 17092 RVA: 0x00173EF9 File Offset: 0x001730F9 + public static void Clamp(this ButtonPosID self) + { + if (self < ButtonPosID.Button1) + { + self = ButtonPosID.Button1; + return; + } + if (self >= (ButtonPosID)ButtonPosIDEnum.GetEnd()) + { + self = (ButtonPosID)ButtonPosIDEnum.GetEnd(); + } + } + + // Token: 0x060042C5 RID: 17093 RVA: 0x00173F12 File Offset: 0x00173112 + public static int GetEnd(this ButtonPosID self) + { + return ButtonPosIDEnum.GetEnd(); + } + + // Token: 0x060042C6 RID: 17094 RVA: 0x00173F1C File Offset: 0x0017311C + public static ButtonPosID FindID(string enumName) + { + for (ButtonPosID buttonPosID = ButtonPosID.Button1; buttonPosID < ButtonPosID.End; buttonPosID++) + { + if (buttonPosID.GetEnumName() == enumName) + { + return buttonPosID; + } + } + return ButtonPosID.Invalid; + } + + // Token: 0x060042C7 RID: 17095 RVA: 0x00173F46 File Offset: 0x00173146 + public static int GetEnd() + { + return ButtonPosIDEnum.records.Length; + } + + // Token: 0x060042C8 RID: 17096 RVA: 0x00173F4F File Offset: 0x0017314F + public static int GetEnumValue(this ButtonPosID self) + { + if (self.IsValid()) + { + return ButtonPosIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060042C9 RID: 17097 RVA: 0x00173F67 File Offset: 0x00173167 + public static string GetEnumName(this ButtonPosID self) + { + if (self.IsValid()) + { + return ButtonPosIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060042CA RID: 17098 RVA: 0x00173F83 File Offset: 0x00173183 + public static string GetName(this ButtonPosID self) + { + if (self.IsValid()) + { + return ButtonPosIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04004DA0 RID: 19872 + private static readonly ButtonPosTableRecord[] records = new ButtonPosTableRecord[] + { + new ButtonPosTableRecord(0, "Button1", "1番ボタン"), + new ButtonPosTableRecord(1, "Button2", "2番ボタン"), + new ButtonPosTableRecord(2, "Button3", "3番ボタン"), + new ButtonPosTableRecord(3, "Button4", "4番ボタン"), + new ButtonPosTableRecord(4, "Button5", "5番ボタン"), + new ButtonPosTableRecord(5, "Button6", "6番ボタン"), + new ButtonPosTableRecord(6, "Button7", "7番ボタン"), + new ButtonPosTableRecord(7, "Button8", "8番ボタン") + }; + } +} diff --git a/Assembly-CSharp/DB/ButtonPosTableRecord.cs b/Assembly-CSharp/DB/ButtonPosTableRecord.cs new file mode 100644 index 0000000..833b2ec --- /dev/null +++ b/Assembly-CSharp/DB/ButtonPosTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000730 RID: 1840 + public class ButtonPosTableRecord + { + // Token: 0x060042C0 RID: 17088 RVA: 0x00003560 File Offset: 0x00002760 + public ButtonPosTableRecord() + { + } + + // Token: 0x060042C1 RID: 17089 RVA: 0x00173ECC File Offset: 0x001730CC + public ButtonPosTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04004D9D RID: 19869 + public int EnumValue; + + // Token: 0x04004D9E RID: 19870 + public string EnumName; + + // Token: 0x04004D9F RID: 19871 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/ButtonTableRecord.cs b/Assembly-CSharp/DB/ButtonTableRecord.cs new file mode 100644 index 0000000..8a67b18 --- /dev/null +++ b/Assembly-CSharp/DB/ButtonTableRecord.cs @@ -0,0 +1,38 @@ +using System; + +namespace DB +{ + // Token: 0x0200072A RID: 1834 + public class ButtonTableRecord + { + // Token: 0x060042A6 RID: 17062 RVA: 0x00003560 File Offset: 0x00002760 + public ButtonTableRecord() + { + } + + // Token: 0x060042A7 RID: 17063 RVA: 0x00173C50 File Offset: 0x00172E50 + public ButtonTableRecord(int EnumValue, string EnumName, int Kind, int Type, int Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Kind = (ButtonKindID)Kind; + this.Type = (ButtonTypeID)Type; + this.Name = Name; + } + + // Token: 0x04004D7F RID: 19839 + public int EnumValue; + + // Token: 0x04004D80 RID: 19840 + public string EnumName; + + // Token: 0x04004D81 RID: 19841 + public ButtonKindID Kind; + + // Token: 0x04004D82 RID: 19842 + public ButtonTypeID Type; + + // Token: 0x04004D83 RID: 19843 + public int Name; + } +} diff --git a/Assembly-CSharp/DB/ButtonTypeID.cs b/Assembly-CSharp/DB/ButtonTypeID.cs new file mode 100644 index 0000000..76012b1 --- /dev/null +++ b/Assembly-CSharp/DB/ButtonTypeID.cs @@ -0,0 +1,17 @@ +using System; + +namespace DB +{ + // Token: 0x02000732 RID: 1842 + public enum ButtonTypeID + { + // Token: 0x04004DA2 RID: 19874 + N_Plus, + // Token: 0x04004DA3 RID: 19875 + Begin = 0, + // Token: 0x04004DA4 RID: 19876 + End, + // Token: 0x04004DA5 RID: 19877 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/ButtonTypeIDEnum.cs b/Assembly-CSharp/DB/ButtonTypeIDEnum.cs new file mode 100644 index 0000000..4eeae70 --- /dev/null +++ b/Assembly-CSharp/DB/ButtonTypeIDEnum.cs @@ -0,0 +1,95 @@ +using System; + +namespace DB +{ + // Token: 0x02000734 RID: 1844 + public static class ButtonTypeIDEnum + { + // Token: 0x060042CE RID: 17102 RVA: 0x00173C7D File Offset: 0x00172E7D + public static bool IsActive(this ButtonTypeID self) + { + return self >= ButtonTypeID.N_Plus && self < ButtonTypeID.End && self > ButtonTypeID.N_Plus; + } + + // Token: 0x060042CF RID: 17103 RVA: 0x00173C8D File Offset: 0x00172E8D + public static bool IsValid(this ButtonTypeID self) + { + return self >= ButtonTypeID.N_Plus && self < ButtonTypeID.End; + } + + // Token: 0x060042D0 RID: 17104 RVA: 0x0017406D File Offset: 0x0017326D + public static void Clamp(this ButtonTypeID self) + { + if (self < ButtonTypeID.N_Plus) + { + self = ButtonTypeID.N_Plus; + return; + } + if (self >= (ButtonTypeID)ButtonTypeIDEnum.GetEnd()) + { + self = (ButtonTypeID)ButtonTypeIDEnum.GetEnd(); + } + } + + // Token: 0x060042D1 RID: 17105 RVA: 0x00174086 File Offset: 0x00173286 + public static int GetEnd(this ButtonTypeID self) + { + return ButtonTypeIDEnum.GetEnd(); + } + + // Token: 0x060042D2 RID: 17106 RVA: 0x00174090 File Offset: 0x00173290 + public static ButtonTypeID FindID(string enumName) + { + for (ButtonTypeID buttonTypeID = ButtonTypeID.N_Plus; buttonTypeID < ButtonTypeID.End; buttonTypeID++) + { + if (buttonTypeID.GetEnumName() == enumName) + { + return buttonTypeID; + } + } + return ButtonTypeID.Invalid; + } + + // Token: 0x060042D3 RID: 17107 RVA: 0x001740BA File Offset: 0x001732BA + public static int GetEnd() + { + return ButtonTypeIDEnum.records.Length; + } + + // Token: 0x060042D4 RID: 17108 RVA: 0x001740C3 File Offset: 0x001732C3 + public static int GetEnumValue(this ButtonTypeID self) + { + if (self.IsValid()) + { + return ButtonTypeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060042D5 RID: 17109 RVA: 0x001740DB File Offset: 0x001732DB + public static string GetEnumName(this ButtonTypeID self) + { + if (self.IsValid()) + { + return ButtonTypeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060042D6 RID: 17110 RVA: 0x001740F7 File Offset: 0x001732F7 + public static string GetName(this ButtonTypeID self) + { + if (self.IsValid()) + { + return ButtonTypeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04004DA9 RID: 19881 + private static readonly ButtonTypeTableRecord[] records = new ButtonTypeTableRecord[] + { + new ButtonTypeTableRecord(0, "N_Plus", "通常+") + }; + } +} diff --git a/Assembly-CSharp/DB/ButtonTypeTableRecord.cs b/Assembly-CSharp/DB/ButtonTypeTableRecord.cs new file mode 100644 index 0000000..0aa83c5 --- /dev/null +++ b/Assembly-CSharp/DB/ButtonTypeTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000733 RID: 1843 + public class ButtonTypeTableRecord + { + // Token: 0x060042CC RID: 17100 RVA: 0x00003560 File Offset: 0x00002760 + public ButtonTypeTableRecord() + { + } + + // Token: 0x060042CD RID: 17101 RVA: 0x00174050 File Offset: 0x00173250 + public ButtonTypeTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04004DA6 RID: 19878 + public int EnumValue; + + // Token: 0x04004DA7 RID: 19879 + public string EnumName; + + // Token: 0x04004DA8 RID: 19880 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/CharlistAbcLargeID.cs b/Assembly-CSharp/DB/CharlistAbcLargeID.cs new file mode 100644 index 0000000..253fbc4 --- /dev/null +++ b/Assembly-CSharp/DB/CharlistAbcLargeID.cs @@ -0,0 +1,71 @@ +using System; + +namespace DB +{ + // Token: 0x02000735 RID: 1845 + public enum CharlistAbcLargeID + { + // Token: 0x04004DAB RID: 19883 + LargeChar_A, + // Token: 0x04004DAC RID: 19884 + LargeChar_B, + // Token: 0x04004DAD RID: 19885 + LargeChar_C, + // Token: 0x04004DAE RID: 19886 + LargeChar_D, + // Token: 0x04004DAF RID: 19887 + LargeChar_E, + // Token: 0x04004DB0 RID: 19888 + LargeChar_F, + // Token: 0x04004DB1 RID: 19889 + LargeChar_G, + // Token: 0x04004DB2 RID: 19890 + LargeChar_H, + // Token: 0x04004DB3 RID: 19891 + LargeChar_I, + // Token: 0x04004DB4 RID: 19892 + LargeChar_J, + // Token: 0x04004DB5 RID: 19893 + LargeChar_K, + // Token: 0x04004DB6 RID: 19894 + LargeChar_L, + // Token: 0x04004DB7 RID: 19895 + LargeChar_M, + // Token: 0x04004DB8 RID: 19896 + LargeChar_N, + // Token: 0x04004DB9 RID: 19897 + LargeChar_O, + // Token: 0x04004DBA RID: 19898 + LargeChar_P, + // Token: 0x04004DBB RID: 19899 + LargeChar_Q, + // Token: 0x04004DBC RID: 19900 + LargeChar_R, + // Token: 0x04004DBD RID: 19901 + LargeChar_S, + // Token: 0x04004DBE RID: 19902 + LargeChar_T, + // Token: 0x04004DBF RID: 19903 + LargeChar_U, + // Token: 0x04004DC0 RID: 19904 + LargeChar_V, + // Token: 0x04004DC1 RID: 19905 + LargeChar_W, + // Token: 0x04004DC2 RID: 19906 + LargeChar_X, + // Token: 0x04004DC3 RID: 19907 + LargeChar_Y, + // Token: 0x04004DC4 RID: 19908 + LargeChar_Z, + // Token: 0x04004DC5 RID: 19909 + LargeChar_Space, + // Token: 0x04004DC6 RID: 19910 + LargeChar_End, + // Token: 0x04004DC7 RID: 19911 + Begin = 0, + // Token: 0x04004DC8 RID: 19912 + End = 28, + // Token: 0x04004DC9 RID: 19913 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/CharlistAbcLargeIDEnum.cs b/Assembly-CSharp/DB/CharlistAbcLargeIDEnum.cs new file mode 100644 index 0000000..fff640a --- /dev/null +++ b/Assembly-CSharp/DB/CharlistAbcLargeIDEnum.cs @@ -0,0 +1,122 @@ +using System; + +namespace DB +{ + // Token: 0x02000737 RID: 1847 + public static class CharlistAbcLargeIDEnum + { + // Token: 0x060042DA RID: 17114 RVA: 0x00174150 File Offset: 0x00173350 + public static bool IsActive(this CharlistAbcLargeID self) + { + return self >= CharlistAbcLargeID.LargeChar_A && self < CharlistAbcLargeID.End && self > CharlistAbcLargeID.LargeChar_A; + } + + // Token: 0x060042DB RID: 17115 RVA: 0x00174161 File Offset: 0x00173361 + public static bool IsValid(this CharlistAbcLargeID self) + { + return self >= CharlistAbcLargeID.LargeChar_A && self < CharlistAbcLargeID.End; + } + + // Token: 0x060042DC RID: 17116 RVA: 0x0017416E File Offset: 0x0017336E + public static void Clamp(this CharlistAbcLargeID self) + { + if (self < CharlistAbcLargeID.LargeChar_A) + { + self = CharlistAbcLargeID.LargeChar_A; + return; + } + if (self >= (CharlistAbcLargeID)CharlistAbcLargeIDEnum.GetEnd()) + { + self = (CharlistAbcLargeID)CharlistAbcLargeIDEnum.GetEnd(); + } + } + + // Token: 0x060042DD RID: 17117 RVA: 0x00174187 File Offset: 0x00173387 + public static int GetEnd(this CharlistAbcLargeID self) + { + return CharlistAbcLargeIDEnum.GetEnd(); + } + + // Token: 0x060042DE RID: 17118 RVA: 0x00174190 File Offset: 0x00173390 + public static CharlistAbcLargeID FindID(string enumName) + { + for (CharlistAbcLargeID charlistAbcLargeID = CharlistAbcLargeID.LargeChar_A; charlistAbcLargeID < CharlistAbcLargeID.End; charlistAbcLargeID++) + { + if (charlistAbcLargeID.GetEnumName() == enumName) + { + return charlistAbcLargeID; + } + } + return CharlistAbcLargeID.Invalid; + } + + // Token: 0x060042DF RID: 17119 RVA: 0x001741BB File Offset: 0x001733BB + public static int GetEnd() + { + return CharlistAbcLargeIDEnum.records.Length; + } + + // Token: 0x060042E0 RID: 17120 RVA: 0x001741C4 File Offset: 0x001733C4 + public static int GetEnumValue(this CharlistAbcLargeID self) + { + if (self.IsValid()) + { + return CharlistAbcLargeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060042E1 RID: 17121 RVA: 0x001741DC File Offset: 0x001733DC + public static string GetEnumName(this CharlistAbcLargeID self) + { + if (self.IsValid()) + { + return CharlistAbcLargeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060042E2 RID: 17122 RVA: 0x001741F8 File Offset: 0x001733F8 + public static string GetName(this CharlistAbcLargeID self) + { + if (self.IsValid()) + { + return CharlistAbcLargeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04004DCD RID: 19917 + private static readonly CharlistAbcLargeTableRecord[] records = new CharlistAbcLargeTableRecord[] + { + new CharlistAbcLargeTableRecord(0, "LargeChar_A", "A"), + new CharlistAbcLargeTableRecord(1, "LargeChar_B", "B"), + new CharlistAbcLargeTableRecord(2, "LargeChar_C", "C"), + new CharlistAbcLargeTableRecord(3, "LargeChar_D", "D"), + new CharlistAbcLargeTableRecord(4, "LargeChar_E", "E"), + new CharlistAbcLargeTableRecord(5, "LargeChar_F", "F"), + new CharlistAbcLargeTableRecord(6, "LargeChar_G", "G"), + new CharlistAbcLargeTableRecord(7, "LargeChar_H", "H"), + new CharlistAbcLargeTableRecord(8, "LargeChar_I", "I"), + new CharlistAbcLargeTableRecord(9, "LargeChar_J", "J"), + new CharlistAbcLargeTableRecord(10, "LargeChar_K", "K"), + new CharlistAbcLargeTableRecord(11, "LargeChar_L", "L"), + new CharlistAbcLargeTableRecord(12, "LargeChar_M", "M"), + new CharlistAbcLargeTableRecord(13, "LargeChar_N", "N"), + new CharlistAbcLargeTableRecord(14, "LargeChar_O", "O"), + new CharlistAbcLargeTableRecord(15, "LargeChar_P", "P"), + new CharlistAbcLargeTableRecord(16, "LargeChar_Q", "Q"), + new CharlistAbcLargeTableRecord(17, "LargeChar_R", "R"), + new CharlistAbcLargeTableRecord(18, "LargeChar_S", "S"), + new CharlistAbcLargeTableRecord(19, "LargeChar_T", "T"), + new CharlistAbcLargeTableRecord(20, "LargeChar_U", "U"), + new CharlistAbcLargeTableRecord(21, "LargeChar_V", "V"), + new CharlistAbcLargeTableRecord(22, "LargeChar_W", "W"), + new CharlistAbcLargeTableRecord(23, "LargeChar_X", "X"), + new CharlistAbcLargeTableRecord(24, "LargeChar_Y", "Y"), + new CharlistAbcLargeTableRecord(25, "LargeChar_Z", "Z"), + new CharlistAbcLargeTableRecord(26, "LargeChar_Space", "␣"), + new CharlistAbcLargeTableRecord(27, "LargeChar_End", "NJ") + }; + } +} diff --git a/Assembly-CSharp/DB/CharlistAbcLargeTableRecord.cs b/Assembly-CSharp/DB/CharlistAbcLargeTableRecord.cs new file mode 100644 index 0000000..7b6396e --- /dev/null +++ b/Assembly-CSharp/DB/CharlistAbcLargeTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000736 RID: 1846 + public class CharlistAbcLargeTableRecord + { + // Token: 0x060042D8 RID: 17112 RVA: 0x00003560 File Offset: 0x00002760 + public CharlistAbcLargeTableRecord() + { + } + + // Token: 0x060042D9 RID: 17113 RVA: 0x00174133 File Offset: 0x00173333 + public CharlistAbcLargeTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04004DCA RID: 19914 + public int EnumValue; + + // Token: 0x04004DCB RID: 19915 + public string EnumName; + + // Token: 0x04004DCC RID: 19916 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/CharlistAbcSmallID.cs b/Assembly-CSharp/DB/CharlistAbcSmallID.cs new file mode 100644 index 0000000..7af2ef7 --- /dev/null +++ b/Assembly-CSharp/DB/CharlistAbcSmallID.cs @@ -0,0 +1,71 @@ +using System; + +namespace DB +{ + // Token: 0x02000738 RID: 1848 + public enum CharlistAbcSmallID + { + // Token: 0x04004DCF RID: 19919 + SmallChar_a, + // Token: 0x04004DD0 RID: 19920 + SmallChar_b, + // Token: 0x04004DD1 RID: 19921 + SmallChar_c, + // Token: 0x04004DD2 RID: 19922 + SmallChar_d, + // Token: 0x04004DD3 RID: 19923 + SmallChar_e, + // Token: 0x04004DD4 RID: 19924 + SmallChar_f, + // Token: 0x04004DD5 RID: 19925 + SmallChar_g, + // Token: 0x04004DD6 RID: 19926 + SmallChar_h, + // Token: 0x04004DD7 RID: 19927 + SmallChar_i, + // Token: 0x04004DD8 RID: 19928 + SmallChar_j, + // Token: 0x04004DD9 RID: 19929 + SmallChar_k, + // Token: 0x04004DDA RID: 19930 + SmallChar_l, + // Token: 0x04004DDB RID: 19931 + SmallChar_n, + // Token: 0x04004DDC RID: 19932 + SmallChar_m, + // Token: 0x04004DDD RID: 19933 + SmallChar_o, + // Token: 0x04004DDE RID: 19934 + SmallChar_p, + // Token: 0x04004DDF RID: 19935 + SmallChar_q, + // Token: 0x04004DE0 RID: 19936 + SmallChar_r, + // Token: 0x04004DE1 RID: 19937 + SmallChar_s, + // Token: 0x04004DE2 RID: 19938 + SmallChar_t, + // Token: 0x04004DE3 RID: 19939 + SmallChar_u, + // Token: 0x04004DE4 RID: 19940 + SmallChar_v, + // Token: 0x04004DE5 RID: 19941 + SmallChar_w, + // Token: 0x04004DE6 RID: 19942 + SmallChar_x, + // Token: 0x04004DE7 RID: 19943 + SmallChar_y, + // Token: 0x04004DE8 RID: 19944 + SmallChar_z, + // Token: 0x04004DE9 RID: 19945 + SmallChar_Space, + // Token: 0x04004DEA RID: 19946 + SmallChar_End, + // Token: 0x04004DEB RID: 19947 + Begin = 0, + // Token: 0x04004DEC RID: 19948 + End = 28, + // Token: 0x04004DED RID: 19949 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/CharlistAbcSmallIDEnum.cs b/Assembly-CSharp/DB/CharlistAbcSmallIDEnum.cs new file mode 100644 index 0000000..ac3219e --- /dev/null +++ b/Assembly-CSharp/DB/CharlistAbcSmallIDEnum.cs @@ -0,0 +1,122 @@ +using System; + +namespace DB +{ + // Token: 0x0200073A RID: 1850 + public static class CharlistAbcSmallIDEnum + { + // Token: 0x060042E6 RID: 17126 RVA: 0x00174150 File Offset: 0x00173350 + public static bool IsActive(this CharlistAbcSmallID self) + { + return self >= CharlistAbcSmallID.SmallChar_a && self < CharlistAbcSmallID.End && self > CharlistAbcSmallID.SmallChar_a; + } + + // Token: 0x060042E7 RID: 17127 RVA: 0x00174161 File Offset: 0x00173361 + public static bool IsValid(this CharlistAbcSmallID self) + { + return self >= CharlistAbcSmallID.SmallChar_a && self < CharlistAbcSmallID.End; + } + + // Token: 0x060042E8 RID: 17128 RVA: 0x00174484 File Offset: 0x00173684 + public static void Clamp(this CharlistAbcSmallID self) + { + if (self < CharlistAbcSmallID.SmallChar_a) + { + self = CharlistAbcSmallID.SmallChar_a; + return; + } + if (self >= (CharlistAbcSmallID)CharlistAbcSmallIDEnum.GetEnd()) + { + self = (CharlistAbcSmallID)CharlistAbcSmallIDEnum.GetEnd(); + } + } + + // Token: 0x060042E9 RID: 17129 RVA: 0x0017449D File Offset: 0x0017369D + public static int GetEnd(this CharlistAbcSmallID self) + { + return CharlistAbcSmallIDEnum.GetEnd(); + } + + // Token: 0x060042EA RID: 17130 RVA: 0x001744A4 File Offset: 0x001736A4 + public static CharlistAbcSmallID FindID(string enumName) + { + for (CharlistAbcSmallID charlistAbcSmallID = CharlistAbcSmallID.SmallChar_a; charlistAbcSmallID < CharlistAbcSmallID.End; charlistAbcSmallID++) + { + if (charlistAbcSmallID.GetEnumName() == enumName) + { + return charlistAbcSmallID; + } + } + return CharlistAbcSmallID.Invalid; + } + + // Token: 0x060042EB RID: 17131 RVA: 0x001744CF File Offset: 0x001736CF + public static int GetEnd() + { + return CharlistAbcSmallIDEnum.records.Length; + } + + // Token: 0x060042EC RID: 17132 RVA: 0x001744D8 File Offset: 0x001736D8 + public static int GetEnumValue(this CharlistAbcSmallID self) + { + if (self.IsValid()) + { + return CharlistAbcSmallIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060042ED RID: 17133 RVA: 0x001744F0 File Offset: 0x001736F0 + public static string GetEnumName(this CharlistAbcSmallID self) + { + if (self.IsValid()) + { + return CharlistAbcSmallIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060042EE RID: 17134 RVA: 0x0017450C File Offset: 0x0017370C + public static string GetName(this CharlistAbcSmallID self) + { + if (self.IsValid()) + { + return CharlistAbcSmallIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04004DF1 RID: 19953 + private static readonly CharlistAbcSmallTableRecord[] records = new CharlistAbcSmallTableRecord[] + { + new CharlistAbcSmallTableRecord(0, "SmallChar_a", "a"), + new CharlistAbcSmallTableRecord(1, "SmallChar_b", "b"), + new CharlistAbcSmallTableRecord(2, "SmallChar_c", "c"), + new CharlistAbcSmallTableRecord(3, "SmallChar_d", "d"), + new CharlistAbcSmallTableRecord(4, "SmallChar_e", "e"), + new CharlistAbcSmallTableRecord(5, "SmallChar_f", "f"), + new CharlistAbcSmallTableRecord(6, "SmallChar_g", "g"), + new CharlistAbcSmallTableRecord(7, "SmallChar_h", "h"), + new CharlistAbcSmallTableRecord(8, "SmallChar_i", "i"), + new CharlistAbcSmallTableRecord(9, "SmallChar_j", "j"), + new CharlistAbcSmallTableRecord(10, "SmallChar_k", "k"), + new CharlistAbcSmallTableRecord(11, "SmallChar_l", "l"), + new CharlistAbcSmallTableRecord(12, "SmallChar_n", "m"), + new CharlistAbcSmallTableRecord(13, "SmallChar_m", "n"), + new CharlistAbcSmallTableRecord(14, "SmallChar_o", "o"), + new CharlistAbcSmallTableRecord(15, "SmallChar_p", "p"), + new CharlistAbcSmallTableRecord(16, "SmallChar_q", "q"), + new CharlistAbcSmallTableRecord(17, "SmallChar_r", "r"), + new CharlistAbcSmallTableRecord(18, "SmallChar_s", "s"), + new CharlistAbcSmallTableRecord(19, "SmallChar_t", "t"), + new CharlistAbcSmallTableRecord(20, "SmallChar_u", "u"), + new CharlistAbcSmallTableRecord(21, "SmallChar_v", "v"), + new CharlistAbcSmallTableRecord(22, "SmallChar_w", "w"), + new CharlistAbcSmallTableRecord(23, "SmallChar_x", "x"), + new CharlistAbcSmallTableRecord(24, "SmallChar_y", "y"), + new CharlistAbcSmallTableRecord(25, "SmallChar_z", "z"), + new CharlistAbcSmallTableRecord(26, "SmallChar_Space", "␣"), + new CharlistAbcSmallTableRecord(27, "SmallChar_End", "NJ") + }; + } +} diff --git a/Assembly-CSharp/DB/CharlistAbcSmallTableRecord.cs b/Assembly-CSharp/DB/CharlistAbcSmallTableRecord.cs new file mode 100644 index 0000000..66a3b79 --- /dev/null +++ b/Assembly-CSharp/DB/CharlistAbcSmallTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000739 RID: 1849 + public class CharlistAbcSmallTableRecord + { + // Token: 0x060042E4 RID: 17124 RVA: 0x00003560 File Offset: 0x00002760 + public CharlistAbcSmallTableRecord() + { + } + + // Token: 0x060042E5 RID: 17125 RVA: 0x00174467 File Offset: 0x00173667 + public CharlistAbcSmallTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04004DEE RID: 19950 + public int EnumValue; + + // Token: 0x04004DEF RID: 19951 + public string EnumName; + + // Token: 0x04004DF0 RID: 19952 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/CharlistID.cs b/Assembly-CSharp/DB/CharlistID.cs new file mode 100644 index 0000000..730c691 --- /dev/null +++ b/Assembly-CSharp/DB/CharlistID.cs @@ -0,0 +1,23 @@ +using System; + +namespace DB +{ + // Token: 0x0200073B RID: 1851 + public enum CharlistID + { + // Token: 0x04004DF3 RID: 19955 + chara_large, + // Token: 0x04004DF4 RID: 19956 + chara_small, + // Token: 0x04004DF5 RID: 19957 + chara_num, + // Token: 0x04004DF6 RID: 19958 + chara_symbole, + // Token: 0x04004DF7 RID: 19959 + Begin = 0, + // Token: 0x04004DF8 RID: 19960 + End = 4, + // Token: 0x04004DF9 RID: 19961 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/CharlistIDEnum.cs b/Assembly-CSharp/DB/CharlistIDEnum.cs new file mode 100644 index 0000000..3ef5db1 --- /dev/null +++ b/Assembly-CSharp/DB/CharlistIDEnum.cs @@ -0,0 +1,98 @@ +using System; + +namespace DB +{ + // Token: 0x0200073D RID: 1853 + public static class CharlistIDEnum + { + // Token: 0x060042F2 RID: 17138 RVA: 0x00173DA6 File Offset: 0x00172FA6 + public static bool IsActive(this CharlistID self) + { + return self >= CharlistID.chara_large && self < CharlistID.End && self > CharlistID.chara_large; + } + + // Token: 0x060042F3 RID: 17139 RVA: 0x00173DB6 File Offset: 0x00172FB6 + public static bool IsValid(this CharlistID self) + { + return self >= CharlistID.chara_large && self < CharlistID.End; + } + + // Token: 0x060042F4 RID: 17140 RVA: 0x00174798 File Offset: 0x00173998 + public static void Clamp(this CharlistID self) + { + if (self < CharlistID.chara_large) + { + self = CharlistID.chara_large; + return; + } + if (self >= (CharlistID)CharlistIDEnum.GetEnd()) + { + self = (CharlistID)CharlistIDEnum.GetEnd(); + } + } + + // Token: 0x060042F5 RID: 17141 RVA: 0x001747B1 File Offset: 0x001739B1 + public static int GetEnd(this CharlistID self) + { + return CharlistIDEnum.GetEnd(); + } + + // Token: 0x060042F6 RID: 17142 RVA: 0x001747B8 File Offset: 0x001739B8 + public static CharlistID FindID(string enumName) + { + for (CharlistID charlistID = CharlistID.chara_large; charlistID < CharlistID.End; charlistID++) + { + if (charlistID.GetEnumName() == enumName) + { + return charlistID; + } + } + return CharlistID.Invalid; + } + + // Token: 0x060042F7 RID: 17143 RVA: 0x001747E2 File Offset: 0x001739E2 + public static int GetEnd() + { + return CharlistIDEnum.records.Length; + } + + // Token: 0x060042F8 RID: 17144 RVA: 0x001747EB File Offset: 0x001739EB + public static int GetEnumValue(this CharlistID self) + { + if (self.IsValid()) + { + return CharlistIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060042F9 RID: 17145 RVA: 0x00174803 File Offset: 0x00173A03 + public static string GetEnumName(this CharlistID self) + { + if (self.IsValid()) + { + return CharlistIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060042FA RID: 17146 RVA: 0x0017481F File Offset: 0x00173A1F + public static string GetName(this CharlistID self) + { + if (self.IsValid()) + { + return CharlistIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04004DFD RID: 19965 + private static readonly CharlistTableRecord[] records = new CharlistTableRecord[] + { + new CharlistTableRecord(0, "chara_large", "A~Z"), + new CharlistTableRecord(1, "chara_small", "a~z"), + new CharlistTableRecord(2, "chara_num", "0~9"), + new CharlistTableRecord(3, "chara_symbole", "記号") + }; + } +} diff --git a/Assembly-CSharp/DB/CharlistNumID.cs b/Assembly-CSharp/DB/CharlistNumID.cs new file mode 100644 index 0000000..7c035c4 --- /dev/null +++ b/Assembly-CSharp/DB/CharlistNumID.cs @@ -0,0 +1,39 @@ +using System; + +namespace DB +{ + // Token: 0x0200073E RID: 1854 + public enum CharlistNumID + { + // Token: 0x04004DFF RID: 19967 + NumChar_0, + // Token: 0x04004E00 RID: 19968 + NumChar_1, + // Token: 0x04004E01 RID: 19969 + NumChar_2, + // Token: 0x04004E02 RID: 19970 + NumChar_3, + // Token: 0x04004E03 RID: 19971 + NumChar_4, + // Token: 0x04004E04 RID: 19972 + NumChar_5, + // Token: 0x04004E05 RID: 19973 + NumChar_6, + // Token: 0x04004E06 RID: 19974 + NumChar_7, + // Token: 0x04004E07 RID: 19975 + NumChar_8, + // Token: 0x04004E08 RID: 19976 + NumChar_9, + // Token: 0x04004E09 RID: 19977 + NumChar_Space, + // Token: 0x04004E0A RID: 19978 + NumChar_End, + // Token: 0x04004E0B RID: 19979 + Begin = 0, + // Token: 0x04004E0C RID: 19980 + End = 12, + // Token: 0x04004E0D RID: 19981 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/CharlistNumIDEnum.cs b/Assembly-CSharp/DB/CharlistNumIDEnum.cs new file mode 100644 index 0000000..0038332 --- /dev/null +++ b/Assembly-CSharp/DB/CharlistNumIDEnum.cs @@ -0,0 +1,106 @@ +using System; + +namespace DB +{ + // Token: 0x02000740 RID: 1856 + public static class CharlistNumIDEnum + { + // Token: 0x060042FE RID: 17150 RVA: 0x001748BD File Offset: 0x00173ABD + public static bool IsActive(this CharlistNumID self) + { + return self >= CharlistNumID.NumChar_0 && self < CharlistNumID.End && self > CharlistNumID.NumChar_0; + } + + // Token: 0x060042FF RID: 17151 RVA: 0x001748CE File Offset: 0x00173ACE + public static bool IsValid(this CharlistNumID self) + { + return self >= CharlistNumID.NumChar_0 && self < CharlistNumID.End; + } + + // Token: 0x06004300 RID: 17152 RVA: 0x001748DB File Offset: 0x00173ADB + public static void Clamp(this CharlistNumID self) + { + if (self < CharlistNumID.NumChar_0) + { + self = CharlistNumID.NumChar_0; + return; + } + if (self >= (CharlistNumID)CharlistNumIDEnum.GetEnd()) + { + self = (CharlistNumID)CharlistNumIDEnum.GetEnd(); + } + } + + // Token: 0x06004301 RID: 17153 RVA: 0x001748F4 File Offset: 0x00173AF4 + public static int GetEnd(this CharlistNumID self) + { + return CharlistNumIDEnum.GetEnd(); + } + + // Token: 0x06004302 RID: 17154 RVA: 0x001748FC File Offset: 0x00173AFC + public static CharlistNumID FindID(string enumName) + { + for (CharlistNumID charlistNumID = CharlistNumID.NumChar_0; charlistNumID < CharlistNumID.End; charlistNumID++) + { + if (charlistNumID.GetEnumName() == enumName) + { + return charlistNumID; + } + } + return CharlistNumID.Invalid; + } + + // Token: 0x06004303 RID: 17155 RVA: 0x00174927 File Offset: 0x00173B27 + public static int GetEnd() + { + return CharlistNumIDEnum.records.Length; + } + + // Token: 0x06004304 RID: 17156 RVA: 0x00174930 File Offset: 0x00173B30 + public static int GetEnumValue(this CharlistNumID self) + { + if (self.IsValid()) + { + return CharlistNumIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004305 RID: 17157 RVA: 0x00174948 File Offset: 0x00173B48 + public static string GetEnumName(this CharlistNumID self) + { + if (self.IsValid()) + { + return CharlistNumIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004306 RID: 17158 RVA: 0x00174964 File Offset: 0x00173B64 + public static string GetName(this CharlistNumID self) + { + if (self.IsValid()) + { + return CharlistNumIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04004E11 RID: 19985 + private static readonly CharlistNumTableRecord[] records = new CharlistNumTableRecord[] + { + new CharlistNumTableRecord(0, "NumChar_0", "0"), + new CharlistNumTableRecord(1, "NumChar_1", "1"), + new CharlistNumTableRecord(2, "NumChar_2", "2"), + new CharlistNumTableRecord(3, "NumChar_3", "3"), + new CharlistNumTableRecord(4, "NumChar_4", "4"), + new CharlistNumTableRecord(5, "NumChar_5", "5"), + new CharlistNumTableRecord(6, "NumChar_6", "6"), + new CharlistNumTableRecord(7, "NumChar_7", "7"), + new CharlistNumTableRecord(8, "NumChar_8", "8"), + new CharlistNumTableRecord(9, "NumChar_9", "9"), + new CharlistNumTableRecord(10, "NumChar_Space", "␣"), + new CharlistNumTableRecord(11, "NumChar_End", "NJ") + }; + } +} diff --git a/Assembly-CSharp/DB/CharlistNumTableRecord.cs b/Assembly-CSharp/DB/CharlistNumTableRecord.cs new file mode 100644 index 0000000..26e979e --- /dev/null +++ b/Assembly-CSharp/DB/CharlistNumTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x0200073F RID: 1855 + public class CharlistNumTableRecord + { + // Token: 0x060042FC RID: 17148 RVA: 0x00003560 File Offset: 0x00002760 + public CharlistNumTableRecord() + { + } + + // Token: 0x060042FD RID: 17149 RVA: 0x001748A0 File Offset: 0x00173AA0 + public CharlistNumTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04004E0E RID: 19982 + public int EnumValue; + + // Token: 0x04004E0F RID: 19983 + public string EnumName; + + // Token: 0x04004E10 RID: 19984 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/CharlistSymboleID.cs b/Assembly-CSharp/DB/CharlistSymboleID.cs new file mode 100644 index 0000000..12b87c8 --- /dev/null +++ b/Assembly-CSharp/DB/CharlistSymboleID.cs @@ -0,0 +1,107 @@ +using System; + +namespace DB +{ + // Token: 0x02000741 RID: 1857 + public enum CharlistSymboleID + { + // Token: 0x04004E13 RID: 19987 + SymboleChar_TYUUTEN, + // Token: 0x04004E14 RID: 19988 + SymboleChar_COLON, + // Token: 0x04004E15 RID: 19989 + SymboleChar_SEMICOLON, + // Token: 0x04004E16 RID: 19990 + SymboleChar_QUESTION, + // Token: 0x04004E17 RID: 19991 + SymboleChar_EXCLAMATION, + // Token: 0x04004E18 RID: 19992 + SymboleChar_TILDE, + // Token: 0x04004E19 RID: 19993 + SymboleChar_SLASH, + // Token: 0x04004E1A RID: 19994 + SymboleChar_PLUS, + // Token: 0x04004E1B RID: 19995 + SymboleChar_MINUS, + // Token: 0x04004E1C RID: 19996 + SymboleChar_KAKERU, + // Token: 0x04004E1D RID: 19997 + SymboleChar_WARU, + // Token: 0x04004E1E RID: 19998 + SymboleChar_EQUAL, + // Token: 0x04004E1F RID: 19999 + SymboleChar_OSU, + // Token: 0x04004E20 RID: 20000 + SymboleChar_MESU, + // Token: 0x04004E21 RID: 20001 + SymboleChar_SUBETE, + // Token: 0x04004E22 RID: 20002 + SymboleChar_SHARP, + // Token: 0x04004E23 RID: 20003 + SymboleChar_AMPERSAND, + // Token: 0x04004E24 RID: 20004 + SymboleChar_ASTERISK, + // Token: 0x04004E25 RID: 20005 + SymboleChar_AT, + // Token: 0x04004E26 RID: 20006 + SymboleChar_STAR, + // Token: 0x04004E27 RID: 20007 + SymboleChar_MARU, + // Token: 0x04004E28 RID: 20008 + SymboleChar_2MARU, + // Token: 0x04004E29 RID: 20009 + SymboleChar_KUKEI, + // Token: 0x04004E2A RID: 20010 + SymboleChar_SQUARE, + // Token: 0x04004E2B RID: 20011 + SymboleChar_TRIANGLE, + // Token: 0x04004E2C RID: 20012 + SymboleChar_TRIANGLE2, + // Token: 0x04004E2D RID: 20013 + SymboleChar_ONNPU, + // Token: 0x04004E2E RID: 20014 + SymboleChar_DAGGER, + // Token: 0x04004E2F RID: 20015 + SymboleChar_D_DAGGER, + // Token: 0x04004E30 RID: 20016 + SymboleChar_SIGMA, + // Token: 0x04004E31 RID: 20017 + SymboleChar_ALPHA, + // Token: 0x04004E32 RID: 20018 + SymboleChar_BETA, + // Token: 0x04004E33 RID: 20019 + SymboleChar_GAMMA, + // Token: 0x04004E34 RID: 20020 + SymboleChar_THETA, + // Token: 0x04004E35 RID: 20021 + SymboleChar_PHI, + // Token: 0x04004E36 RID: 20022 + SymboleChar_PSI, + // Token: 0x04004E37 RID: 20023 + SymboleChar_OMEGA, + // Token: 0x04004E38 RID: 20024 + SymboleChar_DE, + // Token: 0x04004E39 RID: 20025 + SymboleChar_YO, + // Token: 0x04004E3A RID: 20026 + SymboleChar_DOLLAR, + // Token: 0x04004E3B RID: 20027 + SymboleChar_LEFT_PARENTHESIS, + // Token: 0x04004E3C RID: 20028 + SymboleChar_RIGHT_PARENTHESIS, + // Token: 0x04004E3D RID: 20029 + SymboleChar_PERIOD, + // Token: 0x04004E3E RID: 20030 + SymboleChar_LOW_LINE, + // Token: 0x04004E3F RID: 20031 + SymboleChar_Space, + // Token: 0x04004E40 RID: 20032 + SymboleChar_End, + // Token: 0x04004E41 RID: 20033 + Begin = 0, + // Token: 0x04004E42 RID: 20034 + End = 46, + // Token: 0x04004E43 RID: 20035 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/CharlistSymboleIDEnum.cs b/Assembly-CSharp/DB/CharlistSymboleIDEnum.cs new file mode 100644 index 0000000..9244644 --- /dev/null +++ b/Assembly-CSharp/DB/CharlistSymboleIDEnum.cs @@ -0,0 +1,140 @@ +using System; + +namespace DB +{ + // Token: 0x02000743 RID: 1859 + public static class CharlistSymboleIDEnum + { + // Token: 0x0600430A RID: 17162 RVA: 0x00174AA0 File Offset: 0x00173CA0 + public static bool IsActive(this CharlistSymboleID self) + { + return self >= CharlistSymboleID.SymboleChar_TYUUTEN && self < CharlistSymboleID.End && self > CharlistSymboleID.SymboleChar_TYUUTEN; + } + + // Token: 0x0600430B RID: 17163 RVA: 0x00174AB1 File Offset: 0x00173CB1 + public static bool IsValid(this CharlistSymboleID self) + { + return self >= CharlistSymboleID.SymboleChar_TYUUTEN && self < CharlistSymboleID.End; + } + + // Token: 0x0600430C RID: 17164 RVA: 0x00174ABE File Offset: 0x00173CBE + public static void Clamp(this CharlistSymboleID self) + { + if (self < CharlistSymboleID.SymboleChar_TYUUTEN) + { + self = CharlistSymboleID.SymboleChar_TYUUTEN; + return; + } + if (self >= (CharlistSymboleID)CharlistSymboleIDEnum.GetEnd()) + { + self = (CharlistSymboleID)CharlistSymboleIDEnum.GetEnd(); + } + } + + // Token: 0x0600430D RID: 17165 RVA: 0x00174AD7 File Offset: 0x00173CD7 + public static int GetEnd(this CharlistSymboleID self) + { + return CharlistSymboleIDEnum.GetEnd(); + } + + // Token: 0x0600430E RID: 17166 RVA: 0x00174AE0 File Offset: 0x00173CE0 + public static CharlistSymboleID FindID(string enumName) + { + for (CharlistSymboleID charlistSymboleID = CharlistSymboleID.SymboleChar_TYUUTEN; charlistSymboleID < CharlistSymboleID.End; charlistSymboleID++) + { + if (charlistSymboleID.GetEnumName() == enumName) + { + return charlistSymboleID; + } + } + return CharlistSymboleID.Invalid; + } + + // Token: 0x0600430F RID: 17167 RVA: 0x00174B0B File Offset: 0x00173D0B + public static int GetEnd() + { + return CharlistSymboleIDEnum.records.Length; + } + + // Token: 0x06004310 RID: 17168 RVA: 0x00174B14 File Offset: 0x00173D14 + public static int GetEnumValue(this CharlistSymboleID self) + { + if (self.IsValid()) + { + return CharlistSymboleIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004311 RID: 17169 RVA: 0x00174B2C File Offset: 0x00173D2C + public static string GetEnumName(this CharlistSymboleID self) + { + if (self.IsValid()) + { + return CharlistSymboleIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004312 RID: 17170 RVA: 0x00174B48 File Offset: 0x00173D48 + public static string GetName(this CharlistSymboleID self) + { + if (self.IsValid()) + { + return CharlistSymboleIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04004E47 RID: 20039 + private static readonly CharlistSymboleTableRecord[] records = new CharlistSymboleTableRecord[] + { + new CharlistSymboleTableRecord(0, "SymboleChar_TYUUTEN", "・"), + new CharlistSymboleTableRecord(1, "SymboleChar_COLON", ":"), + new CharlistSymboleTableRecord(2, "SymboleChar_SEMICOLON", ";"), + new CharlistSymboleTableRecord(3, "SymboleChar_QUESTION", "?"), + new CharlistSymboleTableRecord(4, "SymboleChar_EXCLAMATION", "!"), + new CharlistSymboleTableRecord(5, "SymboleChar_TILDE", "~"), + new CharlistSymboleTableRecord(6, "SymboleChar_SLASH", "/"), + new CharlistSymboleTableRecord(7, "SymboleChar_PLUS", "+"), + new CharlistSymboleTableRecord(8, "SymboleChar_MINUS", "-"), + new CharlistSymboleTableRecord(9, "SymboleChar_KAKERU", "×"), + new CharlistSymboleTableRecord(10, "SymboleChar_WARU", "÷"), + new CharlistSymboleTableRecord(11, "SymboleChar_EQUAL", "="), + new CharlistSymboleTableRecord(12, "SymboleChar_OSU", "♂"), + new CharlistSymboleTableRecord(13, "SymboleChar_MESU", "♀"), + new CharlistSymboleTableRecord(14, "SymboleChar_SUBETE", "∀"), + new CharlistSymboleTableRecord(15, "SymboleChar_SHARP", "#"), + new CharlistSymboleTableRecord(16, "SymboleChar_AMPERSAND", "&"), + new CharlistSymboleTableRecord(17, "SymboleChar_ASTERISK", "*"), + new CharlistSymboleTableRecord(18, "SymboleChar_AT", "@"), + new CharlistSymboleTableRecord(19, "SymboleChar_STAR", "☆"), + new CharlistSymboleTableRecord(20, "SymboleChar_MARU", "○"), + new CharlistSymboleTableRecord(21, "SymboleChar_2MARU", "◎"), + new CharlistSymboleTableRecord(22, "SymboleChar_KUKEI", "◇"), + new CharlistSymboleTableRecord(23, "SymboleChar_SQUARE", "□"), + new CharlistSymboleTableRecord(24, "SymboleChar_TRIANGLE", "△"), + new CharlistSymboleTableRecord(25, "SymboleChar_TRIANGLE2", "▽"), + new CharlistSymboleTableRecord(26, "SymboleChar_ONNPU", "♪"), + new CharlistSymboleTableRecord(27, "SymboleChar_DAGGER", "†"), + new CharlistSymboleTableRecord(28, "SymboleChar_D_DAGGER", "‡"), + new CharlistSymboleTableRecord(29, "SymboleChar_SIGMA", "Σ"), + new CharlistSymboleTableRecord(30, "SymboleChar_ALPHA", "α"), + new CharlistSymboleTableRecord(31, "SymboleChar_BETA", "β"), + new CharlistSymboleTableRecord(32, "SymboleChar_GAMMA", "γ"), + new CharlistSymboleTableRecord(33, "SymboleChar_THETA", "θ"), + new CharlistSymboleTableRecord(34, "SymboleChar_PHI", "φ"), + new CharlistSymboleTableRecord(35, "SymboleChar_PSI", "ψ"), + new CharlistSymboleTableRecord(36, "SymboleChar_OMEGA", "ω"), + new CharlistSymboleTableRecord(37, "SymboleChar_DE", "Д"), + new CharlistSymboleTableRecord(38, "SymboleChar_YO", "ё"), + new CharlistSymboleTableRecord(39, "SymboleChar_DOLLAR", "$"), + new CharlistSymboleTableRecord(40, "SymboleChar_LEFT_PARENTHESIS", "("), + new CharlistSymboleTableRecord(41, "SymboleChar_RIGHT_PARENTHESIS", ")"), + new CharlistSymboleTableRecord(42, "SymboleChar_PERIOD", "."), + new CharlistSymboleTableRecord(43, "SymboleChar_LOW_LINE", "\uff3f"), + new CharlistSymboleTableRecord(44, "SymboleChar_Space", "␣"), + new CharlistSymboleTableRecord(45, "SymboleChar_End", "NJ") + }; + } +} diff --git a/Assembly-CSharp/DB/CharlistSymboleTableRecord.cs b/Assembly-CSharp/DB/CharlistSymboleTableRecord.cs new file mode 100644 index 0000000..7fe981b --- /dev/null +++ b/Assembly-CSharp/DB/CharlistSymboleTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000742 RID: 1858 + public class CharlistSymboleTableRecord + { + // Token: 0x06004308 RID: 17160 RVA: 0x00003560 File Offset: 0x00002760 + public CharlistSymboleTableRecord() + { + } + + // Token: 0x06004309 RID: 17161 RVA: 0x00174A83 File Offset: 0x00173C83 + public CharlistSymboleTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04004E44 RID: 20036 + public int EnumValue; + + // Token: 0x04004E45 RID: 20037 + public string EnumName; + + // Token: 0x04004E46 RID: 20038 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/CharlistTableRecord.cs b/Assembly-CSharp/DB/CharlistTableRecord.cs new file mode 100644 index 0000000..d06b70b --- /dev/null +++ b/Assembly-CSharp/DB/CharlistTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x0200073C RID: 1852 + public class CharlistTableRecord + { + // Token: 0x060042F0 RID: 17136 RVA: 0x00003560 File Offset: 0x00002760 + public CharlistTableRecord() + { + } + + // Token: 0x060042F1 RID: 17137 RVA: 0x0017477B File Offset: 0x0017397B + public CharlistTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04004DFA RID: 19962 + public int EnumValue; + + // Token: 0x04004DFB RID: 19963 + public string EnumName; + + // Token: 0x04004DFC RID: 19964 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/CollectionRandomDetailID.cs b/Assembly-CSharp/DB/CollectionRandomDetailID.cs new file mode 100644 index 0000000..0d84f79 --- /dev/null +++ b/Assembly-CSharp/DB/CollectionRandomDetailID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x02000744 RID: 1860 + public enum CollectionRandomDetailID + { + // Token: 0x04004E49 RID: 20041 + ALL, + // Token: 0x04004E4A RID: 20042 + Favorite, + // Token: 0x04004E4B RID: 20043 + Begin = 0, + // Token: 0x04004E4C RID: 20044 + End = 2, + // Token: 0x04004E4D RID: 20045 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/CollectionRandomDetailIDEnum.cs b/Assembly-CSharp/DB/CollectionRandomDetailIDEnum.cs new file mode 100644 index 0000000..6af8faf --- /dev/null +++ b/Assembly-CSharp/DB/CollectionRandomDetailIDEnum.cs @@ -0,0 +1,96 @@ +using System; + +namespace DB +{ + // Token: 0x02000746 RID: 1862 + public static class CollectionRandomDetailIDEnum + { + // Token: 0x06004316 RID: 17174 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this CollectionRandomDetailID self) + { + return self >= CollectionRandomDetailID.ALL && self < CollectionRandomDetailID.End && self > CollectionRandomDetailID.ALL; + } + + // Token: 0x06004317 RID: 17175 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this CollectionRandomDetailID self) + { + return self >= CollectionRandomDetailID.ALL && self < CollectionRandomDetailID.End; + } + + // Token: 0x06004318 RID: 17176 RVA: 0x00174F6A File Offset: 0x0017416A + public static void Clamp(this CollectionRandomDetailID self) + { + if (self < CollectionRandomDetailID.ALL) + { + self = CollectionRandomDetailID.ALL; + return; + } + if (self >= (CollectionRandomDetailID)CollectionRandomDetailIDEnum.GetEnd()) + { + self = (CollectionRandomDetailID)CollectionRandomDetailIDEnum.GetEnd(); + } + } + + // Token: 0x06004319 RID: 17177 RVA: 0x00174F83 File Offset: 0x00174183 + public static int GetEnd(this CollectionRandomDetailID self) + { + return CollectionRandomDetailIDEnum.GetEnd(); + } + + // Token: 0x0600431A RID: 17178 RVA: 0x00174F8C File Offset: 0x0017418C + public static CollectionRandomDetailID FindID(string enumName) + { + for (CollectionRandomDetailID collectionRandomDetailID = CollectionRandomDetailID.ALL; collectionRandomDetailID < CollectionRandomDetailID.End; collectionRandomDetailID++) + { + if (collectionRandomDetailID.GetEnumName() == enumName) + { + return collectionRandomDetailID; + } + } + return CollectionRandomDetailID.Invalid; + } + + // Token: 0x0600431B RID: 17179 RVA: 0x00174FB6 File Offset: 0x001741B6 + public static int GetEnd() + { + return CollectionRandomDetailIDEnum.records.Length; + } + + // Token: 0x0600431C RID: 17180 RVA: 0x00174FBF File Offset: 0x001741BF + public static int GetEnumValue(this CollectionRandomDetailID self) + { + if (self.IsValid()) + { + return CollectionRandomDetailIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600431D RID: 17181 RVA: 0x00174FD7 File Offset: 0x001741D7 + public static string GetEnumName(this CollectionRandomDetailID self) + { + if (self.IsValid()) + { + return CollectionRandomDetailIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600431E RID: 17182 RVA: 0x00174FF3 File Offset: 0x001741F3 + public static string GetName(this CollectionRandomDetailID self) + { + if (self.IsValid()) + { + return CollectionRandomDetailIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04004E51 RID: 20049 + private static readonly CollectionRandomDetailTableRecord[] records = new CollectionRandomDetailTableRecord[] + { + new CollectionRandomDetailTableRecord(0, "ALL", "每次游戏将从\r\n所有收藏中随机设置!"), + new CollectionRandomDetailTableRecord(1, "Favorite", "每次游戏将从\r\n收藏夹中随机设置!") + }; + } +} diff --git a/Assembly-CSharp/DB/CollectionRandomDetailTableRecord.cs b/Assembly-CSharp/DB/CollectionRandomDetailTableRecord.cs new file mode 100644 index 0000000..edc8a46 --- /dev/null +++ b/Assembly-CSharp/DB/CollectionRandomDetailTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000745 RID: 1861 + public class CollectionRandomDetailTableRecord + { + // Token: 0x06004314 RID: 17172 RVA: 0x00003560 File Offset: 0x00002760 + public CollectionRandomDetailTableRecord() + { + } + + // Token: 0x06004315 RID: 17173 RVA: 0x00174F31 File Offset: 0x00174131 + public CollectionRandomDetailTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04004E4E RID: 20046 + public int EnumValue; + + // Token: 0x04004E4F RID: 20047 + public string EnumName; + + // Token: 0x04004E50 RID: 20048 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/CommonMessageID.cs b/Assembly-CSharp/DB/CommonMessageID.cs new file mode 100644 index 0000000..2c56fe2 --- /dev/null +++ b/Assembly-CSharp/DB/CommonMessageID.cs @@ -0,0 +1,639 @@ +using System; + +namespace DB +{ + // Token: 0x02000747 RID: 1863 + public enum CommonMessageID + { + // Token: 0x04004E53 RID: 20051 + Reset, + // Token: 0x04004E54 RID: 20052 + Music_SetActive, + // Token: 0x04004E55 RID: 20053 + Music_SetData, + // Token: 0x04004E56 RID: 20054 + Music_SetGameData, + // Token: 0x04004E57 RID: 20055 + User_SetActive, + // Token: 0x04004E58 RID: 20056 + User_SetData, + // Token: 0x04004E59 RID: 20057 + User_SetTeamData, + // Token: 0x04004E5A RID: 20058 + Chara_SetActive, + // Token: 0x04004E5B RID: 20059 + Chara_SetSlot, + // Token: 0x04004E5C RID: 20060 + Chara_SetTeamSlot, + // Token: 0x04004E5D RID: 20061 + Track_SetActive, + // Token: 0x04004E5E RID: 20062 + Track_SetTrackNum, + // Token: 0x04004E5F RID: 20063 + Classic_SET, + // Token: 0x04004E60 RID: 20064 + GameMode_Set, + // Token: 0x04004E61 RID: 20065 + CreditMain, + // Token: 0x04004E62 RID: 20066 + CreditSub, + // Token: 0x04004E63 RID: 20067 + ReplaceUserIcon, + // Token: 0x04004E64 RID: 20068 + Entry_InfoAime, + // Token: 0x04004E65 RID: 20069 + Entry_InfoCoin, + // Token: 0x04004E66 RID: 20070 + Entry_InfoButton, + // Token: 0x04004E67 RID: 20071 + Entry_InfoNotes, + // Token: 0x04004E68 RID: 20072 + Entry_InfoMoreCoin, + // Token: 0x04004E69 RID: 20073 + Entry_OnePlayer, + // Token: 0x04004E6A RID: 20074 + Entry_TwoPlayer, + // Token: 0x04004E6B RID: 20075 + Entry_Freedom, + // Token: 0x04004E6C RID: 20076 + Entry_TimeSkip, + // Token: 0x04004E6D RID: 20077 + Tutorial_Long_Intro_01, + // Token: 0x04004E6E RID: 20078 + Turotial_Tap_01, + // Token: 0x04004E6F RID: 20079 + Turotial_Tap_02, + // Token: 0x04004E70 RID: 20080 + Turotial_Tap_03, + // Token: 0x04004E71 RID: 20081 + Turotial_Tap_04, + // Token: 0x04004E72 RID: 20082 + Tutorial_LetsPlay, + // Token: 0x04004E73 RID: 20083 + Turotial_Each_01, + // Token: 0x04004E74 RID: 20084 + Turotial_Each_02, + // Token: 0x04004E75 RID: 20085 + Turotial_Hold_01, + // Token: 0x04004E76 RID: 20086 + Turotial_Hold_02, + // Token: 0x04004E77 RID: 20087 + Turotial_Slide_01, + // Token: 0x04004E78 RID: 20088 + Turotial_Slide_02, + // Token: 0x04004E79 RID: 20089 + Turotial_Slide_03, + // Token: 0x04004E7A RID: 20090 + Turotial_Slide_04, + // Token: 0x04004E7B RID: 20091 + Turotial_TouchTap_01, + // Token: 0x04004E7C RID: 20092 + Turotial_TouchTap_02, + // Token: 0x04004E7D RID: 20093 + Turotial_TouchHold_01, + // Token: 0x04004E7E RID: 20094 + Turotial_TouchHold_02, + // Token: 0x04004E7F RID: 20095 + Tutorial_End_01, + // Token: 0x04004E80 RID: 20096 + Tutorial_End_02, + // Token: 0x04004E81 RID: 20097 + Tutorial_Short_Intro_01, + // Token: 0x04004E82 RID: 20098 + Tutorial_Ex_01, + // Token: 0x04004E83 RID: 20099 + Tutorial_NewHold_02, + // Token: 0x04004E84 RID: 20100 + NewUserName, + // Token: 0x04004E85 RID: 20101 + GuestUserName, + // Token: 0x04004E86 RID: 20102 + DefaultUserName, + // Token: 0x04004E87 RID: 20103 + Scroll_Map_Select, + // Token: 0x04004E88 RID: 20104 + Scroll_Character_Select, + // Token: 0x04004E89 RID: 20105 + Scroll_Category_Select, + // Token: 0x04004E8A RID: 20106 + Scroll_Music_Select, + // Token: 0x04004E8B RID: 20107 + Scroll_Category_Sort_Setting, + // Token: 0x04004E8C RID: 20108 + Scroll_Level_Select_Normal, + // Token: 0x04004E8D RID: 20109 + Scroll_Level_Select_Otomodachi, + // Token: 0x04004E8E RID: 20110 + Scroll_Play_Setting, + // Token: 0x04004E8F RID: 20111 + Scroll_Option, + // Token: 0x04004E90 RID: 20112 + Scroll_Collection_Top, + // Token: 0x04004E91 RID: 20113 + Scroll_Collection_Icon, + // Token: 0x04004E92 RID: 20114 + Scroll_Collection_Nameplate, + // Token: 0x04004E93 RID: 20115 + Scroll_Collection_Title, + // Token: 0x04004E94 RID: 20116 + Scroll_Collection_Partner, + // Token: 0x04004E95 RID: 20117 + Scroll_Collection_Frame, + // Token: 0x04004E96 RID: 20118 + UnderServerMaintenance, + // Token: 0x04004E97 RID: 20119 + AimeOffline, + // Token: 0x04004E98 RID: 20120 + MapSelect_DecisionSerif, + // Token: 0x04004E99 RID: 20121 + MapSelect_CloseMap, + // Token: 0x04004E9A RID: 20122 + MapSelect_CloseReplaceName, + // Token: 0x04004E9B RID: 20123 + MapSelect_UnknownMapName, + // Token: 0x04004E9C RID: 20124 + MapSelect_To, + // Token: 0x04004E9D RID: 20125 + MusicSelectConnectNG_Freedom, + // Token: 0x04004E9E RID: 20126 + MusicSelectConnectNG_Ghost, + // Token: 0x04004E9F RID: 20127 + MusicSelectConnectNG_Single, + // Token: 0x04004EA0 RID: 20128 + MusicSelectVsUpperDifficulty, + // Token: 0x04004EA1 RID: 20129 + MusicSelectVsLowerDifficulty, + // Token: 0x04004EA2 RID: 20130 + CodeReadBoostDate, + // Token: 0x04004EA3 RID: 20131 + CodeReadBoostDateAt, + // Token: 0x04004EA4 RID: 20132 + CodeReadBoostOutOfDate, + // Token: 0x04004EA5 RID: 20133 + CodeReadNotUsed, + // Token: 0x04004EA6 RID: 20134 + CodeReadThisCardUse, + // Token: 0x04004EA7 RID: 20135 + CodeReadPromoCodeUnmatch, + // Token: 0x04004EA8 RID: 20136 + CodeReadNotBuy, + // Token: 0x04004EA9 RID: 20137 + CodeReadAllreadyRelease, + // Token: 0x04004EAA RID: 20138 + ResultKumaMessage01, + // Token: 0x04004EAB RID: 20139 + ResultKumaMessage02, + // Token: 0x04004EAC RID: 20140 + ResultKumaMessage03, + // Token: 0x04004EAD RID: 20141 + ResultKumaMessage04, + // Token: 0x04004EAE RID: 20142 + ResultKumaMessage05, + // Token: 0x04004EAF RID: 20143 + CollectionNum, + // Token: 0x04004EB0 RID: 20144 + CollectionTotalNum, + // Token: 0x04004EB1 RID: 20145 + Entry_OldSrvDisconnect, + // Token: 0x04004EB2 RID: 20146 + MusicSelectGhostPlayTime, + // Token: 0x04004EB3 RID: 20147 + MusicSelectGhostPllayDefaultTime, + // Token: 0x04004EB4 RID: 20148 + MusicSelectGhostInfo, + // Token: 0x04004EB5 RID: 20149 + MusicSelectOptionMenuSpeed, + // Token: 0x04004EB6 RID: 20150 + MusicSelectOptionMenuMirror, + // Token: 0x04004EB7 RID: 20151 + MusicSelectOptionMenuTrackSkip, + // Token: 0x04004EB8 RID: 20152 + CommonCredits, + // Token: 0x04004EB9 RID: 20153 + CommonFreePlay, + // Token: 0x04004EBA RID: 20154 + SystemGood, + // Token: 0x04004EBB RID: 20155 + SystemBad, + // Token: 0x04004EBC RID: 20156 + SystemCheck, + // Token: 0x04004EBD RID: 20157 + SystemNa, + // Token: 0x04004EBE RID: 20158 + SystemWarn, + // Token: 0x04004EBF RID: 20159 + SystemDupli, + // Token: 0x04004EC0 RID: 20160 + PlInfomationLeft, + // Token: 0x04004EC1 RID: 20161 + PlInfomationRight, + // Token: 0x04004EC2 RID: 20162 + GetWindowMusic, + // Token: 0x04004EC3 RID: 20163 + GetWindowMusicUnlock, + // Token: 0x04004EC4 RID: 20164 + GetWindowMusicTrans, + // Token: 0x04004EC5 RID: 20165 + GetWindowChara, + // Token: 0x04004EC6 RID: 20166 + GetWindowGhost, + // Token: 0x04004EC7 RID: 20167 + GetWindowGhostTitle, + // Token: 0x04004EC8 RID: 20168 + GetWindowIsland, + // Token: 0x04004EC9 RID: 20169 + GetWindowCollection, + // Token: 0x04004ECA RID: 20170 + CharaSetNormal, + // Token: 0x04004ECB RID: 20171 + CharaSetNewCommer, + // Token: 0x04004ECC RID: 20172 + Entry_QRMessage, + // Token: 0x04004ECD RID: 20173 + Entry_AccessCodeMessage, + // Token: 0x04004ECE RID: 20174 + Entry_AccessCodeMessage1, + // Token: 0x04004ECF RID: 20175 + ErrorIDTitle, + // Token: 0x04004ED0 RID: 20176 + ErrorMessageTitle, + // Token: 0x04004ED1 RID: 20177 + ErrorDateTitle, + // Token: 0x04004ED2 RID: 20178 + MusicSelectEnableMatch, + // Token: 0x04004ED3 RID: 20179 + MusicSelectDisableMatch, + // Token: 0x04004ED4 RID: 20180 + MusicSelectMatchEntry, + // Token: 0x04004ED5 RID: 20181 + MusicSelectMatchSetup, + // Token: 0x04004ED6 RID: 20182 + MusicSelectMatchSet, + // Token: 0x04004ED7 RID: 20183 + MusicSelectOptionBasic, + // Token: 0x04004ED8 RID: 20184 + MusicSelectOptionAdvanced, + // Token: 0x04004ED9 RID: 20185 + MusicSelectOptionExpert, + // Token: 0x04004EDA RID: 20186 + MusicSelectOptionCustom, + // Token: 0x04004EDB RID: 20187 + MusicSelectOptionBasicInfo, + // Token: 0x04004EDC RID: 20188 + MusicSelectOptionAdvancedInfo, + // Token: 0x04004EDD RID: 20189 + MusicSelectOptionExpertInfo, + // Token: 0x04004EDE RID: 20190 + MusicSelectOptionCustomInfo, + // Token: 0x04004EDF RID: 20191 + MusicSelectOptionVol, + // Token: 0x04004EE0 RID: 20192 + PhotoEditTouchZoom, + // Token: 0x04004EE1 RID: 20193 + SimpleSettingStartThisData, + // Token: 0x04004EE2 RID: 20194 + SimpleSettingHeadphoneVol, + // Token: 0x04004EE3 RID: 20195 + SimpleSettingCheckPreview, + // Token: 0x04004EE4 RID: 20196 + SimpleSettingCheckCamera, + // Token: 0x04004EE5 RID: 20197 + TutorialSelectNew, + // Token: 0x04004EE6 RID: 20198 + TutorialSelectBasic, + // Token: 0x04004EE7 RID: 20199 + LoginBonusInfo, + // Token: 0x04004EE8 RID: 20200 + TournamentInfo_1, + // Token: 0x04004EE9 RID: 20201 + TournamentInfo_2, + // Token: 0x04004EEA RID: 20202 + TournamentInfo_3, + // Token: 0x04004EEB RID: 20203 + ChallengeInfoAssignmentTitle, + // Token: 0x04004EEC RID: 20204 + ChallengeInfoAssignmentMessage01, + // Token: 0x04004EED RID: 20205 + ChallengeInfoAssignmentMessage02, + // Token: 0x04004EEE RID: 20206 + ChallengeInfoPerfectTitle, + // Token: 0x04004EEF RID: 20207 + ChallengeInfoPerfectMessage01, + // Token: 0x04004EF0 RID: 20208 + ChallengeInfoPerfectMessage02, + // Token: 0x04004EF1 RID: 20209 + MapResultInfoChallenge01, + // Token: 0x04004EF2 RID: 20210 + MapResultInfoChallenge02, + // Token: 0x04004EF3 RID: 20211 + MapResultInfoChallenge02Replace, + // Token: 0x04004EF4 RID: 20212 + MapResultInfoStageFailed, + // Token: 0x04004EF5 RID: 20213 + MapResultInfoTask01, + // Token: 0x04004EF6 RID: 20214 + MapResultInfoTask02, + // Token: 0x04004EF7 RID: 20215 + TransmissionMusic, + // Token: 0x04004EF8 RID: 20216 + RegionalSelectCountMusic, + // Token: 0x04004EF9 RID: 20217 + RegionalSelectCountCollection, + // Token: 0x04004EFA RID: 20218 + RegionalSelectTotalDistancce, + // Token: 0x04004EFB RID: 20219 + RegionalSelectEvent, + // Token: 0x04004EFC RID: 20220 + ExtraInfoBoss, + // Token: 0x04004EFD RID: 20221 + ExtraInfoSpecialBoss, + // Token: 0x04004EFE RID: 20222 + GhostJumpText, + // Token: 0x04004EFF RID: 20223 + GhostReturnText, + // Token: 0x04004F00 RID: 20224 + UnlockMusicTransmission, + // Token: 0x04004F01 RID: 20225 + UnlockMusicScoreRanking, + // Token: 0x04004F02 RID: 20226 + UnlockMusicCollection, + // Token: 0x04004F03 RID: 20227 + LoginBonusStmp, + // Token: 0x04004F04 RID: 20228 + LoginBonusCharacterSelect, + // Token: 0x04004F05 RID: 20229 + MusicSelectConnectNG_Challenge, + // Token: 0x04004F06 RID: 20230 + MusicSelectConnectNG_Course, + // Token: 0x04004F07 RID: 20231 + GetTicket, + // Token: 0x04004F08 RID: 20232 + SettingWindowDXPass, + // Token: 0x04004F09 RID: 20233 + SettingWindowIconPhoto, + // Token: 0x04004F0A RID: 20234 + SettingWindowMemberEdit, + // Token: 0x04004F0B RID: 20235 + SettingWindowPlayPhoto, + // Token: 0x04004F0C RID: 20236 + SettingWindowNextTime, + // Token: 0x04004F0D RID: 20237 + SettingWindowHeadPhoneVolume, + // Token: 0x04004F0E RID: 20238 + CourseDaniInfo, + // Token: 0x04004F0F RID: 20239 + CourceShinDaniInfo, + // Token: 0x04004F10 RID: 20240 + CourseLeftLife, + // Token: 0x04004F11 RID: 20241 + PhotoShootMessage, + // Token: 0x04004F12 RID: 20242 + PhotoShootCountDown, + // Token: 0x04004F13 RID: 20243 + CourseModeDani, + // Token: 0x04004F14 RID: 20244 + CourseModeShinDani, + // Token: 0x04004F15 RID: 20245 + CourseModeRandom, + // Token: 0x04004F16 RID: 20246 + EntryTimeOutCredit, + // Token: 0x04004F17 RID: 20247 + EntryTimeOut, + // Token: 0x04004F18 RID: 20248 + ModeSelectDecide, + // Token: 0x04004F19 RID: 20249 + ModeSelectEntryWait, + // Token: 0x04004F1A RID: 20250 + TicketMiniFree, + // Token: 0x04004F1B RID: 20251 + TicketMiniFreeConditions, + // Token: 0x04004F1C RID: 20252 + TicketMiniChara, + // Token: 0x04004F1D RID: 20253 + TicketMiniEventConditions, + // Token: 0x04004F1E RID: 20254 + TicketMiniPaid01, + // Token: 0x04004F1F RID: 20255 + TicketMiniPaid02, + // Token: 0x04004F20 RID: 20256 + TicketBigFree, + // Token: 0x04004F21 RID: 20257 + TicketBigFreeInfo, + // Token: 0x04004F22 RID: 20258 + TicketBigFreeConditions, + // Token: 0x04004F23 RID: 20259 + TicketBigEvent, + // Token: 0x04004F24 RID: 20260 + TicketBigEventInfo, + // Token: 0x04004F25 RID: 20261 + TicketBigLink, + // Token: 0x04004F26 RID: 20262 + TicketBigLinkConditions, + // Token: 0x04004F27 RID: 20263 + TicketBigPaid01, + // Token: 0x04004F28 RID: 20264 + TicketBigPaid02, + // Token: 0x04004F29 RID: 20265 + TicketBigPaidInfo, + // Token: 0x04004F2A RID: 20266 + CreditInsertCoin, + // Token: 0x04004F2B RID: 20267 + EventResultMessage, + // Token: 0x04004F2C RID: 20268 + LoginBonusAskPartnerSet, + // Token: 0x04004F2D RID: 20269 + LoginBonusPartnerSet, + // Token: 0x04004F2E RID: 20270 + LoginBonusCannotGetTicketMax, + // Token: 0x04004F2F RID: 20271 + LoginBonusReleaseNotesStandard, + // Token: 0x04004F30 RID: 20272 + LoginBonusReleaseNotesDelux, + // Token: 0x04004F31 RID: 20273 + FriendSeason, + // Token: 0x04004F32 RID: 20274 + FriendSeasonTotalSeasonPoint, + // Token: 0x04004F33 RID: 20275 + FriendSeasonSPToGet, + // Token: 0x04004F34 RID: 20276 + FriendSeasonRankToGet, + // Token: 0x04004F35 RID: 20277 + FriendSeasonReplaceNumber, + // Token: 0x04004F36 RID: 20278 + FriendSeasonRewardEarned, + // Token: 0x04004F37 RID: 20279 + TicketCompensationForErrors, + // Token: 0x04004F38 RID: 20280 + RewardItemTypePartner, + // Token: 0x04004F39 RID: 20281 + RewardItemTypeCharacter, + // Token: 0x04004F3A RID: 20282 + RewardItemTypeIcon, + // Token: 0x04004F3B RID: 20283 + RewardItemTypePlate, + // Token: 0x04004F3C RID: 20284 + RewardItemTypeFrame, + // Token: 0x04004F3D RID: 20285 + RewardItemTypeTitle, + // Token: 0x04004F3E RID: 20286 + RewardItemTypeMusicNew, + // Token: 0x04004F3F RID: 20287 + ChallengeInfoAssignmentMessage03, + // Token: 0x04004F40 RID: 20288 + ChallengeInfoPerfectMessage03, + // Token: 0x04004F41 RID: 20289 + TrialNGbyEventMode, + // Token: 0x04004F42 RID: 20290 + TrialNGbyBothEntry, + // Token: 0x04004F43 RID: 20291 + TrialNGbyGuestPlay, + // Token: 0x04004F44 RID: 20292 + TrialNGbyGameMode, + // Token: 0x04004F45 RID: 20293 + TrialNGbyPlayedToday, + // Token: 0x04004F46 RID: 20294 + LoginBonusScrollText, + // Token: 0x04004F47 RID: 20295 + TrialEnable, + // Token: 0x04004F48 RID: 20296 + TrialEnableBasic, + // Token: 0x04004F49 RID: 20297 + TrialEnableAdvanced, + // Token: 0x04004F4A RID: 20298 + TrialDisable, + // Token: 0x04004F4B RID: 20299 + TrialInfo, + // Token: 0x04004F4C RID: 20300 + TrialMessage01, + // Token: 0x04004F4D RID: 20301 + TrialMessage02, + // Token: 0x04004F4E RID: 20302 + Entry_FelicaSiteAndQR_Title, + // Token: 0x04004F4F RID: 20303 + Entry_FelicaSiteAndQR, + // Token: 0x04004F50 RID: 20304 + ScoreAttackRankingInfoScore, + // Token: 0x04004F51 RID: 20305 + ScoreAttackRankingInfoRanking, + // Token: 0x04004F52 RID: 20306 + ScoreAttackRankingInfoRank, + // Token: 0x04004F53 RID: 20307 + ScoreAttackRuleInfo1, + // Token: 0x04004F54 RID: 20308 + ScoreAttackRuleInfo2, + // Token: 0x04004F55 RID: 20309 + ScoreAttackRuleInfo3, + // Token: 0x04004F56 RID: 20310 + GenreSelectForPopular, + // Token: 0x04004F57 RID: 20311 + GenreSelectForYouTwo, + // Token: 0x04004F58 RID: 20312 + GenreSelectForYou, + // Token: 0x04004F59 RID: 20313 + GenreSelectForRating, + // Token: 0x04004F5A RID: 20314 + GenreChainCardClearTracks, + // Token: 0x04004F5B RID: 20315 + GenreChainCardTracks, + // Token: 0x04004F5C RID: 20316 + TicketDiscardInfo, + // Token: 0x04004F5D RID: 20317 + MusicPlayStatusAverage, + // Token: 0x04004F5E RID: 20318 + MusicPlayStatusClear, + // Token: 0x04004F5F RID: 20319 + ModeSelectScrollText, + // Token: 0x04004F60 RID: 20320 + RegionSelectScrollText, + // Token: 0x04004F61 RID: 20321 + TicketSelectScrollText, + // Token: 0x04004F62 RID: 20322 + DaniTotalScore, + // Token: 0x04004F63 RID: 20323 + DaniDeluxScore, + // Token: 0x04004F64 RID: 20324 + DaniMaxLevel, + // Token: 0x04004F65 RID: 20325 + ExtraInfoReliefLEGEND, + // Token: 0x04004F66 RID: 20326 + TicketMiniPaid03, + // Token: 0x04004F67 RID: 20327 + TicketMiniPaid04, + // Token: 0x04004F68 RID: 20328 + TicketMiniPaid05, + // Token: 0x04004F69 RID: 20329 + TicketBigPaid03, + // Token: 0x04004F6A RID: 20330 + TicketBigPaid04, + // Token: 0x04004F6B RID: 20331 + TicketBigPaid05, + // Token: 0x04004F6C RID: 20332 + LoginBonusPreviewInfo, + // Token: 0x04004F6D RID: 20333 + FriendBattleFirstInfoDendou, + // Token: 0x04004F6E RID: 20334 + TicketBigInfo01, + // Token: 0x04004F6F RID: 20335 + TicketBigInfo02, + // Token: 0x04004F70 RID: 20336 + TicketBigInfo03, + // Token: 0x04004F71 RID: 20337 + UtageUnlockedInfo, + // Token: 0x04004F72 RID: 20338 + UtageLockedInfo, + // Token: 0x04004F73 RID: 20339 + TrialNGbyUtage, + // Token: 0x04004F74 RID: 20340 + MusicSelectConnectNG_Utage, + // Token: 0x04004F75 RID: 20341 + Scroll_Level_Select_Utage, + // Token: 0x04004F76 RID: 20342 + UtageOptionTitle, + // Token: 0x04004F77 RID: 20343 + ExtraInfoLEGEND, + // Token: 0x04004F78 RID: 20344 + LoginBonusAskPartnerSet_SpeakJPN, + // Token: 0x04004F79 RID: 20345 + RegionalSelectNextReward, + // Token: 0x04004F7A RID: 20346 + TicketBigShopWeekly, + // Token: 0x04004F7B RID: 20347 + TicketBigShopWeeklyInfo, + // Token: 0x04004F7C RID: 20348 + TicketBigShopWeeklyConditions, + // Token: 0x04004F7D RID: 20349 + TicketBigShopChara, + // Token: 0x04004F7E RID: 20350 + TicketBigShopCharaInfo, + // Token: 0x04004F7F RID: 20351 + TicketBigShopCharaConditions, + // Token: 0x04004F80 RID: 20352 + ShopNotEnoughMaiMaile, + // Token: 0x04004F81 RID: 20353 + ShopZeroItemStock, + // Token: 0x04004F82 RID: 20354 + ShopUserMaxStock, + // Token: 0x04004F83 RID: 20355 + ConfirmationOfGiftGiving, + // Token: 0x04004F84 RID: 20356 + Scroll_Collection_Shop, + // Token: 0x04004F85 RID: 20357 + CollectionWindowTextCollection, + // Token: 0x04004F86 RID: 20358 + CollectionWindowTextStamp, + // Token: 0x04004F87 RID: 20359 + CollectionWindowTextItem, + // Token: 0x04004F88 RID: 20360 + PartnerPresent, + // Token: 0x04004F89 RID: 20361 + MusicSelectConnectNG_Kaleidx, + // Token: 0x04004F8A RID: 20362 + NotesDesignerTitle, + // Token: 0x04004F8B RID: 20363 + Begin = 0, + // Token: 0x04004F8C RID: 20364 + End = 312, + // Token: 0x04004F8D RID: 20365 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/CommonMessageIDEnum.cs b/Assembly-CSharp/DB/CommonMessageIDEnum.cs new file mode 100644 index 0000000..b2f68ee --- /dev/null +++ b/Assembly-CSharp/DB/CommonMessageIDEnum.cs @@ -0,0 +1,416 @@ +using System; + +namespace DB +{ + // Token: 0x02000749 RID: 1865 + public static class CommonMessageIDEnum + { + // Token: 0x06004322 RID: 17186 RVA: 0x00175067 File Offset: 0x00174267 + public static bool IsActive(this CommonMessageID self) + { + return self >= CommonMessageID.Reset && self < CommonMessageID.End && self > CommonMessageID.Reset; + } + + // Token: 0x06004323 RID: 17187 RVA: 0x0017507B File Offset: 0x0017427B + public static bool IsValid(this CommonMessageID self) + { + return self >= CommonMessageID.Reset && self < CommonMessageID.End; + } + + // Token: 0x06004324 RID: 17188 RVA: 0x0017508B File Offset: 0x0017428B + public static void Clamp(this CommonMessageID self) + { + if (self < CommonMessageID.Reset) + { + self = CommonMessageID.Reset; + return; + } + if (self >= (CommonMessageID)CommonMessageIDEnum.GetEnd()) + { + self = (CommonMessageID)CommonMessageIDEnum.GetEnd(); + } + } + + // Token: 0x06004325 RID: 17189 RVA: 0x001750A4 File Offset: 0x001742A4 + public static int GetEnd(this CommonMessageID self) + { + return CommonMessageIDEnum.GetEnd(); + } + + // Token: 0x06004326 RID: 17190 RVA: 0x001750AC File Offset: 0x001742AC + public static CommonMessageID FindID(string enumName) + { + for (CommonMessageID commonMessageID = CommonMessageID.Reset; commonMessageID < CommonMessageID.End; commonMessageID++) + { + if (commonMessageID.GetEnumName() == enumName) + { + return commonMessageID; + } + } + return CommonMessageID.Invalid; + } + + // Token: 0x06004327 RID: 17191 RVA: 0x001750DA File Offset: 0x001742DA + public static int GetEnd() + { + return CommonMessageIDEnum.records.Length; + } + + // Token: 0x06004328 RID: 17192 RVA: 0x001750E3 File Offset: 0x001742E3 + public static int GetEnumValue(this CommonMessageID self) + { + if (self.IsValid()) + { + return CommonMessageIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004329 RID: 17193 RVA: 0x001750FB File Offset: 0x001742FB + public static string GetEnumName(this CommonMessageID self) + { + if (self.IsValid()) + { + return CommonMessageIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600432A RID: 17194 RVA: 0x00175117 File Offset: 0x00174317 + public static string GetName(this CommonMessageID self) + { + if (self.IsValid()) + { + return CommonMessageIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600432B RID: 17195 RVA: 0x00175133 File Offset: 0x00174333 + public static string GetNameEx(this CommonMessageID self) + { + if (self.IsValid()) + { + return CommonMessageIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04004F92 RID: 20370 + private static readonly CommonMessageTableRecord[] records = new CommonMessageTableRecord[] + { + new CommonMessageTableRecord(0, "Reset", "上画面情報すべてをリセットし、非表示にする", ""), + new CommonMessageTableRecord(1, "Music_SetActive", "楽曲情報の表示設定", ""), + new CommonMessageTableRecord(2, "Music_SetData", "楽曲情報の設定", ""), + new CommonMessageTableRecord(3, "Music_SetGameData", "ゲームスコアを設定する", ""), + new CommonMessageTableRecord(4, "User_SetActive", "ユーザー情報の表示設定", ""), + new CommonMessageTableRecord(5, "User_SetData", "ユーザー情報を設定する", ""), + new CommonMessageTableRecord(6, "User_SetTeamData", "ユーザーチーム情報の設定", ""), + new CommonMessageTableRecord(7, "Chara_SetActive", "キャラクターセットの表示設定", ""), + new CommonMessageTableRecord(8, "Chara_SetSlot", "キャラクターセットのスロットに情報を設定する", ""), + new CommonMessageTableRecord(9, "Chara_SetTeamSlot", "キャラクターセットのチームスロットに情報を設定する", ""), + new CommonMessageTableRecord(10, "Track_SetActive", "トラック数表示設定", ""), + new CommonMessageTableRecord(11, "Track_SetTrackNum", "トラック数の情報を設定する", ""), + new CommonMessageTableRecord(12, "Classic_SET", "クラシックモードの表示設定", ""), + new CommonMessageTableRecord(13, "GameMode_Set", "ゲームモード開始終了の通知", ""), + new CommonMessageTableRecord(14, "CreditMain", "クレジット情報をメインモニターに表示", ""), + new CommonMessageTableRecord(15, "CreditSub", "クレジット情報をサブモニターに表示", ""), + new CommonMessageTableRecord(16, "ReplaceUserIcon", "ユーザーアイコンを適応する", ""), + new CommonMessageTableRecord(17, "Entry_InfoAime", "请扫描微信二维码进行游戏", ""), + new CommonMessageTableRecord(18, "Entry_InfoCoin", "请投币", ""), + new CommonMessageTableRecord(19, "Entry_InfoButton", "请按按键", ""), + new CommonMessageTableRecord(20, "Entry_InfoNotes", "请在游戏画面上操作", ""), + new CommonMessageTableRecord(21, "Entry_InfoMoreCoin", "请继续投币", ""), + new CommonMessageTableRecord(22, "Entry_OnePlayer", "开始单人模式", ""), + new CommonMessageTableRecord(23, "Entry_TwoPlayer", "开始双人模式", ""), + new CommonMessageTableRecord(24, "Entry_Freedom", "开始自由模式", ""), + new CommonMessageTableRecord(25, "Entry_TimeSkip", "长按跳过倒计时键结束报名", ""), + new CommonMessageTableRecord(26, "Tutorial_Long_Intro_01", "你~好~我是“迪拉熊”\n我来说明舞萌的游戏操作哦♪", ""), + new CommonMessageTableRecord(27, "Turotial_Tap_01", "首先是TAP(点击)音符!", ""), + new CommonMessageTableRecord(28, "Turotial_Tap_02", "与判定线重合时要\n轻拍按键或屏幕!", ""), + new CommonMessageTableRecord(29, "Turotial_Tap_03", "有各种各样的TAP(点击)音符呢…", ""), + new CommonMessageTableRecord(30, "Turotial_Tap_04", "只要看准时机全都拍到就行啦!", ""), + new CommonMessageTableRecord(31, "Tutorial_LetsPlay", "试试看吧~!", ""), + new CommonMessageTableRecord(32, "Turotial_Each_01", "对了对了,\n有时会同时出现2个音符呢", ""), + new CommonMessageTableRecord(33, "Turotial_Each_02", "这时可以试着用双手\n同时拍击它们哟!", ""), + new CommonMessageTableRecord(34, "Turotial_Hold_01", "接下来是HOLD(长按)音符!", ""), + new CommonMessageTableRecord(35, "Turotial_Hold_02", "当这个又细又长的音符同判定线重合开始,\n就要一直按着,直到它消失为止!\n", ""), + new CommonMessageTableRecord(36, "Turotial_Slide_01", "接下来是SLIDE(滑动)音符!", ""), + new CommonMessageTableRecord(37, "Turotial_Slide_02", "轻拍操作\n和TAP(点击)音符是一样的哟", ""), + new CommonMessageTableRecord(38, "Turotial_Slide_03", "等待一拍后跟随\n的移动轨迹在屏幕上滑动!", ""), + new CommonMessageTableRecord(39, "Turotial_Slide_04", "记得要先拍击后再滑动哦♪", ""), + new CommonMessageTableRecord(40, "Turotial_TouchTap_01", "接着是TOUCH(触摸)音符!", ""), + new CommonMessageTableRecord(41, "Turotial_TouchTap_02", "在快门闭合的瞬间\n触摸屏幕!", ""), + new CommonMessageTableRecord(42, "Turotial_TouchHold_01", "最后!\nTOUCH HOLD(长按触摸)音符!", ""), + new CommonMessageTableRecord(43, "Turotial_TouchHold_02", "在音符消失前\n要一直按住不放哦!", ""), + new CommonMessageTableRecord(44, "Tutorial_End_01", "音符的说明就到这里!\n辛苦啦♪", ""), + new CommonMessageTableRecord(45, "Tutorial_End_02", "那么,接下来就以通关为目标加油吧!\n一路顺风♪", ""), + new CommonMessageTableRecord(46, "Tutorial_Short_Intro_01", "你~好~我是“迪拉熊”\n我来告诉你舞萌的新游戏要素哦♪", ""), + new CommonMessageTableRecord(47, "Tutorial_Ex_01", "增加了EX音符!\n可以让GOOD(良好)判定也变成“完美”哦♪", ""), + new CommonMessageTableRecord(48, "Tutorial_NewHold_02", "音符结束后一直按着也是没关系哒!\n即便中途松开也可以重新按♪", ""), + new CommonMessageTableRecord(49, "NewUserName", "欢迎!", ""), + new CommonMessageTableRecord(50, "GuestUserName", "游客", ""), + new CommonMessageTableRecord(51, "DefaultUserName", "maimai", ""), + new CommonMessageTableRecord(52, "Scroll_Map_Select", "请选择要前往的区域 各区域都有独特的旅行伙伴、收藏品以及乐曲!试着来收集吧!", ""), + new CommonMessageTableRecord(53, "Scroll_Character_Select", "选择组队的旅行伙伴 同“擅长”水准的旅行伙伴组队容易走得更远哦", ""), + new CommonMessageTableRecord(54, "Scroll_Category_Select", "请选择想要搜索的乐曲种类\u3000\u3000\u3000↑上方的乐曲也包含在内哟\u3000\u3000\u3000通过按 键可以更改种类・排序的设置哟", ""), + new CommonMessageTableRecord(55, "Scroll_Music_Select", "请选择想要游玩的乐曲\u3000\u3000\u3000通过按 键可以更改种类・排序的设置哟\u3000\u3000\u3000同时按下左右偏上位置的按钮的话就可以在“DX乐谱”和“标准乐谱”之间切换哦", ""), + new CommonMessageTableRecord(56, "Scroll_Category_Sort_Setting", "试着按照想搜索的乐曲来设定下种类和排序吧", ""), + new CommonMessageTableRecord(57, "Scroll_Level_Select_Normal", "请选择难度 想更换乐曲时,按返回键就可以哦", ""), + new CommonMessageTableRecord(58, "Scroll_Level_Select_Otomodachi", "请选择难度 选择比友人对战的对手更低的难度时,将无法进行友人对战哦", ""), + new CommonMessageTableRecord(59, "Scroll_Play_Setting", "选项设定好了吗? 耳机音量也可以调整哦 都准备好的话按下“乐曲开始”按键吧", ""), + new CommonMessageTableRecord(60, "Scroll_Option", "首先确认速度! 可以边看演示边设定各种选项", ""), + new CommonMessageTableRecord(61, "Scroll_Collection_Top", "请选择想要设置的收藏品 本次新获得的收藏品上会标有“新”哟", ""), + new CommonMessageTableRecord(62, "Scroll_Collection_Icon", "请选择想要设置的头像 设置后可以在上方画面进行确认!", ""), + new CommonMessageTableRecord(63, "Scroll_Collection_Nameplate", "请选择想要设置的姓名框 设置后可以在上方画面进行确认!", ""), + new CommonMessageTableRecord(64, "Scroll_Collection_Title", "请选择想要设置的称号 设置后可以在上方画面进行确认!", ""), + new CommonMessageTableRecord(65, "Scroll_Collection_Partner", "请选择喜欢的搭档", ""), + new CommonMessageTableRecord(66, "Scroll_Collection_Frame", "请选择想替换的背景!\u3000更换后记得在上方屏幕确认哟!", ""), + new CommonMessageTableRecord(67, "UnderServerMaintenance", "因系统维护,无法进行游戏", ""), + new CommonMessageTableRecord(68, "AimeOffline", "网络不佳,目前无法进行会员登陆\n只能通过游客模式参加游戏", ""), + new CommonMessageTableRecord(69, "MapSelect_DecisionSerif", "就这么决定喽", ""), + new CommonMessageTableRecord(70, "MapSelect_CloseMap", "走完[ちほー名]\r\n就能前往这里了哟!", ""), + new CommonMessageTableRecord(71, "MapSelect_CloseReplaceName", "[ちほー名]", ""), + new CommonMessageTableRecord(72, "MapSelect_UnknownMapName", "????区域", ""), + new CommonMessageTableRecord(73, "MapSelect_To", " まで", ""), + new CommonMessageTableRecord(74, "MusicSelectConnectNG_Freedom", "フリーダムモードのため\n店内マッチングはできません", ""), + new CommonMessageTableRecord(75, "MusicSelectConnectNG_Ghost", "友人对战乐曲\n无法进行店内招募", ""), + new CommonMessageTableRecord(76, "MusicSelectConnectNG_Single", "根据该乐曲设置\r\n无法进行店内招募", ""), + new CommonMessageTableRecord(77, "MusicSelectVsUpperDifficulty", "这个难度对你来说有点难哦", ""), + new CommonMessageTableRecord(78, "MusicSelectVsLowerDifficulty", "这个难度对你来说太简单,无法体现你的技术水准", ""), + new CommonMessageTableRecord(79, "CodeReadBoostDate", "ブースト期限", ""), + new CommonMessageTableRecord(80, "CodeReadBoostDateAt", "まで", ""), + new CommonMessageTableRecord(81, "CodeReadBoostOutOfDate", "このカードは期限外です", ""), + new CommonMessageTableRecord(82, "CodeReadNotUsed", "このカードは使用できません", ""), + new CommonMessageTableRecord(83, "CodeReadThisCardUse", "このカードを使用しますか?", ""), + new CommonMessageTableRecord(84, "CodeReadPromoCodeUnmatch", "プロモーションコードが一致しません", ""), + new CommonMessageTableRecord(85, "CodeReadNotBuy", "このカードは購入されていません", ""), + new CommonMessageTableRecord(86, "CodeReadAllreadyRelease", "すでに解放されています", ""), + new CommonMessageTableRecord(87, "ResultKumaMessage01", "恭喜通关!", ""), + new CommonMessageTableRecord(88, "ResultKumaMessage02", "真厉害啊!", ""), + new CommonMessageTableRecord(89, "ResultKumaMessage03", "太棒啦!", ""), + new CommonMessageTableRecord(90, "ResultKumaMessage04", "恭喜你♪", ""), + new CommonMessageTableRecord(91, "ResultKumaMessage05", "干得不错哦♪", ""), + new CommonMessageTableRecord(92, "CollectionNum", "获得数", ""), + new CommonMessageTableRecord(93, "CollectionTotalNum", "总获得数", ""), + new CommonMessageTableRecord(94, "Entry_OldSrvDisconnect", "現在、Aimeの新規作成と引き継ぎはできません", ""), + new CommonMessageTableRecord(95, "MusicSelectGhostPlayTime", "游戏日期", ""), + new CommonMessageTableRecord(96, "MusicSelectGhostPllayDefaultTime", "----/--/-- --:--", ""), + new CommonMessageTableRecord(97, "MusicSelectGhostInfo", "和全国的玩家对战", ""), + new CommonMessageTableRecord(98, "MusicSelectOptionMenuSpeed", "拍击速度:", ""), + new CommonMessageTableRecord(99, "MusicSelectOptionMenuMirror", "镜像模式:", ""), + new CommonMessageTableRecord(100, "MusicSelectOptionMenuTrackSkip", "跳过乐曲:", ""), + new CommonMessageTableRecord(101, "CommonCredits", "可用点数 ", ""), + new CommonMessageTableRecord(102, "CommonFreePlay", "免费试玩", ""), + new CommonMessageTableRecord(103, "SystemGood", "好", ""), + new CommonMessageTableRecord(104, "SystemBad", "坏", ""), + new CommonMessageTableRecord(105, "SystemCheck", "正在检查", ""), + new CommonMessageTableRecord(106, "SystemNa", "无", ""), + new CommonMessageTableRecord(107, "SystemWarn", "警告", ""), + new CommonMessageTableRecord(108, "SystemDupli", "(DUPLI)", ""), + new CommonMessageTableRecord(109, "PlInfomationLeft", "不要拍得太用力哦", ""), + new CommonMessageTableRecord(110, "PlInfomationRight", "不要滑得太用力哦", ""), + new CommonMessageTableRecord(111, "GetWindowMusic", "获得了新的乐曲哟!", ""), + new CommonMessageTableRecord(112, "GetWindowMusicUnlock", "解禁该乐曲了哟!", ""), + new CommonMessageTableRecord(113, "GetWindowMusicTrans", "乐曲传送!可以在自己的账号上游玩了哟!", ""), + new CommonMessageTableRecord(114, "GetWindowChara", "出现了新成员!", ""), + new CommonMessageTableRecord(115, "GetWindowGhost", "※过了限定时间后便会消失", ""), + new CommonMessageTableRecord(116, "GetWindowGhostTitle", "一同游玩的话可加快区域中的移动哟!", ""), + new CommonMessageTableRecord(117, "GetWindowIsland", "好像可以到新的区域啊!等一下去看看吧!", ""), + new CommonMessageTableRecord(118, "GetWindowCollection", "获得了新的收藏品!", ""), + new CommonMessageTableRecord(119, "CharaSetNormal", "请触摸想要转换的成员", ""), + new CommonMessageTableRecord(120, "CharaSetNewCommer", "触摸一下可设置新成员哦", ""), + new CommonMessageTableRecord(121, "Entry_QRMessage", "2次元バーコードから\nAimeサービスサイトに登録を行ってください\n", ""), + new CommonMessageTableRecord(122, "Entry_AccessCodeMessage", "2次元バーコードから\nAimeサービスサイトに登録を行ってください", ""), + new CommonMessageTableRecord(123, "Entry_AccessCodeMessage1", "2次元バーコードは他人に使われないようにご注意ください\n", ""), + new CommonMessageTableRecord(124, "ErrorIDTitle", "1.错误所属编号", ""), + new CommonMessageTableRecord(125, "ErrorMessageTitle", "2.错误的名称", ""), + new CommonMessageTableRecord(126, "ErrorDateTitle", "3.发生错误的日期和时间", ""), + new CommonMessageTableRecord(127, "MusicSelectEnableMatch", "开始招募!", ""), + new CommonMessageTableRecord(128, "MusicSelectDisableMatch", "根据该乐曲设置\r\n无法进行店内招募", ""), + new CommonMessageTableRecord(129, "MusicSelectMatchEntry", "正在招募玩家", ""), + new CommonMessageTableRecord(130, "MusicSelectMatchSetup", "正在准备中", ""), + new CommonMessageTableRecord(131, "MusicSelectMatchSet", "准备OK!", ""), + new CommonMessageTableRecord(132, "MusicSelectOptionBasic", "初级推荐设置", ""), + new CommonMessageTableRecord(133, "MusicSelectOptionAdvanced", "高级推荐设置", ""), + new CommonMessageTableRecord(134, "MusicSelectOptionExpert", "专家推荐设置", ""), + new CommonMessageTableRecord(135, "MusicSelectOptionCustom", "详细设置", ""), + new CommonMessageTableRecord(136, "MusicSelectOptionBasicInfo", "推荐给选择\r\nBASIC(初级)的玩家", ""), + new CommonMessageTableRecord(137, "MusicSelectOptionAdvancedInfo", "推荐给选择\r\nADVANCED(高级)的玩家", ""), + new CommonMessageTableRecord(138, "MusicSelectOptionExpertInfo", "推荐给选择\r\nEXPERT(专家)的玩家", ""), + new CommonMessageTableRecord(139, "MusicSelectOptionCustomInfo", "可于选项中作设置", ""), + new CommonMessageTableRecord(140, "MusicSelectOptionVol", "请使用「+键」和「ー键」作调整", ""), + new CommonMessageTableRecord(141, "PhotoEditTouchZoom", "触摸屏幕可关掉扩大功能", ""), + new CommonMessageTableRecord(142, "SimpleSettingStartThisData", "用此数据记录开始游戏", ""), + new CommonMessageTableRecord(143, "SimpleSettingHeadphoneVol", "耳机音量设置", ""), + new CommonMessageTableRecord(144, "SimpleSettingCheckPreview", "在预览画面中确认镜头的位置\r\n按下拍照键后3秒内就会自动拍照哦", ""), + new CommonMessageTableRecord(145, "SimpleSettingCheckCamera", "摆好姿势,看向镜头!", ""), + new CommonMessageTableRecord(146, "TutorialSelectNew", "第一次玩请按这里!", ""), + new CommonMessageTableRecord(147, "TutorialSelectBasic", "玩过的人请按这里!", ""), + new CommonMessageTableRecord(148, "LoginBonusInfo", "获得的搭档可以之后在收藏品页面进行设置哦!", ""), + new CommonMessageTableRecord(149, "TournamentInfo_1", "在线预选赛开放中!!", ""), + new CommonMessageTableRecord(150, "TournamentInfo_2", "地区大赛开放中!!", ""), + new CommonMessageTableRecord(151, "TournamentInfo_3", "顶点决胜开放中!!", ""), + new CommonMessageTableRecord(152, "ChallengeInfoAssignmentTitle", "出现课题曲!", ""), + new CommonMessageTableRecord(153, "ChallengeInfoAssignmentMessage01", "挑战并获得课题曲!", ""), + new CommonMessageTableRecord(154, "ChallengeInfoAssignmentMessage02", "如果不通关课题曲将无法继续前进", ""), + new CommonMessageTableRecord(155, "ChallengeInfoPerfectTitle", "完美挑战曲出现", ""), + new CommonMessageTableRecord(156, "ChallengeInfoPerfectMessage01", "挑战完美挑战曲并解禁吧!", ""), + new CommonMessageTableRecord(157, "ChallengeInfoPerfectMessage02", "完美挑战曲会在游玩过程中根据事先设定好的生命值强制结束乐曲", ""), + new CommonMessageTableRecord(158, "MapResultInfoChallenge01", "试着解禁完美挑战曲吧!", ""), + new CommonMessageTableRecord(159, "MapResultInfoChallenge02", "离规则变简单还剩[残り]天", ""), + new CommonMessageTableRecord(160, "MapResultInfoChallenge02Replace", "[残り]", ""), + new CommonMessageTableRecord(161, "MapResultInfoStageFailed", "需要完走完美挑战曲才可以继续前进", ""), + new CommonMessageTableRecord(162, "MapResultInfoTask01", "来通关课题曲吧!", ""), + new CommonMessageTableRecord(163, "MapResultInfoTask02", "必须通关课题曲才能继续前进", ""), + new CommonMessageTableRecord(164, "TransmissionMusic", "一起游玩传导乐曲并将乐曲传送给其他玩家吧!", ""), + new CommonMessageTableRecord(165, "RegionalSelectCountMusic", "离下一首乐曲还剩", ""), + new CommonMessageTableRecord(166, "RegionalSelectCountCollection", "离获得收藏品还剩", ""), + new CommonMessageTableRecord(167, "RegionalSelectTotalDistancce", "区域累计距离", ""), + new CommonMessageTableRecord(168, "RegionalSelectEvent", "活动开放中!", ""), + new CommonMessageTableRecord(169, "ExtraInfoBoss", "和谱师们决胜吧!", ""), + new CommonMessageTableRecord(170, "ExtraInfoSpecialBoss", "打倒头目并获得传导乐曲!", ""), + new CommonMessageTableRecord(171, "GhostJumpText", "友人对战指定乐曲", ""), + new CommonMessageTableRecord(172, "GhostReturnText", "返回通常选曲", ""), + new CommonMessageTableRecord(173, "UnlockMusicTransmission", "乐曲传送!可以在自己的账号上游玩了哟!", ""), + new CommonMessageTableRecord(174, "UnlockMusicScoreRanking", "获得比赛专用乐曲!", ""), + new CommonMessageTableRecord(175, "UnlockMusicCollection", "获得乐曲!", ""), + new CommonMessageTableRecord(176, "LoginBonusStmp", "1天可以集1个印章\r\n两人游玩的话便可以多获得1个哟!", ""), + new CommonMessageTableRecord(177, "LoginBonusCharacterSelect", "请选择想要获得的报酬的[集章卡]!", ""), + new CommonMessageTableRecord(178, "MusicSelectConnectNG_Challenge", "完美挑战曲无法进行店内联机", ""), + new CommonMessageTableRecord(179, "MusicSelectConnectNG_Course", "段位认定模式下无法进行店内联机", ""), + new CommonMessageTableRecord(180, "GetTicket", "获得了功能票", ""), + new CommonMessageTableRecord(181, "SettingWindowDXPass", "ONにするとでらっくすパスの読み込みができます\nでらっくすパスはカードメイカーで購入できます", ""), + new CommonMessageTableRecord(182, "SettingWindowIconPhoto", "可以拍摄头像", ""), + new CommonMessageTableRecord(183, "SettingWindowMemberEdit", "开启(ON)时,可以自行设定旅行伙伴\r\n关闭(OFF)时,将会由系统自动设定", ""), + new CommonMessageTableRecord(184, "SettingWindowPlayPhoto", "可以在乐曲游玩后拍摄纪念照", ""), + new CommonMessageTableRecord(185, "SettingWindowNextTime", "下次游玩时变更", ""), + new CommonMessageTableRecord(186, "SettingWindowHeadPhoneVolume", "可以通过「+键」「ー键」来调整音量", ""), + new CommonMessageTableRecord(187, "CourseDaniInfo", " 生命值归0时也可以继续游玩,但是段位会判定为不合格", ""), + new CommonMessageTableRecord(188, "CourceShinDaniInfo", " 生命值归0时游戏将自动结束!", ""), + new CommonMessageTableRecord(189, "CourseLeftLife", "剩余生命值", ""), + new CommonMessageTableRecord(190, "PhotoShootMessage", "在预览画面中确认镜头的位置\r\n按下拍照键的3秒后就会自动拍照哦", ""), + new CommonMessageTableRecord(191, "PhotoShootCountDown", "摆好姿势,看向镜头!", ""), + new CommonMessageTableRecord(192, "CourseModeDani", "四曲通关并还有剩余生命值的\r\n话便可获得段位!", ""), + new CommonMessageTableRecord(193, "CourseModeShinDani", "追求真正的舞萌力吧!", ""), + new CommonMessageTableRecord(194, "CourseModeRandom", "运气也是实力的一部分!\r\n测试运气的段位认定!", ""), + new CommonMessageTableRecord(195, "EntryTimeOutCredit", "返回标题界面\r\n还有剩余代币哟!", ""), + new CommonMessageTableRecord(196, "EntryTimeOut", "返回标题界面", ""), + new CommonMessageTableRecord(197, "ModeSelectDecide", "按下确定键继续", ""), + new CommonMessageTableRecord(198, "ModeSelectEntryWait", "请稍等", ""), + new CommonMessageTableRecord(199, "TicketMiniFree", "区域前进{0}倍票", ""), + new CommonMessageTableRecord(200, "TicketMiniFreeConditions", "持有{0}张", ""), + new CommonMessageTableRecord(201, "TicketMiniChara", "旅行伙伴等级提升{0}倍票", ""), + new CommonMessageTableRecord(202, "TicketMiniEventConditions", "还剩{0}天", ""), + new CommonMessageTableRecord(203, "TicketMiniPaid01", "区域前进{0}倍票", ""), + new CommonMessageTableRecord(204, "TicketMiniPaid02", "区域前进3倍票", ""), + new CommonMessageTableRecord(205, "TicketBigFree", "区域前进{0}倍票", ""), + new CommonMessageTableRecord(206, "TicketBigFreeInfo", "可以提升移动距离和角色等级上升速度的票", ""), + new CommonMessageTableRecord(207, "TicketBigFreeConditions", "最多可以持有5张票,多余的票将会被作废", ""), + new CommonMessageTableRecord(208, "TicketBigEvent", "区域前进{0}倍票", ""), + new CommonMessageTableRecord(209, "TicketBigEventInfo", "可以提升移动距离的票", ""), + new CommonMessageTableRecord(210, "TicketBigLink", "特殊功能票", ""), + new CommonMessageTableRecord(211, "TicketBigLinkConditions", "这张功能票的持有数量将在早上4点被重置", ""), + new CommonMessageTableRecord(212, "TicketBigPaid01", "区域前进{0}倍票", ""), + new CommonMessageTableRecord(213, "TicketBigPaid02", "区域前进3倍票", ""), + new CommonMessageTableRecord(214, "TicketBigPaidInfo", "可以提升移动距离和角色等级上升速度的票", ""), + new CommonMessageTableRecord(215, "CreditInsertCoin", "可用点数", ""), + new CommonMessageTableRecord(216, "EventResultMessage", "长压 键来结束比赛成绩界面", ""), + new CommonMessageTableRecord(217, "LoginBonusAskPartnerSet", "要立刻使用刚获得的搭档吗?", ""), + new CommonMessageTableRecord(218, "LoginBonusPartnerSet", "已设置!", ""), + new CommonMessageTableRecord(219, "LoginBonusCannotGetTicketMax", "持有的区域前进1.5倍票的张数已达上限\r\n无法再次购买", ""), + new CommonMessageTableRecord(220, "LoginBonusReleaseNotesStandard", "解禁了标准谱面!", ""), + new CommonMessageTableRecord(221, "LoginBonusReleaseNotesDelux", "解禁了DX谱面!", ""), + new CommonMessageTableRecord(222, "FriendSeason", "季度", ""), + new CommonMessageTableRecord(223, "FriendSeasonTotalSeasonPoint", "总计季度积分", ""), + new CommonMessageTableRecord(224, "FriendSeasonSPToGet", "[数値]季度积分达成后获得奖励!", ""), + new CommonMessageTableRecord(225, "FriendSeasonRankToGet", "[数値]位以内名次内可额外获得奖励!", ""), + new CommonMessageTableRecord(226, "FriendSeasonReplaceNumber", "[数値]", ""), + new CommonMessageTableRecord(227, "FriendSeasonRewardEarned", "积分奖励已获得!", ""), + new CommonMessageTableRecord(228, "TicketCompensationForErrors", "因上次游玩中游戏异常结束\r\n发放补偿票", ""), + new CommonMessageTableRecord(229, "RewardItemTypePartner", "搭档", ""), + new CommonMessageTableRecord(230, "RewardItemTypeCharacter", "旅行伙伴", ""), + new CommonMessageTableRecord(231, "RewardItemTypeIcon", "头像", ""), + new CommonMessageTableRecord(232, "RewardItemTypePlate", "姓名框", ""), + new CommonMessageTableRecord(233, "RewardItemTypeFrame", "背景", ""), + new CommonMessageTableRecord(234, "RewardItemTypeTitle", "称号", ""), + new CommonMessageTableRecord(235, "RewardItemTypeMusicNew", "乐曲", ""), + new CommonMessageTableRecord(236, "ChallengeInfoAssignmentMessage03", " 来挑战课题曲吧!", ""), + new CommonMessageTableRecord(237, "ChallengeInfoPerfectMessage03", "快来挑战完美挑战曲吧!", ""), + new CommonMessageTableRecord(238, "TrialNGbyEventMode", "大会模式下\r\n无法进行邀请游玩", ""), + new CommonMessageTableRecord(239, "TrialNGbyBothEntry", "双人模式下\r\n无法进行邀请游玩", ""), + new CommonMessageTableRecord(240, "TrialNGbyGuestPlay", "游客模式下\r\n无法进行邀请游玩", ""), + new CommonMessageTableRecord(241, "TrialNGbyGameMode", "当前模式\r\n无法进行邀请游玩", ""), + new CommonMessageTableRecord(242, "TrialNGbyPlayedToday", "今日份的邀请游玩已用完\r\n无法再次使用", ""), + new CommonMessageTableRecord(243, "LoginBonusScrollText", "集齐印章便可获得奖励哟!一天可以集一枚印章!", ""), + new CommonMessageTableRecord(244, "TrialEnable", "有效", ""), + new CommonMessageTableRecord(245, "TrialEnableBasic", "有效\r\n(BASIC 初级)", ""), + new CommonMessageTableRecord(246, "TrialEnableAdvanced", "有效\r\n(ADVANCED 高级)", ""), + new CommonMessageTableRecord(247, "TrialDisable", "无效", ""), + new CommonMessageTableRecord(248, "TrialInfo", "邀请游玩有效", ""), + new CommonMessageTableRecord(249, "TrialMessage01", "和好友们一起游玩吧!", ""), + new CommonMessageTableRecord(250, "TrialMessage02", "首先尝试下通关乐曲吧♪", ""), + new CommonMessageTableRecord(251, "Entry_FelicaSiteAndQR_Title", "Aimeサービスサイトへの登録", ""), + new CommonMessageTableRecord(252, "Entry_FelicaSiteAndQR", "登録しておくと機種変更や紛失・故障などの\r\nトラブル時にデータを引き継ぐことができます\r\n\r\n2次元バーコードから\r\nAimeサービスサイトへの登録が行えます", ""), + new CommonMessageTableRecord(253, "ScoreAttackRankingInfoScore", "现在的分数", ""), + new CommonMessageTableRecord(254, "ScoreAttackRankingInfoRanking", "现在的排名:第", ""), + new CommonMessageTableRecord(255, "ScoreAttackRankingInfoRank", "名", ""), + new CommonMessageTableRecord(256, "ScoreAttackRuleInfo1", "同一局游戏内游玩的KOP对象乐曲的合计达成率将作为得分", ""), + new CommonMessageTableRecord(257, "ScoreAttackRuleInfo2", "当选择大师以外的难度时,乐曲的达成率将如下减少", ""), + new CommonMessageTableRecord(258, "ScoreAttackRuleInfo3", "专家… -1.0000% 高级… -2.0000% 基础… -3.0000%", ""), + new CommonMessageTableRecord(259, "GenreSelectForPopular", "这里是流行歌曲哟!", ""), + new CommonMessageTableRecord(260, "GenreSelectForYouTwo", "从适合两个人的歌曲来推荐哟!", ""), + new CommonMessageTableRecord(261, "GenreSelectForYou", "从适合你的歌曲来推荐哟!", ""), + new CommonMessageTableRecord(262, "GenreSelectForRating", "从评级相近的玩家的擅长曲来推荐哟!", ""), + new CommonMessageTableRecord(263, "GenreChainCardClearTracks", "♪通关曲数", ""), + new CommonMessageTableRecord(264, "GenreChainCardTracks", "♪乐曲数", ""), + new CommonMessageTableRecord(265, "TicketDiscardInfo", "如果已经持有5张票,新获得的票将会作废", ""), + new CommonMessageTableRecord(266, "MusicPlayStatusAverage", "平均达成率", ""), + new CommonMessageTableRecord(267, "MusicPlayStatusClear", "通关的曲数", ""), + new CommonMessageTableRecord(268, "ModeSelectScrollText", "请选择想游玩的模式吧!", ""), + new CommonMessageTableRecord(269, "RegionSelectScrollText", "请选择区域吧!", ""), + new CommonMessageTableRecord(270, "TicketSelectScrollText", "请选择想使用的功能票吧!", ""), + new CommonMessageTableRecord(271, "DaniTotalScore", "合计成绩", ""), + new CommonMessageTableRecord(272, "DaniDeluxScore", "DX分数", ""), + new CommonMessageTableRecord(273, "DaniMaxLevel", "等级上限 ", ""), + new CommonMessageTableRecord(274, "ExtraInfoReliefLEGEND", "战胜谱面小子,获得特别的乐曲!", ""), + new CommonMessageTableRecord(275, "TicketMiniPaid03", "每周区域前进{0}倍票", ""), + new CommonMessageTableRecord(276, "TicketMiniPaid04", "区域前进5倍票", ""), + new CommonMessageTableRecord(277, "TicketMiniPaid05", "区域前进6倍票", ""), + new CommonMessageTableRecord(278, "TicketBigPaid03", "区域前进4倍票", ""), + new CommonMessageTableRecord(279, "TicketBigPaid04", "区域前进5倍票", ""), + new CommonMessageTableRecord(280, "TicketBigPaid05", "区域前进6倍票", ""), + new CommonMessageTableRecord(281, "LoginBonusPreviewInfo", "收集印章即可获得此奖励!", ""), + new CommonMessageTableRecord(282, "FriendBattleFirstInfoDendou", "获得胜利并获得传导乐曲!", ""), + new CommonMessageTableRecord(283, "TicketBigInfo01", "区域前进距离", ""), + new CommonMessageTableRecord(284, "TicketBigInfo02", "旅行伙伴升级", ""), + new CommonMessageTableRecord(285, "TicketBigInfo03", "可游玩MASTER(大师)・Re:MASTER(宗师)难度", ""), + new CommonMessageTableRecord(286, "UtageUnlockedInfo", "各种疯狂的谱面集结在这里!\r\n让我们一起热闹起来吧!\r\n※不会影响DX评分和\r\n全曲目总分", ""), + new CommonMessageTableRecord(287, "UtageLockedInfo", "DX评分达到10000\r\n以上即可解锁!\r\n两人合计达到\r\n10000也可以!", ""), + new CommonMessageTableRecord(288, "TrialNGbyUtage", "宴会场下无法进行\r\n邀请游玩", ""), + new CommonMessageTableRecord(289, "MusicSelectConnectNG_Utage", "宴会场下无法进行店内招募", ""), + new CommonMessageTableRecord(290, "Scroll_Level_Select_Utage", "请仔细阅读游戏说明后再开始哟!如果想要更换乐曲,请按返回按钮哟", ""), + new CommonMessageTableRecord(291, "UtageOptionTitle", "锁定设置", ""), + new CommonMessageTableRecord(292, "ExtraInfoLEGEND", "达到LEGEND(传奇)阶级即可获得传导乐曲!", ""), + new CommonMessageTableRecord(293, "LoginBonusAskPartnerSet_SpeakJPN", "要立刻使用刚获得的搭档吗?\r\n这位搭档使用的是日语语音哦!", ""), + new CommonMessageTableRecord(294, "RegionalSelectNextReward", "距离下个奖励 还有", ""), + new CommonMessageTableRecord(295, "TicketBigShopWeekly", "每周区域前进{0}倍票", ""), + new CommonMessageTableRecord(296, "TicketBigShopWeeklyInfo", "可以提升移动距离的票", ""), + new CommonMessageTableRecord(297, "TicketBigShopWeeklyConditions", "每周最多可以持有1张票", ""), + new CommonMessageTableRecord(298, "TicketBigShopChara", "旅行伙伴等级提升{0}倍票", ""), + new CommonMessageTableRecord(299, "TicketBigShopCharaInfo", "可以提升角色等级上升速度的票", ""), + new CommonMessageTableRecord(300, "TicketBigShopCharaConditions", "最多可以持有5张票", ""), + new CommonMessageTableRecord(301, "ShopNotEnoughMaiMaile", "舞里程不足", ""), + new CommonMessageTableRecord(302, "ShopZeroItemStock", "没有库存", ""), + new CommonMessageTableRecord(303, "ShopUserMaxStock", "持有数量已达上限", ""), + new CommonMessageTableRecord(304, "ConfirmationOfGiftGiving", "要赠送{1}个礼物给\r\n{0}吗?", ""), + new CommonMessageTableRecord(305, "Scroll_Collection_Shop", "请选择想要交换的物品!", ""), + new CommonMessageTableRecord(306, "CollectionWindowTextCollection", "获得了新的收藏品!", ""), + new CommonMessageTableRecord(307, "CollectionWindowTextStamp", "收集印章可以获得这个奖励哦!", ""), + new CommonMessageTableRecord(308, "CollectionWindowTextItem", "获得了新物品!", ""), + new CommonMessageTableRecord(309, "PartnerPresent", "礼物", ""), + new CommonMessageTableRecord(310, "MusicSelectConnectNG_Kaleidx", "万花筒模式下\r\n无法进行店内匹配", ""), + new CommonMessageTableRecord(311, "NotesDesignerTitle", "谱师", "") + }; + } +} diff --git a/Assembly-CSharp/DB/CommonMessageTableRecord.cs b/Assembly-CSharp/DB/CommonMessageTableRecord.cs new file mode 100644 index 0000000..0731e62 --- /dev/null +++ b/Assembly-CSharp/DB/CommonMessageTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000748 RID: 1864 + public class CommonMessageTableRecord + { + // Token: 0x06004320 RID: 17184 RVA: 0x00003560 File Offset: 0x00002760 + public CommonMessageTableRecord() + { + } + + // Token: 0x06004321 RID: 17185 RVA: 0x00175042 File Offset: 0x00174242 + public CommonMessageTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04004F8E RID: 20366 + public int EnumValue; + + // Token: 0x04004F8F RID: 20367 + public string EnumName; + + // Token: 0x04004F90 RID: 20368 + public string Name; + + // Token: 0x04004F91 RID: 20369 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/ContentBitID.cs b/Assembly-CSharp/DB/ContentBitID.cs new file mode 100644 index 0000000..eb9695d --- /dev/null +++ b/Assembly-CSharp/DB/ContentBitID.cs @@ -0,0 +1,77 @@ +using System; + +namespace DB +{ + // Token: 0x0200074A RID: 1866 + public enum ContentBitID + { + // Token: 0x04004F94 RID: 20372 + FirstPlay, + // Token: 0x04004F95 RID: 20373 + FirstPassRead, + // Token: 0x04004F96 RID: 20374 + FirstOutOfServicePass, + // Token: 0x04004F97 RID: 20375 + FirstAnotherPass, + // Token: 0x04004F98 RID: 20376 + FirstSimpleSetting, + // Token: 0x04004F99 RID: 20377 + FirstMapSelect, + // Token: 0x04004F9A RID: 20378 + FirstCharaSelect, + // Token: 0x04004F9B RID: 20379 + FirstCharaGoodBad, + // Token: 0x04004F9C RID: 20380 + FirstRateCategory, + // Token: 0x04004F9D RID: 20381 + FirstCharaAwake, + // Token: 0x04004F9E RID: 20382 + FirstTotalResult, + // Token: 0x04004F9F RID: 20383 + FirstCollecitonCustom, + // Token: 0x04004FA0 RID: 20384 + FirstCollecitonEnd, + // Token: 0x04004FA1 RID: 20385 + FirstCollecitonPartner, + // Token: 0x04004FA2 RID: 20386 + FirstBossAppear, + // Token: 0x04004FA3 RID: 20387 + FirstCharaSelectDxPlus, + // Token: 0x04004FA4 RID: 20388 + FirstLoginBonus, + // Token: 0x04004FA5 RID: 20389 + FirstPassportDxPlus, + // Token: 0x04004FA6 RID: 20390 + FirstMapSelectDxPlus, + // Token: 0x04004FA7 RID: 20391 + FirstFriendBattleResult, + // Token: 0x04004FA8 RID: 20392 + FirstA4Class, + // Token: 0x04004FA9 RID: 20393 + FirstModeSelect, + // Token: 0x04004FAA RID: 20394 + FirstTicketSelect, + // Token: 0x04004FAB RID: 20395 + FirstSinCourseAdd, + // Token: 0x04004FAC RID: 20396 + FirstSelectionMusic, + // Token: 0x04004FAD RID: 20397 + FirstRateMusic, + // Token: 0x04004FAE RID: 20398 + FirstInfinityRegion, + // Token: 0x04004FAF RID: 20399 + FirstUnlockUtage, + // Token: 0x04004FB0 RID: 20400 + FirstMission, + // Token: 0x04004FB1 RID: 20401 + FirstGetMile, + // Token: 0x04004FB2 RID: 20402 + FirstKaleidxScopeSelect, + // Token: 0x04004FB3 RID: 20403 + Begin = 0, + // Token: 0x04004FB4 RID: 20404 + End = 31, + // Token: 0x04004FB5 RID: 20405 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/ContentBitIDEnum.cs b/Assembly-CSharp/DB/ContentBitIDEnum.cs new file mode 100644 index 0000000..2b30a6d --- /dev/null +++ b/Assembly-CSharp/DB/ContentBitIDEnum.cs @@ -0,0 +1,131 @@ +using System; + +namespace DB +{ + // Token: 0x0200074C RID: 1868 + public static class ContentBitIDEnum + { + // Token: 0x0600432F RID: 17199 RVA: 0x00177582 File Offset: 0x00176782 + public static bool IsActive(this ContentBitID self) + { + return self >= ContentBitID.FirstPlay && self < ContentBitID.End && self > ContentBitID.FirstPlay; + } + + // Token: 0x06004330 RID: 17200 RVA: 0x00177593 File Offset: 0x00176793 + public static bool IsValid(this ContentBitID self) + { + return self >= ContentBitID.FirstPlay && self < ContentBitID.End; + } + + // Token: 0x06004331 RID: 17201 RVA: 0x001775A0 File Offset: 0x001767A0 + public static void Clamp(this ContentBitID self) + { + if (self < ContentBitID.FirstPlay) + { + self = ContentBitID.FirstPlay; + return; + } + if (self >= (ContentBitID)ContentBitIDEnum.GetEnd()) + { + self = (ContentBitID)ContentBitIDEnum.GetEnd(); + } + } + + // Token: 0x06004332 RID: 17202 RVA: 0x001775B9 File Offset: 0x001767B9 + public static int GetEnd(this ContentBitID self) + { + return ContentBitIDEnum.GetEnd(); + } + + // Token: 0x06004333 RID: 17203 RVA: 0x001775C0 File Offset: 0x001767C0 + public static ContentBitID FindID(string enumName) + { + for (ContentBitID contentBitID = ContentBitID.FirstPlay; contentBitID < ContentBitID.End; contentBitID++) + { + if (contentBitID.GetEnumName() == enumName) + { + return contentBitID; + } + } + return ContentBitID.Invalid; + } + + // Token: 0x06004334 RID: 17204 RVA: 0x001775EB File Offset: 0x001767EB + public static int GetEnd() + { + return ContentBitIDEnum.records.Length; + } + + // Token: 0x06004335 RID: 17205 RVA: 0x001775F4 File Offset: 0x001767F4 + public static int GetEnumValue(this ContentBitID self) + { + if (self.IsValid()) + { + return ContentBitIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004336 RID: 17206 RVA: 0x0017760C File Offset: 0x0017680C + public static string GetEnumName(this ContentBitID self) + { + if (self.IsValid()) + { + return ContentBitIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004337 RID: 17207 RVA: 0x00177628 File Offset: 0x00176828 + public static string GetName(this ContentBitID self) + { + if (self.IsValid()) + { + return ContentBitIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004338 RID: 17208 RVA: 0x00177644 File Offset: 0x00176844 + public static bool IsGuestIgnore(this ContentBitID self) + { + return self.IsValid() && ContentBitIDEnum.records[(int)self].isGuestIgnore; + } + + // Token: 0x04004FBA RID: 20410 + private static readonly ContentBitTableRecord[] records = new ContentBitTableRecord[] + { + new ContentBitTableRecord(0, "FirstPlay", "初回プレイフラグ", 0), + new ContentBitTableRecord(1, "FirstPassRead", "初回パス読み込み", 1), + new ContentBitTableRecord(2, "FirstOutOfServicePass", "初回期限切れパス使用", 1), + new ContentBitTableRecord(3, "FirstAnotherPass", "初回他人パス使用", 1), + new ContentBitTableRecord(4, "FirstSimpleSetting", "初回アイコン撮影シーケンス", 0), + new ContentBitTableRecord(5, "FirstMapSelect", "初回ちほー選択", 1), + new ContentBitTableRecord(6, "FirstCharaSelect", "初回キャラセレクト", 1), + new ContentBitTableRecord(7, "FirstCharaGoodBad", "初回キャラ不得意", 1), + new ContentBitTableRecord(8, "FirstRateCategory", "初回レートカテゴリ表示", 1), + new ContentBitTableRecord(9, "FirstCharaAwake", "初回キャラ覚醒", 1), + new ContentBitTableRecord(10, "FirstTotalResult", "初回総合リザルト", 0), + new ContentBitTableRecord(11, "FirstCollecitonCustom", "初回コレクションカスタム", 1), + new ContentBitTableRecord(12, "FirstCollecitonEnd", "初回コレクションカスタム終了時", 1), + new ContentBitTableRecord(13, "FirstCollecitonPartner", "初回コレクションでのパートナーインフォ", 1), + new ContentBitTableRecord(14, "FirstBossAppear", "初回ボス登場", 1), + new ContentBitTableRecord(15, "FirstCharaSelectDxPlus", "初回キャラセレクトver1.10(キャラロックインフォ)", 1), + new ContentBitTableRecord(16, "FirstLoginBonus", "初回ログインぼボーナスインフォ", 1), + new ContentBitTableRecord(17, "FirstPassportDxPlus", "初回パスポートver1.10(パスポートインフォ)", 1), + new ContentBitTableRecord(18, "FirstMapSelectDxPlus", "初回ちほーセレクトver1.10(キャラセレスキップインフォ)", 1), + new ContentBitTableRecord(19, "FirstFriendBattleResult", "初回オトモダチ対戦リザルト", 1), + new ContentBitTableRecord(20, "FirstA4Class", "初回A4クラス到達", 1), + new ContentBitTableRecord(21, "FirstModeSelect", "初回モードセレクト", 1), + new ContentBitTableRecord(22, "FirstTicketSelect", "初回チケットセレクト", 0), + new ContentBitTableRecord(23, "FirstSinCourseAdd", "初回真段位追加", 0), + new ContentBitTableRecord(24, "FirstSelectionMusic", "初回選曲オススメカテゴリ追加", 1), + new ContentBitTableRecord(25, "FirstRateMusic", "初回レートオススメカテゴリ追加", 1), + new ContentBitTableRecord(26, "FirstInfinityRegion", "初回無限ちほー選択", 1), + new ContentBitTableRecord(27, "FirstUnlockUtage", "初回宴会場解禁", 0), + new ContentBitTableRecord(28, "FirstMission", "初回ミッション確認", 1), + new ContentBitTableRecord(29, "FirstGetMile", "初回マイル獲得", 1), + new ContentBitTableRecord(30, "FirstKaleidxScopeSelect", "初回カレイドスコープ選択", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/ContentBitTableRecord.cs b/Assembly-CSharp/DB/ContentBitTableRecord.cs new file mode 100644 index 0000000..e867feb --- /dev/null +++ b/Assembly-CSharp/DB/ContentBitTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x0200074B RID: 1867 + public class ContentBitTableRecord + { + // Token: 0x0600432D RID: 17197 RVA: 0x00003560 File Offset: 0x00002760 + public ContentBitTableRecord() + { + } + + // Token: 0x0600432E RID: 17198 RVA: 0x0017755A File Offset: 0x0017675A + public ContentBitTableRecord(int EnumValue, string EnumName, string Name, int isGuestIgnore) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.isGuestIgnore = isGuestIgnore != 0; + } + + // Token: 0x04004FB6 RID: 20406 + public int EnumValue; + + // Token: 0x04004FB7 RID: 20407 + public string EnumName; + + // Token: 0x04004FB8 RID: 20408 + public string Name; + + // Token: 0x04004FB9 RID: 20409 + public bool isGuestIgnore; + } +} diff --git a/Assembly-CSharp/DB/DBExpantion.cs b/Assembly-CSharp/DB/DBExpantion.cs new file mode 100644 index 0000000..4095d83 --- /dev/null +++ b/Assembly-CSharp/DB/DBExpantion.cs @@ -0,0 +1,525 @@ +using System; +using Mai2.Mai2Cue; + +namespace DB +{ + // Token: 0x0200074D RID: 1869 + public static class DBExpantion + { + // Token: 0x0600433A RID: 17210 RVA: 0x00177910 File Offset: 0x00176B10 + public static OptionNotespeedID GetDefault(this OptionNotespeedID self) + { + foreach (OptionNotespeedID optionNotespeedID in (OptionNotespeedID[])Enum.GetValues(typeof(OptionNotespeedID))) + { + if (optionNotespeedID.IsDefault()) + { + return optionNotespeedID; + } + } + return OptionNotespeedID.Invalid; + } + + // Token: 0x0600433B RID: 17211 RVA: 0x00177950 File Offset: 0x00176B50 + public static OptionSlidespeedID GetDefault(this OptionSlidespeedID self) + { + foreach (OptionSlidespeedID optionSlidespeedID in (OptionSlidespeedID[])Enum.GetValues(typeof(OptionSlidespeedID))) + { + if (optionSlidespeedID.IsDefault()) + { + return optionSlidespeedID; + } + } + return OptionSlidespeedID.Invalid; + } + + // Token: 0x0600433C RID: 17212 RVA: 0x00177990 File Offset: 0x00176B90 + public static OptionTouchspeedID GetDefault(this OptionTouchspeedID self) + { + foreach (OptionTouchspeedID optionTouchspeedID in (OptionTouchspeedID[])Enum.GetValues(typeof(OptionTouchspeedID))) + { + if (optionTouchspeedID.IsDefault()) + { + return optionTouchspeedID; + } + } + return OptionTouchspeedID.Invalid; + } + + // Token: 0x0600433D RID: 17213 RVA: 0x001779D0 File Offset: 0x00176BD0 + public static OptionStarrotateID GetDefault(this OptionStarrotateID self) + { + foreach (OptionStarrotateID optionStarrotateID in (OptionStarrotateID[])Enum.GetValues(typeof(OptionStarrotateID))) + { + if (optionStarrotateID.IsDefault()) + { + return optionStarrotateID; + } + } + return OptionStarrotateID.Invalid; + } + + // Token: 0x0600433E RID: 17214 RVA: 0x00177A10 File Offset: 0x00176C10 + public static OptionGameoutlineID GetDefault(this OptionGameoutlineID self) + { + foreach (OptionGameoutlineID optionGameoutlineID in (OptionGameoutlineID[])Enum.GetValues(typeof(OptionGameoutlineID))) + { + if (optionGameoutlineID.IsDefault()) + { + return optionGameoutlineID; + } + } + return OptionGameoutlineID.Invalid; + } + + // Token: 0x0600433F RID: 17215 RVA: 0x00177A50 File Offset: 0x00176C50 + public static OptionVolumeID GetDefault(this OptionVolumeID self) + { + foreach (OptionVolumeID optionVolumeID in (OptionVolumeID[])Enum.GetValues(typeof(OptionVolumeID))) + { + if (optionVolumeID.IsDefault()) + { + return optionVolumeID; + } + } + return OptionVolumeID.Invalid; + } + + // Token: 0x06004340 RID: 17216 RVA: 0x00177A90 File Offset: 0x00176C90 + public static OptionVolumeAnswerSoundID GetDefault(this OptionVolumeAnswerSoundID self) + { + foreach (OptionVolumeAnswerSoundID optionVolumeAnswerSoundID in (OptionVolumeAnswerSoundID[])Enum.GetValues(typeof(OptionVolumeAnswerSoundID))) + { + if (optionVolumeAnswerSoundID.IsDefault()) + { + return optionVolumeAnswerSoundID; + } + } + return OptionVolumeAnswerSoundID.Invalid; + } + + // Token: 0x06004341 RID: 17217 RVA: 0x00177AD0 File Offset: 0x00176CD0 + public static OptionTapSuccessSeID GetDefault(this OptionTapSuccessSeID self) + { + foreach (OptionTapSuccessSeID optionTapSuccessSeID in (OptionTapSuccessSeID[])Enum.GetValues(typeof(OptionTapSuccessSeID))) + { + if (optionTapSuccessSeID.IsDefault()) + { + return optionTapSuccessSeID; + } + } + return OptionTapSuccessSeID.Invalid; + } + + // Token: 0x06004342 RID: 17218 RVA: 0x00177B10 File Offset: 0x00176D10 + public static OptionCenterdisplayID GetDefault(this OptionCenterdisplayID self) + { + foreach (OptionCenterdisplayID optionCenterdisplayID in (OptionCenterdisplayID[])Enum.GetValues(typeof(OptionCenterdisplayID))) + { + if (optionCenterdisplayID.IsDefault()) + { + return optionCenterdisplayID; + } + } + return OptionCenterdisplayID.Invalid; + } + + // Token: 0x06004343 RID: 17219 RVA: 0x00177B50 File Offset: 0x00176D50 + public static OptionOutframedisplayID GetDefault(this OptionOutframedisplayID self) + { + foreach (OptionOutframedisplayID optionOutframedisplayID in (OptionOutframedisplayID[])Enum.GetValues(typeof(OptionOutframedisplayID))) + { + if (optionOutframedisplayID.IsDefault()) + { + return optionOutframedisplayID; + } + } + return OptionOutframedisplayID.Invalid; + } + + // Token: 0x06004344 RID: 17220 RVA: 0x00177B90 File Offset: 0x00176D90 + public static OptionDispjudgeID GetDefault(this OptionDispjudgeID self) + { + foreach (OptionDispjudgeID optionDispjudgeID in (OptionDispjudgeID[])Enum.GetValues(typeof(OptionDispjudgeID))) + { + if (optionDispjudgeID.IsDefault()) + { + return optionDispjudgeID; + } + } + return OptionDispjudgeID.Invalid; + } + + // Token: 0x06004345 RID: 17221 RVA: 0x00177BD0 File Offset: 0x00176DD0 + public static OptionMirrorID GetDefault(this OptionMirrorID self) + { + foreach (OptionMirrorID optionMirrorID in (OptionMirrorID[])Enum.GetValues(typeof(OptionMirrorID))) + { + if (optionMirrorID.IsDefault()) + { + return optionMirrorID; + } + } + return OptionMirrorID.Invalid; + } + + // Token: 0x06004346 RID: 17222 RVA: 0x00177C10 File Offset: 0x00176E10 + public static OptionTrackskipID GetDefault(this OptionTrackskipID self) + { + foreach (OptionTrackskipID optionTrackskipID in (OptionTrackskipID[])Enum.GetValues(typeof(OptionTrackskipID))) + { + if (optionTrackskipID.IsDefault()) + { + return optionTrackskipID; + } + } + return OptionTrackskipID.Invalid; + } + + // Token: 0x06004347 RID: 17223 RVA: 0x00177C50 File Offset: 0x00176E50 + public static OptionJudgetimingID GetDefault(this OptionJudgetimingID self) + { + foreach (OptionJudgetimingID optionJudgetimingID in (OptionJudgetimingID[])Enum.GetValues(typeof(OptionJudgetimingID))) + { + if (optionJudgetimingID.IsDefault()) + { + return optionJudgetimingID; + } + } + return OptionJudgetimingID.Invalid; + } + + // Token: 0x06004348 RID: 17224 RVA: 0x00177C90 File Offset: 0x00176E90 + public static OptionBreakseID GetDefault(this OptionBreakseID self) + { + foreach (OptionBreakseID optionBreakseID in (OptionBreakseID[])Enum.GetValues(typeof(OptionBreakseID))) + { + if (optionBreakseID.IsDefault()) + { + return optionBreakseID; + } + } + return OptionBreakseID.Invalid; + } + + // Token: 0x06004349 RID: 17225 RVA: 0x00177CD0 File Offset: 0x00176ED0 + public static OptionSlideseID GetDefault(this OptionSlideseID self) + { + foreach (OptionSlideseID optionSlideseID in (OptionSlideseID[])Enum.GetValues(typeof(OptionSlideseID))) + { + if (optionSlideseID.IsDefault()) + { + return optionSlideseID; + } + } + return OptionSlideseID.Invalid; + } + + // Token: 0x0600434A RID: 17226 RVA: 0x00177D10 File Offset: 0x00176F10 + public static OptionExseID GetDefault(this OptionExseID self) + { + foreach (OptionExseID optionExseID in (OptionExseID[])Enum.GetValues(typeof(OptionExseID))) + { + if (optionExseID.IsDefault()) + { + return optionExseID; + } + } + return OptionExseID.Invalid; + } + + // Token: 0x0600434B RID: 17227 RVA: 0x00177D50 File Offset: 0x00176F50 + public static OptionCriticalID GetDefault(this OptionCriticalID self) + { + foreach (OptionCriticalID optionCriticalID in (OptionCriticalID[])Enum.GetValues(typeof(OptionCriticalID))) + { + if (optionCriticalID.IsDefault()) + { + return optionCriticalID; + } + } + return OptionCriticalID.Invalid; + } + + // Token: 0x0600434C RID: 17228 RVA: 0x00177D90 File Offset: 0x00176F90 + public static OptionMoviebrightnessID GetDefault(this OptionMoviebrightnessID self) + { + foreach (OptionMoviebrightnessID optionMoviebrightnessID in (OptionMoviebrightnessID[])Enum.GetValues(typeof(OptionMoviebrightnessID))) + { + if (optionMoviebrightnessID.IsDefault()) + { + return optionMoviebrightnessID; + } + } + return OptionMoviebrightnessID.Invalid; + } + + // Token: 0x0600434D RID: 17229 RVA: 0x00177DD0 File Offset: 0x00176FD0 + public static OptionNotesizeID GetDefault(this OptionNotesizeID self) + { + foreach (OptionNotesizeID optionNotesizeID in (OptionNotesizeID[])Enum.GetValues(typeof(OptionNotesizeID))) + { + if (optionNotesizeID.IsDefault()) + { + return optionNotesizeID; + } + } + return OptionNotesizeID.Invalid; + } + + // Token: 0x0600434E RID: 17230 RVA: 0x00177E10 File Offset: 0x00177010 + public static OptionSlidesizeID GetDefault(this OptionSlidesizeID self) + { + foreach (OptionSlidesizeID optionSlidesizeID in (OptionSlidesizeID[])Enum.GetValues(typeof(OptionSlidesizeID))) + { + if (optionSlidesizeID.IsDefault()) + { + return optionSlidesizeID; + } + } + return OptionSlidesizeID.Invalid; + } + + // Token: 0x0600434F RID: 17231 RVA: 0x00177E50 File Offset: 0x00177050 + public static OptionTouchsizeID GetDefault(this OptionTouchsizeID self) + { + foreach (OptionTouchsizeID optionTouchsizeID in (OptionTouchsizeID[])Enum.GetValues(typeof(OptionTouchsizeID))) + { + if (optionTouchsizeID.IsDefault()) + { + return optionTouchsizeID; + } + } + return OptionTouchsizeID.Invalid; + } + + // Token: 0x06004350 RID: 17232 RVA: 0x00177E90 File Offset: 0x00177090 + public static OptionDispchainID GetDefault(this OptionDispchainID self) + { + foreach (OptionDispchainID optionDispchainID in (OptionDispchainID[])Enum.GetValues(typeof(OptionDispchainID))) + { + if (optionDispchainID.IsDefault()) + { + return optionDispchainID; + } + } + return OptionDispchainID.Invalid; + } + + // Token: 0x06004351 RID: 17233 RVA: 0x00177ED0 File Offset: 0x001770D0 + public static OptionGametapID GetDefault(this OptionGametapID self) + { + foreach (OptionGametapID optionGametapID in (OptionGametapID[])Enum.GetValues(typeof(OptionGametapID))) + { + if (optionGametapID.IsDefault()) + { + return optionGametapID; + } + } + return OptionGametapID.Invalid; + } + + // Token: 0x06004352 RID: 17234 RVA: 0x00177F10 File Offset: 0x00177110 + public static OptionGameholdID GetDefault(this OptionGameholdID self) + { + foreach (OptionGameholdID optionGameholdID in (OptionGameholdID[])Enum.GetValues(typeof(OptionGameholdID))) + { + if (optionGameholdID.IsDefault()) + { + return optionGameholdID; + } + } + return OptionGameholdID.Invalid; + } + + // Token: 0x06004353 RID: 17235 RVA: 0x00177F50 File Offset: 0x00177150 + public static OptionGameslideID GetDefault(this OptionGameslideID self) + { + foreach (OptionGameslideID optionGameslideID in (OptionGameslideID[])Enum.GetValues(typeof(OptionGameslideID))) + { + if (optionGameslideID.IsDefault()) + { + return optionGameslideID; + } + } + return OptionGameslideID.Invalid; + } + + // Token: 0x06004354 RID: 17236 RVA: 0x00177F90 File Offset: 0x00177190 + public static OptionDisprateID GetDefault(this OptionDisprateID self) + { + foreach (OptionDisprateID optionDisprateID in (OptionDisprateID[])Enum.GetValues(typeof(OptionDisprateID))) + { + if (optionDisprateID.IsDefault()) + { + return optionDisprateID; + } + } + return OptionDisprateID.Invalid; + } + + // Token: 0x06004355 RID: 17237 RVA: 0x00177FD0 File Offset: 0x001771D0 + public static OptionStartypeID GetDefault(this OptionStartypeID self) + { + foreach (OptionStartypeID optionStartypeID in (OptionStartypeID[])Enum.GetValues(typeof(OptionStartypeID))) + { + if (optionStartypeID.IsDefault()) + { + return optionStartypeID; + } + } + return OptionStartypeID.Invalid; + } + + // Token: 0x06004356 RID: 17238 RVA: 0x00178010 File Offset: 0x00177210 + public static OptionDispbarlineID GetDefault(this OptionDispbarlineID self) + { + foreach (OptionDispbarlineID optionDispbarlineID in (OptionDispbarlineID[])Enum.GetValues(typeof(OptionDispbarlineID))) + { + if (optionDispbarlineID.IsDefault()) + { + return optionDispbarlineID; + } + } + return OptionDispbarlineID.Invalid; + } + + // Token: 0x06004357 RID: 17239 RVA: 0x00178050 File Offset: 0x00177250 + public static OptionDispjudgeposID GetDefault(this OptionDispjudgeposID self) + { + foreach (OptionDispjudgeposID optionDispjudgeposID in (OptionDispjudgeposID[])Enum.GetValues(typeof(OptionDispjudgeposID))) + { + if (optionDispjudgeposID.IsDefault()) + { + return optionDispjudgeposID; + } + } + return OptionDispjudgeposID.Invalid; + } + + // Token: 0x06004358 RID: 17240 RVA: 0x00178090 File Offset: 0x00177290 + public static OptionDispjudgetouchposID GetDefault(this OptionDispjudgetouchposID self) + { + foreach (OptionDispjudgetouchposID optionDispjudgetouchposID in (OptionDispjudgetouchposID[])Enum.GetValues(typeof(OptionDispjudgetouchposID))) + { + if (optionDispjudgetouchposID.IsDefault()) + { + return optionDispjudgetouchposID; + } + } + return OptionDispjudgetouchposID.Invalid; + } + + // Token: 0x06004359 RID: 17241 RVA: 0x001780D0 File Offset: 0x001772D0 + public static OptionToucheffectID GetDefault(this OptionToucheffectID self) + { + foreach (OptionToucheffectID optionToucheffectID in (OptionToucheffectID[])Enum.GetValues(typeof(OptionToucheffectID))) + { + if (optionToucheffectID.IsDefault()) + { + return optionToucheffectID; + } + } + return OptionToucheffectID.Invalid; + } + + // Token: 0x0600435A RID: 17242 RVA: 0x00178110 File Offset: 0x00177310 + public static OptionSubmonitorID GetDefault(this OptionSubmonitorID self) + { + foreach (OptionSubmonitorID optionSubmonitorID in (OptionSubmonitorID[])Enum.GetValues(typeof(OptionSubmonitorID))) + { + if (optionSubmonitorID.IsDefault()) + { + return optionSubmonitorID; + } + } + return OptionSubmonitorID.Invalid; + } + + // Token: 0x0600435B RID: 17243 RVA: 0x00178150 File Offset: 0x00177350 + public static OptionSubmonAchiveID GetDefault(this OptionSubmonAchiveID self) + { + foreach (OptionSubmonAchiveID optionSubmonAchiveID in (OptionSubmonAchiveID[])Enum.GetValues(typeof(OptionSubmonAchiveID))) + { + if (optionSubmonAchiveID.IsDefault()) + { + return optionSubmonAchiveID; + } + } + return OptionSubmonAchiveID.Invalid; + } + + // Token: 0x0600435C RID: 17244 RVA: 0x00178190 File Offset: 0x00177390 + public static OptionAppealID GetDefault(this OptionAppealID self) + { + foreach (OptionAppealID optionAppealID in (OptionAppealID[])Enum.GetValues(typeof(OptionAppealID))) + { + if (optionAppealID.IsDefault()) + { + return optionAppealID; + } + } + return OptionAppealID.Invalid; + } + + // Token: 0x0600435D RID: 17245 RVA: 0x001781D0 File Offset: 0x001773D0 + public static OptionHeadphonevolumeID GetDefault(this OptionHeadphonevolumeID self) + { + foreach (OptionHeadphonevolumeID optionHeadphonevolumeID in (OptionHeadphonevolumeID[])Enum.GetValues(typeof(OptionHeadphonevolumeID))) + { + if (optionHeadphonevolumeID.IsDefault()) + { + return optionHeadphonevolumeID; + } + } + return OptionHeadphonevolumeID.Invalid; + } + + // Token: 0x0600435E RID: 17246 RVA: 0x0017820F File Offset: 0x0017740F + public static Cue GetBreakGoodCue(this OptionBreakseID self) + { + return (Cue)Enum.Parse(typeof(Cue), self.GetSeGoodEnum()); + } + + // Token: 0x0600435F RID: 17247 RVA: 0x0017822B File Offset: 0x0017742B + public static Cue GetBreakBadCue(this OptionBreakseID self) + { + return (Cue)Enum.Parse(typeof(Cue), self.GetSeBadEnum()); + } + + // Token: 0x06004360 RID: 17248 RVA: 0x00178247 File Offset: 0x00177447 + public static Cue GetSlideCue(this OptionSlideseID self) + { + return (Cue)Enum.Parse(typeof(Cue), self.GetSeEnum()); + } + + // Token: 0x06004361 RID: 17249 RVA: 0x00178263 File Offset: 0x00177463 + public static Cue GetExCue(this OptionExseID self) + { + return (Cue)Enum.Parse(typeof(Cue), self.GetSeEnum()); + } + + // Token: 0x06004362 RID: 17250 RVA: 0x0017827F File Offset: 0x0017747F + public static Cue GetTapCriticalCue(this OptionTapSuccessSeID self) + { + return (Cue)Enum.Parse(typeof(Cue), self.GetSeEnumCritical()); + } + + // Token: 0x06004363 RID: 17251 RVA: 0x0017829B File Offset: 0x0017749B + public static Cue GetTapPerfectCue(this OptionTapSuccessSeID self) + { + return (Cue)Enum.Parse(typeof(Cue), self.GetSeEnumPerfect()); + } + + // Token: 0x06004364 RID: 17252 RVA: 0x001782B7 File Offset: 0x001774B7 + public static Cue GetTapGreatCue(this OptionTapSuccessSeID self) + { + return (Cue)Enum.Parse(typeof(Cue), self.GetSeEnumGreat()); + } + + // Token: 0x06004365 RID: 17253 RVA: 0x001782D3 File Offset: 0x001774D3 + public static Cue GetTapGoodCue(this OptionTapSuccessSeID self) + { + return (Cue)Enum.Parse(typeof(Cue), self.GetSeEnumGood()); + } + } +} diff --git a/Assembly-CSharp/DB/DeluxcorerankrateID.cs b/Assembly-CSharp/DB/DeluxcorerankrateID.cs new file mode 100644 index 0000000..59470aa --- /dev/null +++ b/Assembly-CSharp/DB/DeluxcorerankrateID.cs @@ -0,0 +1,27 @@ +using System; + +namespace DB +{ + // Token: 0x0200074E RID: 1870 + public enum DeluxcorerankrateID + { + // Token: 0x04004FBC RID: 20412 + Rank_00, + // Token: 0x04004FBD RID: 20413 + Rank_01, + // Token: 0x04004FBE RID: 20414 + Rank_02, + // Token: 0x04004FBF RID: 20415 + Rank_03, + // Token: 0x04004FC0 RID: 20416 + Rank_04, + // Token: 0x04004FC1 RID: 20417 + Rank_05, + // Token: 0x04004FC2 RID: 20418 + Begin = 0, + // Token: 0x04004FC3 RID: 20419 + End = 6, + // Token: 0x04004FC4 RID: 20420 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/DeluxcorerankrateIDEnum.cs b/Assembly-CSharp/DB/DeluxcorerankrateIDEnum.cs new file mode 100644 index 0000000..ff56bf9 --- /dev/null +++ b/Assembly-CSharp/DB/DeluxcorerankrateIDEnum.cs @@ -0,0 +1,110 @@ +using System; + +namespace DB +{ + // Token: 0x02000750 RID: 1872 + public static class DeluxcorerankrateIDEnum + { + // Token: 0x06004368 RID: 17256 RVA: 0x00178314 File Offset: 0x00177514 + public static bool IsActive(this DeluxcorerankrateID self) + { + return self >= DeluxcorerankrateID.Rank_00 && self < DeluxcorerankrateID.End && self > DeluxcorerankrateID.Rank_00; + } + + // Token: 0x06004369 RID: 17257 RVA: 0x00130760 File Offset: 0x0012F960 + public static bool IsValid(this DeluxcorerankrateID self) + { + return self >= DeluxcorerankrateID.Rank_00 && self < DeluxcorerankrateID.End; + } + + // Token: 0x0600436A RID: 17258 RVA: 0x00178324 File Offset: 0x00177524 + public static void Clamp(this DeluxcorerankrateID self) + { + if (self < DeluxcorerankrateID.Rank_00) + { + self = DeluxcorerankrateID.Rank_00; + return; + } + if (self >= (DeluxcorerankrateID)DeluxcorerankrateIDEnum.GetEnd()) + { + self = (DeluxcorerankrateID)DeluxcorerankrateIDEnum.GetEnd(); + } + } + + // Token: 0x0600436B RID: 17259 RVA: 0x0017833D File Offset: 0x0017753D + public static int GetEnd(this DeluxcorerankrateID self) + { + return DeluxcorerankrateIDEnum.GetEnd(); + } + + // Token: 0x0600436C RID: 17260 RVA: 0x00178344 File Offset: 0x00177544 + public static DeluxcorerankrateID FindID(string enumName) + { + for (DeluxcorerankrateID deluxcorerankrateID = DeluxcorerankrateID.Rank_00; deluxcorerankrateID < DeluxcorerankrateID.End; deluxcorerankrateID++) + { + if (deluxcorerankrateID.GetEnumName() == enumName) + { + return deluxcorerankrateID; + } + } + return DeluxcorerankrateID.Invalid; + } + + // Token: 0x0600436D RID: 17261 RVA: 0x0017836E File Offset: 0x0017756E + public static int GetEnd() + { + return DeluxcorerankrateIDEnum.records.Length; + } + + // Token: 0x0600436E RID: 17262 RVA: 0x00178377 File Offset: 0x00177577 + public static int GetEnumValue(this DeluxcorerankrateID self) + { + if (self.IsValid()) + { + return DeluxcorerankrateIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600436F RID: 17263 RVA: 0x0017838F File Offset: 0x0017758F + public static string GetEnumName(this DeluxcorerankrateID self) + { + if (self.IsValid()) + { + return DeluxcorerankrateIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004370 RID: 17264 RVA: 0x001783AB File Offset: 0x001775AB + public static string GetName(this DeluxcorerankrateID self) + { + if (self.IsValid()) + { + return DeluxcorerankrateIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004371 RID: 17265 RVA: 0x001783C7 File Offset: 0x001775C7 + public static int GetAchieve(this DeluxcorerankrateID self) + { + if (self.IsValid()) + { + return DeluxcorerankrateIDEnum.records[(int)self].Achieve; + } + return 0; + } + + // Token: 0x04004FC9 RID: 20425 + private static readonly DeluxcorerankrateTableRecord[] records = new DeluxcorerankrateTableRecord[] + { + new DeluxcorerankrateTableRecord(0, "Rank_00", "Rank_00", 0), + new DeluxcorerankrateTableRecord(1, "Rank_01", "Rank_01", 85), + new DeluxcorerankrateTableRecord(2, "Rank_02", "Rank_02", 90), + new DeluxcorerankrateTableRecord(3, "Rank_03", "Rank_03", 93), + new DeluxcorerankrateTableRecord(4, "Rank_04", "Rank_04", 95), + new DeluxcorerankrateTableRecord(5, "Rank_05", "Rank_05", 97) + }; + } +} diff --git a/Assembly-CSharp/DB/DeluxcorerankrateTableRecord.cs b/Assembly-CSharp/DB/DeluxcorerankrateTableRecord.cs new file mode 100644 index 0000000..88f9cdb --- /dev/null +++ b/Assembly-CSharp/DB/DeluxcorerankrateTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x0200074F RID: 1871 + public class DeluxcorerankrateTableRecord + { + // Token: 0x06004366 RID: 17254 RVA: 0x00003560 File Offset: 0x00002760 + public DeluxcorerankrateTableRecord() + { + } + + // Token: 0x06004367 RID: 17255 RVA: 0x001782EF File Offset: 0x001774EF + public DeluxcorerankrateTableRecord(int EnumValue, string EnumName, string Name, int Achieve) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.Achieve = Achieve; + } + + // Token: 0x04004FC5 RID: 20421 + public int EnumValue; + + // Token: 0x04004FC6 RID: 20422 + public string EnumName; + + // Token: 0x04004FC7 RID: 20423 + public string Name; + + // Token: 0x04004FC8 RID: 20424 + public int Achieve; + } +} diff --git a/Assembly-CSharp/DB/ErrorID.cs b/Assembly-CSharp/DB/ErrorID.cs new file mode 100644 index 0000000..04ce83a --- /dev/null +++ b/Assembly-CSharp/DB/ErrorID.cs @@ -0,0 +1,35 @@ +using System; + +namespace DB +{ + // Token: 0x02000751 RID: 1873 + public enum ErrorID + { + // Token: 0x04004FCB RID: 20427 + LedBoard_Left_InitError, + // Token: 0x04004FCC RID: 20428 + LedBoard_Left_Timeout, + // Token: 0x04004FCD RID: 20429 + LedBoard_Left_ResponseError, + // Token: 0x04004FCE RID: 20430 + LedBoard_Left_FirmError, + // Token: 0x04004FCF RID: 20431 + LedBoard_Left_FirmVerError, + // Token: 0x04004FD0 RID: 20432 + LedBoard_Right_InitError, + // Token: 0x04004FD1 RID: 20433 + LedBoard_Right_Timeout, + // Token: 0x04004FD2 RID: 20434 + LedBoard_Right_ResponseError, + // Token: 0x04004FD3 RID: 20435 + LedBoard_Right_FirmError, + // Token: 0x04004FD4 RID: 20436 + LedBoard_Right_FirmVerError, + // Token: 0x04004FD5 RID: 20437 + Begin = 0, + // Token: 0x04004FD6 RID: 20438 + End = 10, + // Token: 0x04004FD7 RID: 20439 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/ErrorIDEnum.cs b/Assembly-CSharp/DB/ErrorIDEnum.cs new file mode 100644 index 0000000..3e13bf7 --- /dev/null +++ b/Assembly-CSharp/DB/ErrorIDEnum.cs @@ -0,0 +1,126 @@ +using System; + +namespace DB +{ + // Token: 0x02000753 RID: 1875 + public static class ErrorIDEnum + { + // Token: 0x06004375 RID: 17269 RVA: 0x001784B0 File Offset: 0x001776B0 + public static bool IsActive(this ErrorID self) + { + return self >= ErrorID.LedBoard_Left_InitError && self < ErrorID.End && self > ErrorID.LedBoard_Left_InitError; + } + + // Token: 0x06004376 RID: 17270 RVA: 0x001784C1 File Offset: 0x001776C1 + public static bool IsValid(this ErrorID self) + { + return self >= ErrorID.LedBoard_Left_InitError && self < ErrorID.End; + } + + // Token: 0x06004377 RID: 17271 RVA: 0x001784CE File Offset: 0x001776CE + public static void Clamp(this ErrorID self) + { + if (self < ErrorID.LedBoard_Left_InitError) + { + self = ErrorID.LedBoard_Left_InitError; + return; + } + if (self >= (ErrorID)ErrorIDEnum.GetEnd()) + { + self = (ErrorID)ErrorIDEnum.GetEnd(); + } + } + + // Token: 0x06004378 RID: 17272 RVA: 0x001784E7 File Offset: 0x001776E7 + public static int GetEnd(this ErrorID self) + { + return ErrorIDEnum.GetEnd(); + } + + // Token: 0x06004379 RID: 17273 RVA: 0x001784F0 File Offset: 0x001776F0 + public static ErrorID FindID(string enumName) + { + for (ErrorID errorID = ErrorID.LedBoard_Left_InitError; errorID < ErrorID.End; errorID++) + { + if (errorID.GetEnumName() == enumName) + { + return errorID; + } + } + return ErrorID.Invalid; + } + + // Token: 0x0600437A RID: 17274 RVA: 0x0017851B File Offset: 0x0017771B + public static int GetEnd() + { + return ErrorIDEnum.records.Length; + } + + // Token: 0x0600437B RID: 17275 RVA: 0x00178524 File Offset: 0x00177724 + public static int GetEnumValue(this ErrorID self) + { + if (self.IsValid()) + { + return ErrorIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600437C RID: 17276 RVA: 0x0017853C File Offset: 0x0017773C + public static string GetEnumName(this ErrorID self) + { + if (self.IsValid()) + { + return ErrorIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600437D RID: 17277 RVA: 0x00178558 File Offset: 0x00177758 + public static string GetName(this ErrorID self) + { + if (self.IsValid()) + { + return ErrorIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600437E RID: 17278 RVA: 0x00178574 File Offset: 0x00177774 + public static bool IsWarning(this ErrorID self) + { + return self.IsValid() && ErrorIDEnum.records[(int)self].isWarning; + } + + // Token: 0x0600437F RID: 17279 RVA: 0x0017858C File Offset: 0x0017778C + public static bool IsFirmUpdate(this ErrorID self) + { + return self.IsValid() && ErrorIDEnum.records[(int)self].isFirmUpdate; + } + + // Token: 0x06004380 RID: 17280 RVA: 0x001785A4 File Offset: 0x001777A4 + public static int GetCode(this ErrorID self) + { + if (self.IsValid()) + { + return ErrorIDEnum.records[(int)self].Code; + } + return 0; + } + + // Token: 0x04004FDE RID: 20446 + private static readonly ErrorTableRecord[] records = new ErrorTableRecord[] + { + new ErrorTableRecord(0, "LedBoard_Left_InitError", "LedBoard_Left_InitError", 1, 0, 0), + new ErrorTableRecord(1, "LedBoard_Left_Timeout", "LedBoard_Left_Timeout", 1, 0, 0), + new ErrorTableRecord(2, "LedBoard_Left_ResponseError", "LedBoard_Left_ResponseError", 1, 0, 0), + new ErrorTableRecord(3, "LedBoard_Left_FirmError", "LedBoard_Left_FirmError", 0, 1, 0), + new ErrorTableRecord(4, "LedBoard_Left_FirmVerError", "LedBoard_Left_FirmVerError", 0, 1, 0), + new ErrorTableRecord(5, "LedBoard_Right_InitError", "LedBoard_Right_InitError", 1, 0, 0), + new ErrorTableRecord(6, "LedBoard_Right_Timeout", "LedBoard_Right_Timeout", 1, 0, 0), + new ErrorTableRecord(7, "LedBoard_Right_ResponseError", "LedBoard_Right_ResponseError", 1, 0, 0), + new ErrorTableRecord(8, "LedBoard_Right_FirmError", "LedBoard_Right_FirmError", 0, 1, 0), + new ErrorTableRecord(9, "LedBoard_Right_FirmVerError", "LedBoard_Right_FirmVerError", 0, 1, 0) + }; + } +} diff --git a/Assembly-CSharp/DB/ErrorTableRecord.cs b/Assembly-CSharp/DB/ErrorTableRecord.cs new file mode 100644 index 0000000..1e4ef3b --- /dev/null +++ b/Assembly-CSharp/DB/ErrorTableRecord.cs @@ -0,0 +1,42 @@ +using System; + +namespace DB +{ + // Token: 0x02000752 RID: 1874 + public class ErrorTableRecord + { + // Token: 0x06004373 RID: 17267 RVA: 0x00003560 File Offset: 0x00002760 + public ErrorTableRecord() + { + } + + // Token: 0x06004374 RID: 17268 RVA: 0x00178475 File Offset: 0x00177675 + public ErrorTableRecord(int EnumValue, string EnumName, string Name, int isWarning, int isFirmUpdate, int Code) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.isWarning = isWarning != 0; + this.isFirmUpdate = isFirmUpdate != 0; + this.Code = Code; + } + + // Token: 0x04004FD8 RID: 20440 + public int EnumValue; + + // Token: 0x04004FD9 RID: 20441 + public string EnumName; + + // Token: 0x04004FDA RID: 20442 + public string Name; + + // Token: 0x04004FDB RID: 20443 + public bool isWarning; + + // Token: 0x04004FDC RID: 20444 + public bool isFirmUpdate; + + // Token: 0x04004FDD RID: 20445 + public int Code; + } +} diff --git a/Assembly-CSharp/DB/EventModeMusicCountID.cs b/Assembly-CSharp/DB/EventModeMusicCountID.cs new file mode 100644 index 0000000..85659ff --- /dev/null +++ b/Assembly-CSharp/DB/EventModeMusicCountID.cs @@ -0,0 +1,23 @@ +using System; + +namespace DB +{ + // Token: 0x02000754 RID: 1876 + public enum EventModeMusicCountID + { + // Token: 0x04004FE0 RID: 20448 + _1, + // Token: 0x04004FE1 RID: 20449 + _2, + // Token: 0x04004FE2 RID: 20450 + _3, + // Token: 0x04004FE3 RID: 20451 + _4, + // Token: 0x04004FE4 RID: 20452 + Begin = 0, + // Token: 0x04004FE5 RID: 20453 + End = 4, + // Token: 0x04004FE6 RID: 20454 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/EventModeMusicCountIDEnum.cs b/Assembly-CSharp/DB/EventModeMusicCountIDEnum.cs new file mode 100644 index 0000000..c5612c1 --- /dev/null +++ b/Assembly-CSharp/DB/EventModeMusicCountIDEnum.cs @@ -0,0 +1,108 @@ +using System; + +namespace DB +{ + // Token: 0x02000756 RID: 1878 + public static class EventModeMusicCountIDEnum + { + // Token: 0x06004384 RID: 17284 RVA: 0x00173DA6 File Offset: 0x00172FA6 + public static bool IsActive(this EventModeMusicCountID self) + { + return self >= EventModeMusicCountID._1 && self < EventModeMusicCountID.End && self > EventModeMusicCountID._1; + } + + // Token: 0x06004385 RID: 17285 RVA: 0x00173DB6 File Offset: 0x00172FB6 + public static bool IsValid(this EventModeMusicCountID self) + { + return self >= EventModeMusicCountID._1 && self < EventModeMusicCountID.End; + } + + // Token: 0x06004386 RID: 17286 RVA: 0x001786D8 File Offset: 0x001778D8 + public static void Clamp(this EventModeMusicCountID self) + { + if (self < EventModeMusicCountID._1) + { + self = EventModeMusicCountID._1; + return; + } + if (self >= (EventModeMusicCountID)EventModeMusicCountIDEnum.GetEnd()) + { + self = (EventModeMusicCountID)EventModeMusicCountIDEnum.GetEnd(); + } + } + + // Token: 0x06004387 RID: 17287 RVA: 0x001786F1 File Offset: 0x001778F1 + public static int GetEnd(this EventModeMusicCountID self) + { + return EventModeMusicCountIDEnum.GetEnd(); + } + + // Token: 0x06004388 RID: 17288 RVA: 0x001786F8 File Offset: 0x001778F8 + public static EventModeMusicCountID FindID(string enumName) + { + for (EventModeMusicCountID eventModeMusicCountID = EventModeMusicCountID._1; eventModeMusicCountID < EventModeMusicCountID.End; eventModeMusicCountID++) + { + if (eventModeMusicCountID.GetEnumName() == enumName) + { + return eventModeMusicCountID; + } + } + return EventModeMusicCountID.Invalid; + } + + // Token: 0x06004389 RID: 17289 RVA: 0x00178722 File Offset: 0x00177922 + public static int GetEnd() + { + return EventModeMusicCountIDEnum.records.Length; + } + + // Token: 0x0600438A RID: 17290 RVA: 0x0017872B File Offset: 0x0017792B + public static int GetEnumValue(this EventModeMusicCountID self) + { + if (self.IsValid()) + { + return EventModeMusicCountIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600438B RID: 17291 RVA: 0x00178743 File Offset: 0x00177943 + public static string GetEnumName(this EventModeMusicCountID self) + { + if (self.IsValid()) + { + return EventModeMusicCountIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600438C RID: 17292 RVA: 0x0017875F File Offset: 0x0017795F + public static string GetName(this EventModeMusicCountID self) + { + if (self.IsValid()) + { + return EventModeMusicCountIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600438D RID: 17293 RVA: 0x0017877B File Offset: 0x0017797B + public static int GetTrack(this EventModeMusicCountID self) + { + if (self.IsValid()) + { + return EventModeMusicCountIDEnum.records[(int)self].Track; + } + return 0; + } + + // Token: 0x04004FEB RID: 20459 + private static readonly EventModeMusicCountTableRecord[] records = new EventModeMusicCountTableRecord[] + { + new EventModeMusicCountTableRecord(0, "_1", "1", 1), + new EventModeMusicCountTableRecord(1, "_2", "2", 2), + new EventModeMusicCountTableRecord(2, "_3", "3", 3), + new EventModeMusicCountTableRecord(3, "_4", "4", 4) + }; + } +} diff --git a/Assembly-CSharp/DB/EventModeMusicCountTableRecord.cs b/Assembly-CSharp/DB/EventModeMusicCountTableRecord.cs new file mode 100644 index 0000000..2e03203 --- /dev/null +++ b/Assembly-CSharp/DB/EventModeMusicCountTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000755 RID: 1877 + public class EventModeMusicCountTableRecord + { + // Token: 0x06004382 RID: 17282 RVA: 0x00003560 File Offset: 0x00002760 + public EventModeMusicCountTableRecord() + { + } + + // Token: 0x06004383 RID: 17283 RVA: 0x001786B3 File Offset: 0x001778B3 + public EventModeMusicCountTableRecord(int EnumValue, string EnumName, string Name, int Track) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.Track = Track; + } + + // Token: 0x04004FE7 RID: 20455 + public int EnumValue; + + // Token: 0x04004FE8 RID: 20456 + public string EnumName; + + // Token: 0x04004FE9 RID: 20457 + public string Name; + + // Token: 0x04004FEA RID: 20458 + public int Track; + } +} diff --git a/Assembly-CSharp/DB/ExtendContentBitID.cs b/Assembly-CSharp/DB/ExtendContentBitID.cs new file mode 100644 index 0000000..dc169c2 --- /dev/null +++ b/Assembly-CSharp/DB/ExtendContentBitID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x02000757 RID: 1879 + public enum ExtendContentBitID + { + // Token: 0x04004FED RID: 20461 + PhotoAgree, + // Token: 0x04004FEE RID: 20462 + GotoCodeRead, + // Token: 0x04004FEF RID: 20463 + GotoCharaSelect, + // Token: 0x04004FF0 RID: 20464 + GotoIconPhotoShoot, + // Token: 0x04004FF1 RID: 20465 + CharacterSortDescending, + // Token: 0x04004FF2 RID: 20466 + Begin = 0, + // Token: 0x04004FF3 RID: 20467 + End = 5, + // Token: 0x04004FF4 RID: 20468 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/ExtendContentBitIDEnum.cs b/Assembly-CSharp/DB/ExtendContentBitIDEnum.cs new file mode 100644 index 0000000..ece4c1a --- /dev/null +++ b/Assembly-CSharp/DB/ExtendContentBitIDEnum.cs @@ -0,0 +1,99 @@ +using System; + +namespace DB +{ + // Token: 0x02000759 RID: 1881 + public static class ExtendContentBitIDEnum + { + // Token: 0x06004391 RID: 17297 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this ExtendContentBitID self) + { + return self >= ExtendContentBitID.PhotoAgree && self < ExtendContentBitID.End && self > ExtendContentBitID.PhotoAgree; + } + + // Token: 0x06004392 RID: 17298 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this ExtendContentBitID self) + { + return self >= ExtendContentBitID.PhotoAgree && self < ExtendContentBitID.End; + } + + // Token: 0x06004393 RID: 17299 RVA: 0x00178819 File Offset: 0x00177A19 + public static void Clamp(this ExtendContentBitID self) + { + if (self < ExtendContentBitID.PhotoAgree) + { + self = ExtendContentBitID.PhotoAgree; + return; + } + if (self >= (ExtendContentBitID)ExtendContentBitIDEnum.GetEnd()) + { + self = (ExtendContentBitID)ExtendContentBitIDEnum.GetEnd(); + } + } + + // Token: 0x06004394 RID: 17300 RVA: 0x00178832 File Offset: 0x00177A32 + public static int GetEnd(this ExtendContentBitID self) + { + return ExtendContentBitIDEnum.GetEnd(); + } + + // Token: 0x06004395 RID: 17301 RVA: 0x0017883C File Offset: 0x00177A3C + public static ExtendContentBitID FindID(string enumName) + { + for (ExtendContentBitID extendContentBitID = ExtendContentBitID.PhotoAgree; extendContentBitID < ExtendContentBitID.End; extendContentBitID++) + { + if (extendContentBitID.GetEnumName() == enumName) + { + return extendContentBitID; + } + } + return ExtendContentBitID.Invalid; + } + + // Token: 0x06004396 RID: 17302 RVA: 0x00178866 File Offset: 0x00177A66 + public static int GetEnd() + { + return ExtendContentBitIDEnum.records.Length; + } + + // Token: 0x06004397 RID: 17303 RVA: 0x0017886F File Offset: 0x00177A6F + public static int GetEnumValue(this ExtendContentBitID self) + { + if (self.IsValid()) + { + return ExtendContentBitIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004398 RID: 17304 RVA: 0x00178887 File Offset: 0x00177A87 + public static string GetEnumName(this ExtendContentBitID self) + { + if (self.IsValid()) + { + return ExtendContentBitIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004399 RID: 17305 RVA: 0x001788A3 File Offset: 0x00177AA3 + public static string GetName(this ExtendContentBitID self) + { + if (self.IsValid()) + { + return ExtendContentBitIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04004FF8 RID: 20472 + private static readonly ExtendContentBitTableRecord[] records = new ExtendContentBitTableRecord[] + { + new ExtendContentBitTableRecord(0, "PhotoAgree", "写真撮影許可フラグ"), + new ExtendContentBitTableRecord(1, "GotoCodeRead", "カード読み込みシーケンス移行フラグ"), + new ExtendContentBitTableRecord(2, "GotoCharaSelect", "キャラセレクトシーケンス移行フラグ"), + new ExtendContentBitTableRecord(3, "GotoIconPhotoShoot", "アイコン撮影シーケンス移行フラグ"), + new ExtendContentBitTableRecord(4, "CharacterSortDescending", "キャラクターソートレベル降順フラグ") + }; + } +} diff --git a/Assembly-CSharp/DB/ExtendContentBitTableRecord.cs b/Assembly-CSharp/DB/ExtendContentBitTableRecord.cs new file mode 100644 index 0000000..9ea1ada --- /dev/null +++ b/Assembly-CSharp/DB/ExtendContentBitTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000758 RID: 1880 + public class ExtendContentBitTableRecord + { + // Token: 0x0600438F RID: 17295 RVA: 0x00003560 File Offset: 0x00002760 + public ExtendContentBitTableRecord() + { + } + + // Token: 0x06004390 RID: 17296 RVA: 0x001787FC File Offset: 0x001779FC + public ExtendContentBitTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04004FF5 RID: 20469 + public int EnumValue; + + // Token: 0x04004FF6 RID: 20470 + public string EnumName; + + // Token: 0x04004FF7 RID: 20471 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/HardInitializeTextID.cs b/Assembly-CSharp/DB/HardInitializeTextID.cs new file mode 100644 index 0000000..5fa342d --- /dev/null +++ b/Assembly-CSharp/DB/HardInitializeTextID.cs @@ -0,0 +1,39 @@ +using System; + +namespace DB +{ + // Token: 0x0200075A RID: 1882 + public enum HardInitializeTextID + { + // Token: 0x04004FFA RID: 20474 + TouchPanel1P, + // Token: 0x04004FFB RID: 20475 + TouchPanel2P, + // Token: 0x04004FFC RID: 20476 + Led1P, + // Token: 0x04004FFD RID: 20477 + Led2P, + // Token: 0x04004FFE RID: 20478 + Camera, + // Token: 0x04004FFF RID: 20479 + CodeReader1P, + // Token: 0x04005000 RID: 20480 + DataLoad, + // Token: 0x04005001 RID: 20481 + Link, + // Token: 0x04005002 RID: 20482 + DeliveryServer, + // Token: 0x04005003 RID: 20483 + DeliveryClient, + // Token: 0x04005004 RID: 20484 + LinkServer, + // Token: 0x04005005 RID: 20485 + LinkClient, + // Token: 0x04005006 RID: 20486 + Begin = 0, + // Token: 0x04005007 RID: 20487 + End = 12, + // Token: 0x04005008 RID: 20488 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/HardInitializeTextIDEnum.cs b/Assembly-CSharp/DB/HardInitializeTextIDEnum.cs new file mode 100644 index 0000000..a68b712 --- /dev/null +++ b/Assembly-CSharp/DB/HardInitializeTextIDEnum.cs @@ -0,0 +1,106 @@ +using System; + +namespace DB +{ + // Token: 0x0200075C RID: 1884 + public static class HardInitializeTextIDEnum + { + // Token: 0x0600439D RID: 17309 RVA: 0x001748BD File Offset: 0x00173ABD + public static bool IsActive(this HardInitializeTextID self) + { + return self >= HardInitializeTextID.TouchPanel1P && self < HardInitializeTextID.End && self > HardInitializeTextID.TouchPanel1P; + } + + // Token: 0x0600439E RID: 17310 RVA: 0x001748CE File Offset: 0x00173ACE + public static bool IsValid(this HardInitializeTextID self) + { + return self >= HardInitializeTextID.TouchPanel1P && self < HardInitializeTextID.End; + } + + // Token: 0x0600439F RID: 17311 RVA: 0x00178954 File Offset: 0x00177B54 + public static void Clamp(this HardInitializeTextID self) + { + if (self < HardInitializeTextID.TouchPanel1P) + { + self = HardInitializeTextID.TouchPanel1P; + return; + } + if (self >= (HardInitializeTextID)HardInitializeTextIDEnum.GetEnd()) + { + self = (HardInitializeTextID)HardInitializeTextIDEnum.GetEnd(); + } + } + + // Token: 0x060043A0 RID: 17312 RVA: 0x0017896D File Offset: 0x00177B6D + public static int GetEnd(this HardInitializeTextID self) + { + return HardInitializeTextIDEnum.GetEnd(); + } + + // Token: 0x060043A1 RID: 17313 RVA: 0x00178974 File Offset: 0x00177B74 + public static HardInitializeTextID FindID(string enumName) + { + for (HardInitializeTextID hardInitializeTextID = HardInitializeTextID.TouchPanel1P; hardInitializeTextID < HardInitializeTextID.End; hardInitializeTextID++) + { + if (hardInitializeTextID.GetEnumName() == enumName) + { + return hardInitializeTextID; + } + } + return HardInitializeTextID.Invalid; + } + + // Token: 0x060043A2 RID: 17314 RVA: 0x0017899F File Offset: 0x00177B9F + public static int GetEnd() + { + return HardInitializeTextIDEnum.records.Length; + } + + // Token: 0x060043A3 RID: 17315 RVA: 0x001789A8 File Offset: 0x00177BA8 + public static int GetEnumValue(this HardInitializeTextID self) + { + if (self.IsValid()) + { + return HardInitializeTextIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060043A4 RID: 17316 RVA: 0x001789C0 File Offset: 0x00177BC0 + public static string GetEnumName(this HardInitializeTextID self) + { + if (self.IsValid()) + { + return HardInitializeTextIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060043A5 RID: 17317 RVA: 0x001789DC File Offset: 0x00177BDC + public static string GetName(this HardInitializeTextID self) + { + if (self.IsValid()) + { + return HardInitializeTextIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0400500C RID: 20492 + private static readonly HardInitializeTextTableRecord[] records = new HardInitializeTextTableRecord[] + { + new HardInitializeTextTableRecord(0, "TouchPanel1P", "触摸感应器(1P)"), + new HardInitializeTextTableRecord(1, "TouchPanel2P", "触摸感应器(2P)"), + new HardInitializeTextTableRecord(2, "Led1P", "LED(1P)"), + new HardInitializeTextTableRecord(3, "Led2P", "LED(2P)"), + new HardInitializeTextTableRecord(4, "Camera", "摄像机"), + new HardInitializeTextTableRecord(5, "CodeReader1P", "二维码扫描"), + new HardInitializeTextTableRecord(6, "DataLoad", "检查数据"), + new HardInitializeTextTableRecord(7, "Link", "机台间的通讯"), + new HardInitializeTextTableRecord(8, "DeliveryServer", "正在重复确认服务器"), + new HardInitializeTextTableRecord(9, "DeliveryClient", "正在搜寻服务器"), + new HardInitializeTextTableRecord(10, "LinkServer", "重新检查标准设定机"), + new HardInitializeTextTableRecord(11, "LinkClient", "取得标准设定机内的设定值") + }; + } +} diff --git a/Assembly-CSharp/DB/HardInitializeTextTableRecord.cs b/Assembly-CSharp/DB/HardInitializeTextTableRecord.cs new file mode 100644 index 0000000..10c518a --- /dev/null +++ b/Assembly-CSharp/DB/HardInitializeTextTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x0200075B RID: 1883 + public class HardInitializeTextTableRecord + { + // Token: 0x0600439B RID: 17307 RVA: 0x00003560 File Offset: 0x00002760 + public HardInitializeTextTableRecord() + { + } + + // Token: 0x0600439C RID: 17308 RVA: 0x00178937 File Offset: 0x00177B37 + public HardInitializeTextTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005009 RID: 20489 + public int EnumValue; + + // Token: 0x0400500A RID: 20490 + public string EnumName; + + // Token: 0x0400500B RID: 20491 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/JvsButtonID.cs b/Assembly-CSharp/DB/JvsButtonID.cs new file mode 100644 index 0000000..61da6c0 --- /dev/null +++ b/Assembly-CSharp/DB/JvsButtonID.cs @@ -0,0 +1,55 @@ +using System; + +namespace DB +{ + // Token: 0x0200075D RID: 1885 + public enum JvsButtonID + { + // Token: 0x0400500E RID: 20494 + Test, + // Token: 0x0400500F RID: 20495 + Service, + // Token: 0x04005010 RID: 20496 + Button1_1P, + // Token: 0x04005011 RID: 20497 + Button2_1P, + // Token: 0x04005012 RID: 20498 + Button3_1P, + // Token: 0x04005013 RID: 20499 + Button4_1P, + // Token: 0x04005014 RID: 20500 + Button5_1P, + // Token: 0x04005015 RID: 20501 + Button6_1P, + // Token: 0x04005016 RID: 20502 + Button7_1P, + // Token: 0x04005017 RID: 20503 + Button8_1P, + // Token: 0x04005018 RID: 20504 + Select_1P, + // Token: 0x04005019 RID: 20505 + Button1_2P, + // Token: 0x0400501A RID: 20506 + Button2_2P, + // Token: 0x0400501B RID: 20507 + Button3_2P, + // Token: 0x0400501C RID: 20508 + Button4_2P, + // Token: 0x0400501D RID: 20509 + Button5_2P, + // Token: 0x0400501E RID: 20510 + Button6_2P, + // Token: 0x0400501F RID: 20511 + Button7_2P, + // Token: 0x04005020 RID: 20512 + Button8_2P, + // Token: 0x04005021 RID: 20513 + Select_2P, + // Token: 0x04005022 RID: 20514 + Begin = 0, + // Token: 0x04005023 RID: 20515 + End = 20, + // Token: 0x04005024 RID: 20516 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/JvsButtonIDEnum.cs b/Assembly-CSharp/DB/JvsButtonIDEnum.cs new file mode 100644 index 0000000..3c7f6d6 --- /dev/null +++ b/Assembly-CSharp/DB/JvsButtonIDEnum.cs @@ -0,0 +1,164 @@ +using System; + +namespace DB +{ + // Token: 0x0200075F RID: 1887 + public static class JvsButtonIDEnum + { + // Token: 0x060043A9 RID: 17321 RVA: 0x00178B4C File Offset: 0x00177D4C + public static bool IsActive(this JvsButtonID self) + { + return self >= JvsButtonID.Test && self < JvsButtonID.End && self > JvsButtonID.Test; + } + + // Token: 0x060043AA RID: 17322 RVA: 0x00178B5D File Offset: 0x00177D5D + public static bool IsValid(this JvsButtonID self) + { + return self >= JvsButtonID.Test && self < JvsButtonID.End; + } + + // Token: 0x060043AB RID: 17323 RVA: 0x00178B6A File Offset: 0x00177D6A + public static void Clamp(this JvsButtonID self) + { + if (self < JvsButtonID.Test) + { + self = JvsButtonID.Test; + return; + } + if (self >= (JvsButtonID)JvsButtonIDEnum.GetEnd()) + { + self = (JvsButtonID)JvsButtonIDEnum.GetEnd(); + } + } + + // Token: 0x060043AC RID: 17324 RVA: 0x00178B83 File Offset: 0x00177D83 + public static int GetEnd(this JvsButtonID self) + { + return JvsButtonIDEnum.GetEnd(); + } + + // Token: 0x060043AD RID: 17325 RVA: 0x00178B8C File Offset: 0x00177D8C + public static JvsButtonID FindID(string enumName) + { + for (JvsButtonID jvsButtonID = JvsButtonID.Test; jvsButtonID < JvsButtonID.End; jvsButtonID++) + { + if (jvsButtonID.GetEnumName() == enumName) + { + return jvsButtonID; + } + } + return JvsButtonID.Invalid; + } + + // Token: 0x060043AE RID: 17326 RVA: 0x00178BB7 File Offset: 0x00177DB7 + public static int GetEnd() + { + return JvsButtonIDEnum.records.Length; + } + + // Token: 0x060043AF RID: 17327 RVA: 0x00178BC0 File Offset: 0x00177DC0 + public static int GetEnumValue(this JvsButtonID self) + { + if (self.IsValid()) + { + return JvsButtonIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060043B0 RID: 17328 RVA: 0x00178BD8 File Offset: 0x00177DD8 + public static string GetEnumName(this JvsButtonID self) + { + if (self.IsValid()) + { + return JvsButtonIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060043B1 RID: 17329 RVA: 0x00178BF4 File Offset: 0x00177DF4 + public static string GetName(this JvsButtonID self) + { + if (self.IsValid()) + { + return JvsButtonIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060043B2 RID: 17330 RVA: 0x00178C10 File Offset: 0x00177E10 + public static int GetJvsPlayer(this JvsButtonID self) + { + if (self.IsValid()) + { + return JvsButtonIDEnum.records[(int)self].JvsPlayer; + } + return 0; + } + + // Token: 0x060043B3 RID: 17331 RVA: 0x00178C28 File Offset: 0x00177E28 + public static string GetInputIDName(this JvsButtonID self) + { + if (self.IsValid()) + { + return JvsButtonIDEnum.records[(int)self].InputIDName; + } + return ""; + } + + // Token: 0x060043B4 RID: 17332 RVA: 0x00178C44 File Offset: 0x00177E44 + public static KeyCodeID GetSubstituteKey(this JvsButtonID self) + { + if (self.IsValid()) + { + return JvsButtonIDEnum.records[(int)self].SubstituteKey; + } + return KeyCodeID.Invalid; + } + + // Token: 0x060043B5 RID: 17333 RVA: 0x00178C5C File Offset: 0x00177E5C + public static int GetInvert(this JvsButtonID self) + { + if (self.IsValid()) + { + return JvsButtonIDEnum.records[(int)self].Invert; + } + return 0; + } + + // Token: 0x060043B6 RID: 17334 RVA: 0x00178C74 File Offset: 0x00177E74 + public static int GetSystem(this JvsButtonID self) + { + if (self.IsValid()) + { + return JvsButtonIDEnum.records[(int)self].System; + } + return 0; + } + + // Token: 0x0400502D RID: 20525 + private static readonly JvsButtonTableRecord[] records = new JvsButtonTableRecord[] + { + new JvsButtonTableRecord(0, "Test", "Test", -1, "test", 115, 0, 1), + new JvsButtonTableRecord(1, "Service", "Service", 0, "service", 5, 0, 1), + new JvsButtonTableRecord(2, "Button1_1P", "Button1_1P", 0, "button_01", 67, 1, 0), + new JvsButtonTableRecord(3, "Button2_1P", "Button2_1P", 0, "button_02", 49, 1, 0), + new JvsButtonTableRecord(4, "Button3_1P", "Button3_1P", 0, "button_03", 48, 1, 0), + new JvsButtonTableRecord(5, "Button4_1P", "Button4_1P", 0, "button_04", 47, 1, 0), + new JvsButtonTableRecord(6, "Button5_1P", "Button5_1P", 0, "button_05", 68, 1, 0), + new JvsButtonTableRecord(7, "Button6_1P", "Button6_1P", 0, "button_06", 70, 1, 0), + new JvsButtonTableRecord(8, "Button7_1P", "Button7_1P", 0, "button_07", 45, 1, 0), + new JvsButtonTableRecord(9, "Button8_1P", "Button8_1P", 0, "button_08", 61, 1, 0), + new JvsButtonTableRecord(10, "Select_1P", "Select_1P", 0, "select", 25, 0, 0), + new JvsButtonTableRecord(11, "Button1_2P", "Button1_2P", 1, "button_01", 80, 1, 0), + new JvsButtonTableRecord(12, "Button2_2P", "Button2_2P", 1, "button_02", 81, 1, 0), + new JvsButtonTableRecord(13, "Button3_2P", "Button3_2P", 1, "button_03", 78, 1, 0), + new JvsButtonTableRecord(14, "Button4_2P", "Button4_2P", 1, "button_04", 75, 1, 0), + new JvsButtonTableRecord(15, "Button5_2P", "Button5_2P", 1, "button_05", 74, 1, 0), + new JvsButtonTableRecord(16, "Button6_2P", "Button6_2P", 1, "button_06", 73, 1, 0), + new JvsButtonTableRecord(17, "Button7_2P", "Button7_2P", 1, "button_07", 76, 1, 0), + new JvsButtonTableRecord(18, "Button8_2P", "Button8_2P", 1, "button_08", 79, 1, 0), + new JvsButtonTableRecord(19, "Select_2P", "Select_2P", 1, "select", 84, 0, 0) + }; + } +} diff --git a/Assembly-CSharp/DB/JvsButtonTableRecord.cs b/Assembly-CSharp/DB/JvsButtonTableRecord.cs new file mode 100644 index 0000000..88f786d --- /dev/null +++ b/Assembly-CSharp/DB/JvsButtonTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x0200075E RID: 1886 + public class JvsButtonTableRecord + { + // Token: 0x060043A7 RID: 17319 RVA: 0x00003560 File Offset: 0x00002760 + public JvsButtonTableRecord() + { + } + + // Token: 0x060043A8 RID: 17320 RVA: 0x00178AFC File Offset: 0x00177CFC + public JvsButtonTableRecord(int EnumValue, string EnumName, string Name, int JvsPlayer, string InputIDName, int SubstituteKey, int Invert, int System) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.JvsPlayer = JvsPlayer; + this.InputIDName = InputIDName; + this.SubstituteKey = (KeyCodeID)SubstituteKey; + this.Invert = Invert; + this.System = System; + } + + // Token: 0x04005025 RID: 20517 + public int EnumValue; + + // Token: 0x04005026 RID: 20518 + public string EnumName; + + // Token: 0x04005027 RID: 20519 + public string Name; + + // Token: 0x04005028 RID: 20520 + public int JvsPlayer; + + // Token: 0x04005029 RID: 20521 + public string InputIDName; + + // Token: 0x0400502A RID: 20522 + public KeyCodeID SubstituteKey; + + // Token: 0x0400502B RID: 20523 + public int Invert; + + // Token: 0x0400502C RID: 20524 + public int System; + } +} diff --git a/Assembly-CSharp/DB/JvsOutputID.cs b/Assembly-CSharp/DB/JvsOutputID.cs new file mode 100644 index 0000000..02e0a06 --- /dev/null +++ b/Assembly-CSharp/DB/JvsOutputID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x02000760 RID: 1888 + public enum JvsOutputID + { + // Token: 0x0400502F RID: 20527 + coin_block, + // Token: 0x04005030 RID: 20528 + left_reader_led, + // Token: 0x04005031 RID: 20529 + right_reader_led, + // Token: 0x04005032 RID: 20530 + camera_led_circle, + // Token: 0x04005033 RID: 20531 + camera_led_red, + // Token: 0x04005034 RID: 20532 + Begin = 0, + // Token: 0x04005035 RID: 20533 + End = 5, + // Token: 0x04005036 RID: 20534 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/JvsOutputIDEnum.cs b/Assembly-CSharp/DB/JvsOutputIDEnum.cs new file mode 100644 index 0000000..4566241 --- /dev/null +++ b/Assembly-CSharp/DB/JvsOutputIDEnum.cs @@ -0,0 +1,109 @@ +using System; + +namespace DB +{ + // Token: 0x02000762 RID: 1890 + public static class JvsOutputIDEnum + { + // Token: 0x060043BA RID: 17338 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this JvsOutputID self) + { + return self >= JvsOutputID.coin_block && self < JvsOutputID.End && self > JvsOutputID.coin_block; + } + + // Token: 0x060043BB RID: 17339 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this JvsOutputID self) + { + return self >= JvsOutputID.coin_block && self < JvsOutputID.End; + } + + // Token: 0x060043BC RID: 17340 RVA: 0x00178F23 File Offset: 0x00178123 + public static void Clamp(this JvsOutputID self) + { + if (self < JvsOutputID.coin_block) + { + self = JvsOutputID.coin_block; + return; + } + if (self >= (JvsOutputID)JvsOutputIDEnum.GetEnd()) + { + self = (JvsOutputID)JvsOutputIDEnum.GetEnd(); + } + } + + // Token: 0x060043BD RID: 17341 RVA: 0x00178F3C File Offset: 0x0017813C + public static int GetEnd(this JvsOutputID self) + { + return JvsOutputIDEnum.GetEnd(); + } + + // Token: 0x060043BE RID: 17342 RVA: 0x00178F44 File Offset: 0x00178144 + public static JvsOutputID FindID(string enumName) + { + for (JvsOutputID jvsOutputID = JvsOutputID.coin_block; jvsOutputID < JvsOutputID.End; jvsOutputID++) + { + if (jvsOutputID.GetEnumName() == enumName) + { + return jvsOutputID; + } + } + return JvsOutputID.Invalid; + } + + // Token: 0x060043BF RID: 17343 RVA: 0x00178F6E File Offset: 0x0017816E + public static int GetEnd() + { + return JvsOutputIDEnum.records.Length; + } + + // Token: 0x060043C0 RID: 17344 RVA: 0x00178F77 File Offset: 0x00178177 + public static int GetEnumValue(this JvsOutputID self) + { + if (self.IsValid()) + { + return JvsOutputIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060043C1 RID: 17345 RVA: 0x00178F8F File Offset: 0x0017818F + public static string GetEnumName(this JvsOutputID self) + { + if (self.IsValid()) + { + return JvsOutputIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060043C2 RID: 17346 RVA: 0x00178FAB File Offset: 0x001781AB + public static string GetName(this JvsOutputID self) + { + if (self.IsValid()) + { + return JvsOutputIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060043C3 RID: 17347 RVA: 0x00178FC7 File Offset: 0x001781C7 + public static string GetOutputIDName(this JvsOutputID self) + { + if (self.IsValid()) + { + return JvsOutputIDEnum.records[(int)self].OutputIDName; + } + return ""; + } + + // Token: 0x0400503B RID: 20539 + private static readonly JvsOutputTableRecord[] records = new JvsOutputTableRecord[] + { + new JvsOutputTableRecord(0, "coin_block", "coin_block", "coin_block"), + new JvsOutputTableRecord(1, "left_reader_led", "left_reader_led", "left_reader_led"), + new JvsOutputTableRecord(2, "right_reader_led", "right_reader_led", "right_reader_led"), + new JvsOutputTableRecord(3, "camera_led_circle", "camera_led_circle", "camera_led_circle"), + new JvsOutputTableRecord(4, "camera_led_red", "camera_led_red", "camera_led_red") + }; + } +} diff --git a/Assembly-CSharp/DB/JvsOutputTableRecord.cs b/Assembly-CSharp/DB/JvsOutputTableRecord.cs new file mode 100644 index 0000000..5a77f11 --- /dev/null +++ b/Assembly-CSharp/DB/JvsOutputTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000761 RID: 1889 + public class JvsOutputTableRecord + { + // Token: 0x060043B8 RID: 17336 RVA: 0x00003560 File Offset: 0x00002760 + public JvsOutputTableRecord() + { + } + + // Token: 0x060043B9 RID: 17337 RVA: 0x00178EFE File Offset: 0x001780FE + public JvsOutputTableRecord(int EnumValue, string EnumName, string Name, string OutputIDName) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.OutputIDName = OutputIDName; + } + + // Token: 0x04005037 RID: 20535 + public int EnumValue; + + // Token: 0x04005038 RID: 20536 + public string EnumName; + + // Token: 0x04005039 RID: 20537 + public string Name; + + // Token: 0x0400503A RID: 20538 + public string OutputIDName; + } +} diff --git a/Assembly-CSharp/DB/KaleidxscopeID.cs b/Assembly-CSharp/DB/KaleidxscopeID.cs new file mode 100644 index 0000000..f9fa165 --- /dev/null +++ b/Assembly-CSharp/DB/KaleidxscopeID.cs @@ -0,0 +1,51 @@ +using System; + +namespace DB +{ + // Token: 0x02000763 RID: 1891 + public enum KaleidxscopeID + { + // Token: 0x0400503D RID: 20541 + ConfirmChallenge, + // Token: 0x0400503E RID: 20542 + MainRuleText, + // Token: 0x0400503F RID: 20543 + NowRuleText, + // Token: 0x04005040 RID: 20544 + GameOverText, + // Token: 0x04005041 RID: 20545 + NowLifeText, + // Token: 0x04005042 RID: 20546 + DiscoverGate, + // Token: 0x04005043 RID: 20547 + DiscoverKey, + // Token: 0x04005044 RID: 20548 + UnlockChallenge, + // Token: 0x04005045 RID: 20549 + GetKey, + // Token: 0x04005046 RID: 20550 + CanChallengeInfo, + // Token: 0x04005047 RID: 20551 + LoseEventBaseText, + // Token: 0x04005048 RID: 20552 + LoseEventChallengeText, + // Token: 0x04005049 RID: 20553 + ConfirmChallengeHopeGate, + // Token: 0x0400504A RID: 20554 + ClearHopeGate, + // Token: 0x0400504B RID: 20555 + OpenKALEIDXSCOPE, + // Token: 0x0400504C RID: 20556 + ChallengeKALEIDXSCOPE, + // Token: 0x0400504D RID: 20557 + MasterKey, + // Token: 0x0400504E RID: 20558 + DiscoverCenterTower, + // Token: 0x0400504F RID: 20559 + Begin = 0, + // Token: 0x04005050 RID: 20560 + End = 18, + // Token: 0x04005051 RID: 20561 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/KaleidxscopeIDEnum.cs b/Assembly-CSharp/DB/KaleidxscopeIDEnum.cs new file mode 100644 index 0000000..71cccca --- /dev/null +++ b/Assembly-CSharp/DB/KaleidxscopeIDEnum.cs @@ -0,0 +1,112 @@ +using System; + +namespace DB +{ + // Token: 0x02000765 RID: 1893 + public static class KaleidxscopeIDEnum + { + // Token: 0x060043C7 RID: 17351 RVA: 0x00179091 File Offset: 0x00178291 + public static bool IsActive(this KaleidxscopeID self) + { + return self >= KaleidxscopeID.ConfirmChallenge && self < KaleidxscopeID.End && self > KaleidxscopeID.ConfirmChallenge; + } + + // Token: 0x060043C8 RID: 17352 RVA: 0x001790A2 File Offset: 0x001782A2 + public static bool IsValid(this KaleidxscopeID self) + { + return self >= KaleidxscopeID.ConfirmChallenge && self < KaleidxscopeID.End; + } + + // Token: 0x060043C9 RID: 17353 RVA: 0x001790AF File Offset: 0x001782AF + public static void Clamp(this KaleidxscopeID self) + { + if (self < KaleidxscopeID.ConfirmChallenge) + { + self = KaleidxscopeID.ConfirmChallenge; + return; + } + if (self >= (KaleidxscopeID)KaleidxscopeIDEnum.GetEnd()) + { + self = (KaleidxscopeID)KaleidxscopeIDEnum.GetEnd(); + } + } + + // Token: 0x060043CA RID: 17354 RVA: 0x001790C8 File Offset: 0x001782C8 + public static int GetEnd(this KaleidxscopeID self) + { + return KaleidxscopeIDEnum.GetEnd(); + } + + // Token: 0x060043CB RID: 17355 RVA: 0x001790D0 File Offset: 0x001782D0 + public static KaleidxscopeID FindID(string enumName) + { + for (KaleidxscopeID kaleidxscopeID = KaleidxscopeID.ConfirmChallenge; kaleidxscopeID < KaleidxscopeID.End; kaleidxscopeID++) + { + if (kaleidxscopeID.GetEnumName() == enumName) + { + return kaleidxscopeID; + } + } + return KaleidxscopeID.Invalid; + } + + // Token: 0x060043CC RID: 17356 RVA: 0x001790FB File Offset: 0x001782FB + public static int GetEnd() + { + return KaleidxscopeIDEnum.records.Length; + } + + // Token: 0x060043CD RID: 17357 RVA: 0x00179104 File Offset: 0x00178304 + public static int GetEnumValue(this KaleidxscopeID self) + { + if (self.IsValid()) + { + return KaleidxscopeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060043CE RID: 17358 RVA: 0x0017911C File Offset: 0x0017831C + public static string GetEnumName(this KaleidxscopeID self) + { + if (self.IsValid()) + { + return KaleidxscopeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060043CF RID: 17359 RVA: 0x00179138 File Offset: 0x00178338 + public static string GetName(this KaleidxscopeID self) + { + if (self.IsValid()) + { + return KaleidxscopeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04005055 RID: 20565 + private static readonly KaleidxscopeTableRecord[] records = new KaleidxscopeTableRecord[] + { + new KaleidxscopeTableRecord(0, "ConfirmChallenge", "要挑战{0}吗?\r\n\r\n\r\n\r\n\r\n当前生命值:{1}"), + new KaleidxscopeTableRecord(1, "MainRuleText", "出现极好及以下的判定会减少生命值哦!"), + new KaleidxscopeTableRecord(2, "NowRuleText", "当前解锁规则"), + new KaleidxscopeTableRecord(3, "GameOverText", "时游戏结束!"), + new KaleidxscopeTableRecord(4, "NowLifeText", "当前生命值"), + new KaleidxscopeTableRecord(5, "DiscoverGate", "发现了新的门\r\n试着寻找门的钥匙吧"), + new KaleidxscopeTableRecord(6, "DiscoverKey", "发现了{0}"), + new KaleidxscopeTableRecord(7, "UnlockChallenge", "可以挑战{0}了"), + new KaleidxscopeTableRecord(8, "GetKey", "获得 {0}"), + new KaleidxscopeTableRecord(9, "CanChallengeInfo", "没有更多可以挑战的门了\r\n敬请期待今后的更新内容"), + new KaleidxscopeTableRecord(10, "LoseEventBaseText", "检测到系统异常\r\n继续运行可能会对7sRef的存续\r\n带来巨大影响\r\n"), + new KaleidxscopeTableRecord(11, "LoseEventChallengeText", "\r\n\r\n\r\n\r\n真的要挑战吗?"), + new KaleidxscopeTableRecord(12, "ConfirmChallengeHopeGate", "要挑战{0}吗?"), + new KaleidxscopeTableRecord(13, "ClearHopeGate", "----"), + new KaleidxscopeTableRecord(14, "OpenKALEIDXSCOPE", "系统已经重启\r\n可以重新挑战\r\nKALEIDXSCOPE了"), + new KaleidxscopeTableRecord(15, "ChallengeKALEIDXSCOPE", "要开始最后的挑战吗?\r\n\r\n※该挑战只会游玩一首乐曲"), + new KaleidxscopeTableRecord(16, "MasterKey", "万能钥匙"), + new KaleidxscopeTableRecord(17, "DiscoverCenterTower", "发现了棱镜塔!") + }; + } +} diff --git a/Assembly-CSharp/DB/KaleidxscopeTableRecord.cs b/Assembly-CSharp/DB/KaleidxscopeTableRecord.cs new file mode 100644 index 0000000..2f8c722 --- /dev/null +++ b/Assembly-CSharp/DB/KaleidxscopeTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000764 RID: 1892 + public class KaleidxscopeTableRecord + { + // Token: 0x060043C5 RID: 17349 RVA: 0x00003560 File Offset: 0x00002760 + public KaleidxscopeTableRecord() + { + } + + // Token: 0x060043C6 RID: 17350 RVA: 0x00179074 File Offset: 0x00178274 + public KaleidxscopeTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005052 RID: 20562 + public int EnumValue; + + // Token: 0x04005053 RID: 20563 + public string EnumName; + + // Token: 0x04005054 RID: 20564 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/KeyCodeID.cs b/Assembly-CSharp/DB/KeyCodeID.cs new file mode 100644 index 0000000..3101579 --- /dev/null +++ b/Assembly-CSharp/DB/KeyCodeID.cs @@ -0,0 +1,657 @@ +using System; + +namespace DB +{ + // Token: 0x02000766 RID: 1894 + public enum KeyCodeID + { + // Token: 0x04005057 RID: 20567 + None, + // Token: 0x04005058 RID: 20568 + Backspace, + // Token: 0x04005059 RID: 20569 + Tab, + // Token: 0x0400505A RID: 20570 + Clear, + // Token: 0x0400505B RID: 20571 + Return, + // Token: 0x0400505C RID: 20572 + Pause, + // Token: 0x0400505D RID: 20573 + Escape, + // Token: 0x0400505E RID: 20574 + Space, + // Token: 0x0400505F RID: 20575 + Exclaim, + // Token: 0x04005060 RID: 20576 + DoubleQuote, + // Token: 0x04005061 RID: 20577 + Hash, + // Token: 0x04005062 RID: 20578 + Dollar, + // Token: 0x04005063 RID: 20579 + Ampersand, + // Token: 0x04005064 RID: 20580 + Quote, + // Token: 0x04005065 RID: 20581 + LeftParen, + // Token: 0x04005066 RID: 20582 + RightParen, + // Token: 0x04005067 RID: 20583 + Asterisk, + // Token: 0x04005068 RID: 20584 + Plus, + // Token: 0x04005069 RID: 20585 + Comma, + // Token: 0x0400506A RID: 20586 + Minus, + // Token: 0x0400506B RID: 20587 + Period, + // Token: 0x0400506C RID: 20588 + Slash, + // Token: 0x0400506D RID: 20589 + Alpha0, + // Token: 0x0400506E RID: 20590 + Alpha1, + // Token: 0x0400506F RID: 20591 + Alpha2, + // Token: 0x04005070 RID: 20592 + Alpha3, + // Token: 0x04005071 RID: 20593 + Alpha4, + // Token: 0x04005072 RID: 20594 + Alpha5, + // Token: 0x04005073 RID: 20595 + Alpha6, + // Token: 0x04005074 RID: 20596 + Alpha7, + // Token: 0x04005075 RID: 20597 + Alpha8, + // Token: 0x04005076 RID: 20598 + Alpha9, + // Token: 0x04005077 RID: 20599 + Colon, + // Token: 0x04005078 RID: 20600 + Semicolon, + // Token: 0x04005079 RID: 20601 + Less, + // Token: 0x0400507A RID: 20602 + Equals, + // Token: 0x0400507B RID: 20603 + Greater, + // Token: 0x0400507C RID: 20604 + Question, + // Token: 0x0400507D RID: 20605 + At, + // Token: 0x0400507E RID: 20606 + LeftBracket, + // Token: 0x0400507F RID: 20607 + Backslash, + // Token: 0x04005080 RID: 20608 + RightBracket, + // Token: 0x04005081 RID: 20609 + Caret, + // Token: 0x04005082 RID: 20610 + Underscore, + // Token: 0x04005083 RID: 20611 + BackQuote, + // Token: 0x04005084 RID: 20612 + A, + // Token: 0x04005085 RID: 20613 + B, + // Token: 0x04005086 RID: 20614 + C, + // Token: 0x04005087 RID: 20615 + D, + // Token: 0x04005088 RID: 20616 + E, + // Token: 0x04005089 RID: 20617 + F, + // Token: 0x0400508A RID: 20618 + G, + // Token: 0x0400508B RID: 20619 + H, + // Token: 0x0400508C RID: 20620 + I, + // Token: 0x0400508D RID: 20621 + J, + // Token: 0x0400508E RID: 20622 + K, + // Token: 0x0400508F RID: 20623 + L, + // Token: 0x04005090 RID: 20624 + M, + // Token: 0x04005091 RID: 20625 + N, + // Token: 0x04005092 RID: 20626 + O, + // Token: 0x04005093 RID: 20627 + P, + // Token: 0x04005094 RID: 20628 + Q, + // Token: 0x04005095 RID: 20629 + R, + // Token: 0x04005096 RID: 20630 + S, + // Token: 0x04005097 RID: 20631 + T, + // Token: 0x04005098 RID: 20632 + U, + // Token: 0x04005099 RID: 20633 + V, + // Token: 0x0400509A RID: 20634 + W, + // Token: 0x0400509B RID: 20635 + X, + // Token: 0x0400509C RID: 20636 + Y, + // Token: 0x0400509D RID: 20637 + Z, + // Token: 0x0400509E RID: 20638 + Delete, + // Token: 0x0400509F RID: 20639 + Keypad0, + // Token: 0x040050A0 RID: 20640 + Keypad1, + // Token: 0x040050A1 RID: 20641 + Keypad2, + // Token: 0x040050A2 RID: 20642 + Keypad3, + // Token: 0x040050A3 RID: 20643 + Keypad4, + // Token: 0x040050A4 RID: 20644 + Keypad5, + // Token: 0x040050A5 RID: 20645 + Keypad6, + // Token: 0x040050A6 RID: 20646 + Keypad7, + // Token: 0x040050A7 RID: 20647 + Keypad8, + // Token: 0x040050A8 RID: 20648 + Keypad9, + // Token: 0x040050A9 RID: 20649 + KeypadPeriod, + // Token: 0x040050AA RID: 20650 + KeypadDivide, + // Token: 0x040050AB RID: 20651 + KeypadMultiply, + // Token: 0x040050AC RID: 20652 + KeypadMinus, + // Token: 0x040050AD RID: 20653 + KeypadPlus, + // Token: 0x040050AE RID: 20654 + KeypadEnter, + // Token: 0x040050AF RID: 20655 + KeypadEquals, + // Token: 0x040050B0 RID: 20656 + UpArrow, + // Token: 0x040050B1 RID: 20657 + DownArrow, + // Token: 0x040050B2 RID: 20658 + RightArrow, + // Token: 0x040050B3 RID: 20659 + LeftArrow, + // Token: 0x040050B4 RID: 20660 + Insert, + // Token: 0x040050B5 RID: 20661 + Home, + // Token: 0x040050B6 RID: 20662 + End_, + // Token: 0x040050B7 RID: 20663 + PageUp, + // Token: 0x040050B8 RID: 20664 + PageDown, + // Token: 0x040050B9 RID: 20665 + F1, + // Token: 0x040050BA RID: 20666 + F2, + // Token: 0x040050BB RID: 20667 + F3, + // Token: 0x040050BC RID: 20668 + F4, + // Token: 0x040050BD RID: 20669 + F5, + // Token: 0x040050BE RID: 20670 + F6, + // Token: 0x040050BF RID: 20671 + F7, + // Token: 0x040050C0 RID: 20672 + F8, + // Token: 0x040050C1 RID: 20673 + F9, + // Token: 0x040050C2 RID: 20674 + F10, + // Token: 0x040050C3 RID: 20675 + F11, + // Token: 0x040050C4 RID: 20676 + F12, + // Token: 0x040050C5 RID: 20677 + F13, + // Token: 0x040050C6 RID: 20678 + F14, + // Token: 0x040050C7 RID: 20679 + F15, + // Token: 0x040050C8 RID: 20680 + Numlock, + // Token: 0x040050C9 RID: 20681 + CapsLock, + // Token: 0x040050CA RID: 20682 + ScrollLock, + // Token: 0x040050CB RID: 20683 + RightShift, + // Token: 0x040050CC RID: 20684 + LeftShift, + // Token: 0x040050CD RID: 20685 + RightControl, + // Token: 0x040050CE RID: 20686 + LeftControl, + // Token: 0x040050CF RID: 20687 + RightAlt, + // Token: 0x040050D0 RID: 20688 + LeftAlt, + // Token: 0x040050D1 RID: 20689 + RightCommand, + // Token: 0x040050D2 RID: 20690 + RightApple, + // Token: 0x040050D3 RID: 20691 + LeftCommand, + // Token: 0x040050D4 RID: 20692 + LeftApple, + // Token: 0x040050D5 RID: 20693 + LeftWindows, + // Token: 0x040050D6 RID: 20694 + RightWindows, + // Token: 0x040050D7 RID: 20695 + AltGr, + // Token: 0x040050D8 RID: 20696 + Help, + // Token: 0x040050D9 RID: 20697 + Print, + // Token: 0x040050DA RID: 20698 + SysReq, + // Token: 0x040050DB RID: 20699 + Break, + // Token: 0x040050DC RID: 20700 + Menu, + // Token: 0x040050DD RID: 20701 + Mouse0, + // Token: 0x040050DE RID: 20702 + Mouse1, + // Token: 0x040050DF RID: 20703 + Mouse2, + // Token: 0x040050E0 RID: 20704 + Mouse3, + // Token: 0x040050E1 RID: 20705 + Mouse4, + // Token: 0x040050E2 RID: 20706 + Mouse5, + // Token: 0x040050E3 RID: 20707 + Mouse6, + // Token: 0x040050E4 RID: 20708 + JoystickButton0, + // Token: 0x040050E5 RID: 20709 + JoystickButton1, + // Token: 0x040050E6 RID: 20710 + JoystickButton2, + // Token: 0x040050E7 RID: 20711 + JoystickButton3, + // Token: 0x040050E8 RID: 20712 + JoystickButton4, + // Token: 0x040050E9 RID: 20713 + JoystickButton5, + // Token: 0x040050EA RID: 20714 + JoystickButton6, + // Token: 0x040050EB RID: 20715 + JoystickButton7, + // Token: 0x040050EC RID: 20716 + JoystickButton8, + // Token: 0x040050ED RID: 20717 + JoystickButton9, + // Token: 0x040050EE RID: 20718 + JoystickButton10, + // Token: 0x040050EF RID: 20719 + JoystickButton11, + // Token: 0x040050F0 RID: 20720 + JoystickButton12, + // Token: 0x040050F1 RID: 20721 + JoystickButton13, + // Token: 0x040050F2 RID: 20722 + JoystickButton14, + // Token: 0x040050F3 RID: 20723 + JoystickButton15, + // Token: 0x040050F4 RID: 20724 + JoystickButton16, + // Token: 0x040050F5 RID: 20725 + JoystickButton17, + // Token: 0x040050F6 RID: 20726 + JoystickButton18, + // Token: 0x040050F7 RID: 20727 + JoystickButton19, + // Token: 0x040050F8 RID: 20728 + Joystick1Button0, + // Token: 0x040050F9 RID: 20729 + Joystick1Button1, + // Token: 0x040050FA RID: 20730 + Joystick1Button2, + // Token: 0x040050FB RID: 20731 + Joystick1Button3, + // Token: 0x040050FC RID: 20732 + Joystick1Button4, + // Token: 0x040050FD RID: 20733 + Joystick1Button5, + // Token: 0x040050FE RID: 20734 + Joystick1Button6, + // Token: 0x040050FF RID: 20735 + Joystick1Button7, + // Token: 0x04005100 RID: 20736 + Joystick1Button8, + // Token: 0x04005101 RID: 20737 + Joystick1Button9, + // Token: 0x04005102 RID: 20738 + Joystick1Button10, + // Token: 0x04005103 RID: 20739 + Joystick1Button11, + // Token: 0x04005104 RID: 20740 + Joystick1Button12, + // Token: 0x04005105 RID: 20741 + Joystick1Button13, + // Token: 0x04005106 RID: 20742 + Joystick1Button14, + // Token: 0x04005107 RID: 20743 + Joystick1Button15, + // Token: 0x04005108 RID: 20744 + Joystick1Button16, + // Token: 0x04005109 RID: 20745 + Joystick1Button17, + // Token: 0x0400510A RID: 20746 + Joystick1Button18, + // Token: 0x0400510B RID: 20747 + Joystick1Button19, + // Token: 0x0400510C RID: 20748 + Joystick2Button0, + // Token: 0x0400510D RID: 20749 + Joystick2Button1, + // Token: 0x0400510E RID: 20750 + Joystick2Button2, + // Token: 0x0400510F RID: 20751 + Joystick2Button3, + // Token: 0x04005110 RID: 20752 + Joystick2Button4, + // Token: 0x04005111 RID: 20753 + Joystick2Button5, + // Token: 0x04005112 RID: 20754 + Joystick2Button6, + // Token: 0x04005113 RID: 20755 + Joystick2Button7, + // Token: 0x04005114 RID: 20756 + Joystick2Button8, + // Token: 0x04005115 RID: 20757 + Joystick2Button9, + // Token: 0x04005116 RID: 20758 + Joystick2Button10, + // Token: 0x04005117 RID: 20759 + Joystick2Button11, + // Token: 0x04005118 RID: 20760 + Joystick2Button12, + // Token: 0x04005119 RID: 20761 + Joystick2Button13, + // Token: 0x0400511A RID: 20762 + Joystick2Button14, + // Token: 0x0400511B RID: 20763 + Joystick2Button15, + // Token: 0x0400511C RID: 20764 + Joystick2Button16, + // Token: 0x0400511D RID: 20765 + Joystick2Button17, + // Token: 0x0400511E RID: 20766 + Joystick2Button18, + // Token: 0x0400511F RID: 20767 + Joystick2Button19, + // Token: 0x04005120 RID: 20768 + Joystick3Button0, + // Token: 0x04005121 RID: 20769 + Joystick3Button1, + // Token: 0x04005122 RID: 20770 + Joystick3Button2, + // Token: 0x04005123 RID: 20771 + Joystick3Button3, + // Token: 0x04005124 RID: 20772 + Joystick3Button4, + // Token: 0x04005125 RID: 20773 + Joystick3Button5, + // Token: 0x04005126 RID: 20774 + Joystick3Button6, + // Token: 0x04005127 RID: 20775 + Joystick3Button7, + // Token: 0x04005128 RID: 20776 + Joystick3Button8, + // Token: 0x04005129 RID: 20777 + Joystick3Button9, + // Token: 0x0400512A RID: 20778 + Joystick3Button10, + // Token: 0x0400512B RID: 20779 + Joystick3Button11, + // Token: 0x0400512C RID: 20780 + Joystick3Button12, + // Token: 0x0400512D RID: 20781 + Joystick3Button13, + // Token: 0x0400512E RID: 20782 + Joystick3Button14, + // Token: 0x0400512F RID: 20783 + Joystick3Button15, + // Token: 0x04005130 RID: 20784 + Joystick3Button16, + // Token: 0x04005131 RID: 20785 + Joystick3Button17, + // Token: 0x04005132 RID: 20786 + Joystick3Button18, + // Token: 0x04005133 RID: 20787 + Joystick3Button19, + // Token: 0x04005134 RID: 20788 + Joystick4Button0, + // Token: 0x04005135 RID: 20789 + Joystick4Button1, + // Token: 0x04005136 RID: 20790 + Joystick4Button2, + // Token: 0x04005137 RID: 20791 + Joystick4Button3, + // Token: 0x04005138 RID: 20792 + Joystick4Button4, + // Token: 0x04005139 RID: 20793 + Joystick4Button5, + // Token: 0x0400513A RID: 20794 + Joystick4Button6, + // Token: 0x0400513B RID: 20795 + Joystick4Button7, + // Token: 0x0400513C RID: 20796 + Joystick4Button8, + // Token: 0x0400513D RID: 20797 + Joystick4Button9, + // Token: 0x0400513E RID: 20798 + Joystick4Button10, + // Token: 0x0400513F RID: 20799 + Joystick4Button11, + // Token: 0x04005140 RID: 20800 + Joystick4Button12, + // Token: 0x04005141 RID: 20801 + Joystick4Button13, + // Token: 0x04005142 RID: 20802 + Joystick4Button14, + // Token: 0x04005143 RID: 20803 + Joystick4Button15, + // Token: 0x04005144 RID: 20804 + Joystick4Button16, + // Token: 0x04005145 RID: 20805 + Joystick4Button17, + // Token: 0x04005146 RID: 20806 + Joystick4Button18, + // Token: 0x04005147 RID: 20807 + Joystick4Button19, + // Token: 0x04005148 RID: 20808 + Joystick5Button0, + // Token: 0x04005149 RID: 20809 + Joystick5Button1, + // Token: 0x0400514A RID: 20810 + Joystick5Button2, + // Token: 0x0400514B RID: 20811 + Joystick5Button3, + // Token: 0x0400514C RID: 20812 + Joystick5Button4, + // Token: 0x0400514D RID: 20813 + Joystick5Button5, + // Token: 0x0400514E RID: 20814 + Joystick5Button6, + // Token: 0x0400514F RID: 20815 + Joystick5Button7, + // Token: 0x04005150 RID: 20816 + Joystick5Button8, + // Token: 0x04005151 RID: 20817 + Joystick5Button9, + // Token: 0x04005152 RID: 20818 + Joystick5Button10, + // Token: 0x04005153 RID: 20819 + Joystick5Button11, + // Token: 0x04005154 RID: 20820 + Joystick5Button12, + // Token: 0x04005155 RID: 20821 + Joystick5Button13, + // Token: 0x04005156 RID: 20822 + Joystick5Button14, + // Token: 0x04005157 RID: 20823 + Joystick5Button15, + // Token: 0x04005158 RID: 20824 + Joystick5Button16, + // Token: 0x04005159 RID: 20825 + Joystick5Button17, + // Token: 0x0400515A RID: 20826 + Joystick5Button18, + // Token: 0x0400515B RID: 20827 + Joystick5Button19, + // Token: 0x0400515C RID: 20828 + Joystick6Button0, + // Token: 0x0400515D RID: 20829 + Joystick6Button1, + // Token: 0x0400515E RID: 20830 + Joystick6Button2, + // Token: 0x0400515F RID: 20831 + Joystick6Button3, + // Token: 0x04005160 RID: 20832 + Joystick6Button4, + // Token: 0x04005161 RID: 20833 + Joystick6Button5, + // Token: 0x04005162 RID: 20834 + Joystick6Button6, + // Token: 0x04005163 RID: 20835 + Joystick6Button7, + // Token: 0x04005164 RID: 20836 + Joystick6Button8, + // Token: 0x04005165 RID: 20837 + Joystick6Button9, + // Token: 0x04005166 RID: 20838 + Joystick6Button10, + // Token: 0x04005167 RID: 20839 + Joystick6Button11, + // Token: 0x04005168 RID: 20840 + Joystick6Button12, + // Token: 0x04005169 RID: 20841 + Joystick6Button13, + // Token: 0x0400516A RID: 20842 + Joystick6Button14, + // Token: 0x0400516B RID: 20843 + Joystick6Button15, + // Token: 0x0400516C RID: 20844 + Joystick6Button16, + // Token: 0x0400516D RID: 20845 + Joystick6Button17, + // Token: 0x0400516E RID: 20846 + Joystick6Button18, + // Token: 0x0400516F RID: 20847 + Joystick6Button19, + // Token: 0x04005170 RID: 20848 + Joystick7Button0, + // Token: 0x04005171 RID: 20849 + Joystick7Button1, + // Token: 0x04005172 RID: 20850 + Joystick7Button2, + // Token: 0x04005173 RID: 20851 + Joystick7Button3, + // Token: 0x04005174 RID: 20852 + Joystick7Button4, + // Token: 0x04005175 RID: 20853 + Joystick7Button5, + // Token: 0x04005176 RID: 20854 + Joystick7Button6, + // Token: 0x04005177 RID: 20855 + Joystick7Button7, + // Token: 0x04005178 RID: 20856 + Joystick7Button8, + // Token: 0x04005179 RID: 20857 + Joystick7Button9, + // Token: 0x0400517A RID: 20858 + Joystick7Button10, + // Token: 0x0400517B RID: 20859 + Joystick7Button11, + // Token: 0x0400517C RID: 20860 + Joystick7Button12, + // Token: 0x0400517D RID: 20861 + Joystick7Button13, + // Token: 0x0400517E RID: 20862 + Joystick7Button14, + // Token: 0x0400517F RID: 20863 + Joystick7Button15, + // Token: 0x04005180 RID: 20864 + Joystick7Button16, + // Token: 0x04005181 RID: 20865 + Joystick7Button17, + // Token: 0x04005182 RID: 20866 + Joystick7Button18, + // Token: 0x04005183 RID: 20867 + Joystick7Button19, + // Token: 0x04005184 RID: 20868 + Joystick8Button0, + // Token: 0x04005185 RID: 20869 + Joystick8Button1, + // Token: 0x04005186 RID: 20870 + Joystick8Button2, + // Token: 0x04005187 RID: 20871 + Joystick8Button3, + // Token: 0x04005188 RID: 20872 + Joystick8Button4, + // Token: 0x04005189 RID: 20873 + Joystick8Button5, + // Token: 0x0400518A RID: 20874 + Joystick8Button6, + // Token: 0x0400518B RID: 20875 + Joystick8Button7, + // Token: 0x0400518C RID: 20876 + Joystick8Button8, + // Token: 0x0400518D RID: 20877 + Joystick8Button9, + // Token: 0x0400518E RID: 20878 + Joystick8Button10, + // Token: 0x0400518F RID: 20879 + Joystick8Button11, + // Token: 0x04005190 RID: 20880 + Joystick8Button12, + // Token: 0x04005191 RID: 20881 + Joystick8Button13, + // Token: 0x04005192 RID: 20882 + Joystick8Button14, + // Token: 0x04005193 RID: 20883 + Joystick8Button15, + // Token: 0x04005194 RID: 20884 + Joystick8Button16, + // Token: 0x04005195 RID: 20885 + Joystick8Button17, + // Token: 0x04005196 RID: 20886 + Joystick8Button18, + // Token: 0x04005197 RID: 20887 + Joystick8Button19, + // Token: 0x04005198 RID: 20888 + Begin = 0, + // Token: 0x04005199 RID: 20889 + End = 321, + // Token: 0x0400519A RID: 20890 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/KeyCodeIDEnum.cs b/Assembly-CSharp/DB/KeyCodeIDEnum.cs new file mode 100644 index 0000000..5b6ae96 --- /dev/null +++ b/Assembly-CSharp/DB/KeyCodeIDEnum.cs @@ -0,0 +1,425 @@ +using System; + +namespace DB +{ + // Token: 0x02000768 RID: 1896 + public static class KeyCodeIDEnum + { + // Token: 0x060043D3 RID: 17363 RVA: 0x001792FA File Offset: 0x001784FA + public static bool IsActive(this KeyCodeID self) + { + return self >= KeyCodeID.None && self < KeyCodeID.End && self > KeyCodeID.None; + } + + // Token: 0x060043D4 RID: 17364 RVA: 0x0017930E File Offset: 0x0017850E + public static bool IsValid(this KeyCodeID self) + { + return self >= KeyCodeID.None && self < KeyCodeID.End; + } + + // Token: 0x060043D5 RID: 17365 RVA: 0x0017931E File Offset: 0x0017851E + public static void Clamp(this KeyCodeID self) + { + if (self < KeyCodeID.None) + { + self = KeyCodeID.None; + return; + } + if (self >= (KeyCodeID)KeyCodeIDEnum.GetEnd()) + { + self = (KeyCodeID)KeyCodeIDEnum.GetEnd(); + } + } + + // Token: 0x060043D6 RID: 17366 RVA: 0x00179337 File Offset: 0x00178537 + public static int GetEnd(this KeyCodeID self) + { + return KeyCodeIDEnum.GetEnd(); + } + + // Token: 0x060043D7 RID: 17367 RVA: 0x00179340 File Offset: 0x00178540 + public static KeyCodeID FindID(string enumName) + { + for (KeyCodeID keyCodeID = KeyCodeID.None; keyCodeID < KeyCodeID.End; keyCodeID++) + { + if (keyCodeID.GetEnumName() == enumName) + { + return keyCodeID; + } + } + return KeyCodeID.Invalid; + } + + // Token: 0x060043D8 RID: 17368 RVA: 0x0017936E File Offset: 0x0017856E + public static int GetEnd() + { + return KeyCodeIDEnum.records.Length; + } + + // Token: 0x060043D9 RID: 17369 RVA: 0x00179377 File Offset: 0x00178577 + public static int GetEnumValue(this KeyCodeID self) + { + if (self.IsValid()) + { + return KeyCodeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060043DA RID: 17370 RVA: 0x0017938F File Offset: 0x0017858F + public static string GetEnumName(this KeyCodeID self) + { + if (self.IsValid()) + { + return KeyCodeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060043DB RID: 17371 RVA: 0x001793AB File Offset: 0x001785AB + public static string GetName(this KeyCodeID self) + { + if (self.IsValid()) + { + return KeyCodeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060043DC RID: 17372 RVA: 0x001793C7 File Offset: 0x001785C7 + public static int GetValue(this KeyCodeID self) + { + if (self.IsValid()) + { + return KeyCodeIDEnum.records[(int)self].Value; + } + return 0; + } + + // Token: 0x0400519F RID: 20895 + private static readonly KeyCodeTableRecord[] records = new KeyCodeTableRecord[] + { + new KeyCodeTableRecord(0, "None", "None", 0), + new KeyCodeTableRecord(1, "Backspace", "Backspace", 8), + new KeyCodeTableRecord(2, "Tab", "Tab", 9), + new KeyCodeTableRecord(3, "Clear", "Clear", 12), + new KeyCodeTableRecord(4, "Return", "Return", 13), + new KeyCodeTableRecord(5, "Pause", "Pause", 19), + new KeyCodeTableRecord(6, "Escape", "Escape", 27), + new KeyCodeTableRecord(7, "Space", "Space", 32), + new KeyCodeTableRecord(8, "Exclaim", "Exclaim", 33), + new KeyCodeTableRecord(9, "DoubleQuote", "DoubleQuote", 34), + new KeyCodeTableRecord(10, "Hash", "Hash", 35), + new KeyCodeTableRecord(11, "Dollar", "Dollar", 36), + new KeyCodeTableRecord(12, "Ampersand", "Ampersand", 38), + new KeyCodeTableRecord(13, "Quote", "Quote", 39), + new KeyCodeTableRecord(14, "LeftParen", "LeftParen", 40), + new KeyCodeTableRecord(15, "RightParen", "RightParen", 41), + new KeyCodeTableRecord(16, "Asterisk", "Asterisk", 42), + new KeyCodeTableRecord(17, "Plus", "Plus", 43), + new KeyCodeTableRecord(18, "Comma", "Comma", 44), + new KeyCodeTableRecord(19, "Minus", "Minus", 45), + new KeyCodeTableRecord(20, "Period", "Period", 46), + new KeyCodeTableRecord(21, "Slash", "Slash", 47), + new KeyCodeTableRecord(22, "Alpha0", "Alpha0", 48), + new KeyCodeTableRecord(23, "Alpha1", "Alpha1", 49), + new KeyCodeTableRecord(24, "Alpha2", "Alpha2", 50), + new KeyCodeTableRecord(25, "Alpha3", "Alpha3", 51), + new KeyCodeTableRecord(26, "Alpha4", "Alpha4", 52), + new KeyCodeTableRecord(27, "Alpha5", "Alpha5", 53), + new KeyCodeTableRecord(28, "Alpha6", "Alpha6", 54), + new KeyCodeTableRecord(29, "Alpha7", "Alpha7", 55), + new KeyCodeTableRecord(30, "Alpha8", "Alpha8", 56), + new KeyCodeTableRecord(31, "Alpha9", "Alpha9", 57), + new KeyCodeTableRecord(32, "Colon", "Colon", 58), + new KeyCodeTableRecord(33, "Semicolon", "Semicolon", 59), + new KeyCodeTableRecord(34, "Less", "Less", 60), + new KeyCodeTableRecord(35, "Equals", "Equals", 61), + new KeyCodeTableRecord(36, "Greater", "Greater", 62), + new KeyCodeTableRecord(37, "Question", "Question", 63), + new KeyCodeTableRecord(38, "At", "At", 64), + new KeyCodeTableRecord(39, "LeftBracket", "LeftBracket", 91), + new KeyCodeTableRecord(40, "Backslash", "Backslash", 92), + new KeyCodeTableRecord(41, "RightBracket", "RightBracket", 93), + new KeyCodeTableRecord(42, "Caret", "Caret", 94), + new KeyCodeTableRecord(43, "Underscore", "Underscore", 95), + new KeyCodeTableRecord(44, "BackQuote", "BackQuote", 96), + new KeyCodeTableRecord(45, "A", "A", 97), + new KeyCodeTableRecord(46, "B", "B", 98), + new KeyCodeTableRecord(47, "C", "C", 99), + new KeyCodeTableRecord(48, "D", "D", 100), + new KeyCodeTableRecord(49, "E", "E", 101), + new KeyCodeTableRecord(50, "F", "F", 102), + new KeyCodeTableRecord(51, "G", "G", 103), + new KeyCodeTableRecord(52, "H", "H", 104), + new KeyCodeTableRecord(53, "I", "I", 105), + new KeyCodeTableRecord(54, "J", "J", 106), + new KeyCodeTableRecord(55, "K", "K", 107), + new KeyCodeTableRecord(56, "L", "L", 108), + new KeyCodeTableRecord(57, "M", "M", 109), + new KeyCodeTableRecord(58, "N", "N", 110), + new KeyCodeTableRecord(59, "O", "O", 111), + new KeyCodeTableRecord(60, "P", "P", 112), + new KeyCodeTableRecord(61, "Q", "Q", 113), + new KeyCodeTableRecord(62, "R", "R", 114), + new KeyCodeTableRecord(63, "S", "S", 115), + new KeyCodeTableRecord(64, "T", "T", 116), + new KeyCodeTableRecord(65, "U", "U", 117), + new KeyCodeTableRecord(66, "V", "V", 118), + new KeyCodeTableRecord(67, "W", "W", 119), + new KeyCodeTableRecord(68, "X", "X", 120), + new KeyCodeTableRecord(69, "Y", "Y", 121), + new KeyCodeTableRecord(70, "Z", "Z", 122), + new KeyCodeTableRecord(71, "Delete", "Delete", 127), + new KeyCodeTableRecord(72, "Keypad0", "Keypad0", 256), + new KeyCodeTableRecord(73, "Keypad1", "Keypad1", 257), + new KeyCodeTableRecord(74, "Keypad2", "Keypad2", 258), + new KeyCodeTableRecord(75, "Keypad3", "Keypad3", 259), + new KeyCodeTableRecord(76, "Keypad4", "Keypad4", 260), + new KeyCodeTableRecord(77, "Keypad5", "Keypad5", 261), + new KeyCodeTableRecord(78, "Keypad6", "Keypad6", 262), + new KeyCodeTableRecord(79, "Keypad7", "Keypad7", 263), + new KeyCodeTableRecord(80, "Keypad8", "Keypad8", 264), + new KeyCodeTableRecord(81, "Keypad9", "Keypad9", 265), + new KeyCodeTableRecord(82, "KeypadPeriod", "KeypadPeriod", 266), + new KeyCodeTableRecord(83, "KeypadDivide", "KeypadDivide", 267), + new KeyCodeTableRecord(84, "KeypadMultiply", "KeypadMultiply", 268), + new KeyCodeTableRecord(85, "KeypadMinus", "KeypadMinus", 269), + new KeyCodeTableRecord(86, "KeypadPlus", "KeypadPlus", 270), + new KeyCodeTableRecord(87, "KeypadEnter", "KeypadEnter", 271), + new KeyCodeTableRecord(88, "KeypadEquals", "KeypadEquals", 272), + new KeyCodeTableRecord(89, "UpArrow", "UpArrow", 273), + new KeyCodeTableRecord(90, "DownArrow", "DownArrow", 274), + new KeyCodeTableRecord(91, "RightArrow", "RightArrow", 275), + new KeyCodeTableRecord(92, "LeftArrow", "LeftArrow", 276), + new KeyCodeTableRecord(93, "Insert", "Insert", 277), + new KeyCodeTableRecord(94, "Home", "Home", 278), + new KeyCodeTableRecord(95, "End_", "End", 279), + new KeyCodeTableRecord(96, "PageUp", "PageUp", 280), + new KeyCodeTableRecord(97, "PageDown", "PageDown", 281), + new KeyCodeTableRecord(98, "F1", "F1", 282), + new KeyCodeTableRecord(99, "F2", "F2", 283), + new KeyCodeTableRecord(100, "F3", "F3", 284), + new KeyCodeTableRecord(101, "F4", "F4", 285), + new KeyCodeTableRecord(102, "F5", "F5", 286), + new KeyCodeTableRecord(103, "F6", "F6", 287), + new KeyCodeTableRecord(104, "F7", "F7", 288), + new KeyCodeTableRecord(105, "F8", "F8", 289), + new KeyCodeTableRecord(106, "F9", "F9", 290), + new KeyCodeTableRecord(107, "F10", "F10", 291), + new KeyCodeTableRecord(108, "F11", "F11", 292), + new KeyCodeTableRecord(109, "F12", "F12", 293), + new KeyCodeTableRecord(110, "F13", "F13", 294), + new KeyCodeTableRecord(111, "F14", "F14", 295), + new KeyCodeTableRecord(112, "F15", "F15", 296), + new KeyCodeTableRecord(113, "Numlock", "Numlock", 300), + new KeyCodeTableRecord(114, "CapsLock", "CapsLock", 301), + new KeyCodeTableRecord(115, "ScrollLock", "ScrollLock", 302), + new KeyCodeTableRecord(116, "RightShift", "RightShift", 303), + new KeyCodeTableRecord(117, "LeftShift", "LeftShift", 304), + new KeyCodeTableRecord(118, "RightControl", "RightControl", 305), + new KeyCodeTableRecord(119, "LeftControl", "LeftControl", 306), + new KeyCodeTableRecord(120, "RightAlt", "RightAlt", 307), + new KeyCodeTableRecord(121, "LeftAlt", "LeftAlt", 308), + new KeyCodeTableRecord(122, "RightCommand", "RightCommand", 309), + new KeyCodeTableRecord(123, "RightApple", "RightApple", 309), + new KeyCodeTableRecord(124, "LeftCommand", "LeftCommand", 310), + new KeyCodeTableRecord(125, "LeftApple", "LeftApple", 310), + new KeyCodeTableRecord(126, "LeftWindows", "LeftWindows", 311), + new KeyCodeTableRecord(127, "RightWindows", "RightWindows", 312), + new KeyCodeTableRecord(128, "AltGr", "AltGr", 313), + new KeyCodeTableRecord(129, "Help", "Help", 315), + new KeyCodeTableRecord(130, "Print", "Print", 316), + new KeyCodeTableRecord(131, "SysReq", "SysReq", 317), + new KeyCodeTableRecord(132, "Break", "Break", 318), + new KeyCodeTableRecord(133, "Menu", "Menu", 319), + new KeyCodeTableRecord(134, "Mouse0", "Mouse0", 323), + new KeyCodeTableRecord(135, "Mouse1", "Mouse1", 324), + new KeyCodeTableRecord(136, "Mouse2", "Mouse2", 325), + new KeyCodeTableRecord(137, "Mouse3", "Mouse3", 326), + new KeyCodeTableRecord(138, "Mouse4", "Mouse4", 327), + new KeyCodeTableRecord(139, "Mouse5", "Mouse5", 328), + new KeyCodeTableRecord(140, "Mouse6", "Mouse6", 329), + new KeyCodeTableRecord(141, "JoystickButton0", "JoystickButton0", 330), + new KeyCodeTableRecord(142, "JoystickButton1", "JoystickButton1", 331), + new KeyCodeTableRecord(143, "JoystickButton2", "JoystickButton2", 332), + new KeyCodeTableRecord(144, "JoystickButton3", "JoystickButton3", 333), + new KeyCodeTableRecord(145, "JoystickButton4", "JoystickButton4", 334), + new KeyCodeTableRecord(146, "JoystickButton5", "JoystickButton5", 335), + new KeyCodeTableRecord(147, "JoystickButton6", "JoystickButton6", 336), + new KeyCodeTableRecord(148, "JoystickButton7", "JoystickButton7", 337), + new KeyCodeTableRecord(149, "JoystickButton8", "JoystickButton8", 338), + new KeyCodeTableRecord(150, "JoystickButton9", "JoystickButton9", 339), + new KeyCodeTableRecord(151, "JoystickButton10", "JoystickButton10", 340), + new KeyCodeTableRecord(152, "JoystickButton11", "JoystickButton11", 341), + new KeyCodeTableRecord(153, "JoystickButton12", "JoystickButton12", 342), + new KeyCodeTableRecord(154, "JoystickButton13", "JoystickButton13", 343), + new KeyCodeTableRecord(155, "JoystickButton14", "JoystickButton14", 344), + new KeyCodeTableRecord(156, "JoystickButton15", "JoystickButton15", 345), + new KeyCodeTableRecord(157, "JoystickButton16", "JoystickButton16", 346), + new KeyCodeTableRecord(158, "JoystickButton17", "JoystickButton17", 347), + new KeyCodeTableRecord(159, "JoystickButton18", "JoystickButton18", 348), + new KeyCodeTableRecord(160, "JoystickButton19", "JoystickButton19", 349), + new KeyCodeTableRecord(161, "Joystick1Button0", "Joystick1Button0", 350), + new KeyCodeTableRecord(162, "Joystick1Button1", "Joystick1Button1", 351), + new KeyCodeTableRecord(163, "Joystick1Button2", "Joystick1Button2", 352), + new KeyCodeTableRecord(164, "Joystick1Button3", "Joystick1Button3", 353), + new KeyCodeTableRecord(165, "Joystick1Button4", "Joystick1Button4", 354), + new KeyCodeTableRecord(166, "Joystick1Button5", "Joystick1Button5", 355), + new KeyCodeTableRecord(167, "Joystick1Button6", "Joystick1Button6", 356), + new KeyCodeTableRecord(168, "Joystick1Button7", "Joystick1Button7", 357), + new KeyCodeTableRecord(169, "Joystick1Button8", "Joystick1Button8", 358), + new KeyCodeTableRecord(170, "Joystick1Button9", "Joystick1Button9", 359), + new KeyCodeTableRecord(171, "Joystick1Button10", "Joystick1Button10", 360), + new KeyCodeTableRecord(172, "Joystick1Button11", "Joystick1Button11", 361), + new KeyCodeTableRecord(173, "Joystick1Button12", "Joystick1Button12", 362), + new KeyCodeTableRecord(174, "Joystick1Button13", "Joystick1Button13", 363), + new KeyCodeTableRecord(175, "Joystick1Button14", "Joystick1Button14", 364), + new KeyCodeTableRecord(176, "Joystick1Button15", "Joystick1Button15", 365), + new KeyCodeTableRecord(177, "Joystick1Button16", "Joystick1Button16", 366), + new KeyCodeTableRecord(178, "Joystick1Button17", "Joystick1Button17", 367), + new KeyCodeTableRecord(179, "Joystick1Button18", "Joystick1Button18", 368), + new KeyCodeTableRecord(180, "Joystick1Button19", "Joystick1Button19", 369), + new KeyCodeTableRecord(181, "Joystick2Button0", "Joystick2Button0", 370), + new KeyCodeTableRecord(182, "Joystick2Button1", "Joystick2Button1", 371), + new KeyCodeTableRecord(183, "Joystick2Button2", "Joystick2Button2", 372), + new KeyCodeTableRecord(184, "Joystick2Button3", "Joystick2Button3", 373), + new KeyCodeTableRecord(185, "Joystick2Button4", "Joystick2Button4", 374), + new KeyCodeTableRecord(186, "Joystick2Button5", "Joystick2Button5", 375), + new KeyCodeTableRecord(187, "Joystick2Button6", "Joystick2Button6", 376), + new KeyCodeTableRecord(188, "Joystick2Button7", "Joystick2Button7", 377), + new KeyCodeTableRecord(189, "Joystick2Button8", "Joystick2Button8", 378), + new KeyCodeTableRecord(190, "Joystick2Button9", "Joystick2Button9", 379), + new KeyCodeTableRecord(191, "Joystick2Button10", "Joystick2Button10", 380), + new KeyCodeTableRecord(192, "Joystick2Button11", "Joystick2Button11", 381), + new KeyCodeTableRecord(193, "Joystick2Button12", "Joystick2Button12", 382), + new KeyCodeTableRecord(194, "Joystick2Button13", "Joystick2Button13", 383), + new KeyCodeTableRecord(195, "Joystick2Button14", "Joystick2Button14", 384), + new KeyCodeTableRecord(196, "Joystick2Button15", "Joystick2Button15", 385), + new KeyCodeTableRecord(197, "Joystick2Button16", "Joystick2Button16", 386), + new KeyCodeTableRecord(198, "Joystick2Button17", "Joystick2Button17", 387), + new KeyCodeTableRecord(199, "Joystick2Button18", "Joystick2Button18", 388), + new KeyCodeTableRecord(200, "Joystick2Button19", "Joystick2Button19", 389), + new KeyCodeTableRecord(201, "Joystick3Button0", "Joystick3Button0", 390), + new KeyCodeTableRecord(202, "Joystick3Button1", "Joystick3Button1", 391), + new KeyCodeTableRecord(203, "Joystick3Button2", "Joystick3Button2", 392), + new KeyCodeTableRecord(204, "Joystick3Button3", "Joystick3Button3", 393), + new KeyCodeTableRecord(205, "Joystick3Button4", "Joystick3Button4", 394), + new KeyCodeTableRecord(206, "Joystick3Button5", "Joystick3Button5", 395), + new KeyCodeTableRecord(207, "Joystick3Button6", "Joystick3Button6", 396), + new KeyCodeTableRecord(208, "Joystick3Button7", "Joystick3Button7", 397), + new KeyCodeTableRecord(209, "Joystick3Button8", "Joystick3Button8", 398), + new KeyCodeTableRecord(210, "Joystick3Button9", "Joystick3Button9", 399), + new KeyCodeTableRecord(211, "Joystick3Button10", "Joystick3Button10", 400), + new KeyCodeTableRecord(212, "Joystick3Button11", "Joystick3Button11", 401), + new KeyCodeTableRecord(213, "Joystick3Button12", "Joystick3Button12", 402), + new KeyCodeTableRecord(214, "Joystick3Button13", "Joystick3Button13", 403), + new KeyCodeTableRecord(215, "Joystick3Button14", "Joystick3Button14", 404), + new KeyCodeTableRecord(216, "Joystick3Button15", "Joystick3Button15", 405), + new KeyCodeTableRecord(217, "Joystick3Button16", "Joystick3Button16", 406), + new KeyCodeTableRecord(218, "Joystick3Button17", "Joystick3Button17", 407), + new KeyCodeTableRecord(219, "Joystick3Button18", "Joystick3Button18", 408), + new KeyCodeTableRecord(220, "Joystick3Button19", "Joystick3Button19", 409), + new KeyCodeTableRecord(221, "Joystick4Button0", "Joystick4Button0", 410), + new KeyCodeTableRecord(222, "Joystick4Button1", "Joystick4Button1", 411), + new KeyCodeTableRecord(223, "Joystick4Button2", "Joystick4Button2", 412), + new KeyCodeTableRecord(224, "Joystick4Button3", "Joystick4Button3", 413), + new KeyCodeTableRecord(225, "Joystick4Button4", "Joystick4Button4", 414), + new KeyCodeTableRecord(226, "Joystick4Button5", "Joystick4Button5", 415), + new KeyCodeTableRecord(227, "Joystick4Button6", "Joystick4Button6", 416), + new KeyCodeTableRecord(228, "Joystick4Button7", "Joystick4Button7", 417), + new KeyCodeTableRecord(229, "Joystick4Button8", "Joystick4Button8", 418), + new KeyCodeTableRecord(230, "Joystick4Button9", "Joystick4Button9", 419), + new KeyCodeTableRecord(231, "Joystick4Button10", "Joystick4Button10", 420), + new KeyCodeTableRecord(232, "Joystick4Button11", "Joystick4Button11", 421), + new KeyCodeTableRecord(233, "Joystick4Button12", "Joystick4Button12", 422), + new KeyCodeTableRecord(234, "Joystick4Button13", "Joystick4Button13", 423), + new KeyCodeTableRecord(235, "Joystick4Button14", "Joystick4Button14", 424), + new KeyCodeTableRecord(236, "Joystick4Button15", "Joystick4Button15", 425), + new KeyCodeTableRecord(237, "Joystick4Button16", "Joystick4Button16", 426), + new KeyCodeTableRecord(238, "Joystick4Button17", "Joystick4Button17", 427), + new KeyCodeTableRecord(239, "Joystick4Button18", "Joystick4Button18", 428), + new KeyCodeTableRecord(240, "Joystick4Button19", "Joystick4Button19", 429), + new KeyCodeTableRecord(241, "Joystick5Button0", "Joystick5Button0", 430), + new KeyCodeTableRecord(242, "Joystick5Button1", "Joystick5Button1", 431), + new KeyCodeTableRecord(243, "Joystick5Button2", "Joystick5Button2", 432), + new KeyCodeTableRecord(244, "Joystick5Button3", "Joystick5Button3", 433), + new KeyCodeTableRecord(245, "Joystick5Button4", "Joystick5Button4", 434), + new KeyCodeTableRecord(246, "Joystick5Button5", "Joystick5Button5", 435), + new KeyCodeTableRecord(247, "Joystick5Button6", "Joystick5Button6", 436), + new KeyCodeTableRecord(248, "Joystick5Button7", "Joystick5Button7", 437), + new KeyCodeTableRecord(249, "Joystick5Button8", "Joystick5Button8", 438), + new KeyCodeTableRecord(250, "Joystick5Button9", "Joystick5Button9", 439), + new KeyCodeTableRecord(251, "Joystick5Button10", "Joystick5Button10", 440), + new KeyCodeTableRecord(252, "Joystick5Button11", "Joystick5Button11", 441), + new KeyCodeTableRecord(253, "Joystick5Button12", "Joystick5Button12", 442), + new KeyCodeTableRecord(254, "Joystick5Button13", "Joystick5Button13", 443), + new KeyCodeTableRecord(255, "Joystick5Button14", "Joystick5Button14", 444), + new KeyCodeTableRecord(256, "Joystick5Button15", "Joystick5Button15", 445), + new KeyCodeTableRecord(257, "Joystick5Button16", "Joystick5Button16", 446), + new KeyCodeTableRecord(258, "Joystick5Button17", "Joystick5Button17", 447), + new KeyCodeTableRecord(259, "Joystick5Button18", "Joystick5Button18", 448), + new KeyCodeTableRecord(260, "Joystick5Button19", "Joystick5Button19", 449), + new KeyCodeTableRecord(261, "Joystick6Button0", "Joystick6Button0", 450), + new KeyCodeTableRecord(262, "Joystick6Button1", "Joystick6Button1", 451), + new KeyCodeTableRecord(263, "Joystick6Button2", "Joystick6Button2", 452), + new KeyCodeTableRecord(264, "Joystick6Button3", "Joystick6Button3", 453), + new KeyCodeTableRecord(265, "Joystick6Button4", "Joystick6Button4", 454), + new KeyCodeTableRecord(266, "Joystick6Button5", "Joystick6Button5", 455), + new KeyCodeTableRecord(267, "Joystick6Button6", "Joystick6Button6", 456), + new KeyCodeTableRecord(268, "Joystick6Button7", "Joystick6Button7", 457), + new KeyCodeTableRecord(269, "Joystick6Button8", "Joystick6Button8", 458), + new KeyCodeTableRecord(270, "Joystick6Button9", "Joystick6Button9", 459), + new KeyCodeTableRecord(271, "Joystick6Button10", "Joystick6Button10", 460), + new KeyCodeTableRecord(272, "Joystick6Button11", "Joystick6Button11", 461), + new KeyCodeTableRecord(273, "Joystick6Button12", "Joystick6Button12", 462), + new KeyCodeTableRecord(274, "Joystick6Button13", "Joystick6Button13", 463), + new KeyCodeTableRecord(275, "Joystick6Button14", "Joystick6Button14", 464), + new KeyCodeTableRecord(276, "Joystick6Button15", "Joystick6Button15", 465), + new KeyCodeTableRecord(277, "Joystick6Button16", "Joystick6Button16", 466), + new KeyCodeTableRecord(278, "Joystick6Button17", "Joystick6Button17", 467), + new KeyCodeTableRecord(279, "Joystick6Button18", "Joystick6Button18", 468), + new KeyCodeTableRecord(280, "Joystick6Button19", "Joystick6Button19", 469), + new KeyCodeTableRecord(281, "Joystick7Button0", "Joystick7Button0", 470), + new KeyCodeTableRecord(282, "Joystick7Button1", "Joystick7Button1", 471), + new KeyCodeTableRecord(283, "Joystick7Button2", "Joystick7Button2", 472), + new KeyCodeTableRecord(284, "Joystick7Button3", "Joystick7Button3", 473), + new KeyCodeTableRecord(285, "Joystick7Button4", "Joystick7Button4", 474), + new KeyCodeTableRecord(286, "Joystick7Button5", "Joystick7Button5", 475), + new KeyCodeTableRecord(287, "Joystick7Button6", "Joystick7Button6", 476), + new KeyCodeTableRecord(288, "Joystick7Button7", "Joystick7Button7", 477), + new KeyCodeTableRecord(289, "Joystick7Button8", "Joystick7Button8", 478), + new KeyCodeTableRecord(290, "Joystick7Button9", "Joystick7Button9", 479), + new KeyCodeTableRecord(291, "Joystick7Button10", "Joystick7Button10", 480), + new KeyCodeTableRecord(292, "Joystick7Button11", "Joystick7Button11", 481), + new KeyCodeTableRecord(293, "Joystick7Button12", "Joystick7Button12", 482), + new KeyCodeTableRecord(294, "Joystick7Button13", "Joystick7Button13", 483), + new KeyCodeTableRecord(295, "Joystick7Button14", "Joystick7Button14", 484), + new KeyCodeTableRecord(296, "Joystick7Button15", "Joystick7Button15", 485), + new KeyCodeTableRecord(297, "Joystick7Button16", "Joystick7Button16", 486), + new KeyCodeTableRecord(298, "Joystick7Button17", "Joystick7Button17", 487), + new KeyCodeTableRecord(299, "Joystick7Button18", "Joystick7Button18", 488), + new KeyCodeTableRecord(300, "Joystick7Button19", "Joystick7Button19", 489), + new KeyCodeTableRecord(301, "Joystick8Button0", "Joystick8Button0", 490), + new KeyCodeTableRecord(302, "Joystick8Button1", "Joystick8Button1", 491), + new KeyCodeTableRecord(303, "Joystick8Button2", "Joystick8Button2", 492), + new KeyCodeTableRecord(304, "Joystick8Button3", "Joystick8Button3", 493), + new KeyCodeTableRecord(305, "Joystick8Button4", "Joystick8Button4", 494), + new KeyCodeTableRecord(306, "Joystick8Button5", "Joystick8Button5", 495), + new KeyCodeTableRecord(307, "Joystick8Button6", "Joystick8Button6", 496), + new KeyCodeTableRecord(308, "Joystick8Button7", "Joystick8Button7", 497), + new KeyCodeTableRecord(309, "Joystick8Button8", "Joystick8Button8", 498), + new KeyCodeTableRecord(310, "Joystick8Button9", "Joystick8Button9", 499), + new KeyCodeTableRecord(311, "Joystick8Button10", "Joystick8Button10", 500), + new KeyCodeTableRecord(312, "Joystick8Button11", "Joystick8Button11", 501), + new KeyCodeTableRecord(313, "Joystick8Button12", "Joystick8Button12", 502), + new KeyCodeTableRecord(314, "Joystick8Button13", "Joystick8Button13", 503), + new KeyCodeTableRecord(315, "Joystick8Button14", "Joystick8Button14", 504), + new KeyCodeTableRecord(316, "Joystick8Button15", "Joystick8Button15", 505), + new KeyCodeTableRecord(317, "Joystick8Button16", "Joystick8Button16", 506), + new KeyCodeTableRecord(318, "Joystick8Button17", "Joystick8Button17", 507), + new KeyCodeTableRecord(319, "Joystick8Button18", "Joystick8Button18", 508), + new KeyCodeTableRecord(320, "Joystick8Button19", "Joystick8Button19", 509) + }; + } +} diff --git a/Assembly-CSharp/DB/KeyCodeTableRecord.cs b/Assembly-CSharp/DB/KeyCodeTableRecord.cs new file mode 100644 index 0000000..a7e7788 --- /dev/null +++ b/Assembly-CSharp/DB/KeyCodeTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000767 RID: 1895 + public class KeyCodeTableRecord + { + // Token: 0x060043D1 RID: 17361 RVA: 0x00003560 File Offset: 0x00002760 + public KeyCodeTableRecord() + { + } + + // Token: 0x060043D2 RID: 17362 RVA: 0x001792D5 File Offset: 0x001784D5 + public KeyCodeTableRecord(int EnumValue, string EnumName, string Name, int Value) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.Value = Value; + } + + // Token: 0x0400519B RID: 20891 + public int EnumValue; + + // Token: 0x0400519C RID: 20892 + public string EnumName; + + // Token: 0x0400519D RID: 20893 + public string Name; + + // Token: 0x0400519E RID: 20894 + public int Value; + } +} diff --git a/Assembly-CSharp/DB/LedBlock.cs b/Assembly-CSharp/DB/LedBlock.cs new file mode 100644 index 0000000..a9c05c0 --- /dev/null +++ b/Assembly-CSharp/DB/LedBlock.cs @@ -0,0 +1,50 @@ +using System; +using IO; +using UnityEngine; + +namespace DB +{ + // Token: 0x020008D7 RID: 2263 + public static class LedBlock + { + // Token: 0x06004ACA RID: 19146 RVA: 0x00190594 File Offset: 0x0018F794 + public static void SetColor(this LedBlockID self, Color color) + { + if (self.IsValid()) + { + if (self.IsJvs()) + { + if (self.GetLedbdID() == -1) + { + Jvs jvs = MechaManager.Jvs; + if (jvs == null) + { + return; + } + jvs.SetPwmOutput((byte)self.GetPlayerindex(), color); + return; + } + else + { + Jvs jvs2 = MechaManager.Jvs; + if (jvs2 == null) + { + return; + } + jvs2.SetOutput((JvsOutputID)self.GetLedbdID(), color.r > 0f); + return; + } + } + else + { + if (self.IsFet()) + { + MechaManager.LedIf[self.GetPlayerindex()].SetColorFet((byte)self.GetLedbdID(), (byte)(color.r * 255f)); + return; + } + MechaManager.LedIf[self.GetPlayerindex()].SetColor((byte)self.GetLedbdID(), color); + } + } + } + } +} diff --git a/Assembly-CSharp/DB/LedBlockID.cs b/Assembly-CSharp/DB/LedBlockID.cs new file mode 100644 index 0000000..262d20f --- /dev/null +++ b/Assembly-CSharp/DB/LedBlockID.cs @@ -0,0 +1,71 @@ +using System; + +namespace DB +{ + // Token: 0x02000769 RID: 1897 + public enum LedBlockID + { + // Token: 0x040051A1 RID: 20897 + Button1_1P, + // Token: 0x040051A2 RID: 20898 + Button2_1P, + // Token: 0x040051A3 RID: 20899 + Button3_1P, + // Token: 0x040051A4 RID: 20900 + Button4_1P, + // Token: 0x040051A5 RID: 20901 + Button5_1P, + // Token: 0x040051A6 RID: 20902 + Button6_1P, + // Token: 0x040051A7 RID: 20903 + Button7_1P, + // Token: 0x040051A8 RID: 20904 + Button8_1P, + // Token: 0x040051A9 RID: 20905 + Body_1P, + // Token: 0x040051AA RID: 20906 + Circle_1P, + // Token: 0x040051AB RID: 20907 + Side_1P, + // Token: 0x040051AC RID: 20908 + Billboard_1P, + // Token: 0x040051AD RID: 20909 + QrLed_1P, + // Token: 0x040051AE RID: 20910 + Button1_2P, + // Token: 0x040051AF RID: 20911 + Button2_2P, + // Token: 0x040051B0 RID: 20912 + Button3_2P, + // Token: 0x040051B1 RID: 20913 + Button4_2P, + // Token: 0x040051B2 RID: 20914 + Button5_2P, + // Token: 0x040051B3 RID: 20915 + Button6_2P, + // Token: 0x040051B4 RID: 20916 + Button7_2P, + // Token: 0x040051B5 RID: 20917 + Button8_2P, + // Token: 0x040051B6 RID: 20918 + Body_2P, + // Token: 0x040051B7 RID: 20919 + Circle_2P, + // Token: 0x040051B8 RID: 20920 + Side_2P, + // Token: 0x040051B9 RID: 20921 + Billboard_2P, + // Token: 0x040051BA RID: 20922 + QrLed_2P, + // Token: 0x040051BB RID: 20923 + Cam, + // Token: 0x040051BC RID: 20924 + CamRec, + // Token: 0x040051BD RID: 20925 + Begin = 0, + // Token: 0x040051BE RID: 20926 + End = 28, + // Token: 0x040051BF RID: 20927 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/LedBlockIDEnum.cs b/Assembly-CSharp/DB/LedBlockIDEnum.cs new file mode 100644 index 0000000..f7f0cc8 --- /dev/null +++ b/Assembly-CSharp/DB/LedBlockIDEnum.cs @@ -0,0 +1,154 @@ +using System; + +namespace DB +{ + // Token: 0x0200076B RID: 1899 + public static class LedBlockIDEnum + { + // Token: 0x060043E0 RID: 17376 RVA: 0x00174150 File Offset: 0x00173350 + public static bool IsActive(this LedBlockID self) + { + return self >= LedBlockID.Button1_1P && self < LedBlockID.End && self > LedBlockID.Button1_1P; + } + + // Token: 0x060043E1 RID: 17377 RVA: 0x00174161 File Offset: 0x00173361 + public static bool IsValid(this LedBlockID self) + { + return self >= LedBlockID.Button1_1P && self < LedBlockID.End; + } + + // Token: 0x060043E2 RID: 17378 RVA: 0x0017B87E File Offset: 0x0017AA7E + public static void Clamp(this LedBlockID self) + { + if (self < LedBlockID.Button1_1P) + { + self = LedBlockID.Button1_1P; + return; + } + if (self >= (LedBlockID)LedBlockIDEnum.GetEnd()) + { + self = (LedBlockID)LedBlockIDEnum.GetEnd(); + } + } + + // Token: 0x060043E3 RID: 17379 RVA: 0x0017B897 File Offset: 0x0017AA97 + public static int GetEnd(this LedBlockID self) + { + return LedBlockIDEnum.GetEnd(); + } + + // Token: 0x060043E4 RID: 17380 RVA: 0x0017B8A0 File Offset: 0x0017AAA0 + public static LedBlockID FindID(string enumName) + { + for (LedBlockID ledBlockID = LedBlockID.Button1_1P; ledBlockID < LedBlockID.End; ledBlockID++) + { + if (ledBlockID.GetEnumName() == enumName) + { + return ledBlockID; + } + } + return LedBlockID.Invalid; + } + + // Token: 0x060043E5 RID: 17381 RVA: 0x0017B8CB File Offset: 0x0017AACB + public static int GetEnd() + { + return LedBlockIDEnum.records.Length; + } + + // Token: 0x060043E6 RID: 17382 RVA: 0x0017B8D4 File Offset: 0x0017AAD4 + public static int GetEnumValue(this LedBlockID self) + { + if (self.IsValid()) + { + return LedBlockIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060043E7 RID: 17383 RVA: 0x0017B8EC File Offset: 0x0017AAEC + public static string GetEnumName(this LedBlockID self) + { + if (self.IsValid()) + { + return LedBlockIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060043E8 RID: 17384 RVA: 0x0017B908 File Offset: 0x0017AB08 + public static string GetName(this LedBlockID self) + { + if (self.IsValid()) + { + return LedBlockIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060043E9 RID: 17385 RVA: 0x0017B924 File Offset: 0x0017AB24 + public static int GetLedbdID(this LedBlockID self) + { + if (self.IsValid()) + { + return LedBlockIDEnum.records[(int)self].LedbdID; + } + return 0; + } + + // Token: 0x060043EA RID: 17386 RVA: 0x0017B93C File Offset: 0x0017AB3C + public static int GetPlayerindex(this LedBlockID self) + { + if (self.IsValid()) + { + return LedBlockIDEnum.records[(int)self].Playerindex; + } + return 0; + } + + // Token: 0x060043EB RID: 17387 RVA: 0x0017B954 File Offset: 0x0017AB54 + public static bool IsJvs(this LedBlockID self) + { + return self.IsValid() && LedBlockIDEnum.records[(int)self].isJvs; + } + + // Token: 0x060043EC RID: 17388 RVA: 0x0017B96C File Offset: 0x0017AB6C + public static bool IsFet(this LedBlockID self) + { + return self.IsValid() && LedBlockIDEnum.records[(int)self].isFet; + } + + // Token: 0x040051C7 RID: 20935 + private static readonly LedBlockTableRecord[] records = new LedBlockTableRecord[] + { + new LedBlockTableRecord(0, "Button1_1P", "1Pボタン1LED", 0, 0, 0, 0), + new LedBlockTableRecord(1, "Button2_1P", "1Pボタン2LED", 1, 0, 0, 0), + new LedBlockTableRecord(2, "Button3_1P", "1Pボタン3LED", 2, 0, 0, 0), + new LedBlockTableRecord(3, "Button4_1P", "1Pボタン4LED", 3, 0, 0, 0), + new LedBlockTableRecord(4, "Button5_1P", "1Pボタン5LED", 4, 0, 0, 0), + new LedBlockTableRecord(5, "Button6_1P", "1Pボタン6LED", 5, 0, 0, 0), + new LedBlockTableRecord(6, "Button7_1P", "1Pボタン7LED", 6, 0, 0, 0), + new LedBlockTableRecord(7, "Button8_1P", "1Pボタン8LED", 7, 0, 0, 0), + new LedBlockTableRecord(8, "Body_1P", "1PボディLED", 8, 0, 0, 1), + new LedBlockTableRecord(9, "Circle_1P", "1P画面外周LED", 9, 0, 0, 1), + new LedBlockTableRecord(10, "Side_1P", "1P横LED", 10, 0, 0, 1), + new LedBlockTableRecord(11, "Billboard_1P", "1P上部LED", -1, 0, 1, 0), + new LedBlockTableRecord(12, "QrLed_1P", "1PQRLED", 1, -1, 1, 0), + new LedBlockTableRecord(13, "Button1_2P", "2Pボタン1LED", 0, 1, 0, 0), + new LedBlockTableRecord(14, "Button2_2P", "2Pボタン2LED", 1, 1, 0, 0), + new LedBlockTableRecord(15, "Button3_2P", "2Pボタン3LED", 2, 1, 0, 0), + new LedBlockTableRecord(16, "Button4_2P", "2Pボタン4LED", 3, 1, 0, 0), + new LedBlockTableRecord(17, "Button5_2P", "2Pボタン5LED", 4, 1, 0, 0), + new LedBlockTableRecord(18, "Button6_2P", "2Pボタン6LED", 5, 1, 0, 0), + new LedBlockTableRecord(19, "Button7_2P", "2Pボタン7LED", 6, 1, 0, 0), + new LedBlockTableRecord(20, "Button8_2P", "2Pボタン8LED", 7, 1, 0, 0), + new LedBlockTableRecord(21, "Body_2P", "2PボディLED", 8, 1, 0, 1), + new LedBlockTableRecord(22, "Circle_2P", "2P画面外周LED", 9, 1, 0, 1), + new LedBlockTableRecord(23, "Side_2P", "2P横LED", 10, 1, 0, 1), + new LedBlockTableRecord(24, "Billboard_2P", "2P上部LED", -1, 1, 1, 0), + new LedBlockTableRecord(25, "QrLed_2P", "2PQRLED", 2, -1, 1, 0), + new LedBlockTableRecord(26, "Cam", "カメラ(左のみ)", 3, -1, 1, 0), + new LedBlockTableRecord(27, "CamRec", "カメラRec", 4, -1, 1, 0) + }; + } +} diff --git a/Assembly-CSharp/DB/LedBlockTableRecord.cs b/Assembly-CSharp/DB/LedBlockTableRecord.cs new file mode 100644 index 0000000..b633120 --- /dev/null +++ b/Assembly-CSharp/DB/LedBlockTableRecord.cs @@ -0,0 +1,46 @@ +using System; + +namespace DB +{ + // Token: 0x0200076A RID: 1898 + public class LedBlockTableRecord + { + // Token: 0x060043DE RID: 17374 RVA: 0x00003560 File Offset: 0x00002760 + public LedBlockTableRecord() + { + } + + // Token: 0x060043DF RID: 17375 RVA: 0x0017B830 File Offset: 0x0017AA30 + public LedBlockTableRecord(int EnumValue, string EnumName, string Name, int LedbdID, int Playerindex, int isJvs, int isFet) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.LedbdID = LedbdID; + this.Playerindex = Playerindex; + this.isJvs = isJvs != 0; + this.isFet = isFet != 0; + } + + // Token: 0x040051C0 RID: 20928 + public int EnumValue; + + // Token: 0x040051C1 RID: 20929 + public string EnumName; + + // Token: 0x040051C2 RID: 20930 + public string Name; + + // Token: 0x040051C3 RID: 20931 + public int LedbdID; + + // Token: 0x040051C4 RID: 20932 + public int Playerindex; + + // Token: 0x040051C5 RID: 20933 + public bool isJvs; + + // Token: 0x040051C6 RID: 20934 + public bool isFet; + } +} diff --git a/Assembly-CSharp/DB/MachineGroupID.cs b/Assembly-CSharp/DB/MachineGroupID.cs new file mode 100644 index 0000000..059237f --- /dev/null +++ b/Assembly-CSharp/DB/MachineGroupID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x0200076C RID: 1900 + public enum MachineGroupID + { + // Token: 0x040051C9 RID: 20937 + ON, + // Token: 0x040051CA RID: 20938 + OFF, + // Token: 0x040051CB RID: 20939 + Begin = 0, + // Token: 0x040051CC RID: 20940 + End = 2, + // Token: 0x040051CD RID: 20941 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/MachineGroupIDEnum.cs b/Assembly-CSharp/DB/MachineGroupIDEnum.cs new file mode 100644 index 0000000..511257e --- /dev/null +++ b/Assembly-CSharp/DB/MachineGroupIDEnum.cs @@ -0,0 +1,96 @@ +using System; + +namespace DB +{ + // Token: 0x0200076E RID: 1902 + public static class MachineGroupIDEnum + { + // Token: 0x060043F0 RID: 17392 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this MachineGroupID self) + { + return self >= MachineGroupID.ON && self < MachineGroupID.End && self > MachineGroupID.ON; + } + + // Token: 0x060043F1 RID: 17393 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this MachineGroupID self) + { + return self >= MachineGroupID.ON && self < MachineGroupID.End; + } + + // Token: 0x060043F2 RID: 17394 RVA: 0x0017BC68 File Offset: 0x0017AE68 + public static void Clamp(this MachineGroupID self) + { + if (self < MachineGroupID.ON) + { + self = MachineGroupID.ON; + return; + } + if (self >= (MachineGroupID)MachineGroupIDEnum.GetEnd()) + { + self = (MachineGroupID)MachineGroupIDEnum.GetEnd(); + } + } + + // Token: 0x060043F3 RID: 17395 RVA: 0x0017BC81 File Offset: 0x0017AE81 + public static int GetEnd(this MachineGroupID self) + { + return MachineGroupIDEnum.GetEnd(); + } + + // Token: 0x060043F4 RID: 17396 RVA: 0x0017BC88 File Offset: 0x0017AE88 + public static MachineGroupID FindID(string enumName) + { + for (MachineGroupID machineGroupID = MachineGroupID.ON; machineGroupID < MachineGroupID.End; machineGroupID++) + { + if (machineGroupID.GetEnumName() == enumName) + { + return machineGroupID; + } + } + return MachineGroupID.Invalid; + } + + // Token: 0x060043F5 RID: 17397 RVA: 0x0017BCB2 File Offset: 0x0017AEB2 + public static int GetEnd() + { + return MachineGroupIDEnum.records.Length; + } + + // Token: 0x060043F6 RID: 17398 RVA: 0x0017BCBB File Offset: 0x0017AEBB + public static int GetEnumValue(this MachineGroupID self) + { + if (self.IsValid()) + { + return MachineGroupIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060043F7 RID: 17399 RVA: 0x0017BCD3 File Offset: 0x0017AED3 + public static string GetEnumName(this MachineGroupID self) + { + if (self.IsValid()) + { + return MachineGroupIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060043F8 RID: 17400 RVA: 0x0017BCEF File Offset: 0x0017AEEF + public static string GetName(this MachineGroupID self) + { + if (self.IsValid()) + { + return MachineGroupIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x040051D1 RID: 20945 + private static readonly MachineGroupTableRecord[] records = new MachineGroupTableRecord[] + { + new MachineGroupTableRecord(0, "ON", "ON"), + new MachineGroupTableRecord(1, "OFF", "OFF") + }; + } +} diff --git a/Assembly-CSharp/DB/MachineGroupTableRecord.cs b/Assembly-CSharp/DB/MachineGroupTableRecord.cs new file mode 100644 index 0000000..926b91d --- /dev/null +++ b/Assembly-CSharp/DB/MachineGroupTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x0200076D RID: 1901 + public class MachineGroupTableRecord + { + // Token: 0x060043EE RID: 17390 RVA: 0x00003560 File Offset: 0x00002760 + public MachineGroupTableRecord() + { + } + + // Token: 0x060043EF RID: 17391 RVA: 0x0017BC4B File Offset: 0x0017AE4B + public MachineGroupTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x040051CE RID: 20942 + public int EnumValue; + + // Token: 0x040051CF RID: 20943 + public string EnumName; + + // Token: 0x040051D0 RID: 20944 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/MaintenanceInfoID.cs b/Assembly-CSharp/DB/MaintenanceInfoID.cs new file mode 100644 index 0000000..307f18a --- /dev/null +++ b/Assembly-CSharp/DB/MaintenanceInfoID.cs @@ -0,0 +1,35 @@ +using System; + +namespace DB +{ + // Token: 0x0200076F RID: 1903 + public enum MaintenanceInfoID + { + // Token: 0x040051D3 RID: 20947 + ShowNotice, + // Token: 0x040051D4 RID: 20948 + ShowEndReception, + // Token: 0x040051D5 RID: 20949 + MaintenanceReboot, + // Token: 0x040051D6 RID: 20950 + DataReboot, + // Token: 0x040051D7 RID: 20951 + Reporting, + // Token: 0x040051D8 RID: 20952 + RefreshReboot, + // Token: 0x040051D9 RID: 20953 + RefreshNotice, + // Token: 0x040051DA RID: 20954 + ShowForceOfflineNotice, + // Token: 0x040051DB RID: 20955 + ShowNearForceOfflineNotice, + // Token: 0x040051DC RID: 20956 + ForceOffline, + // Token: 0x040051DD RID: 20957 + Begin = 0, + // Token: 0x040051DE RID: 20958 + End = 10, + // Token: 0x040051DF RID: 20959 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/MaintenanceInfoIDEnum.cs b/Assembly-CSharp/DB/MaintenanceInfoIDEnum.cs new file mode 100644 index 0000000..499c9e0 --- /dev/null +++ b/Assembly-CSharp/DB/MaintenanceInfoIDEnum.cs @@ -0,0 +1,104 @@ +using System; + +namespace DB +{ + // Token: 0x02000771 RID: 1905 + public static class MaintenanceInfoIDEnum + { + // Token: 0x060043FC RID: 17404 RVA: 0x001784B0 File Offset: 0x001776B0 + public static bool IsActive(this MaintenanceInfoID self) + { + return self >= MaintenanceInfoID.ShowNotice && self < MaintenanceInfoID.End && self > MaintenanceInfoID.ShowNotice; + } + + // Token: 0x060043FD RID: 17405 RVA: 0x001784C1 File Offset: 0x001776C1 + public static bool IsValid(this MaintenanceInfoID self) + { + return self >= MaintenanceInfoID.ShowNotice && self < MaintenanceInfoID.End; + } + + // Token: 0x060043FE RID: 17406 RVA: 0x0017BD5B File Offset: 0x0017AF5B + public static void Clamp(this MaintenanceInfoID self) + { + if (self < MaintenanceInfoID.ShowNotice) + { + self = MaintenanceInfoID.ShowNotice; + return; + } + if (self >= (MaintenanceInfoID)MaintenanceInfoIDEnum.GetEnd()) + { + self = (MaintenanceInfoID)MaintenanceInfoIDEnum.GetEnd(); + } + } + + // Token: 0x060043FF RID: 17407 RVA: 0x0017BD74 File Offset: 0x0017AF74 + public static int GetEnd(this MaintenanceInfoID self) + { + return MaintenanceInfoIDEnum.GetEnd(); + } + + // Token: 0x06004400 RID: 17408 RVA: 0x0017BD7C File Offset: 0x0017AF7C + public static MaintenanceInfoID FindID(string enumName) + { + for (MaintenanceInfoID maintenanceInfoID = MaintenanceInfoID.ShowNotice; maintenanceInfoID < MaintenanceInfoID.End; maintenanceInfoID++) + { + if (maintenanceInfoID.GetEnumName() == enumName) + { + return maintenanceInfoID; + } + } + return MaintenanceInfoID.Invalid; + } + + // Token: 0x06004401 RID: 17409 RVA: 0x0017BDA7 File Offset: 0x0017AFA7 + public static int GetEnd() + { + return MaintenanceInfoIDEnum.records.Length; + } + + // Token: 0x06004402 RID: 17410 RVA: 0x0017BDB0 File Offset: 0x0017AFB0 + public static int GetEnumValue(this MaintenanceInfoID self) + { + if (self.IsValid()) + { + return MaintenanceInfoIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004403 RID: 17411 RVA: 0x0017BDC8 File Offset: 0x0017AFC8 + public static string GetEnumName(this MaintenanceInfoID self) + { + if (self.IsValid()) + { + return MaintenanceInfoIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004404 RID: 17412 RVA: 0x0017BDE4 File Offset: 0x0017AFE4 + public static string GetName(this MaintenanceInfoID self) + { + if (self.IsValid()) + { + return MaintenanceInfoIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x040051E3 RID: 20963 + private static readonly MaintenanceInfoTableRecord[] records = new MaintenanceInfoTableRecord[] + { + new MaintenanceInfoTableRecord(0, "ShowNotice", "还有{0}分钟游戏报名就要结束了"), + new MaintenanceInfoTableRecord(1, "ShowEndReception", "今天的报名已结束"), + new MaintenanceInfoTableRecord(2, "MaintenanceReboot", "因系统维护\r\n正在重启"), + new MaintenanceInfoTableRecord(3, "DataReboot", "因更新数据\r\n正在重启"), + new MaintenanceInfoTableRecord(4, "Reporting", "正在进行网络连接\r\n请稍等"), + new MaintenanceInfoTableRecord(5, "RefreshReboot", "为了稳定系统将会进行重启"), + new MaintenanceInfoTableRecord(6, "RefreshNotice", "{0}分钟后,为了稳定系统将会进行重启"), + new MaintenanceInfoTableRecord(7, "ShowForceOfflineNotice", "【要翻訳】Aime Play-Start time ends in {0} minutes"), + new MaintenanceInfoTableRecord(8, "ShowNearForceOfflineNotice", "【要翻訳】Server under maintenance\nYou can't play with Aime now"), + new MaintenanceInfoTableRecord(9, "ForceOffline", "【要翻訳】Server under maintenance\nYou can't play with Aime now") + }; + } +} diff --git a/Assembly-CSharp/DB/MaintenanceInfoTableRecord.cs b/Assembly-CSharp/DB/MaintenanceInfoTableRecord.cs new file mode 100644 index 0000000..eea1826 --- /dev/null +++ b/Assembly-CSharp/DB/MaintenanceInfoTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000770 RID: 1904 + public class MaintenanceInfoTableRecord + { + // Token: 0x060043FA RID: 17402 RVA: 0x00003560 File Offset: 0x00002760 + public MaintenanceInfoTableRecord() + { + } + + // Token: 0x060043FB RID: 17403 RVA: 0x0017BD3E File Offset: 0x0017AF3E + public MaintenanceInfoTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x040051E0 RID: 20960 + public int EnumValue; + + // Token: 0x040051E1 RID: 20961 + public string EnumName; + + // Token: 0x040051E2 RID: 20962 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/MissionKindID.cs b/Assembly-CSharp/DB/MissionKindID.cs new file mode 100644 index 0000000..9b84d2f --- /dev/null +++ b/Assembly-CSharp/DB/MissionKindID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x02000772 RID: 1906 + public enum MissionKindID + { + // Token: 0x040051E5 RID: 20965 + Login, + // Token: 0x040051E6 RID: 20966 + MusicPlay, + // Token: 0x040051E7 RID: 20967 + Buddy, + // Token: 0x040051E8 RID: 20968 + Begin = 0, + // Token: 0x040051E9 RID: 20969 + End = 3, + // Token: 0x040051EA RID: 20970 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/MissionKindIDEnum.cs b/Assembly-CSharp/DB/MissionKindIDEnum.cs new file mode 100644 index 0000000..43bd333 --- /dev/null +++ b/Assembly-CSharp/DB/MissionKindIDEnum.cs @@ -0,0 +1,97 @@ +using System; + +namespace DB +{ + // Token: 0x02000774 RID: 1908 + public static class MissionKindIDEnum + { + // Token: 0x06004408 RID: 17416 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this MissionKindID self) + { + return self >= MissionKindID.Login && self < MissionKindID.End && self > MissionKindID.Login; + } + + // Token: 0x06004409 RID: 17417 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this MissionKindID self) + { + return self >= MissionKindID.Login && self < MissionKindID.End; + } + + // Token: 0x0600440A RID: 17418 RVA: 0x0017BEF6 File Offset: 0x0017B0F6 + public static void Clamp(this MissionKindID self) + { + if (self < MissionKindID.Login) + { + self = MissionKindID.Login; + return; + } + if (self >= (MissionKindID)MissionKindIDEnum.GetEnd()) + { + self = (MissionKindID)MissionKindIDEnum.GetEnd(); + } + } + + // Token: 0x0600440B RID: 17419 RVA: 0x0017BF0F File Offset: 0x0017B10F + public static int GetEnd(this MissionKindID self) + { + return MissionKindIDEnum.GetEnd(); + } + + // Token: 0x0600440C RID: 17420 RVA: 0x0017BF18 File Offset: 0x0017B118 + public static MissionKindID FindID(string enumName) + { + for (MissionKindID missionKindID = MissionKindID.Login; missionKindID < MissionKindID.End; missionKindID++) + { + if (missionKindID.GetEnumName() == enumName) + { + return missionKindID; + } + } + return MissionKindID.Invalid; + } + + // Token: 0x0600440D RID: 17421 RVA: 0x0017BF42 File Offset: 0x0017B142 + public static int GetEnd() + { + return MissionKindIDEnum.records.Length; + } + + // Token: 0x0600440E RID: 17422 RVA: 0x0017BF4B File Offset: 0x0017B14B + public static int GetEnumValue(this MissionKindID self) + { + if (self.IsValid()) + { + return MissionKindIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600440F RID: 17423 RVA: 0x0017BF63 File Offset: 0x0017B163 + public static string GetEnumName(this MissionKindID self) + { + if (self.IsValid()) + { + return MissionKindIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004410 RID: 17424 RVA: 0x0017BF7F File Offset: 0x0017B17F + public static string GetName(this MissionKindID self) + { + if (self.IsValid()) + { + return MissionKindIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x040051EE RID: 20974 + private static readonly MissionKindTableRecord[] records = new MissionKindTableRecord[] + { + new MissionKindTableRecord(0, "Login", "ログイン"), + new MissionKindTableRecord(1, "MusicPlay", "楽曲プレイ"), + new MissionKindTableRecord(2, "Buddy", "バディ") + }; + } +} diff --git a/Assembly-CSharp/DB/MissionKindTableRecord.cs b/Assembly-CSharp/DB/MissionKindTableRecord.cs new file mode 100644 index 0000000..7d5fb42 --- /dev/null +++ b/Assembly-CSharp/DB/MissionKindTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000773 RID: 1907 + public class MissionKindTableRecord + { + // Token: 0x06004406 RID: 17414 RVA: 0x00003560 File Offset: 0x00002760 + public MissionKindTableRecord() + { + } + + // Token: 0x06004407 RID: 17415 RVA: 0x0017BED9 File Offset: 0x0017B0D9 + public MissionKindTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x040051EB RID: 20971 + public int EnumValue; + + // Token: 0x040051EC RID: 20972 + public string EnumName; + + // Token: 0x040051ED RID: 20973 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/MissionLevelID.cs b/Assembly-CSharp/DB/MissionLevelID.cs new file mode 100644 index 0000000..563d31c --- /dev/null +++ b/Assembly-CSharp/DB/MissionLevelID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x02000775 RID: 1909 + public enum MissionLevelID + { + // Token: 0x040051F0 RID: 20976 + Level1, + // Token: 0x040051F1 RID: 20977 + Level2, + // Token: 0x040051F2 RID: 20978 + Begin = 0, + // Token: 0x040051F3 RID: 20979 + End = 2, + // Token: 0x040051F4 RID: 20980 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/MissionLevelIDEnum.cs b/Assembly-CSharp/DB/MissionLevelIDEnum.cs new file mode 100644 index 0000000..a466d0d --- /dev/null +++ b/Assembly-CSharp/DB/MissionLevelIDEnum.cs @@ -0,0 +1,96 @@ +using System; + +namespace DB +{ + // Token: 0x02000777 RID: 1911 + public static class MissionLevelIDEnum + { + // Token: 0x06004414 RID: 17428 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this MissionLevelID self) + { + return self >= MissionLevelID.Level1 && self < MissionLevelID.End && self > MissionLevelID.Level1; + } + + // Token: 0x06004415 RID: 17429 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this MissionLevelID self) + { + return self >= MissionLevelID.Level1 && self < MissionLevelID.End; + } + + // Token: 0x06004416 RID: 17430 RVA: 0x0017C00A File Offset: 0x0017B20A + public static void Clamp(this MissionLevelID self) + { + if (self < MissionLevelID.Level1) + { + self = MissionLevelID.Level1; + return; + } + if (self >= (MissionLevelID)MissionLevelIDEnum.GetEnd()) + { + self = (MissionLevelID)MissionLevelIDEnum.GetEnd(); + } + } + + // Token: 0x06004417 RID: 17431 RVA: 0x0017C023 File Offset: 0x0017B223 + public static int GetEnd(this MissionLevelID self) + { + return MissionLevelIDEnum.GetEnd(); + } + + // Token: 0x06004418 RID: 17432 RVA: 0x0017C02C File Offset: 0x0017B22C + public static MissionLevelID FindID(string enumName) + { + for (MissionLevelID missionLevelID = MissionLevelID.Level1; missionLevelID < MissionLevelID.End; missionLevelID++) + { + if (missionLevelID.GetEnumName() == enumName) + { + return missionLevelID; + } + } + return MissionLevelID.Invalid; + } + + // Token: 0x06004419 RID: 17433 RVA: 0x0017C056 File Offset: 0x0017B256 + public static int GetEnd() + { + return MissionLevelIDEnum.records.Length; + } + + // Token: 0x0600441A RID: 17434 RVA: 0x0017C05F File Offset: 0x0017B25F + public static int GetEnumValue(this MissionLevelID self) + { + if (self.IsValid()) + { + return MissionLevelIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600441B RID: 17435 RVA: 0x0017C077 File Offset: 0x0017B277 + public static string GetEnumName(this MissionLevelID self) + { + if (self.IsValid()) + { + return MissionLevelIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600441C RID: 17436 RVA: 0x0017C093 File Offset: 0x0017B293 + public static string GetName(this MissionLevelID self) + { + if (self.IsValid()) + { + return MissionLevelIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x040051F8 RID: 20984 + private static readonly MissionLevelTableRecord[] records = new MissionLevelTableRecord[] + { + new MissionLevelTableRecord(0, "Level1", "レベル1"), + new MissionLevelTableRecord(1, "Level2", "レベル2") + }; + } +} diff --git a/Assembly-CSharp/DB/MissionLevelTableRecord.cs b/Assembly-CSharp/DB/MissionLevelTableRecord.cs new file mode 100644 index 0000000..0f9bc5a --- /dev/null +++ b/Assembly-CSharp/DB/MissionLevelTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000776 RID: 1910 + public class MissionLevelTableRecord + { + // Token: 0x06004412 RID: 17426 RVA: 0x00003560 File Offset: 0x00002760 + public MissionLevelTableRecord() + { + } + + // Token: 0x06004413 RID: 17427 RVA: 0x0017BFED File Offset: 0x0017B1ED + public MissionLevelTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x040051F5 RID: 20981 + public int EnumValue; + + // Token: 0x040051F6 RID: 20982 + public string EnumName; + + // Token: 0x040051F7 RID: 20983 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/MissionTextID.cs b/Assembly-CSharp/DB/MissionTextID.cs new file mode 100644 index 0000000..9449f9c --- /dev/null +++ b/Assembly-CSharp/DB/MissionTextID.cs @@ -0,0 +1,27 @@ +using System; + +namespace DB +{ + // Token: 0x02000778 RID: 1912 + public enum MissionTextID + { + // Token: 0x040051FA RID: 20986 + LoginLevel1, + // Token: 0x040051FB RID: 20987 + LoginLevel2, + // Token: 0x040051FC RID: 20988 + MusicLevel1, + // Token: 0x040051FD RID: 20989 + MusicLevel2, + // Token: 0x040051FE RID: 20990 + BuddyLevel1, + // Token: 0x040051FF RID: 20991 + BuddyLevel2, + // Token: 0x04005200 RID: 20992 + Begin = 0, + // Token: 0x04005201 RID: 20993 + End = 6, + // Token: 0x04005202 RID: 20994 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/MissionTextIDEnum.cs b/Assembly-CSharp/DB/MissionTextIDEnum.cs new file mode 100644 index 0000000..5b8b545 --- /dev/null +++ b/Assembly-CSharp/DB/MissionTextIDEnum.cs @@ -0,0 +1,130 @@ +using System; + +namespace DB +{ + // Token: 0x0200077A RID: 1914 + public static class MissionTextIDEnum + { + // Token: 0x06004420 RID: 17440 RVA: 0x00178314 File Offset: 0x00177514 + public static bool IsActive(this MissionTextID self) + { + return self >= MissionTextID.LoginLevel1 && self < MissionTextID.End && self > MissionTextID.LoginLevel1; + } + + // Token: 0x06004421 RID: 17441 RVA: 0x00130760 File Offset: 0x0012F960 + public static bool IsValid(this MissionTextID self) + { + return self >= MissionTextID.LoginLevel1 && self < MissionTextID.End; + } + + // Token: 0x06004422 RID: 17442 RVA: 0x0017C117 File Offset: 0x0017B317 + public static void Clamp(this MissionTextID self) + { + if (self < MissionTextID.LoginLevel1) + { + self = MissionTextID.LoginLevel1; + return; + } + if (self >= (MissionTextID)MissionTextIDEnum.GetEnd()) + { + self = (MissionTextID)MissionTextIDEnum.GetEnd(); + } + } + + // Token: 0x06004423 RID: 17443 RVA: 0x0017C130 File Offset: 0x0017B330 + public static int GetEnd(this MissionTextID self) + { + return MissionTextIDEnum.GetEnd(); + } + + // Token: 0x06004424 RID: 17444 RVA: 0x0017C138 File Offset: 0x0017B338 + public static MissionTextID FindID(string enumName) + { + for (MissionTextID missionTextID = MissionTextID.LoginLevel1; missionTextID < MissionTextID.End; missionTextID++) + { + if (missionTextID.GetEnumName() == enumName) + { + return missionTextID; + } + } + return MissionTextID.Invalid; + } + + // Token: 0x06004425 RID: 17445 RVA: 0x0017C162 File Offset: 0x0017B362 + public static int GetEnd() + { + return MissionTextIDEnum.records.Length; + } + + // Token: 0x06004426 RID: 17446 RVA: 0x0017C16B File Offset: 0x0017B36B + public static int GetEnumValue(this MissionTextID self) + { + if (self.IsValid()) + { + return MissionTextIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004427 RID: 17447 RVA: 0x0017C183 File Offset: 0x0017B383 + public static string GetEnumName(this MissionTextID self) + { + if (self.IsValid()) + { + return MissionTextIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004428 RID: 17448 RVA: 0x0017C19F File Offset: 0x0017B39F + public static string GetName(this MissionTextID self) + { + if (self.IsValid()) + { + return MissionTextIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004429 RID: 17449 RVA: 0x0017C1BB File Offset: 0x0017B3BB + public static MissionKindID GetKind(this MissionTextID self) + { + if (self.IsValid()) + { + return MissionTextIDEnum.records[(int)self].Kind; + } + return MissionKindID.Invalid; + } + + // Token: 0x0600442A RID: 17450 RVA: 0x0017C1D3 File Offset: 0x0017B3D3 + public static MissionLevelID GetLevel(this MissionTextID self) + { + if (self.IsValid()) + { + return MissionTextIDEnum.records[(int)self].Level; + } + return MissionLevelID.Invalid; + } + + // Token: 0x0600442B RID: 17451 RVA: 0x0017C1EB File Offset: 0x0017B3EB + public static string GetDetail(this MissionTextID self) + { + if (self.IsValid()) + { + return MissionTextIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x04005209 RID: 21001 + private static readonly MissionTextTableRecord[] records = new MissionTextTableRecord[] + { + new MissionTextTableRecord(0, "LoginLevel1", "ログインミッションLevel1", 0, 0, "登录1天"), + new MissionTextTableRecord(1, "LoginLevel2", "ログインミッションLevel2", 0, 1, "登录2天"), + new MissionTextTableRecord(2, "MusicLevel1", "楽曲プレイミッションLevel1", 1, 0, "游玩【{0}】的乐曲"), + new MissionTextTableRecord(3, "MusicLevel2", "楽曲プレイミッションLevel2", 1, 1, "在等级【{0}】以上的乐曲中达到\r\n【{1}】级以上"), + new MissionTextTableRecord(4, "BuddyLevel1", "バディミッションLevel1", 2, 0, "2人游戏"), + new MissionTextTableRecord(5, "BuddyLevel2", "バディミッションLevel2", 2, 1, "在【{0}】的乐曲中达到\r\n【完全同步】以上") + }; + } +} diff --git a/Assembly-CSharp/DB/MissionTextTableRecord.cs b/Assembly-CSharp/DB/MissionTextTableRecord.cs new file mode 100644 index 0000000..c0d9469 --- /dev/null +++ b/Assembly-CSharp/DB/MissionTextTableRecord.cs @@ -0,0 +1,42 @@ +using System; + +namespace DB +{ + // Token: 0x02000779 RID: 1913 + public class MissionTextTableRecord + { + // Token: 0x0600441E RID: 17438 RVA: 0x00003560 File Offset: 0x00002760 + public MissionTextTableRecord() + { + } + + // Token: 0x0600441F RID: 17439 RVA: 0x0017C0E2 File Offset: 0x0017B2E2 + public MissionTextTableRecord(int EnumValue, string EnumName, string Name, int Kind, int Level, string Detail) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.Kind = (MissionKindID)Kind; + this.Level = (MissionLevelID)Level; + this.Detail = Detail; + } + + // Token: 0x04005203 RID: 20995 + public int EnumValue; + + // Token: 0x04005204 RID: 20996 + public string EnumName; + + // Token: 0x04005205 RID: 20997 + public string Name; + + // Token: 0x04005206 RID: 20998 + public MissionKindID Kind; + + // Token: 0x04005207 RID: 20999 + public MissionLevelID Level; + + // Token: 0x04005208 RID: 21000 + public string Detail; + } +} diff --git a/Assembly-CSharp/DB/NgwordExID.cs b/Assembly-CSharp/DB/NgwordExID.cs new file mode 100644 index 0000000..9180115 --- /dev/null +++ b/Assembly-CSharp/DB/NgwordExID.cs @@ -0,0 +1,361 @@ +using System; + +namespace DB +{ + // Token: 0x0200077B RID: 1915 + public enum NgwordExID + { + // Token: 0x0400520B RID: 21003 + NgWord_001, + // Token: 0x0400520C RID: 21004 + NgWord_002, + // Token: 0x0400520D RID: 21005 + NgWord_003, + // Token: 0x0400520E RID: 21006 + NgWord_004, + // Token: 0x0400520F RID: 21007 + NgWord_005, + // Token: 0x04005210 RID: 21008 + NgWord_006, + // Token: 0x04005211 RID: 21009 + NgWord_007, + // Token: 0x04005212 RID: 21010 + NgWord_008, + // Token: 0x04005213 RID: 21011 + NgWord_009, + // Token: 0x04005214 RID: 21012 + NgWord_010, + // Token: 0x04005215 RID: 21013 + NgWord_011, + // Token: 0x04005216 RID: 21014 + NgWord_012, + // Token: 0x04005217 RID: 21015 + NgWord_013, + // Token: 0x04005218 RID: 21016 + NgWord_014, + // Token: 0x04005219 RID: 21017 + NgWord_015, + // Token: 0x0400521A RID: 21018 + NgWord_016, + // Token: 0x0400521B RID: 21019 + NgWord_017, + // Token: 0x0400521C RID: 21020 + NgWord_018, + // Token: 0x0400521D RID: 21021 + NgWord_019, + // Token: 0x0400521E RID: 21022 + NgWord_020, + // Token: 0x0400521F RID: 21023 + NgWord_021, + // Token: 0x04005220 RID: 21024 + NgWord_022, + // Token: 0x04005221 RID: 21025 + NgWord_023, + // Token: 0x04005222 RID: 21026 + NgWord_024, + // Token: 0x04005223 RID: 21027 + NgWord_025, + // Token: 0x04005224 RID: 21028 + NgWord_026, + // Token: 0x04005225 RID: 21029 + NgWord_027, + // Token: 0x04005226 RID: 21030 + NgWord_028, + // Token: 0x04005227 RID: 21031 + NgWord_029, + // Token: 0x04005228 RID: 21032 + NgWord_030, + // Token: 0x04005229 RID: 21033 + NgWord_031, + // Token: 0x0400522A RID: 21034 + NgWord_032, + // Token: 0x0400522B RID: 21035 + NgWord_033, + // Token: 0x0400522C RID: 21036 + NgWord_034, + // Token: 0x0400522D RID: 21037 + NgWord_035, + // Token: 0x0400522E RID: 21038 + NgWord_036, + // Token: 0x0400522F RID: 21039 + NgWord_037, + // Token: 0x04005230 RID: 21040 + NgWord_038, + // Token: 0x04005231 RID: 21041 + NgWord_039, + // Token: 0x04005232 RID: 21042 + NgWord_040, + // Token: 0x04005233 RID: 21043 + NgWord_041, + // Token: 0x04005234 RID: 21044 + NgWord_042, + // Token: 0x04005235 RID: 21045 + NgWord_043, + // Token: 0x04005236 RID: 21046 + NgWord_044, + // Token: 0x04005237 RID: 21047 + NgWord_045, + // Token: 0x04005238 RID: 21048 + NgWord_046, + // Token: 0x04005239 RID: 21049 + NgWord_047, + // Token: 0x0400523A RID: 21050 + NgWord_048, + // Token: 0x0400523B RID: 21051 + NgWord_049, + // Token: 0x0400523C RID: 21052 + NgWord_050, + // Token: 0x0400523D RID: 21053 + NgWord_051, + // Token: 0x0400523E RID: 21054 + NgWord_052, + // Token: 0x0400523F RID: 21055 + NgWord_053, + // Token: 0x04005240 RID: 21056 + NgWord_054, + // Token: 0x04005241 RID: 21057 + NgWord_055, + // Token: 0x04005242 RID: 21058 + NgWord_056, + // Token: 0x04005243 RID: 21059 + NgWord_057, + // Token: 0x04005244 RID: 21060 + NgWord_058, + // Token: 0x04005245 RID: 21061 + NgWord_059, + // Token: 0x04005246 RID: 21062 + NgWord_060, + // Token: 0x04005247 RID: 21063 + NgWord_061, + // Token: 0x04005248 RID: 21064 + NgWord_062, + // Token: 0x04005249 RID: 21065 + NgWord_063, + // Token: 0x0400524A RID: 21066 + NgWord_064, + // Token: 0x0400524B RID: 21067 + NgWord_065, + // Token: 0x0400524C RID: 21068 + NgWord_066, + // Token: 0x0400524D RID: 21069 + NgWord_067, + // Token: 0x0400524E RID: 21070 + NgWord_068, + // Token: 0x0400524F RID: 21071 + NgWord_069, + // Token: 0x04005250 RID: 21072 + NgWord_070, + // Token: 0x04005251 RID: 21073 + NgWord_071, + // Token: 0x04005252 RID: 21074 + NgWord_072, + // Token: 0x04005253 RID: 21075 + NgWord_073, + // Token: 0x04005254 RID: 21076 + NgWord_074, + // Token: 0x04005255 RID: 21077 + NgWord_075, + // Token: 0x04005256 RID: 21078 + NgWord_076, + // Token: 0x04005257 RID: 21079 + NgWord_077, + // Token: 0x04005258 RID: 21080 + NgWord_078, + // Token: 0x04005259 RID: 21081 + NgWord_079, + // Token: 0x0400525A RID: 21082 + NgWord_080, + // Token: 0x0400525B RID: 21083 + NgWord_081, + // Token: 0x0400525C RID: 21084 + NgWord_082, + // Token: 0x0400525D RID: 21085 + NgWord_083, + // Token: 0x0400525E RID: 21086 + NgWord_084, + // Token: 0x0400525F RID: 21087 + NgWord_085, + // Token: 0x04005260 RID: 21088 + NgWord_086, + // Token: 0x04005261 RID: 21089 + NgWord_087, + // Token: 0x04005262 RID: 21090 + NgWord_088, + // Token: 0x04005263 RID: 21091 + NgWord_089, + // Token: 0x04005264 RID: 21092 + NgWord_090, + // Token: 0x04005265 RID: 21093 + NgWord_091, + // Token: 0x04005266 RID: 21094 + NgWord_092, + // Token: 0x04005267 RID: 21095 + NgWord_093, + // Token: 0x04005268 RID: 21096 + NgWord_094, + // Token: 0x04005269 RID: 21097 + NgWord_095, + // Token: 0x0400526A RID: 21098 + NgWord_096, + // Token: 0x0400526B RID: 21099 + NgWord_097, + // Token: 0x0400526C RID: 21100 + NgWord_098, + // Token: 0x0400526D RID: 21101 + NgWord_099, + // Token: 0x0400526E RID: 21102 + NgWord_100, + // Token: 0x0400526F RID: 21103 + NgWord_101, + // Token: 0x04005270 RID: 21104 + NgWord_102, + // Token: 0x04005271 RID: 21105 + NgWord_103, + // Token: 0x04005272 RID: 21106 + NgWord_104, + // Token: 0x04005273 RID: 21107 + NgWord_105, + // Token: 0x04005274 RID: 21108 + NgWord_106, + // Token: 0x04005275 RID: 21109 + NgWord_107, + // Token: 0x04005276 RID: 21110 + NgWord_108, + // Token: 0x04005277 RID: 21111 + NgWord_109, + // Token: 0x04005278 RID: 21112 + NgWord_110, + // Token: 0x04005279 RID: 21113 + NgWord_111, + // Token: 0x0400527A RID: 21114 + NgWord_112, + // Token: 0x0400527B RID: 21115 + NgWord_113, + // Token: 0x0400527C RID: 21116 + NgWord_114, + // Token: 0x0400527D RID: 21117 + NgWord_115, + // Token: 0x0400527E RID: 21118 + NgWord_116, + // Token: 0x0400527F RID: 21119 + NgWord_117, + // Token: 0x04005280 RID: 21120 + NgWord_118, + // Token: 0x04005281 RID: 21121 + NgWord_119, + // Token: 0x04005282 RID: 21122 + NgWord_120, + // Token: 0x04005283 RID: 21123 + NgWord_121, + // Token: 0x04005284 RID: 21124 + NgWord_122, + // Token: 0x04005285 RID: 21125 + NgWord_123, + // Token: 0x04005286 RID: 21126 + NgWord_124, + // Token: 0x04005287 RID: 21127 + NgWord_125, + // Token: 0x04005288 RID: 21128 + NgWord_126, + // Token: 0x04005289 RID: 21129 + NgWord_127, + // Token: 0x0400528A RID: 21130 + NgWord_128, + // Token: 0x0400528B RID: 21131 + NgWord_129, + // Token: 0x0400528C RID: 21132 + NgWord_130, + // Token: 0x0400528D RID: 21133 + NgWord_131, + // Token: 0x0400528E RID: 21134 + NgWord_132, + // Token: 0x0400528F RID: 21135 + NgWord_133, + // Token: 0x04005290 RID: 21136 + NgWord_134, + // Token: 0x04005291 RID: 21137 + NgWord_135, + // Token: 0x04005292 RID: 21138 + NgWord_136, + // Token: 0x04005293 RID: 21139 + NgWord_137, + // Token: 0x04005294 RID: 21140 + NgWord_138, + // Token: 0x04005295 RID: 21141 + NgWord_139, + // Token: 0x04005296 RID: 21142 + NgWord_140, + // Token: 0x04005297 RID: 21143 + NgWord_141, + // Token: 0x04005298 RID: 21144 + NgWord_142, + // Token: 0x04005299 RID: 21145 + NgWord_143, + // Token: 0x0400529A RID: 21146 + NgWord_144, + // Token: 0x0400529B RID: 21147 + NgWord_145, + // Token: 0x0400529C RID: 21148 + NgWord_146, + // Token: 0x0400529D RID: 21149 + NgWord_147, + // Token: 0x0400529E RID: 21150 + NgWord_148, + // Token: 0x0400529F RID: 21151 + NgWord_149, + // Token: 0x040052A0 RID: 21152 + NgWord_150, + // Token: 0x040052A1 RID: 21153 + NgWord_151, + // Token: 0x040052A2 RID: 21154 + NgWord_152, + // Token: 0x040052A3 RID: 21155 + NgWord_153, + // Token: 0x040052A4 RID: 21156 + NgWord_154, + // Token: 0x040052A5 RID: 21157 + NgWord_155, + // Token: 0x040052A6 RID: 21158 + NgWord_156, + // Token: 0x040052A7 RID: 21159 + NgWord_157, + // Token: 0x040052A8 RID: 21160 + NgWord_158, + // Token: 0x040052A9 RID: 21161 + NgWord_159, + // Token: 0x040052AA RID: 21162 + NgWord_160, + // Token: 0x040052AB RID: 21163 + NgWord_161, + // Token: 0x040052AC RID: 21164 + NgWord_162, + // Token: 0x040052AD RID: 21165 + NgWord_163, + // Token: 0x040052AE RID: 21166 + NgWord_164, + // Token: 0x040052AF RID: 21167 + NgWord_165, + // Token: 0x040052B0 RID: 21168 + NgWord_166, + // Token: 0x040052B1 RID: 21169 + NgWord_167, + // Token: 0x040052B2 RID: 21170 + NgWord_168, + // Token: 0x040052B3 RID: 21171 + NgWord_169, + // Token: 0x040052B4 RID: 21172 + NgWord_170, + // Token: 0x040052B5 RID: 21173 + NgWord_171, + // Token: 0x040052B6 RID: 21174 + NgWord_172, + // Token: 0x040052B7 RID: 21175 + NgWord_173, + // Token: 0x040052B8 RID: 21176 + Begin = 0, + // Token: 0x040052B9 RID: 21177 + End = 173, + // Token: 0x040052BA RID: 21178 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/NgwordExIDEnum.cs b/Assembly-CSharp/DB/NgwordExIDEnum.cs new file mode 100644 index 0000000..7b99435 --- /dev/null +++ b/Assembly-CSharp/DB/NgwordExIDEnum.cs @@ -0,0 +1,267 @@ +using System; + +namespace DB +{ + // Token: 0x0200077D RID: 1917 + public static class NgwordExIDEnum + { + // Token: 0x0600442F RID: 17455 RVA: 0x0017C2D9 File Offset: 0x0017B4D9 + public static bool IsActive(this NgwordExID self) + { + return self >= NgwordExID.NgWord_001 && self < NgwordExID.End && self > NgwordExID.NgWord_001; + } + + // Token: 0x06004430 RID: 17456 RVA: 0x0017C2ED File Offset: 0x0017B4ED + public static bool IsValid(this NgwordExID self) + { + return self >= NgwordExID.NgWord_001 && self < NgwordExID.End; + } + + // Token: 0x06004431 RID: 17457 RVA: 0x0017C2FD File Offset: 0x0017B4FD + public static void Clamp(this NgwordExID self) + { + if (self < NgwordExID.NgWord_001) + { + self = NgwordExID.NgWord_001; + return; + } + if (self >= (NgwordExID)NgwordExIDEnum.GetEnd()) + { + self = (NgwordExID)NgwordExIDEnum.GetEnd(); + } + } + + // Token: 0x06004432 RID: 17458 RVA: 0x0017C316 File Offset: 0x0017B516 + public static int GetEnd(this NgwordExID self) + { + return NgwordExIDEnum.GetEnd(); + } + + // Token: 0x06004433 RID: 17459 RVA: 0x0017C320 File Offset: 0x0017B520 + public static NgwordExID FindID(string enumName) + { + for (NgwordExID ngwordExID = NgwordExID.NgWord_001; ngwordExID < NgwordExID.End; ngwordExID++) + { + if (ngwordExID.GetEnumName() == enumName) + { + return ngwordExID; + } + } + return NgwordExID.Invalid; + } + + // Token: 0x06004434 RID: 17460 RVA: 0x0017C34E File Offset: 0x0017B54E + public static int GetEnd() + { + return NgwordExIDEnum.records.Length; + } + + // Token: 0x06004435 RID: 17461 RVA: 0x0017C357 File Offset: 0x0017B557 + public static int GetEnumValue(this NgwordExID self) + { + if (self.IsValid()) + { + return NgwordExIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004436 RID: 17462 RVA: 0x0017C36F File Offset: 0x0017B56F + public static string GetEnumName(this NgwordExID self) + { + if (self.IsValid()) + { + return NgwordExIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004437 RID: 17463 RVA: 0x0017C38B File Offset: 0x0017B58B + public static string GetName(this NgwordExID self) + { + if (self.IsValid()) + { + return NgwordExIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x040052BE RID: 21182 + private static readonly NgwordExTableRecord[] records = new NgwordExTableRecord[] + { + new NgwordExTableRecord(0, "NgWord_001", "69"), + new NgwordExTableRecord(1, "NgWord_002", "4skin"), + new NgwordExTableRecord(2, "NgWord_003", "anal"), + new NgwordExTableRecord(3, "NgWord_004", "anus"), + new NgwordExTableRecord(4, "NgWord_005", "arse"), + new NgwordExTableRecord(5, "NgWord_006", "arsehol"), + new NgwordExTableRecord(6, "NgWord_007", "arshole"), + new NgwordExTableRecord(7, "NgWord_008", "ass"), + new NgwordExTableRecord(8, "NgWord_009", "asshole"), + new NgwordExTableRecord(9, "NgWord_010", "asswipe"), + new NgwordExTableRecord(10, "NgWord_011", "baps"), + new NgwordExTableRecord(11, "NgWord_012", "bastard"), + new NgwordExTableRecord(12, "NgWord_013", "beaver"), + new NgwordExTableRecord(13, "NgWord_014", "bellend"), + new NgwordExTableRecord(14, "NgWord_015", "bitch"), + new NgwordExTableRecord(15, "NgWord_016", "blojob"), + new NgwordExTableRecord(16, "NgWord_017", "blowjob"), + new NgwordExTableRecord(17, "NgWord_018", "blowme"), + new NgwordExTableRecord(18, "NgWord_019", "bollock"), + new NgwordExTableRecord(19, "NgWord_020", "bollox"), + new NgwordExTableRecord(20, "NgWord_021", "boner"), + new NgwordExTableRecord(21, "NgWord_022", "boobs"), + new NgwordExTableRecord(22, "NgWord_023", "bottom"), + new NgwordExTableRecord(23, "NgWord_024", "bullshit"), + new NgwordExTableRecord(24, "NgWord_025", "bum"), + new NgwordExTableRecord(25, "NgWord_026", "bummer"), + new NgwordExTableRecord(26, "NgWord_027", "butt"), + new NgwordExTableRecord(27, "NgWord_028", "bs"), + new NgwordExTableRecord(28, "NgWord_029", "cack"), + new NgwordExTableRecord(29, "NgWord_030", "clit"), + new NgwordExTableRecord(30, "NgWord_031", "clitty"), + new NgwordExTableRecord(31, "NgWord_032", "cock"), + new NgwordExTableRecord(32, "NgWord_033", "coon"), + new NgwordExTableRecord(33, "NgWord_034", "crack"), + new NgwordExTableRecord(34, "NgWord_035", "crammit"), + new NgwordExTableRecord(35, "NgWord_036", "crap"), + new NgwordExTableRecord(36, "NgWord_037", "crappa"), + new NgwordExTableRecord(37, "NgWord_038", "crapper"), + new NgwordExTableRecord(38, "NgWord_039", "crappy"), + new NgwordExTableRecord(39, "NgWord_040", "crappin’"), + new NgwordExTableRecord(40, "NgWord_041", "cum"), + new NgwordExTableRecord(41, "NgWord_042", "cunny"), + new NgwordExTableRecord(42, "NgWord_043", "cunt"), + new NgwordExTableRecord(43, "NgWord_044", "cuntish"), + new NgwordExTableRecord(44, "NgWord_045", "damn"), + new NgwordExTableRecord(45, "NgWord_046", "dick"), + new NgwordExTableRecord(46, "NgWord_047", "dildo"), + new NgwordExTableRecord(47, "NgWord_048", "dirtbox"), + new NgwordExTableRecord(48, "NgWord_049", "dumbwop"), + new NgwordExTableRecord(49, "NgWord_050", "dyke"), + new NgwordExTableRecord(50, "NgWord_051", "fag"), + new NgwordExTableRecord(51, "NgWord_052", "faggot"), + new NgwordExTableRecord(52, "NgWord_053", "fanny"), + new NgwordExTableRecord(53, "NgWord_054", "fcuk"), + new NgwordExTableRecord(54, "NgWord_055", "fcuku"), + new NgwordExTableRecord(55, "NgWord_056", "felatio"), + new NgwordExTableRecord(56, "NgWord_057", "felchin"), + new NgwordExTableRecord(57, "NgWord_058", "feltching"), + new NgwordExTableRecord(58, "NgWord_059", "flanges"), + new NgwordExTableRecord(59, "NgWord_060", "foreskin"), + new NgwordExTableRecord(60, "NgWord_061", "forskin"), + new NgwordExTableRecord(61, "NgWord_062", "frig"), + new NgwordExTableRecord(62, "NgWord_063", "friggin"), + new NgwordExTableRecord(63, "NgWord_064", "friggin’"), + new NgwordExTableRecord(64, "NgWord_065", "fuc"), + new NgwordExTableRecord(65, "NgWord_066", "fuk"), + new NgwordExTableRecord(66, "NgWord_067", "fuck"), + new NgwordExTableRecord(67, "NgWord_068", "fucku"), + new NgwordExTableRecord(68, "NgWord_069", "fucker"), + new NgwordExTableRecord(69, "NgWord_070", "fuckoff"), + new NgwordExTableRecord(70, "NgWord_071", "fuckyou"), + new NgwordExTableRecord(71, "NgWord_072", "gash"), + new NgwordExTableRecord(72, "NgWord_073", "gay"), + new NgwordExTableRecord(73, "NgWord_074", "gonads"), + new NgwordExTableRecord(74, "NgWord_075", "hardon"), + new NgwordExTableRecord(75, "NgWord_076", "hell"), + new NgwordExTableRecord(76, "NgWord_077", "homo"), + new NgwordExTableRecord(77, "NgWord_078", "hooker"), + new NgwordExTableRecord(78, "NgWord_079", "incest"), + new NgwordExTableRecord(79, "NgWord_080", "jap"), + new NgwordExTableRecord(80, "NgWord_081", "jerk"), + new NgwordExTableRecord(81, "NgWord_082", "jerkoff"), + new NgwordExTableRecord(82, "NgWord_083", "jew"), + new NgwordExTableRecord(83, "NgWord_084", "jism"), + new NgwordExTableRecord(84, "NgWord_085", "jiz"), + new NgwordExTableRecord(85, "NgWord_086", "kike"), + new NgwordExTableRecord(86, "NgWord_087", "kkk"), + new NgwordExTableRecord(87, "NgWord_088", "knob"), + new NgwordExTableRecord(88, "NgWord_089", "lesbian"), + new NgwordExTableRecord(89, "NgWord_090", "lesbo"), + new NgwordExTableRecord(90, "NgWord_091", "luvplum"), + new NgwordExTableRecord(91, "NgWord_092", "luvpump"), + new NgwordExTableRecord(92, "NgWord_093", "massdb8"), + new NgwordExTableRecord(93, "NgWord_094", "melons"), + new NgwordExTableRecord(94, "NgWord_095", "minge"), + new NgwordExTableRecord(95, "NgWord_096", "minger"), + new NgwordExTableRecord(96, "NgWord_097", "moron"), + new NgwordExTableRecord(97, "NgWord_098", "motherxxxx"), + new NgwordExTableRecord(98, "NgWord_099", "mufdive"), + new NgwordExTableRecord(99, "NgWord_100", "muff"), + new NgwordExTableRecord(100, "NgWord_101", "nigger"), + new NgwordExTableRecord(101, "NgWord_102", "nignog"), + new NgwordExTableRecord(102, "NgWord_103", "nob"), + new NgwordExTableRecord(103, "NgWord_104", "nonce"), + new NgwordExTableRecord(104, "NgWord_105", "oral"), + new NgwordExTableRecord(105, "NgWord_106", "pakki"), + new NgwordExTableRecord(106, "NgWord_107", "penis"), + new NgwordExTableRecord(107, "NgWord_108", "pisflap"), + new NgwordExTableRecord(108, "NgWord_109", "pislips"), + new NgwordExTableRecord(109, "NgWord_110", "piss"), + new NgwordExTableRecord(110, "NgWord_111", "pissed"), + new NgwordExTableRecord(111, "NgWord_112", "pisspot"), + new NgwordExTableRecord(112, "NgWord_113", "ponce"), + new NgwordExTableRecord(113, "NgWord_114", "poof"), + new NgwordExTableRecord(114, "NgWord_115", "prick"), + new NgwordExTableRecord(115, "NgWord_116", "pubes"), + new NgwordExTableRecord(116, "NgWord_117", "pussy"), + new NgwordExTableRecord(117, "NgWord_118", "queer"), + new NgwordExTableRecord(118, "NgWord_119", "quim"), + new NgwordExTableRecord(119, "NgWord_120", "ram"), + new NgwordExTableRecord(120, "NgWord_121", "rape"), + new NgwordExTableRecord(121, "NgWord_122", "rectum"), + new NgwordExTableRecord(122, "NgWord_123", "retard"), + new NgwordExTableRecord(123, "NgWord_124", "rsole"), + new NgwordExTableRecord(124, "NgWord_125", "rswipe"), + new NgwordExTableRecord(125, "NgWord_126", "scrote"), + new NgwordExTableRecord(126, "NgWord_127", "scrotum"), + new NgwordExTableRecord(127, "NgWord_128", "scumbag"), + new NgwordExTableRecord(128, "NgWord_129", "sex"), + new NgwordExTableRecord(129, "NgWord_130", "sexsex"), + new NgwordExTableRecord(130, "NgWord_131", "shag"), + new NgwordExTableRecord(131, "NgWord_132", "shagger"), + new NgwordExTableRecord(132, "NgWord_133", "shit"), + new NgwordExTableRecord(133, "NgWord_134", "shite"), + new NgwordExTableRecord(134, "NgWord_135", "shitta"), + new NgwordExTableRecord(135, "NgWord_136", "shitter"), + new NgwordExTableRecord(136, "NgWord_137", "shitty"), + new NgwordExTableRecord(137, "NgWord_138", "shoveit"), + new NgwordExTableRecord(138, "NgWord_139", "slag"), + new NgwordExTableRecord(139, "NgWord_140", "slappa"), + new NgwordExTableRecord(140, "NgWord_141", "slapper"), + new NgwordExTableRecord(141, "NgWord_142", "slut"), + new NgwordExTableRecord(142, "NgWord_143", "sperm"), + new NgwordExTableRecord(143, "NgWord_144", "spic"), + new NgwordExTableRecord(144, "NgWord_145", "spunk"), + new NgwordExTableRecord(145, "NgWord_146", "stiffy"), + new NgwordExTableRecord(146, "NgWord_147", "spastic"), + new NgwordExTableRecord(147, "NgWord_148", "suck"), + new NgwordExTableRecord(148, "NgWord_149", "tadger"), + new NgwordExTableRecord(149, "NgWord_150", "tits"), + new NgwordExTableRecord(150, "NgWord_151", "titwank"), + new NgwordExTableRecord(151, "NgWord_152", "titz"), + new NgwordExTableRecord(152, "NgWord_153", "toejob"), + new NgwordExTableRecord(153, "NgWord_154", "toss"), + new NgwordExTableRecord(154, "NgWord_155", "tosser"), + new NgwordExTableRecord(155, "NgWord_156", "tosspot"), + new NgwordExTableRecord(156, "NgWord_157", "turd"), + new NgwordExTableRecord(157, "NgWord_158", "twat"), + new NgwordExTableRecord(158, "NgWord_159", "vagina"), + new NgwordExTableRecord(159, "NgWord_160", "wank"), + new NgwordExTableRecord(160, "NgWord_161", "wanked"), + new NgwordExTableRecord(161, "NgWord_162", "wanker"), + new NgwordExTableRecord(162, "NgWord_163", "wanky"), + new NgwordExTableRecord(163, "NgWord_164", "whore"), + new NgwordExTableRecord(164, "NgWord_165", "willy"), + new NgwordExTableRecord(165, "NgWord_166", "wog"), + new NgwordExTableRecord(166, "NgWord_167", "xx"), + new NgwordExTableRecord(167, "NgWord_168", "xxx"), + new NgwordExTableRecord(168, "NgWord_169", "xxxx"), + new NgwordExTableRecord(169, "NgWord_170", "xxxxx"), + new NgwordExTableRecord(170, "NgWord_171", "xxxxxx"), + new NgwordExTableRecord(171, "NgWord_172", "xxxxxxx"), + new NgwordExTableRecord(172, "NgWord_173", "yid") + }; + } +} diff --git a/Assembly-CSharp/DB/NgwordExTableRecord.cs b/Assembly-CSharp/DB/NgwordExTableRecord.cs new file mode 100644 index 0000000..6e38577 --- /dev/null +++ b/Assembly-CSharp/DB/NgwordExTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x0200077C RID: 1916 + public class NgwordExTableRecord + { + // Token: 0x0600442D RID: 17453 RVA: 0x00003560 File Offset: 0x00002760 + public NgwordExTableRecord() + { + } + + // Token: 0x0600442E RID: 17454 RVA: 0x0017C2BC File Offset: 0x0017B4BC + public NgwordExTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x040052BB RID: 21179 + public int EnumValue; + + // Token: 0x040052BC RID: 21180 + public string EnumName; + + // Token: 0x040052BD RID: 21181 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/NgwordJpID.cs b/Assembly-CSharp/DB/NgwordJpID.cs new file mode 100644 index 0000000..028e788 --- /dev/null +++ b/Assembly-CSharp/DB/NgwordJpID.cs @@ -0,0 +1,43 @@ +using System; + +namespace DB +{ + // Token: 0x0200077E RID: 1918 + public enum NgwordJpID + { + // Token: 0x040052C0 RID: 21184 + NgWord_001, + // Token: 0x040052C1 RID: 21185 + NgWord_002, + // Token: 0x040052C2 RID: 21186 + NgWord_003, + // Token: 0x040052C3 RID: 21187 + NgWord_004, + // Token: 0x040052C4 RID: 21188 + NgWord_005, + // Token: 0x040052C5 RID: 21189 + NgWord_006, + // Token: 0x040052C6 RID: 21190 + NgWord_007, + // Token: 0x040052C7 RID: 21191 + NgWord_008, + // Token: 0x040052C8 RID: 21192 + NgWord_009, + // Token: 0x040052C9 RID: 21193 + NgWord_010, + // Token: 0x040052CA RID: 21194 + NgWord_011, + // Token: 0x040052CB RID: 21195 + NgWord_012, + // Token: 0x040052CC RID: 21196 + NgWord_013, + // Token: 0x040052CD RID: 21197 + NgWord_014, + // Token: 0x040052CE RID: 21198 + Begin = 0, + // Token: 0x040052CF RID: 21199 + End = 14, + // Token: 0x040052D0 RID: 21200 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/NgwordJpIDEnum.cs b/Assembly-CSharp/DB/NgwordJpIDEnum.cs new file mode 100644 index 0000000..bfaefef --- /dev/null +++ b/Assembly-CSharp/DB/NgwordJpIDEnum.cs @@ -0,0 +1,108 @@ +using System; + +namespace DB +{ + // Token: 0x02000780 RID: 1920 + public static class NgwordJpIDEnum + { + // Token: 0x0600443B RID: 17467 RVA: 0x0017D30E File Offset: 0x0017C50E + public static bool IsActive(this NgwordJpID self) + { + return self >= NgwordJpID.NgWord_001 && self < NgwordJpID.End && self > NgwordJpID.NgWord_001; + } + + // Token: 0x0600443C RID: 17468 RVA: 0x001307D1 File Offset: 0x0012F9D1 + public static bool IsValid(this NgwordJpID self) + { + return self >= NgwordJpID.NgWord_001 && self < NgwordJpID.End; + } + + // Token: 0x0600443D RID: 17469 RVA: 0x0017D31F File Offset: 0x0017C51F + public static void Clamp(this NgwordJpID self) + { + if (self < NgwordJpID.NgWord_001) + { + self = NgwordJpID.NgWord_001; + return; + } + if (self >= (NgwordJpID)NgwordJpIDEnum.GetEnd()) + { + self = (NgwordJpID)NgwordJpIDEnum.GetEnd(); + } + } + + // Token: 0x0600443E RID: 17470 RVA: 0x0017D338 File Offset: 0x0017C538 + public static int GetEnd(this NgwordJpID self) + { + return NgwordJpIDEnum.GetEnd(); + } + + // Token: 0x0600443F RID: 17471 RVA: 0x0017D340 File Offset: 0x0017C540 + public static NgwordJpID FindID(string enumName) + { + for (NgwordJpID ngwordJpID = NgwordJpID.NgWord_001; ngwordJpID < NgwordJpID.End; ngwordJpID++) + { + if (ngwordJpID.GetEnumName() == enumName) + { + return ngwordJpID; + } + } + return NgwordJpID.Invalid; + } + + // Token: 0x06004440 RID: 17472 RVA: 0x0017D36B File Offset: 0x0017C56B + public static int GetEnd() + { + return NgwordJpIDEnum.records.Length; + } + + // Token: 0x06004441 RID: 17473 RVA: 0x0017D374 File Offset: 0x0017C574 + public static int GetEnumValue(this NgwordJpID self) + { + if (self.IsValid()) + { + return NgwordJpIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004442 RID: 17474 RVA: 0x0017D38C File Offset: 0x0017C58C + public static string GetEnumName(this NgwordJpID self) + { + if (self.IsValid()) + { + return NgwordJpIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004443 RID: 17475 RVA: 0x0017D3A8 File Offset: 0x0017C5A8 + public static string GetName(this NgwordJpID self) + { + if (self.IsValid()) + { + return NgwordJpIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x040052D4 RID: 21204 + private static readonly NgwordJpTableRecord[] records = new NgwordJpTableRecord[] + { + new NgwordJpTableRecord(0, "NgWord_001", "ass"), + new NgwordJpTableRecord(1, "NgWord_002", "bt"), + new NgwordJpTableRecord(2, "NgWord_003", "cao"), + new NgwordJpTableRecord(3, "NgWord_004", "fuc"), + new NgwordJpTableRecord(4, "NgWord_005", "fuk"), + new NgwordJpTableRecord(5, "NgWord_006", "fvc"), + new NgwordJpTableRecord(6, "NgWord_007", "jb"), + new NgwordJpTableRecord(7, "NgWord_008", "kao"), + new NgwordJpTableRecord(8, "NgWord_009", "nmd"), + new NgwordJpTableRecord(9, "NgWord_010", "nnd"), + new NgwordJpTableRecord(10, "NgWord_011", "ri"), + new NgwordJpTableRecord(11, "NgWord_012", "sb"), + new NgwordJpTableRecord(12, "NgWord_013", "sex"), + new NgwordJpTableRecord(13, "NgWord_014", "tmd") + }; + } +} diff --git a/Assembly-CSharp/DB/NgwordJpTableRecord.cs b/Assembly-CSharp/DB/NgwordJpTableRecord.cs new file mode 100644 index 0000000..d9ee33e --- /dev/null +++ b/Assembly-CSharp/DB/NgwordJpTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x0200077F RID: 1919 + public class NgwordJpTableRecord + { + // Token: 0x06004439 RID: 17465 RVA: 0x00003560 File Offset: 0x00002760 + public NgwordJpTableRecord() + { + } + + // Token: 0x0600443A RID: 17466 RVA: 0x0017D2F1 File Offset: 0x0017C4F1 + public NgwordJpTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x040052D1 RID: 21201 + public int EnumValue; + + // Token: 0x040052D2 RID: 21202 + public string EnumName; + + // Token: 0x040052D3 RID: 21203 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/OptionAppealID.cs b/Assembly-CSharp/DB/OptionAppealID.cs new file mode 100644 index 0000000..a3f7c20 --- /dev/null +++ b/Assembly-CSharp/DB/OptionAppealID.cs @@ -0,0 +1,31 @@ +using System; + +namespace DB +{ + // Token: 0x02000781 RID: 1921 + public enum OptionAppealID + { + // Token: 0x040052D6 RID: 21206 + OFF, + // Token: 0x040052D7 RID: 21207 + Together, + // Token: 0x040052D8 RID: 21208 + Tiho, + // Token: 0x040052D9 RID: 21209 + GoldPass, + // Token: 0x040052DA RID: 21210 + FullSync, + // Token: 0x040052DB RID: 21211 + AllPlay, + // Token: 0x040052DC RID: 21212 + LoginStamp, + // Token: 0x040052DD RID: 21213 + Misson, + // Token: 0x040052DE RID: 21214 + Begin = 0, + // Token: 0x040052DF RID: 21215 + End = 8, + // Token: 0x040052E0 RID: 21216 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionAppealIDEnum.cs b/Assembly-CSharp/DB/OptionAppealIDEnum.cs new file mode 100644 index 0000000..4675449 --- /dev/null +++ b/Assembly-CSharp/DB/OptionAppealIDEnum.cs @@ -0,0 +1,148 @@ +using System; + +namespace DB +{ + // Token: 0x02000783 RID: 1923 + public static class OptionAppealIDEnum + { + // Token: 0x06004447 RID: 17479 RVA: 0x00173EE9 File Offset: 0x001730E9 + public static bool IsActive(this OptionAppealID self) + { + return self >= OptionAppealID.OFF && self < OptionAppealID.End && self > OptionAppealID.OFF; + } + + // Token: 0x06004448 RID: 17480 RVA: 0x00123DBF File Offset: 0x00122FBF + public static bool IsValid(this OptionAppealID self) + { + return self >= OptionAppealID.OFF && self < OptionAppealID.End; + } + + // Token: 0x06004449 RID: 17481 RVA: 0x0017D547 File Offset: 0x0017C747 + public static void Clamp(this OptionAppealID self) + { + if (self < OptionAppealID.OFF) + { + self = OptionAppealID.OFF; + return; + } + if (self >= (OptionAppealID)OptionAppealIDEnum.GetEnd()) + { + self = (OptionAppealID)OptionAppealIDEnum.GetEnd(); + } + } + + // Token: 0x0600444A RID: 17482 RVA: 0x0017D560 File Offset: 0x0017C760 + public static int GetEnd(this OptionAppealID self) + { + return OptionAppealIDEnum.GetEnd(); + } + + // Token: 0x0600444B RID: 17483 RVA: 0x0017D568 File Offset: 0x0017C768 + public static OptionAppealID FindID(string enumName) + { + for (OptionAppealID optionAppealID = OptionAppealID.OFF; optionAppealID < OptionAppealID.End; optionAppealID++) + { + if (optionAppealID.GetEnumName() == enumName) + { + return optionAppealID; + } + } + return OptionAppealID.Invalid; + } + + // Token: 0x0600444C RID: 17484 RVA: 0x0017D592 File Offset: 0x0017C792 + public static int GetEnd() + { + return OptionAppealIDEnum.records.Length; + } + + // Token: 0x0600444D RID: 17485 RVA: 0x0017D59B File Offset: 0x0017C79B + public static int GetEnumValue(this OptionAppealID self) + { + if (self.IsValid()) + { + return OptionAppealIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600444E RID: 17486 RVA: 0x0017D5B3 File Offset: 0x0017C7B3 + public static string GetEnumName(this OptionAppealID self) + { + if (self.IsValid()) + { + return OptionAppealIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600444F RID: 17487 RVA: 0x0017D5CF File Offset: 0x0017C7CF + public static string GetName(this OptionAppealID self) + { + if (self.IsValid()) + { + return OptionAppealIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004450 RID: 17488 RVA: 0x0017D5EB File Offset: 0x0017C7EB + public static string GetNameEx(this OptionAppealID self) + { + if (self.IsValid()) + { + return OptionAppealIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004451 RID: 17489 RVA: 0x0017D607 File Offset: 0x0017C807 + public static string GetDetail(this OptionAppealID self) + { + if (self.IsValid()) + { + return OptionAppealIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004452 RID: 17490 RVA: 0x0017D623 File Offset: 0x0017C823 + public static string GetDetailEx(this OptionAppealID self) + { + if (self.IsValid()) + { + return OptionAppealIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004453 RID: 17491 RVA: 0x0017D63F File Offset: 0x0017C83F + public static string GetFilePath(this OptionAppealID self) + { + if (self.IsValid()) + { + return OptionAppealIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x06004454 RID: 17492 RVA: 0x0017D65B File Offset: 0x0017C85B + public static bool IsDefault(this OptionAppealID self) + { + return self.IsValid() && OptionAppealIDEnum.records[(int)self].isDefault; + } + + // Token: 0x040052E9 RID: 21225 + private static readonly OptionAppealTableRecord[] records = new OptionAppealTableRecord[] + { + new OptionAppealTableRecord(0, "OFF", "关", "", "", "", "UI_OPT_B_14_01", 1), + new OptionAppealTableRecord(1, "Together", "不一起来玩吗!", "", "", "", "UI_OPT_B_14_02", 0), + new OptionAppealTableRecord(2, "Tiho", "一起前进吗?", "", "", "", "UI_OPT_B_14_03", 0), + new OptionAppealTableRecord(3, "GoldPass", "想玩4曲小分队!!", "", "", "", "UI_OPT_B_14_04", 0), + new OptionAppealTableRecord(4, "FullSync", "以完全同步为目标吧!", "", "", "", "UI_OPT_B_14_05", 0), + new OptionAppealTableRecord(5, "AllPlay", "全制霸者募集!", "", "", "", "UI_OPT_B_14_06", 0), + new OptionAppealTableRecord(6, "LoginStamp", "想要登录印章!", "", "", "", "UI_OPT_B_14_07", 0), + new OptionAppealTableRecord(7, "Misson", "想要完成任务!", "", "", "", "UI_OPT_B_14_08", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionAppealTableRecord.cs b/Assembly-CSharp/DB/OptionAppealTableRecord.cs new file mode 100644 index 0000000..bcac3db --- /dev/null +++ b/Assembly-CSharp/DB/OptionAppealTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x02000782 RID: 1922 + public class OptionAppealTableRecord + { + // Token: 0x06004445 RID: 17477 RVA: 0x00003560 File Offset: 0x00002760 + public OptionAppealTableRecord() + { + } + + // Token: 0x06004446 RID: 17478 RVA: 0x0017D4F4 File Offset: 0x0017C6F4 + public OptionAppealTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x040052E1 RID: 21217 + public int EnumValue; + + // Token: 0x040052E2 RID: 21218 + public string EnumName; + + // Token: 0x040052E3 RID: 21219 + public string Name; + + // Token: 0x040052E4 RID: 21220 + public string NameEx; + + // Token: 0x040052E5 RID: 21221 + public string Detail; + + // Token: 0x040052E6 RID: 21222 + public string DetailEx; + + // Token: 0x040052E7 RID: 21223 + public string FilePath; + + // Token: 0x040052E8 RID: 21224 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionBreakseID.cs b/Assembly-CSharp/DB/OptionBreakseID.cs new file mode 100644 index 0000000..b6096e5 --- /dev/null +++ b/Assembly-CSharp/DB/OptionBreakseID.cs @@ -0,0 +1,77 @@ +using System; + +namespace DB +{ + // Token: 0x02000784 RID: 1924 + public enum OptionBreakseID + { + // Token: 0x040052EB RID: 21227 + Se1, + // Token: 0x040052EC RID: 21228 + Se2, + // Token: 0x040052ED RID: 21229 + Se4, + // Token: 0x040052EE RID: 21230 + Se10, + // Token: 0x040052EF RID: 21231 + Se12, + // Token: 0x040052F0 RID: 21232 + Se32, + // Token: 0x040052F1 RID: 21233 + Se17, + // Token: 0x040052F2 RID: 21234 + Se18, + // Token: 0x040052F3 RID: 21235 + Se26, + // Token: 0x040052F4 RID: 21236 + Se9, + // Token: 0x040052F5 RID: 21237 + Se8, + // Token: 0x040052F6 RID: 21238 + Se38, + // Token: 0x040052F7 RID: 21239 + Se39, + // Token: 0x040052F8 RID: 21240 + Se40, + // Token: 0x040052F9 RID: 21241 + Se13, + // Token: 0x040052FA RID: 21242 + Se41, + // Token: 0x040052FB RID: 21243 + Se11, + // Token: 0x040052FC RID: 21244 + Se15, + // Token: 0x040052FD RID: 21245 + Se42, + // Token: 0x040052FE RID: 21246 + Se5, + // Token: 0x040052FF RID: 21247 + Se6, + // Token: 0x04005300 RID: 21248 + Se7, + // Token: 0x04005301 RID: 21249 + Se14, + // Token: 0x04005302 RID: 21250 + Se43, + // Token: 0x04005303 RID: 21251 + Se44, + // Token: 0x04005304 RID: 21252 + Se45, + // Token: 0x04005305 RID: 21253 + Se46, + // Token: 0x04005306 RID: 21254 + Se47, + // Token: 0x04005307 RID: 21255 + Se48, + // Token: 0x04005308 RID: 21256 + Se49, + // Token: 0x04005309 RID: 21257 + S50, + // Token: 0x0400530A RID: 21258 + Begin = 0, + // Token: 0x0400530B RID: 21259 + End = 31, + // Token: 0x0400530C RID: 21260 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionBreakseIDEnum.cs b/Assembly-CSharp/DB/OptionBreakseIDEnum.cs new file mode 100644 index 0000000..b0f56d2 --- /dev/null +++ b/Assembly-CSharp/DB/OptionBreakseIDEnum.cs @@ -0,0 +1,191 @@ +using System; + +namespace DB +{ + // Token: 0x02000786 RID: 1926 + public static class OptionBreakseIDEnum + { + // Token: 0x06004458 RID: 17496 RVA: 0x00177582 File Offset: 0x00176782 + public static bool IsActive(this OptionBreakseID self) + { + return self >= OptionBreakseID.Se1 && self < OptionBreakseID.End && self > OptionBreakseID.Se1; + } + + // Token: 0x06004459 RID: 17497 RVA: 0x00177593 File Offset: 0x00176793 + public static bool IsValid(this OptionBreakseID self) + { + return self >= OptionBreakseID.Se1 && self < OptionBreakseID.End; + } + + // Token: 0x0600445A RID: 17498 RVA: 0x0017D82F File Offset: 0x0017CA2F + public static void Clamp(this OptionBreakseID self) + { + if (self < OptionBreakseID.Se1) + { + self = OptionBreakseID.Se1; + return; + } + if (self >= (OptionBreakseID)OptionBreakseIDEnum.GetEnd()) + { + self = (OptionBreakseID)OptionBreakseIDEnum.GetEnd(); + } + } + + // Token: 0x0600445B RID: 17499 RVA: 0x0017D848 File Offset: 0x0017CA48 + public static int GetEnd(this OptionBreakseID self) + { + return OptionBreakseIDEnum.GetEnd(); + } + + // Token: 0x0600445C RID: 17500 RVA: 0x0017D850 File Offset: 0x0017CA50 + public static OptionBreakseID FindID(string enumName) + { + for (OptionBreakseID optionBreakseID = OptionBreakseID.Se1; optionBreakseID < OptionBreakseID.End; optionBreakseID++) + { + if (optionBreakseID.GetEnumName() == enumName) + { + return optionBreakseID; + } + } + return OptionBreakseID.Invalid; + } + + // Token: 0x0600445D RID: 17501 RVA: 0x0017D87B File Offset: 0x0017CA7B + public static int GetEnd() + { + return OptionBreakseIDEnum.records.Length; + } + + // Token: 0x0600445E RID: 17502 RVA: 0x0017D884 File Offset: 0x0017CA84 + public static int GetEnumValue(this OptionBreakseID self) + { + if (self.IsValid()) + { + return OptionBreakseIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600445F RID: 17503 RVA: 0x0017D89C File Offset: 0x0017CA9C + public static string GetEnumName(this OptionBreakseID self) + { + if (self.IsValid()) + { + return OptionBreakseIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004460 RID: 17504 RVA: 0x0017D8B8 File Offset: 0x0017CAB8 + public static string GetName(this OptionBreakseID self) + { + if (self.IsValid()) + { + return OptionBreakseIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004461 RID: 17505 RVA: 0x0017D8D4 File Offset: 0x0017CAD4 + public static string GetNameEx(this OptionBreakseID self) + { + if (self.IsValid()) + { + return OptionBreakseIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004462 RID: 17506 RVA: 0x0017D8F0 File Offset: 0x0017CAF0 + public static string GetDetail(this OptionBreakseID self) + { + if (self.IsValid()) + { + return OptionBreakseIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004463 RID: 17507 RVA: 0x0017D90C File Offset: 0x0017CB0C + public static string GetDetailEx(this OptionBreakseID self) + { + if (self.IsValid()) + { + return OptionBreakseIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004464 RID: 17508 RVA: 0x0017D928 File Offset: 0x0017CB28 + public static string GetSeGoodEnum(this OptionBreakseID self) + { + if (self.IsValid()) + { + return OptionBreakseIDEnum.records[(int)self].SeGoodEnum; + } + return ""; + } + + // Token: 0x06004465 RID: 17509 RVA: 0x0017D944 File Offset: 0x0017CB44 + public static string GetSeBadEnum(this OptionBreakseID self) + { + if (self.IsValid()) + { + return OptionBreakseIDEnum.records[(int)self].SeBadEnum; + } + return ""; + } + + // Token: 0x06004466 RID: 17510 RVA: 0x0017D960 File Offset: 0x0017CB60 + public static bool IsDefault(this OptionBreakseID self) + { + return self.IsValid() && OptionBreakseIDEnum.records[(int)self].isDefault; + } + + // Token: 0x06004467 RID: 17511 RVA: 0x0017D978 File Offset: 0x0017CB78 + public static string GetFilePath(this OptionBreakseID self) + { + if (self.IsValid()) + { + return OptionBreakseIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x04005317 RID: 21271 + private static readonly OptionBreakseTableRecord[] records = new OptionBreakseTableRecord[] + { + new OptionBreakseTableRecord(0, "Se1", "默认", "", "", "", "SE_GAME_BREAK_01_000001", "SE_GAME_BREAK_02_000001", 1, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(1, "Se2", "犬", "", "", "", "SE_GAME_BREAK_01_000002", "SE_GAME_BREAK_02_000002", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(2, "Se4", "刀", "", "", "", "SE_GAME_BREAK_01_000004", "SE_GAME_BREAK_02_000004", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(3, "Se10", "铃鼓", "", "", "", "SE_GAME_BREAK_01_000010", "SE_GAME_BREAK_02_000010", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(4, "Se12", "歌舞伎", "", "", "", "SE_GAME_BREAK_01_000012", "SE_GAME_BREAK_02_000012", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(5, "Se32", "空手道", "", "", "", "SE_GAME_BREAK_01_000032", "SE_GAME_BREAK_02_000032", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(6, "Se17", "中二节奏", "", "", "", "SE_GAME_BREAK_01_000017", "SE_GAME_BREAK_02_000017", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(7, "Se18", "音击", "", "", "", "SE_GAME_BREAK_01_000018", "SE_GAME_BREAK_02_000018", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(8, "Se26", "でらっくま", "", "", "", "SE_GAME_BREAK_01_000026", "SE_GAME_BREAK_02_000026", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(9, "Se9", "はっぴー", "", "", "", "SE_GAME_BREAK_01_000009", "SE_GAME_BREAK_02_000009", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(10, "Se8", "MI・TSU・YO・SHI", "", "", "", "SE_GAME_BREAK_01_000008", "SE_GAME_BREAK_02_000008", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(11, "Se38", "maimai Ver.1.0", "", "", "", "SE_GAME_BREAK_01_000038", "SE_GAME_BREAK_02_000038", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(12, "Se39", "洗衣祭2014 第1天", "", "", "", "SE_GAME_BREAK_01_000039", "SE_GAME_BREAK_02_000039", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(13, "Se40", "洗衣祭2014 第2天", "", "", "", "SE_GAME_BREAK_01_000040", "SE_GAME_BREAK_02_000040", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(14, "Se13", "SEGA", "", "", "", "SE_GAME_BREAK_01_000013", "SE_GAME_BREAK_02_000013", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(15, "Se41", "SEGA SATURN", "", "", "", "SE_GAME_BREAK_01_000041", "SE_GAME_BREAK_02_000041", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(16, "Se11", "DARTSLIVE", "", "", "", "SE_GAME_BREAK_01_000011", "SE_GAME_BREAK_02_000011", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(17, "Se15", "DIVA 音效A", "", "", "", "SE_GAME_BREAK_01_000015", "SE_GAME_BREAK_02_000015", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(18, "Se42", "DIVA 音效B", "", "", "", "SE_GAME_BREAK_01_000042", "SE_GAME_BREAK_02_000042", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(19, "Se5", "SONIC(RING)", "", "", "", "SE_GAME_BREAK_01_000005", "SE_GAME_BREAK_02_000005", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(20, "Se6", "SONIC(EMERALD)", "", "", "", "SE_GAME_BREAK_01_000006", "SE_GAME_BREAK_02_000006", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(21, "Se7", "PSO SOUND", "", "", "", "SE_GAME_BREAK_01_000007", "SE_GAME_BREAK_02_000007", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(22, "Se14", "PUYOPUYO", "", "", "", "SE_GAME_BREAK_01_000014", "SE_GAME_BREAK_02_000014", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(23, "Se43", "SAMBA DE AMIGO", "", "", "", "SE_GAME_BREAK_01_000043", "SE_GAME_BREAK_02_000043", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(24, "Se44", "VIRTUAL-ON", "", "", "", "SE_GAME_BREAK_01_000044", "SE_GAME_BREAK_02_000044", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(25, "Se45", "Virtua Fighter", "", "", "", "SE_GAME_BREAK_01_000045", "SE_GAME_BREAK_02_000045", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(26, "Se46", "JACKY", "", "", "", "SE_GAME_BREAK_01_000046", "SE_GAME_BREAK_02_000046", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(27, "Se47", "An×An", "", "", "", "SE_GAME_BREAK_01_000047", "SE_GAME_BREAK_02_000047", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(28, "Se48", "Rub Rabbits", "", "", "", "SE_GAME_BREAK_01_000048", "SE_GAME_BREAK_02_000048", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(29, "Se49", "CODE OF JOKER", "", "", "", "SE_GAME_BREAK_01_000049", "SE_GAME_BREAK_02_000049", 0, "UI_OPT_E_24_01"), + new OptionBreakseTableRecord(30, "S50", "H×T 奖牌", "", "", "", "SE_GAME_BREAK_01_000050", "SE_GAME_BREAK_02_000050", 0, "UI_OPT_E_24_01") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionBreakseTableRecord.cs b/Assembly-CSharp/DB/OptionBreakseTableRecord.cs new file mode 100644 index 0000000..1190735 --- /dev/null +++ b/Assembly-CSharp/DB/OptionBreakseTableRecord.cs @@ -0,0 +1,58 @@ +using System; + +namespace DB +{ + // Token: 0x02000785 RID: 1925 + public class OptionBreakseTableRecord + { + // Token: 0x06004456 RID: 17494 RVA: 0x00003560 File Offset: 0x00002760 + public OptionBreakseTableRecord() + { + } + + // Token: 0x06004457 RID: 17495 RVA: 0x0017D7CC File Offset: 0x0017C9CC + public OptionBreakseTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string SeGoodEnum, string SeBadEnum, int isDefault, string FilePath) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.SeGoodEnum = SeGoodEnum; + this.SeBadEnum = SeBadEnum; + this.isDefault = isDefault != 0; + this.FilePath = FilePath; + } + + // Token: 0x0400530D RID: 21261 + public int EnumValue; + + // Token: 0x0400530E RID: 21262 + public string EnumName; + + // Token: 0x0400530F RID: 21263 + public string Name; + + // Token: 0x04005310 RID: 21264 + public string NameEx; + + // Token: 0x04005311 RID: 21265 + public string Detail; + + // Token: 0x04005312 RID: 21266 + public string DetailEx; + + // Token: 0x04005313 RID: 21267 + public string SeGoodEnum; + + // Token: 0x04005314 RID: 21268 + public string SeBadEnum; + + // Token: 0x04005315 RID: 21269 + public bool isDefault; + + // Token: 0x04005316 RID: 21270 + public string FilePath; + } +} diff --git a/Assembly-CSharp/DB/OptionCateDesignID.cs b/Assembly-CSharp/DB/OptionCateDesignID.cs new file mode 100644 index 0000000..9062674 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateDesignID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x02000787 RID: 1927 + public enum OptionCateDesignID + { + // Token: 0x04005319 RID: 21273 + TapDesign, + // Token: 0x0400531A RID: 21274 + HoldDesign, + // Token: 0x0400531B RID: 21275 + SlideDesign, + // Token: 0x0400531C RID: 21276 + StarDesign, + // Token: 0x0400531D RID: 21277 + OutlineDesign, + // Token: 0x0400531E RID: 21278 + Begin = 0, + // Token: 0x0400531F RID: 21279 + End = 5, + // Token: 0x04005320 RID: 21280 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionCateDesignIDEnum.cs b/Assembly-CSharp/DB/OptionCateDesignIDEnum.cs new file mode 100644 index 0000000..4895afc --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateDesignIDEnum.cs @@ -0,0 +1,129 @@ +using System; + +namespace DB +{ + // Token: 0x02000789 RID: 1929 + public static class OptionCateDesignIDEnum + { + // Token: 0x0600446B RID: 17515 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this OptionCateDesignID self) + { + return self >= OptionCateDesignID.TapDesign && self < OptionCateDesignID.End && self > OptionCateDesignID.TapDesign; + } + + // Token: 0x0600446C RID: 17516 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this OptionCateDesignID self) + { + return self >= OptionCateDesignID.TapDesign && self < OptionCateDesignID.End; + } + + // Token: 0x0600446D RID: 17517 RVA: 0x0017E01C File Offset: 0x0017D21C + public static void Clamp(this OptionCateDesignID self) + { + if (self < OptionCateDesignID.TapDesign) + { + self = OptionCateDesignID.TapDesign; + return; + } + if (self >= (OptionCateDesignID)OptionCateDesignIDEnum.GetEnd()) + { + self = (OptionCateDesignID)OptionCateDesignIDEnum.GetEnd(); + } + } + + // Token: 0x0600446E RID: 17518 RVA: 0x0017E035 File Offset: 0x0017D235 + public static int GetEnd(this OptionCateDesignID self) + { + return OptionCateDesignIDEnum.GetEnd(); + } + + // Token: 0x0600446F RID: 17519 RVA: 0x0017E03C File Offset: 0x0017D23C + public static OptionCateDesignID FindID(string enumName) + { + for (OptionCateDesignID optionCateDesignID = OptionCateDesignID.TapDesign; optionCateDesignID < OptionCateDesignID.End; optionCateDesignID++) + { + if (optionCateDesignID.GetEnumName() == enumName) + { + return optionCateDesignID; + } + } + return OptionCateDesignID.Invalid; + } + + // Token: 0x06004470 RID: 17520 RVA: 0x0017E066 File Offset: 0x0017D266 + public static int GetEnd() + { + return OptionCateDesignIDEnum.records.Length; + } + + // Token: 0x06004471 RID: 17521 RVA: 0x0017E06F File Offset: 0x0017D26F + public static int GetEnumValue(this OptionCateDesignID self) + { + if (self.IsValid()) + { + return OptionCateDesignIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004472 RID: 17522 RVA: 0x0017E087 File Offset: 0x0017D287 + public static string GetEnumName(this OptionCateDesignID self) + { + if (self.IsValid()) + { + return OptionCateDesignIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004473 RID: 17523 RVA: 0x0017E0A3 File Offset: 0x0017D2A3 + public static string GetName(this OptionCateDesignID self) + { + if (self.IsValid()) + { + return OptionCateDesignIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004474 RID: 17524 RVA: 0x0017E0BF File Offset: 0x0017D2BF + public static string GetNameEx(this OptionCateDesignID self) + { + if (self.IsValid()) + { + return OptionCateDesignIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004475 RID: 17525 RVA: 0x0017E0DB File Offset: 0x0017D2DB + public static string GetDetail(this OptionCateDesignID self) + { + if (self.IsValid()) + { + return OptionCateDesignIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004476 RID: 17526 RVA: 0x0017E0F7 File Offset: 0x0017D2F7 + public static string GetDetailEx(this OptionCateDesignID self) + { + if (self.IsValid()) + { + return OptionCateDesignIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x04005327 RID: 21287 + private static readonly OptionCateDesignTableRecord[] records = new OptionCateDesignTableRecord[] + { + new OptionCateDesignTableRecord(0, "TapDesign", "TAP(点击)音符款式", "", "改变TAP(点击)音符的款式", ""), + new OptionCateDesignTableRecord(1, "HoldDesign", "HOLD(长按)音符款式", "", "改变HOLD(长按)音符款式", ""), + new OptionCateDesignTableRecord(2, "SlideDesign", "SLIDE(滑动)音符款式", "", "改变SLIDE(滑动)音符款式", ""), + new OptionCateDesignTableRecord(3, "StarDesign", "SLIDE(滑动)音符的颜色", "", "☆的颜色变更(拖尾部分不会变)", ""), + new OptionCateDesignTableRecord(4, "OutlineDesign", "判定线款式", "", "改变判定线的款式", "") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionCateDesignTableRecord.cs b/Assembly-CSharp/DB/OptionCateDesignTableRecord.cs new file mode 100644 index 0000000..358f5c5 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateDesignTableRecord.cs @@ -0,0 +1,42 @@ +using System; + +namespace DB +{ + // Token: 0x02000788 RID: 1928 + public class OptionCateDesignTableRecord + { + // Token: 0x06004469 RID: 17513 RVA: 0x00003560 File Offset: 0x00002760 + public OptionCateDesignTableRecord() + { + } + + // Token: 0x0600446A RID: 17514 RVA: 0x0017DFE7 File Offset: 0x0017D1E7 + public OptionCateDesignTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + } + + // Token: 0x04005321 RID: 21281 + public int EnumValue; + + // Token: 0x04005322 RID: 21282 + public string EnumName; + + // Token: 0x04005323 RID: 21283 + public string Name; + + // Token: 0x04005324 RID: 21284 + public string NameEx; + + // Token: 0x04005325 RID: 21285 + public string Detail; + + // Token: 0x04005326 RID: 21286 + public string DetailEx; + } +} diff --git a/Assembly-CSharp/DB/OptionCateGameID.cs b/Assembly-CSharp/DB/OptionCateGameID.cs new file mode 100644 index 0000000..25faaa7 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateGameID.cs @@ -0,0 +1,29 @@ +using System; + +namespace DB +{ + // Token: 0x0200078A RID: 1930 + public enum OptionCateGameID + { + // Token: 0x04005329 RID: 21289 + TrackSkip, + // Token: 0x0400532A RID: 21290 + Mirror, + // Token: 0x0400532B RID: 21291 + StarRotate, + // Token: 0x0400532C RID: 21292 + AdjustTiming, + // Token: 0x0400532D RID: 21293 + JudgeTiming, + // Token: 0x0400532E RID: 21294 + Brightness, + // Token: 0x0400532F RID: 21295 + TouchEffect, + // Token: 0x04005330 RID: 21296 + Begin = 0, + // Token: 0x04005331 RID: 21297 + End = 7, + // Token: 0x04005332 RID: 21298 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionCateGameIDEnum.cs b/Assembly-CSharp/DB/OptionCateGameIDEnum.cs new file mode 100644 index 0000000..4d4670f --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateGameIDEnum.cs @@ -0,0 +1,131 @@ +using System; + +namespace DB +{ + // Token: 0x0200078C RID: 1932 + public static class OptionCateGameIDEnum + { + // Token: 0x0600447A RID: 17530 RVA: 0x0017E20B File Offset: 0x0017D40B + public static bool IsActive(this OptionCateGameID self) + { + return self >= OptionCateGameID.TrackSkip && self < OptionCateGameID.End && self > OptionCateGameID.TrackSkip; + } + + // Token: 0x0600447B RID: 17531 RVA: 0x0017E21B File Offset: 0x0017D41B + public static bool IsValid(this OptionCateGameID self) + { + return self >= OptionCateGameID.TrackSkip && self < OptionCateGameID.End; + } + + // Token: 0x0600447C RID: 17532 RVA: 0x0017E227 File Offset: 0x0017D427 + public static void Clamp(this OptionCateGameID self) + { + if (self < OptionCateGameID.TrackSkip) + { + self = OptionCateGameID.TrackSkip; + return; + } + if (self >= (OptionCateGameID)OptionCateGameIDEnum.GetEnd()) + { + self = (OptionCateGameID)OptionCateGameIDEnum.GetEnd(); + } + } + + // Token: 0x0600447D RID: 17533 RVA: 0x0017E240 File Offset: 0x0017D440 + public static int GetEnd(this OptionCateGameID self) + { + return OptionCateGameIDEnum.GetEnd(); + } + + // Token: 0x0600447E RID: 17534 RVA: 0x0017E248 File Offset: 0x0017D448 + public static OptionCateGameID FindID(string enumName) + { + for (OptionCateGameID optionCateGameID = OptionCateGameID.TrackSkip; optionCateGameID < OptionCateGameID.End; optionCateGameID++) + { + if (optionCateGameID.GetEnumName() == enumName) + { + return optionCateGameID; + } + } + return OptionCateGameID.Invalid; + } + + // Token: 0x0600447F RID: 17535 RVA: 0x0017E272 File Offset: 0x0017D472 + public static int GetEnd() + { + return OptionCateGameIDEnum.records.Length; + } + + // Token: 0x06004480 RID: 17536 RVA: 0x0017E27B File Offset: 0x0017D47B + public static int GetEnumValue(this OptionCateGameID self) + { + if (self.IsValid()) + { + return OptionCateGameIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004481 RID: 17537 RVA: 0x0017E293 File Offset: 0x0017D493 + public static string GetEnumName(this OptionCateGameID self) + { + if (self.IsValid()) + { + return OptionCateGameIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004482 RID: 17538 RVA: 0x0017E2AF File Offset: 0x0017D4AF + public static string GetName(this OptionCateGameID self) + { + if (self.IsValid()) + { + return OptionCateGameIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004483 RID: 17539 RVA: 0x0017E2CB File Offset: 0x0017D4CB + public static string GetNameEx(this OptionCateGameID self) + { + if (self.IsValid()) + { + return OptionCateGameIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004484 RID: 17540 RVA: 0x0017E2E7 File Offset: 0x0017D4E7 + public static string GetDetail(this OptionCateGameID self) + { + if (self.IsValid()) + { + return OptionCateGameIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004485 RID: 17541 RVA: 0x0017E303 File Offset: 0x0017D503 + public static string GetDetailEx(this OptionCateGameID self) + { + if (self.IsValid()) + { + return OptionCateGameIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x04005339 RID: 21305 + private static readonly OptionCateGameTableRecord[] records = new OptionCateGameTableRecord[] + { + new OptionCateGameTableRecord(0, "TrackSkip", "跳过乐曲", "", "中止游戏进入结算画面", ""), + new OptionCateGameTableRecord(1, "Mirror", "镜像模式", "", "替换音符的上下和左右的配置", ""), + new OptionCateGameTableRecord(2, "StarRotate", "旋转滑动", "", "使☆随着滑动操作的速度进行旋转", ""), + new OptionCateGameTableRecord(3, "AdjustTiming", "判定调整A", "", "适合靠听节奏来游玩的玩家\r\n调整音符到达判定线的时间", ""), + new OptionCateGameTableRecord(4, "JudgeTiming", "判定调整B", "", "适合靠目押来游玩的玩家\r\n直接调整判定的时机", ""), + new OptionCateGameTableRecord(5, "Brightness", "影像的亮度", "", "调整游戏过程中背景影像的亮度", ""), + new OptionCateGameTableRecord(6, "TouchEffect", "反馈特效", "", "改变触碰到屏幕时播放的特效", "") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionCateGameTableRecord.cs b/Assembly-CSharp/DB/OptionCateGameTableRecord.cs new file mode 100644 index 0000000..09a9d0e --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateGameTableRecord.cs @@ -0,0 +1,42 @@ +using System; + +namespace DB +{ + // Token: 0x0200078B RID: 1931 + public class OptionCateGameTableRecord + { + // Token: 0x06004478 RID: 17528 RVA: 0x00003560 File Offset: 0x00002760 + public OptionCateGameTableRecord() + { + } + + // Token: 0x06004479 RID: 17529 RVA: 0x0017E1D6 File Offset: 0x0017D3D6 + public OptionCateGameTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + } + + // Token: 0x04005333 RID: 21299 + public int EnumValue; + + // Token: 0x04005334 RID: 21300 + public string EnumName; + + // Token: 0x04005335 RID: 21301 + public string Name; + + // Token: 0x04005336 RID: 21302 + public string NameEx; + + // Token: 0x04005337 RID: 21303 + public string Detail; + + // Token: 0x04005338 RID: 21304 + public string DetailEx; + } +} diff --git a/Assembly-CSharp/DB/OptionCateJudgeID.cs b/Assembly-CSharp/DB/OptionCateJudgeID.cs new file mode 100644 index 0000000..8139863 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateJudgeID.cs @@ -0,0 +1,33 @@ +using System; + +namespace DB +{ + // Token: 0x02000790 RID: 1936 + public enum OptionCateJudgeID + { + // Token: 0x0400534B RID: 21323 + DispCenter, + // Token: 0x0400534C RID: 21324 + DispOutFrame, + // Token: 0x0400534D RID: 21325 + DispJudge, + // Token: 0x0400534E RID: 21326 + DispJudgeTapPos, + // Token: 0x0400534F RID: 21327 + DispJudgeTouchPos, + // Token: 0x04005350 RID: 21328 + ChainDisp, + // Token: 0x04005351 RID: 21329 + SubMonitor_Achive, + // Token: 0x04005352 RID: 21330 + RatingDisp, + // Token: 0x04005353 RID: 21331 + SubMonitor_Appeal, + // Token: 0x04005354 RID: 21332 + Begin = 0, + // Token: 0x04005355 RID: 21333 + End = 9, + // Token: 0x04005356 RID: 21334 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionCateJudgeIDEnum.cs b/Assembly-CSharp/DB/OptionCateJudgeIDEnum.cs new file mode 100644 index 0000000..7319aba --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateJudgeIDEnum.cs @@ -0,0 +1,133 @@ +using System; + +namespace DB +{ + // Token: 0x02000792 RID: 1938 + public static class OptionCateJudgeIDEnum + { + // Token: 0x06004498 RID: 17560 RVA: 0x0017E647 File Offset: 0x0017D847 + public static bool IsActive(this OptionCateJudgeID self) + { + return self >= OptionCateJudgeID.DispCenter && self < OptionCateJudgeID.End && self > OptionCateJudgeID.DispCenter; + } + + // Token: 0x06004499 RID: 17561 RVA: 0x0017E658 File Offset: 0x0017D858 + public static bool IsValid(this OptionCateJudgeID self) + { + return self >= OptionCateJudgeID.DispCenter && self < OptionCateJudgeID.End; + } + + // Token: 0x0600449A RID: 17562 RVA: 0x0017E665 File Offset: 0x0017D865 + public static void Clamp(this OptionCateJudgeID self) + { + if (self < OptionCateJudgeID.DispCenter) + { + self = OptionCateJudgeID.DispCenter; + return; + } + if (self >= (OptionCateJudgeID)OptionCateJudgeIDEnum.GetEnd()) + { + self = (OptionCateJudgeID)OptionCateJudgeIDEnum.GetEnd(); + } + } + + // Token: 0x0600449B RID: 17563 RVA: 0x0017E67E File Offset: 0x0017D87E + public static int GetEnd(this OptionCateJudgeID self) + { + return OptionCateJudgeIDEnum.GetEnd(); + } + + // Token: 0x0600449C RID: 17564 RVA: 0x0017E688 File Offset: 0x0017D888 + public static OptionCateJudgeID FindID(string enumName) + { + for (OptionCateJudgeID optionCateJudgeID = OptionCateJudgeID.DispCenter; optionCateJudgeID < OptionCateJudgeID.End; optionCateJudgeID++) + { + if (optionCateJudgeID.GetEnumName() == enumName) + { + return optionCateJudgeID; + } + } + return OptionCateJudgeID.Invalid; + } + + // Token: 0x0600449D RID: 17565 RVA: 0x0017E6B3 File Offset: 0x0017D8B3 + public static int GetEnd() + { + return OptionCateJudgeIDEnum.records.Length; + } + + // Token: 0x0600449E RID: 17566 RVA: 0x0017E6BC File Offset: 0x0017D8BC + public static int GetEnumValue(this OptionCateJudgeID self) + { + if (self.IsValid()) + { + return OptionCateJudgeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600449F RID: 17567 RVA: 0x0017E6D4 File Offset: 0x0017D8D4 + public static string GetEnumName(this OptionCateJudgeID self) + { + if (self.IsValid()) + { + return OptionCateJudgeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060044A0 RID: 17568 RVA: 0x0017E6F0 File Offset: 0x0017D8F0 + public static string GetName(this OptionCateJudgeID self) + { + if (self.IsValid()) + { + return OptionCateJudgeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060044A1 RID: 17569 RVA: 0x0017E70C File Offset: 0x0017D90C + public static string GetNameEx(this OptionCateJudgeID self) + { + if (self.IsValid()) + { + return OptionCateJudgeIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060044A2 RID: 17570 RVA: 0x0017E728 File Offset: 0x0017D928 + public static string GetDetail(this OptionCateJudgeID self) + { + if (self.IsValid()) + { + return OptionCateJudgeIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060044A3 RID: 17571 RVA: 0x0017E744 File Offset: 0x0017D944 + public static string GetDetailEx(this OptionCateJudgeID self) + { + if (self.IsValid()) + { + return OptionCateJudgeIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x0400535D RID: 21341 + private static readonly OptionCateJudgeTableRecord[] records = new OptionCateJudgeTableRecord[] + { + new OptionCateJudgeTableRecord(0, "DispCenter", "画面中央显示", "", "变更画面中央显示的信息", ""), + new OptionCateJudgeTableRecord(1, "DispOutFrame", "外框显示", "", "更改屏幕顶部的信息显示", ""), + new OptionCateJudgeTableRecord(2, "DispJudge", "判定显示", "", "改变碰到音符时出现判定的显示设置", ""), + new OptionCateJudgeTableRecord(3, "DispJudgeTapPos", "TAP(点击)判定的显示位置", "", "调整TOUCH(触摸)音符以外的评价判定所显示的位置", ""), + new OptionCateJudgeTableRecord(4, "DispJudgeTouchPos", "TOUCH(触摸)判定的显示位置", "", "调整TOUCH(触摸)音符的判定显示位置", ""), + new OptionCateJudgeTableRecord(5, "ChainDisp", "显示同步率/对战", "", "改变多人游戏时同步率计算的显示设置", ""), + new OptionCateJudgeTableRecord(6, "SubMonitor_Achive", "在上方画面显示达成率", "", "设置游戏时上方画面中达成率的显示方法", ""), + new OptionCateJudgeTableRecord(7, "RatingDisp", "评级,段位,阶级显示", "", "可以设置是否显示评级,段位,阶级", ""), + new OptionCateJudgeTableRecord(8, "SubMonitor_Appeal", "招募邀请", "", "在上方画面中显示说明", "") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionCateJudgeTableRecord.cs b/Assembly-CSharp/DB/OptionCateJudgeTableRecord.cs new file mode 100644 index 0000000..aafc923 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateJudgeTableRecord.cs @@ -0,0 +1,42 @@ +using System; + +namespace DB +{ + // Token: 0x02000791 RID: 1937 + public class OptionCateJudgeTableRecord + { + // Token: 0x06004496 RID: 17558 RVA: 0x00003560 File Offset: 0x00002760 + public OptionCateJudgeTableRecord() + { + } + + // Token: 0x06004497 RID: 17559 RVA: 0x0017E612 File Offset: 0x0017D812 + public OptionCateJudgeTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + } + + // Token: 0x04005357 RID: 21335 + public int EnumValue; + + // Token: 0x04005358 RID: 21336 + public string EnumName; + + // Token: 0x04005359 RID: 21337 + public string Name; + + // Token: 0x0400535A RID: 21338 + public string NameEx; + + // Token: 0x0400535B RID: 21339 + public string Detail; + + // Token: 0x0400535C RID: 21340 + public string DetailEx; + } +} diff --git a/Assembly-CSharp/DB/OptionCateSoundID.cs b/Assembly-CSharp/DB/OptionCateSoundID.cs new file mode 100644 index 0000000..aea2f60 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateSoundID.cs @@ -0,0 +1,43 @@ +using System; + +namespace DB +{ + // Token: 0x02000793 RID: 1939 + public enum OptionCateSoundID + { + // Token: 0x0400535F RID: 21343 + Ans_Vol, + // Token: 0x04005360 RID: 21344 + Tap_SuccessSe, + // Token: 0x04005361 RID: 21345 + Tap_Judge, + // Token: 0x04005362 RID: 21346 + Tap_Vol, + // Token: 0x04005363 RID: 21347 + Break_Se, + // Token: 0x04005364 RID: 21348 + Break_Vol, + // Token: 0x04005365 RID: 21349 + Ex_Se, + // Token: 0x04005366 RID: 21350 + Ex_Vol, + // Token: 0x04005367 RID: 21351 + Slide_Se, + // Token: 0x04005368 RID: 21352 + Slide_Vol, + // Token: 0x04005369 RID: 21353 + BreakSlide_Vol, + // Token: 0x0400536A RID: 21354 + Touch_Vol, + // Token: 0x0400536B RID: 21355 + TouchHold_Vol, + // Token: 0x0400536C RID: 21356 + DamageSe_Vol, + // Token: 0x0400536D RID: 21357 + Begin = 0, + // Token: 0x0400536E RID: 21358 + End = 14, + // Token: 0x0400536F RID: 21359 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionCateSoundIDEnum.cs b/Assembly-CSharp/DB/OptionCateSoundIDEnum.cs new file mode 100644 index 0000000..d51931c --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateSoundIDEnum.cs @@ -0,0 +1,138 @@ +using System; + +namespace DB +{ + // Token: 0x02000795 RID: 1941 + public static class OptionCateSoundIDEnum + { + // Token: 0x060044A7 RID: 17575 RVA: 0x0017D30E File Offset: 0x0017C50E + public static bool IsActive(this OptionCateSoundID self) + { + return self >= OptionCateSoundID.Ans_Vol && self < OptionCateSoundID.End && self > OptionCateSoundID.Ans_Vol; + } + + // Token: 0x060044A8 RID: 17576 RVA: 0x001307D1 File Offset: 0x0012F9D1 + public static bool IsValid(this OptionCateSoundID self) + { + return self >= OptionCateSoundID.Ans_Vol && self < OptionCateSoundID.End; + } + + // Token: 0x060044A9 RID: 17577 RVA: 0x0017E8E0 File Offset: 0x0017DAE0 + public static void Clamp(this OptionCateSoundID self) + { + if (self < OptionCateSoundID.Ans_Vol) + { + self = OptionCateSoundID.Ans_Vol; + return; + } + if (self >= (OptionCateSoundID)OptionCateSoundIDEnum.GetEnd()) + { + self = (OptionCateSoundID)OptionCateSoundIDEnum.GetEnd(); + } + } + + // Token: 0x060044AA RID: 17578 RVA: 0x0017E8F9 File Offset: 0x0017DAF9 + public static int GetEnd(this OptionCateSoundID self) + { + return OptionCateSoundIDEnum.GetEnd(); + } + + // Token: 0x060044AB RID: 17579 RVA: 0x0017E900 File Offset: 0x0017DB00 + public static OptionCateSoundID FindID(string enumName) + { + for (OptionCateSoundID optionCateSoundID = OptionCateSoundID.Ans_Vol; optionCateSoundID < OptionCateSoundID.End; optionCateSoundID++) + { + if (optionCateSoundID.GetEnumName() == enumName) + { + return optionCateSoundID; + } + } + return OptionCateSoundID.Invalid; + } + + // Token: 0x060044AC RID: 17580 RVA: 0x0017E92B File Offset: 0x0017DB2B + public static int GetEnd() + { + return OptionCateSoundIDEnum.records.Length; + } + + // Token: 0x060044AD RID: 17581 RVA: 0x0017E934 File Offset: 0x0017DB34 + public static int GetEnumValue(this OptionCateSoundID self) + { + if (self.IsValid()) + { + return OptionCateSoundIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060044AE RID: 17582 RVA: 0x0017E94C File Offset: 0x0017DB4C + public static string GetEnumName(this OptionCateSoundID self) + { + if (self.IsValid()) + { + return OptionCateSoundIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060044AF RID: 17583 RVA: 0x0017E968 File Offset: 0x0017DB68 + public static string GetName(this OptionCateSoundID self) + { + if (self.IsValid()) + { + return OptionCateSoundIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060044B0 RID: 17584 RVA: 0x0017E984 File Offset: 0x0017DB84 + public static string GetNameEx(this OptionCateSoundID self) + { + if (self.IsValid()) + { + return OptionCateSoundIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060044B1 RID: 17585 RVA: 0x0017E9A0 File Offset: 0x0017DBA0 + public static string GetDetail(this OptionCateSoundID self) + { + if (self.IsValid()) + { + return OptionCateSoundIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060044B2 RID: 17586 RVA: 0x0017E9BC File Offset: 0x0017DBBC + public static string GetDetailEx(this OptionCateSoundID self) + { + if (self.IsValid()) + { + return OptionCateSoundIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x04005376 RID: 21366 + private static readonly OptionCateSoundTableRecord[] records = new OptionCateSoundTableRecord[] + { + new OptionCateSoundTableRecord(0, "Ans_Vol", "正解音音量", "", "设定以正确时机拍打到\n音符时的音效音量\r\n", ""), + new OptionCateSoundTableRecord(1, "Tap_SuccessSe", "TAP(点击)成功音效", "", "切换TAP(点击)成功时的音效", ""), + new OptionCateSoundTableRecord(2, "Tap_Judge", "音符判定音效", "", "设置播放音效的判定范围", ""), + new OptionCateSoundTableRecord(3, "Tap_Vol", "音符判定音量", "", "设定TAP(点击)・HOLD(长按)音符的判定音量", ""), + new OptionCateSoundTableRecord(4, "Break_Se", "BREAK(绝赞)判定音", "", "切换BREAK(绝赞)判定的判定音效", ""), + new OptionCateSoundTableRecord(5, "Break_Vol", "BREAK(绝赞)音符音量", "", "设定BREAK(绝赞)音符的音量", ""), + new OptionCateSoundTableRecord(6, "Ex_Se", "EX判定音", "", "切换EX判定音的音效", ""), + new OptionCateSoundTableRecord(7, "Ex_Vol", "EX判定音量", "", "设定EX音符的判定音量", ""), + new OptionCateSoundTableRecord(8, "Slide_Se", "SLIDE(滑动)音", "", "切换SLIDE(滑动)时的音效", ""), + new OptionCateSoundTableRecord(9, "Slide_Vol", "SLIDE(滑动)时的音量", "", "设定SLIDE(滑动)时的音量", ""), + new OptionCateSoundTableRecord(10, "BreakSlide_Vol", "BREAK(绝赞)SLIDE(滑动)时的音量", "", "设定BREAK(绝赞)SLIDE(滑动)音符的音量", ""), + new OptionCateSoundTableRecord(11, "Touch_Vol", "TOUCH(触摸)音量", "", "设定TOUCH(触摸)和\r\nTOUCH HOLD(长按触摸)的音量", ""), + new OptionCateSoundTableRecord(12, "TouchHold_Vol", "TOUCH EFFECT(触摸效果)音量", "", "设定TOUCH EFFECT(触摸效果)的音量", ""), + new OptionCateSoundTableRecord(13, "DamageSe_Vol", "伤害音音量", "", "可以设定完美挑战曲,段位认定模式下\r\n受到伤害时触发的效果音音量", "") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionCateSoundTableRecord.cs b/Assembly-CSharp/DB/OptionCateSoundTableRecord.cs new file mode 100644 index 0000000..181e1c7 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateSoundTableRecord.cs @@ -0,0 +1,42 @@ +using System; + +namespace DB +{ + // Token: 0x02000794 RID: 1940 + public class OptionCateSoundTableRecord + { + // Token: 0x060044A5 RID: 17573 RVA: 0x00003560 File Offset: 0x00002760 + public OptionCateSoundTableRecord() + { + } + + // Token: 0x060044A6 RID: 17574 RVA: 0x0017E8AB File Offset: 0x0017DAAB + public OptionCateSoundTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + } + + // Token: 0x04005370 RID: 21360 + public int EnumValue; + + // Token: 0x04005371 RID: 21361 + public string EnumName; + + // Token: 0x04005372 RID: 21362 + public string Name; + + // Token: 0x04005373 RID: 21363 + public string NameEx; + + // Token: 0x04005374 RID: 21364 + public string Detail; + + // Token: 0x04005375 RID: 21365 + public string DetailEx; + } +} diff --git a/Assembly-CSharp/DB/OptionCateSpeedID.cs b/Assembly-CSharp/DB/OptionCateSpeedID.cs new file mode 100644 index 0000000..b2cded8 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateSpeedID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x02000796 RID: 1942 + public enum OptionCateSpeedID + { + // Token: 0x04005378 RID: 21368 + NoteSpeed, + // Token: 0x04005379 RID: 21369 + TouchSpeed, + // Token: 0x0400537A RID: 21370 + SlideSpeed, + // Token: 0x0400537B RID: 21371 + Begin = 0, + // Token: 0x0400537C RID: 21372 + End = 3, + // Token: 0x0400537D RID: 21373 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionCateSpeedIDEnum.cs b/Assembly-CSharp/DB/OptionCateSpeedIDEnum.cs new file mode 100644 index 0000000..4d94aa6 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateSpeedIDEnum.cs @@ -0,0 +1,127 @@ +using System; + +namespace DB +{ + // Token: 0x02000798 RID: 1944 + public static class OptionCateSpeedIDEnum + { + // Token: 0x060044B6 RID: 17590 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this OptionCateSpeedID self) + { + return self >= OptionCateSpeedID.NoteSpeed && self < OptionCateSpeedID.End && self > OptionCateSpeedID.NoteSpeed; + } + + // Token: 0x060044B7 RID: 17591 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this OptionCateSpeedID self) + { + return self >= OptionCateSpeedID.NoteSpeed && self < OptionCateSpeedID.End; + } + + // Token: 0x060044B8 RID: 17592 RVA: 0x0017EC0C File Offset: 0x0017DE0C + public static void Clamp(this OptionCateSpeedID self) + { + if (self < OptionCateSpeedID.NoteSpeed) + { + self = OptionCateSpeedID.NoteSpeed; + return; + } + if (self >= (OptionCateSpeedID)OptionCateSpeedIDEnum.GetEnd()) + { + self = (OptionCateSpeedID)OptionCateSpeedIDEnum.GetEnd(); + } + } + + // Token: 0x060044B9 RID: 17593 RVA: 0x0017EC25 File Offset: 0x0017DE25 + public static int GetEnd(this OptionCateSpeedID self) + { + return OptionCateSpeedIDEnum.GetEnd(); + } + + // Token: 0x060044BA RID: 17594 RVA: 0x0017EC2C File Offset: 0x0017DE2C + public static OptionCateSpeedID FindID(string enumName) + { + for (OptionCateSpeedID optionCateSpeedID = OptionCateSpeedID.NoteSpeed; optionCateSpeedID < OptionCateSpeedID.End; optionCateSpeedID++) + { + if (optionCateSpeedID.GetEnumName() == enumName) + { + return optionCateSpeedID; + } + } + return OptionCateSpeedID.Invalid; + } + + // Token: 0x060044BB RID: 17595 RVA: 0x0017EC56 File Offset: 0x0017DE56 + public static int GetEnd() + { + return OptionCateSpeedIDEnum.records.Length; + } + + // Token: 0x060044BC RID: 17596 RVA: 0x0017EC5F File Offset: 0x0017DE5F + public static int GetEnumValue(this OptionCateSpeedID self) + { + if (self.IsValid()) + { + return OptionCateSpeedIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060044BD RID: 17597 RVA: 0x0017EC77 File Offset: 0x0017DE77 + public static string GetEnumName(this OptionCateSpeedID self) + { + if (self.IsValid()) + { + return OptionCateSpeedIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060044BE RID: 17598 RVA: 0x0017EC93 File Offset: 0x0017DE93 + public static string GetName(this OptionCateSpeedID self) + { + if (self.IsValid()) + { + return OptionCateSpeedIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060044BF RID: 17599 RVA: 0x0017ECAF File Offset: 0x0017DEAF + public static string GetNameEx(this OptionCateSpeedID self) + { + if (self.IsValid()) + { + return OptionCateSpeedIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060044C0 RID: 17600 RVA: 0x0017ECCB File Offset: 0x0017DECB + public static string GetDetail(this OptionCateSpeedID self) + { + if (self.IsValid()) + { + return OptionCateSpeedIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060044C1 RID: 17601 RVA: 0x0017ECE7 File Offset: 0x0017DEE7 + public static string GetDetailEx(this OptionCateSpeedID self) + { + if (self.IsValid()) + { + return OptionCateSpeedIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x04005384 RID: 21380 + private static readonly OptionCateSpeedTableRecord[] records = new OptionCateSpeedTableRecord[] + { + new OptionCateSpeedTableRecord(0, "NoteSpeed", "TAP(点击)速度", "", "调整音符圈的移动速度", ""), + new OptionCateSpeedTableRecord(1, "TouchSpeed", "TOUCH(触摸)速度", "", "调整在触摸之前的显示速度", ""), + new OptionCateSpeedTableRecord(2, "SlideSpeed", "SLIDE(滑动)显示时机", "", "调整提前显示的出现时间", "") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionCateSpeedTableRecord.cs b/Assembly-CSharp/DB/OptionCateSpeedTableRecord.cs new file mode 100644 index 0000000..6263ef1 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCateSpeedTableRecord.cs @@ -0,0 +1,42 @@ +using System; + +namespace DB +{ + // Token: 0x02000797 RID: 1943 + public class OptionCateSpeedTableRecord + { + // Token: 0x060044B4 RID: 17588 RVA: 0x00003560 File Offset: 0x00002760 + public OptionCateSpeedTableRecord() + { + } + + // Token: 0x060044B5 RID: 17589 RVA: 0x0017EBD7 File Offset: 0x0017DDD7 + public OptionCateSpeedTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + } + + // Token: 0x0400537E RID: 21374 + public int EnumValue; + + // Token: 0x0400537F RID: 21375 + public string EnumName; + + // Token: 0x04005380 RID: 21376 + public string Name; + + // Token: 0x04005381 RID: 21377 + public string NameEx; + + // Token: 0x04005382 RID: 21378 + public string Detail; + + // Token: 0x04005383 RID: 21379 + public string DetailEx; + } +} diff --git a/Assembly-CSharp/DB/OptionCategoryID.cs b/Assembly-CSharp/DB/OptionCategoryID.cs new file mode 100644 index 0000000..504720d --- /dev/null +++ b/Assembly-CSharp/DB/OptionCategoryID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x0200078D RID: 1933 + public enum OptionCategoryID + { + // Token: 0x0400533B RID: 21307 + SpeedSetting, + // Token: 0x0400533C RID: 21308 + GameSetting, + // Token: 0x0400533D RID: 21309 + JudgeSetting, + // Token: 0x0400533E RID: 21310 + DesignSetting, + // Token: 0x0400533F RID: 21311 + SoundSetting, + // Token: 0x04005340 RID: 21312 + Begin = 0, + // Token: 0x04005341 RID: 21313 + End = 5, + // Token: 0x04005342 RID: 21314 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionCategoryIDEnum.cs b/Assembly-CSharp/DB/OptionCategoryIDEnum.cs new file mode 100644 index 0000000..dccd092 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCategoryIDEnum.cs @@ -0,0 +1,129 @@ +using System; + +namespace DB +{ + // Token: 0x0200078F RID: 1935 + public static class OptionCategoryIDEnum + { + // Token: 0x06004489 RID: 17545 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this OptionCategoryID self) + { + return self >= OptionCategoryID.SpeedSetting && self < OptionCategoryID.End && self > OptionCategoryID.SpeedSetting; + } + + // Token: 0x0600448A RID: 17546 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this OptionCategoryID self) + { + return self >= OptionCategoryID.SpeedSetting && self < OptionCategoryID.End; + } + + // Token: 0x0600448B RID: 17547 RVA: 0x0017E45B File Offset: 0x0017D65B + public static void Clamp(this OptionCategoryID self) + { + if (self < OptionCategoryID.SpeedSetting) + { + self = OptionCategoryID.SpeedSetting; + return; + } + if (self >= (OptionCategoryID)OptionCategoryIDEnum.GetEnd()) + { + self = (OptionCategoryID)OptionCategoryIDEnum.GetEnd(); + } + } + + // Token: 0x0600448C RID: 17548 RVA: 0x0017E474 File Offset: 0x0017D674 + public static int GetEnd(this OptionCategoryID self) + { + return OptionCategoryIDEnum.GetEnd(); + } + + // Token: 0x0600448D RID: 17549 RVA: 0x0017E47C File Offset: 0x0017D67C + public static OptionCategoryID FindID(string enumName) + { + for (OptionCategoryID optionCategoryID = OptionCategoryID.SpeedSetting; optionCategoryID < OptionCategoryID.End; optionCategoryID++) + { + if (optionCategoryID.GetEnumName() == enumName) + { + return optionCategoryID; + } + } + return OptionCategoryID.Invalid; + } + + // Token: 0x0600448E RID: 17550 RVA: 0x0017E4A6 File Offset: 0x0017D6A6 + public static int GetEnd() + { + return OptionCategoryIDEnum.records.Length; + } + + // Token: 0x0600448F RID: 17551 RVA: 0x0017E4AF File Offset: 0x0017D6AF + public static int GetEnumValue(this OptionCategoryID self) + { + if (self.IsValid()) + { + return OptionCategoryIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004490 RID: 17552 RVA: 0x0017E4C7 File Offset: 0x0017D6C7 + public static string GetEnumName(this OptionCategoryID self) + { + if (self.IsValid()) + { + return OptionCategoryIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004491 RID: 17553 RVA: 0x0017E4E3 File Offset: 0x0017D6E3 + public static string GetName(this OptionCategoryID self) + { + if (self.IsValid()) + { + return OptionCategoryIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004492 RID: 17554 RVA: 0x0017E4FF File Offset: 0x0017D6FF + public static string GetNameEx(this OptionCategoryID self) + { + if (self.IsValid()) + { + return OptionCategoryIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004493 RID: 17555 RVA: 0x0017E51B File Offset: 0x0017D71B + public static uint GetMainColor(this OptionCategoryID self) + { + if (self.IsValid()) + { + return OptionCategoryIDEnum.records[(int)self].MainColor; + } + return 0U; + } + + // Token: 0x06004494 RID: 17556 RVA: 0x0017E533 File Offset: 0x0017D733 + public static string GetFilename(this OptionCategoryID self) + { + if (self.IsValid()) + { + return OptionCategoryIDEnum.records[(int)self].Filename; + } + return ""; + } + + // Token: 0x04005349 RID: 21321 + private static readonly OptionCategoryTableRecord[] records = new OptionCategoryTableRecord[] + { + new OptionCategoryTableRecord(0, "SpeedSetting", "速度设置", "Speed", 4290405878U, "UI_CMN_TabTitle_Option_01"), + new OptionCategoryTableRecord(1, "GameSetting", "游戏设置", "Game", 4290405878U, "UI_CMN_TabTitle_Option_02"), + new OptionCategoryTableRecord(2, "JudgeSetting", "判定表示设置", "Judge", 4290405878U, "UI_CMN_TabTitle_Option_03"), + new OptionCategoryTableRecord(3, "DesignSetting", "美术设置", "Design", 4290405878U, "UI_CMN_TabTitle_Option_04"), + new OptionCategoryTableRecord(4, "SoundSetting", "声音设置", "Sound", 4290405878U, "UI_CMN_TabTitle_Option_05") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionCategoryTableRecord.cs b/Assembly-CSharp/DB/OptionCategoryTableRecord.cs new file mode 100644 index 0000000..6d98bb4 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCategoryTableRecord.cs @@ -0,0 +1,42 @@ +using System; + +namespace DB +{ + // Token: 0x0200078E RID: 1934 + public class OptionCategoryTableRecord + { + // Token: 0x06004487 RID: 17543 RVA: 0x00003560 File Offset: 0x00002760 + public OptionCategoryTableRecord() + { + } + + // Token: 0x06004488 RID: 17544 RVA: 0x0017E426 File Offset: 0x0017D626 + public OptionCategoryTableRecord(int EnumValue, string EnumName, string Name, string NameEx, uint MainColor, string Filename) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.MainColor = MainColor; + this.Filename = Filename; + } + + // Token: 0x04005343 RID: 21315 + public int EnumValue; + + // Token: 0x04005344 RID: 21316 + public string EnumName; + + // Token: 0x04005345 RID: 21317 + public string Name; + + // Token: 0x04005346 RID: 21318 + public string NameEx; + + // Token: 0x04005347 RID: 21319 + public uint MainColor; + + // Token: 0x04005348 RID: 21320 + public string Filename; + } +} diff --git a/Assembly-CSharp/DB/OptionCenterdisplayID.cs b/Assembly-CSharp/DB/OptionCenterdisplayID.cs new file mode 100644 index 0000000..3aa1cdf --- /dev/null +++ b/Assembly-CSharp/DB/OptionCenterdisplayID.cs @@ -0,0 +1,39 @@ +using System; + +namespace DB +{ + // Token: 0x02000799 RID: 1945 + public enum OptionCenterdisplayID + { + // Token: 0x04005386 RID: 21382 + Off, + // Token: 0x04005387 RID: 21383 + Combo, + // Token: 0x04005388 RID: 21384 + AchivePlus, + // Token: 0x04005389 RID: 21385 + AchiveMinus1, + // Token: 0x0400538A RID: 21386 + AchiveMinus2, + // Token: 0x0400538B RID: 21387 + BoarderS, + // Token: 0x0400538C RID: 21388 + BoarderSS, + // Token: 0x0400538D RID: 21389 + BoarderSSS, + // Token: 0x0400538E RID: 21390 + BoarderBest, + // Token: 0x0400538F RID: 21391 + DeluxScore, + // Token: 0x04005390 RID: 21392 + DeluxScoreMinus, + // Token: 0x04005391 RID: 21393 + DeluxScoreStar, + // Token: 0x04005392 RID: 21394 + Begin = 0, + // Token: 0x04005393 RID: 21395 + End = 12, + // Token: 0x04005394 RID: 21396 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionCenterdisplayIDEnum.cs b/Assembly-CSharp/DB/OptionCenterdisplayIDEnum.cs new file mode 100644 index 0000000..a76b500 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCenterdisplayIDEnum.cs @@ -0,0 +1,152 @@ +using System; + +namespace DB +{ + // Token: 0x0200079B RID: 1947 + public static class OptionCenterdisplayIDEnum + { + // Token: 0x060044C5 RID: 17605 RVA: 0x001748BD File Offset: 0x00173ABD + public static bool IsActive(this OptionCenterdisplayID self) + { + return self >= OptionCenterdisplayID.Off && self < OptionCenterdisplayID.End && self > OptionCenterdisplayID.Off; + } + + // Token: 0x060044C6 RID: 17606 RVA: 0x001748CE File Offset: 0x00173ACE + public static bool IsValid(this OptionCenterdisplayID self) + { + return self >= OptionCenterdisplayID.Off && self < OptionCenterdisplayID.End; + } + + // Token: 0x060044C7 RID: 17607 RVA: 0x0017EDD7 File Offset: 0x0017DFD7 + public static void Clamp(this OptionCenterdisplayID self) + { + if (self < OptionCenterdisplayID.Off) + { + self = OptionCenterdisplayID.Off; + return; + } + if (self >= (OptionCenterdisplayID)OptionCenterdisplayIDEnum.GetEnd()) + { + self = (OptionCenterdisplayID)OptionCenterdisplayIDEnum.GetEnd(); + } + } + + // Token: 0x060044C8 RID: 17608 RVA: 0x0017EDF0 File Offset: 0x0017DFF0 + public static int GetEnd(this OptionCenterdisplayID self) + { + return OptionCenterdisplayIDEnum.GetEnd(); + } + + // Token: 0x060044C9 RID: 17609 RVA: 0x0017EDF8 File Offset: 0x0017DFF8 + public static OptionCenterdisplayID FindID(string enumName) + { + for (OptionCenterdisplayID optionCenterdisplayID = OptionCenterdisplayID.Off; optionCenterdisplayID < OptionCenterdisplayID.End; optionCenterdisplayID++) + { + if (optionCenterdisplayID.GetEnumName() == enumName) + { + return optionCenterdisplayID; + } + } + return OptionCenterdisplayID.Invalid; + } + + // Token: 0x060044CA RID: 17610 RVA: 0x0017EE23 File Offset: 0x0017E023 + public static int GetEnd() + { + return OptionCenterdisplayIDEnum.records.Length; + } + + // Token: 0x060044CB RID: 17611 RVA: 0x0017EE2C File Offset: 0x0017E02C + public static int GetEnumValue(this OptionCenterdisplayID self) + { + if (self.IsValid()) + { + return OptionCenterdisplayIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060044CC RID: 17612 RVA: 0x0017EE44 File Offset: 0x0017E044 + public static string GetEnumName(this OptionCenterdisplayID self) + { + if (self.IsValid()) + { + return OptionCenterdisplayIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060044CD RID: 17613 RVA: 0x0017EE60 File Offset: 0x0017E060 + public static string GetName(this OptionCenterdisplayID self) + { + if (self.IsValid()) + { + return OptionCenterdisplayIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060044CE RID: 17614 RVA: 0x0017EE7C File Offset: 0x0017E07C + public static string GetNameEx(this OptionCenterdisplayID self) + { + if (self.IsValid()) + { + return OptionCenterdisplayIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060044CF RID: 17615 RVA: 0x0017EE98 File Offset: 0x0017E098 + public static string GetDetail(this OptionCenterdisplayID self) + { + if (self.IsValid()) + { + return OptionCenterdisplayIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060044D0 RID: 17616 RVA: 0x0017EEB4 File Offset: 0x0017E0B4 + public static string GetDetailEx(this OptionCenterdisplayID self) + { + if (self.IsValid()) + { + return OptionCenterdisplayIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060044D1 RID: 17617 RVA: 0x0017EED0 File Offset: 0x0017E0D0 + public static string GetFilePath(this OptionCenterdisplayID self) + { + if (self.IsValid()) + { + return OptionCenterdisplayIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x060044D2 RID: 17618 RVA: 0x0017EEEC File Offset: 0x0017E0EC + public static bool IsDefault(this OptionCenterdisplayID self) + { + return self.IsValid() && OptionCenterdisplayIDEnum.records[(int)self].isDefault; + } + + // Token: 0x0400539D RID: 21405 + private static readonly OptionCenterdisplayTableRecord[] records = new OptionCenterdisplayTableRecord[] + { + new OptionCenterdisplayTableRecord(0, "Off", "关", "", "画面中央不显示信息", "", "UI_OPT_B_04_01", 0), + new OptionCenterdisplayTableRecord(1, "Combo", "连击", "", "显示没有MISS连续完成音符的总数", "", "UI_OPT_B_04_02", 1), + new OptionCenterdisplayTableRecord(2, "AchivePlus", "达成率(+型)", "", "从0%开始\r\n百分比数字会随判定增加", "", "UI_OPT_B_04_03", 0), + new OptionCenterdisplayTableRecord(3, "AchiveMinus1", "达成率(-型1)", "", "从100%开始\r\n百分比数字会随判定减少", "", "UI_OPT_B_04_04", 0), + new OptionCenterdisplayTableRecord(4, "AchiveMinus2", "达成率(-型2)", "", "从101%开始\r\n百分比数字会随判定减少", "", "UI_OPT_B_04_10", 0), + new OptionCenterdisplayTableRecord(5, "BoarderS", "超过S级", "", "显示距离达成S级所需的达成率,\r\n随判定减少", "", "UI_OPT_B_04_06", 0), + new OptionCenterdisplayTableRecord(6, "BoarderSS", "超过SS级", "", "显示距离达成SS级所需的达成率,\r\n随判定减少", "", "UI_OPT_B_04_07", 0), + new OptionCenterdisplayTableRecord(7, "BoarderSSS", "超过SSS级", "", "显示距离达成SSS级所需的达成率,\r\n随判定减少", "", "UI_OPT_B_04_08", 0), + new OptionCenterdisplayTableRecord(8, "BoarderBest", "超过最佳成绩", "", "显示距离自己最好成绩所需的达成率,\r\n随判定减少", "", "UI_OPT_B_04_09", 0), + new OptionCenterdisplayTableRecord(9, "DeluxScore", "DX分数(+型)", "", "显示在游戏中取得的DX分数", "", "UI_OPT_B_04_05", 0), + new OptionCenterdisplayTableRecord(10, "DeluxScoreMinus", "DX分数(-型)", "", "でらっくスコアの最大値が表示され、\r\n判定によって減少します", "", "UI_OPT_B_04_11", 0), + new OptionCenterdisplayTableRecord(11, "DeluxScoreStar", "DX分数(♦型)", "", "", "", "UI_OPT_B_04_12", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionCenterdisplayTableRecord.cs b/Assembly-CSharp/DB/OptionCenterdisplayTableRecord.cs new file mode 100644 index 0000000..bd8f1a2 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCenterdisplayTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x0200079A RID: 1946 + public class OptionCenterdisplayTableRecord + { + // Token: 0x060044C3 RID: 17603 RVA: 0x00003560 File Offset: 0x00002760 + public OptionCenterdisplayTableRecord() + { + } + + // Token: 0x060044C4 RID: 17604 RVA: 0x0017ED84 File Offset: 0x0017DF84 + public OptionCenterdisplayTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x04005395 RID: 21397 + public int EnumValue; + + // Token: 0x04005396 RID: 21398 + public string EnumName; + + // Token: 0x04005397 RID: 21399 + public string Name; + + // Token: 0x04005398 RID: 21400 + public string NameEx; + + // Token: 0x04005399 RID: 21401 + public string Detail; + + // Token: 0x0400539A RID: 21402 + public string DetailEx; + + // Token: 0x0400539B RID: 21403 + public string FilePath; + + // Token: 0x0400539C RID: 21404 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionCriticalID.cs b/Assembly-CSharp/DB/OptionCriticalID.cs new file mode 100644 index 0000000..76f4122 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCriticalID.cs @@ -0,0 +1,23 @@ +using System; + +namespace DB +{ + // Token: 0x0200079C RID: 1948 + public enum OptionCriticalID + { + // Token: 0x0400539F RID: 21407 + Default, + // Token: 0x040053A0 RID: 21408 + CriticalOn, + // Token: 0x040053A1 RID: 21409 + CriticalOnly, + // Token: 0x040053A2 RID: 21410 + NotPerfect, + // Token: 0x040053A3 RID: 21411 + Begin = 0, + // Token: 0x040053A4 RID: 21412 + End = 4, + // Token: 0x040053A5 RID: 21413 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionCriticalIDEnum.cs b/Assembly-CSharp/DB/OptionCriticalIDEnum.cs new file mode 100644 index 0000000..19c2615 --- /dev/null +++ b/Assembly-CSharp/DB/OptionCriticalIDEnum.cs @@ -0,0 +1,144 @@ +using System; + +namespace DB +{ + // Token: 0x0200079E RID: 1950 + public static class OptionCriticalIDEnum + { + // Token: 0x060044D6 RID: 17622 RVA: 0x00173DA6 File Offset: 0x00172FA6 + public static bool IsActive(this OptionCriticalID self) + { + return self >= OptionCriticalID.Default && self < OptionCriticalID.End && self > OptionCriticalID.Default; + } + + // Token: 0x060044D7 RID: 17623 RVA: 0x00173DB6 File Offset: 0x00172FB6 + public static bool IsValid(this OptionCriticalID self) + { + return self >= OptionCriticalID.Default && self < OptionCriticalID.End; + } + + // Token: 0x060044D8 RID: 17624 RVA: 0x0017F157 File Offset: 0x0017E357 + public static void Clamp(this OptionCriticalID self) + { + if (self < OptionCriticalID.Default) + { + self = OptionCriticalID.Default; + return; + } + if (self >= (OptionCriticalID)OptionCriticalIDEnum.GetEnd()) + { + self = (OptionCriticalID)OptionCriticalIDEnum.GetEnd(); + } + } + + // Token: 0x060044D9 RID: 17625 RVA: 0x0017F170 File Offset: 0x0017E370 + public static int GetEnd(this OptionCriticalID self) + { + return OptionCriticalIDEnum.GetEnd(); + } + + // Token: 0x060044DA RID: 17626 RVA: 0x0017F178 File Offset: 0x0017E378 + public static OptionCriticalID FindID(string enumName) + { + for (OptionCriticalID optionCriticalID = OptionCriticalID.Default; optionCriticalID < OptionCriticalID.End; optionCriticalID++) + { + if (optionCriticalID.GetEnumName() == enumName) + { + return optionCriticalID; + } + } + return OptionCriticalID.Invalid; + } + + // Token: 0x060044DB RID: 17627 RVA: 0x0017F1A2 File Offset: 0x0017E3A2 + public static int GetEnd() + { + return OptionCriticalIDEnum.records.Length; + } + + // Token: 0x060044DC RID: 17628 RVA: 0x0017F1AB File Offset: 0x0017E3AB + public static int GetEnumValue(this OptionCriticalID self) + { + if (self.IsValid()) + { + return OptionCriticalIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060044DD RID: 17629 RVA: 0x0017F1C3 File Offset: 0x0017E3C3 + public static string GetEnumName(this OptionCriticalID self) + { + if (self.IsValid()) + { + return OptionCriticalIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060044DE RID: 17630 RVA: 0x0017F1DF File Offset: 0x0017E3DF + public static string GetName(this OptionCriticalID self) + { + if (self.IsValid()) + { + return OptionCriticalIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060044DF RID: 17631 RVA: 0x0017F1FB File Offset: 0x0017E3FB + public static string GetNameEx(this OptionCriticalID self) + { + if (self.IsValid()) + { + return OptionCriticalIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060044E0 RID: 17632 RVA: 0x0017F217 File Offset: 0x0017E417 + public static string GetDetail(this OptionCriticalID self) + { + if (self.IsValid()) + { + return OptionCriticalIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060044E1 RID: 17633 RVA: 0x0017F233 File Offset: 0x0017E433 + public static string GetDetailEx(this OptionCriticalID self) + { + if (self.IsValid()) + { + return OptionCriticalIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060044E2 RID: 17634 RVA: 0x0017F24F File Offset: 0x0017E44F + public static bool IsDefault(this OptionCriticalID self) + { + return self.IsValid() && OptionCriticalIDEnum.records[(int)self].isDefault; + } + + // Token: 0x060044E3 RID: 17635 RVA: 0x0017F267 File Offset: 0x0017E467 + public static string GetFilePath(this OptionCriticalID self) + { + if (self.IsValid()) + { + return OptionCriticalIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x040053AE RID: 21422 + private static readonly OptionCriticalTableRecord[] records = new OptionCriticalTableRecord[] + { + new OptionCriticalTableRecord(0, "Default", "良好~完美", "", "", "", 1, "UI_OPT_E_24_01"), + new OptionCriticalTableRecord(1, "CriticalOn", "良好~非常完美", "", "", "", 0, "UI_OPT_E_24_01"), + new OptionCriticalTableRecord(2, "CriticalOnly", "只有非常完美", "", "", "", 0, "UI_OPT_E_24_01"), + new OptionCriticalTableRecord(3, "NotPerfect", "完美或以下时", "", "", "", 0, "UI_OPT_E_24_01") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionCriticalTableRecord.cs b/Assembly-CSharp/DB/OptionCriticalTableRecord.cs new file mode 100644 index 0000000..13f574f --- /dev/null +++ b/Assembly-CSharp/DB/OptionCriticalTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x0200079D RID: 1949 + public class OptionCriticalTableRecord + { + // Token: 0x060044D4 RID: 17620 RVA: 0x00003560 File Offset: 0x00002760 + public OptionCriticalTableRecord() + { + } + + // Token: 0x060044D5 RID: 17621 RVA: 0x0017F104 File Offset: 0x0017E304 + public OptionCriticalTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, int isDefault, string FilePath) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.isDefault = isDefault != 0; + this.FilePath = FilePath; + } + + // Token: 0x040053A6 RID: 21414 + public int EnumValue; + + // Token: 0x040053A7 RID: 21415 + public string EnumName; + + // Token: 0x040053A8 RID: 21416 + public string Name; + + // Token: 0x040053A9 RID: 21417 + public string NameEx; + + // Token: 0x040053AA RID: 21418 + public string Detail; + + // Token: 0x040053AB RID: 21419 + public string DetailEx; + + // Token: 0x040053AC RID: 21420 + public bool isDefault; + + // Token: 0x040053AD RID: 21421 + public string FilePath; + } +} diff --git a/Assembly-CSharp/DB/OptionDispbarlineID.cs b/Assembly-CSharp/DB/OptionDispbarlineID.cs new file mode 100644 index 0000000..f60dd76 --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispbarlineID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x0200079F RID: 1951 + public enum OptionDispbarlineID + { + // Token: 0x040053B0 RID: 21424 + Off, + // Token: 0x040053B1 RID: 21425 + On, + // Token: 0x040053B2 RID: 21426 + Begin = 0, + // Token: 0x040053B3 RID: 21427 + End = 2, + // Token: 0x040053B4 RID: 21428 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionDispbarlineIDEnum.cs b/Assembly-CSharp/DB/OptionDispbarlineIDEnum.cs new file mode 100644 index 0000000..3871893 --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispbarlineIDEnum.cs @@ -0,0 +1,142 @@ +using System; + +namespace DB +{ + // Token: 0x020007A1 RID: 1953 + public static class OptionDispbarlineIDEnum + { + // Token: 0x060044E7 RID: 17639 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this OptionDispbarlineID self) + { + return self >= OptionDispbarlineID.Off && self < OptionDispbarlineID.End && self > OptionDispbarlineID.Off; + } + + // Token: 0x060044E8 RID: 17640 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this OptionDispbarlineID self) + { + return self >= OptionDispbarlineID.Off && self < OptionDispbarlineID.End; + } + + // Token: 0x060044E9 RID: 17641 RVA: 0x0017F38F File Offset: 0x0017E58F + public static void Clamp(this OptionDispbarlineID self) + { + if (self < OptionDispbarlineID.Off) + { + self = OptionDispbarlineID.Off; + return; + } + if (self >= (OptionDispbarlineID)OptionDispbarlineIDEnum.GetEnd()) + { + self = (OptionDispbarlineID)OptionDispbarlineIDEnum.GetEnd(); + } + } + + // Token: 0x060044EA RID: 17642 RVA: 0x0017F3A8 File Offset: 0x0017E5A8 + public static int GetEnd(this OptionDispbarlineID self) + { + return OptionDispbarlineIDEnum.GetEnd(); + } + + // Token: 0x060044EB RID: 17643 RVA: 0x0017F3B0 File Offset: 0x0017E5B0 + public static OptionDispbarlineID FindID(string enumName) + { + for (OptionDispbarlineID optionDispbarlineID = OptionDispbarlineID.Off; optionDispbarlineID < OptionDispbarlineID.End; optionDispbarlineID++) + { + if (optionDispbarlineID.GetEnumName() == enumName) + { + return optionDispbarlineID; + } + } + return OptionDispbarlineID.Invalid; + } + + // Token: 0x060044EC RID: 17644 RVA: 0x0017F3DA File Offset: 0x0017E5DA + public static int GetEnd() + { + return OptionDispbarlineIDEnum.records.Length; + } + + // Token: 0x060044ED RID: 17645 RVA: 0x0017F3E3 File Offset: 0x0017E5E3 + public static int GetEnumValue(this OptionDispbarlineID self) + { + if (self.IsValid()) + { + return OptionDispbarlineIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060044EE RID: 17646 RVA: 0x0017F3FB File Offset: 0x0017E5FB + public static string GetEnumName(this OptionDispbarlineID self) + { + if (self.IsValid()) + { + return OptionDispbarlineIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060044EF RID: 17647 RVA: 0x0017F417 File Offset: 0x0017E617 + public static string GetName(this OptionDispbarlineID self) + { + if (self.IsValid()) + { + return OptionDispbarlineIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060044F0 RID: 17648 RVA: 0x0017F433 File Offset: 0x0017E633 + public static string GetNameEx(this OptionDispbarlineID self) + { + if (self.IsValid()) + { + return OptionDispbarlineIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060044F1 RID: 17649 RVA: 0x0017F44F File Offset: 0x0017E64F + public static string GetDetail(this OptionDispbarlineID self) + { + if (self.IsValid()) + { + return OptionDispbarlineIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060044F2 RID: 17650 RVA: 0x0017F46B File Offset: 0x0017E66B + public static string GetDetailEx(this OptionDispbarlineID self) + { + if (self.IsValid()) + { + return OptionDispbarlineIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060044F3 RID: 17651 RVA: 0x0017F487 File Offset: 0x0017E687 + public static string GetFilePath(this OptionDispbarlineID self) + { + if (self.IsValid()) + { + return OptionDispbarlineIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x060044F4 RID: 17652 RVA: 0x0017F4A3 File Offset: 0x0017E6A3 + public static bool IsDefault(this OptionDispbarlineID self) + { + return self.IsValid() && OptionDispbarlineIDEnum.records[(int)self].isDefault; + } + + // Token: 0x040053BD RID: 21437 + private static readonly OptionDispbarlineTableRecord[] records = new OptionDispbarlineTableRecord[] + { + new OptionDispbarlineTableRecord(0, "Off", "关", "", "", "", "UI_OPT_B_07_01", 1), + new OptionDispbarlineTableRecord(1, "On", "开", "", "", "", "UI_OPT_B_07_02", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionDispbarlineTableRecord.cs b/Assembly-CSharp/DB/OptionDispbarlineTableRecord.cs new file mode 100644 index 0000000..47f4b20 --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispbarlineTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007A0 RID: 1952 + public class OptionDispbarlineTableRecord + { + // Token: 0x060044E5 RID: 17637 RVA: 0x00003560 File Offset: 0x00002760 + public OptionDispbarlineTableRecord() + { + } + + // Token: 0x060044E6 RID: 17638 RVA: 0x0017F33C File Offset: 0x0017E53C + public OptionDispbarlineTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x040053B5 RID: 21429 + public int EnumValue; + + // Token: 0x040053B6 RID: 21430 + public string EnumName; + + // Token: 0x040053B7 RID: 21431 + public string Name; + + // Token: 0x040053B8 RID: 21432 + public string NameEx; + + // Token: 0x040053B9 RID: 21433 + public string Detail; + + // Token: 0x040053BA RID: 21434 + public string DetailEx; + + // Token: 0x040053BB RID: 21435 + public string FilePath; + + // Token: 0x040053BC RID: 21436 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionDispchainID.cs b/Assembly-CSharp/DB/OptionDispchainID.cs new file mode 100644 index 0000000..875ea1f --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispchainID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x020007A2 RID: 1954 + public enum OptionDispchainID + { + // Token: 0x040053BF RID: 21439 + Off, + // Token: 0x040053C0 RID: 21440 + Achievement, + // Token: 0x040053C1 RID: 21441 + Sync, + // Token: 0x040053C2 RID: 21442 + Begin = 0, + // Token: 0x040053C3 RID: 21443 + End = 3, + // Token: 0x040053C4 RID: 21444 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionDispchainIDEnum.cs b/Assembly-CSharp/DB/OptionDispchainIDEnum.cs new file mode 100644 index 0000000..ca9ad98 --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispchainIDEnum.cs @@ -0,0 +1,143 @@ +using System; + +namespace DB +{ + // Token: 0x020007A4 RID: 1956 + public static class OptionDispchainIDEnum + { + // Token: 0x060044F8 RID: 17656 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this OptionDispchainID self) + { + return self >= OptionDispchainID.Off && self < OptionDispchainID.End && self > OptionDispchainID.Off; + } + + // Token: 0x060044F9 RID: 17657 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this OptionDispchainID self) + { + return self >= OptionDispchainID.Off && self < OptionDispchainID.End; + } + + // Token: 0x060044FA RID: 17658 RVA: 0x0017F577 File Offset: 0x0017E777 + public static void Clamp(this OptionDispchainID self) + { + if (self < OptionDispchainID.Off) + { + self = OptionDispchainID.Off; + return; + } + if (self >= (OptionDispchainID)OptionDispchainIDEnum.GetEnd()) + { + self = (OptionDispchainID)OptionDispchainIDEnum.GetEnd(); + } + } + + // Token: 0x060044FB RID: 17659 RVA: 0x0017F590 File Offset: 0x0017E790 + public static int GetEnd(this OptionDispchainID self) + { + return OptionDispchainIDEnum.GetEnd(); + } + + // Token: 0x060044FC RID: 17660 RVA: 0x0017F598 File Offset: 0x0017E798 + public static OptionDispchainID FindID(string enumName) + { + for (OptionDispchainID optionDispchainID = OptionDispchainID.Off; optionDispchainID < OptionDispchainID.End; optionDispchainID++) + { + if (optionDispchainID.GetEnumName() == enumName) + { + return optionDispchainID; + } + } + return OptionDispchainID.Invalid; + } + + // Token: 0x060044FD RID: 17661 RVA: 0x0017F5C2 File Offset: 0x0017E7C2 + public static int GetEnd() + { + return OptionDispchainIDEnum.records.Length; + } + + // Token: 0x060044FE RID: 17662 RVA: 0x0017F5CB File Offset: 0x0017E7CB + public static int GetEnumValue(this OptionDispchainID self) + { + if (self.IsValid()) + { + return OptionDispchainIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060044FF RID: 17663 RVA: 0x0017F5E3 File Offset: 0x0017E7E3 + public static string GetEnumName(this OptionDispchainID self) + { + if (self.IsValid()) + { + return OptionDispchainIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004500 RID: 17664 RVA: 0x0017F5FF File Offset: 0x0017E7FF + public static string GetName(this OptionDispchainID self) + { + if (self.IsValid()) + { + return OptionDispchainIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004501 RID: 17665 RVA: 0x0017F61B File Offset: 0x0017E81B + public static string GetNameEx(this OptionDispchainID self) + { + if (self.IsValid()) + { + return OptionDispchainIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004502 RID: 17666 RVA: 0x0017F637 File Offset: 0x0017E837 + public static string GetDetail(this OptionDispchainID self) + { + if (self.IsValid()) + { + return OptionDispchainIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004503 RID: 17667 RVA: 0x0017F653 File Offset: 0x0017E853 + public static string GetDetailEx(this OptionDispchainID self) + { + if (self.IsValid()) + { + return OptionDispchainIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004504 RID: 17668 RVA: 0x0017F66F File Offset: 0x0017E86F + public static string GetFilePath(this OptionDispchainID self) + { + if (self.IsValid()) + { + return OptionDispchainIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x06004505 RID: 17669 RVA: 0x0017F68B File Offset: 0x0017E88B + public static bool IsDefault(this OptionDispchainID self) + { + return self.IsValid() && OptionDispchainIDEnum.records[(int)self].isDefault; + } + + // Token: 0x040053CD RID: 21453 + private static readonly OptionDispchainTableRecord[] records = new OptionDispchainTableRecord[] + { + new OptionDispchainTableRecord(0, "Off", "关", "", "", "", "UI_OPT_B_12_02", 0), + new OptionDispchainTableRecord(1, "Achievement", "达成率(和对手的差距)", "", "", "", "UI_OPT_B_12_03", 0), + new OptionDispchainTableRecord(2, "Sync", "同步率", "", "", "", "UI_OPT_B_12_01", 1) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionDispchainTableRecord.cs b/Assembly-CSharp/DB/OptionDispchainTableRecord.cs new file mode 100644 index 0000000..9bb3b0c --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispchainTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007A3 RID: 1955 + public class OptionDispchainTableRecord + { + // Token: 0x060044F6 RID: 17654 RVA: 0x00003560 File Offset: 0x00002760 + public OptionDispchainTableRecord() + { + } + + // Token: 0x060044F7 RID: 17655 RVA: 0x0017F524 File Offset: 0x0017E724 + public OptionDispchainTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x040053C5 RID: 21445 + public int EnumValue; + + // Token: 0x040053C6 RID: 21446 + public string EnumName; + + // Token: 0x040053C7 RID: 21447 + public string Name; + + // Token: 0x040053C8 RID: 21448 + public string NameEx; + + // Token: 0x040053C9 RID: 21449 + public string Detail; + + // Token: 0x040053CA RID: 21450 + public string DetailEx; + + // Token: 0x040053CB RID: 21451 + public string FilePath; + + // Token: 0x040053CC RID: 21452 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionDispjudgeID.cs b/Assembly-CSharp/DB/OptionDispjudgeID.cs new file mode 100644 index 0000000..3778c46 --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispjudgeID.cs @@ -0,0 +1,45 @@ +using System; + +namespace DB +{ + // Token: 0x020007A5 RID: 1957 + public enum OptionDispjudgeID + { + // Token: 0x040053CF RID: 21455 + Type1A, + // Token: 0x040053D0 RID: 21456 + Type1B, + // Token: 0x040053D1 RID: 21457 + Type1C, + // Token: 0x040053D2 RID: 21458 + Type1D, + // Token: 0x040053D3 RID: 21459 + Type1E, + // Token: 0x040053D4 RID: 21460 + Type2A, + // Token: 0x040053D5 RID: 21461 + Type2B, + // Token: 0x040053D6 RID: 21462 + Type2C, + // Token: 0x040053D7 RID: 21463 + Type2D, + // Token: 0x040053D8 RID: 21464 + Type2E, + // Token: 0x040053D9 RID: 21465 + Type2F, + // Token: 0x040053DA RID: 21466 + Type3B, + // Token: 0x040053DB RID: 21467 + Type3C, + // Token: 0x040053DC RID: 21468 + Type3D, + // Token: 0x040053DD RID: 21469 + Type4E, + // Token: 0x040053DE RID: 21470 + Begin = 0, + // Token: 0x040053DF RID: 21471 + End = 15, + // Token: 0x040053E0 RID: 21472 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionDispjudgeIDEnum.cs b/Assembly-CSharp/DB/OptionDispjudgeIDEnum.cs new file mode 100644 index 0000000..c0fad1d --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispjudgeIDEnum.cs @@ -0,0 +1,167 @@ +using System; + +namespace DB +{ + // Token: 0x020007A7 RID: 1959 + public static class OptionDispjudgeIDEnum + { + // Token: 0x06004509 RID: 17673 RVA: 0x0017F79D File Offset: 0x0017E99D + public static bool IsActive(this OptionDispjudgeID self) + { + return self >= OptionDispjudgeID.Type1A && self < OptionDispjudgeID.End && self > OptionDispjudgeID.Type1A; + } + + // Token: 0x0600450A RID: 17674 RVA: 0x0017F7AE File Offset: 0x0017E9AE + public static bool IsValid(this OptionDispjudgeID self) + { + return self >= OptionDispjudgeID.Type1A && self < OptionDispjudgeID.End; + } + + // Token: 0x0600450B RID: 17675 RVA: 0x0017F7BB File Offset: 0x0017E9BB + public static void Clamp(this OptionDispjudgeID self) + { + if (self < OptionDispjudgeID.Type1A) + { + self = OptionDispjudgeID.Type1A; + return; + } + if (self >= (OptionDispjudgeID)OptionDispjudgeIDEnum.GetEnd()) + { + self = (OptionDispjudgeID)OptionDispjudgeIDEnum.GetEnd(); + } + } + + // Token: 0x0600450C RID: 17676 RVA: 0x0017F7D4 File Offset: 0x0017E9D4 + public static int GetEnd(this OptionDispjudgeID self) + { + return OptionDispjudgeIDEnum.GetEnd(); + } + + // Token: 0x0600450D RID: 17677 RVA: 0x0017F7DC File Offset: 0x0017E9DC + public static OptionDispjudgeID FindID(string enumName) + { + for (OptionDispjudgeID optionDispjudgeID = OptionDispjudgeID.Type1A; optionDispjudgeID < OptionDispjudgeID.End; optionDispjudgeID++) + { + if (optionDispjudgeID.GetEnumName() == enumName) + { + return optionDispjudgeID; + } + } + return OptionDispjudgeID.Invalid; + } + + // Token: 0x0600450E RID: 17678 RVA: 0x0017F807 File Offset: 0x0017EA07 + public static int GetEnd() + { + return OptionDispjudgeIDEnum.records.Length; + } + + // Token: 0x0600450F RID: 17679 RVA: 0x0017F810 File Offset: 0x0017EA10 + public static int GetEnumValue(this OptionDispjudgeID self) + { + if (self.IsValid()) + { + return OptionDispjudgeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004510 RID: 17680 RVA: 0x0017F828 File Offset: 0x0017EA28 + public static string GetEnumName(this OptionDispjudgeID self) + { + if (self.IsValid()) + { + return OptionDispjudgeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004511 RID: 17681 RVA: 0x0017F844 File Offset: 0x0017EA44 + public static string GetName(this OptionDispjudgeID self) + { + if (self.IsValid()) + { + return OptionDispjudgeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004512 RID: 17682 RVA: 0x0017F860 File Offset: 0x0017EA60 + public static string GetNameEx(this OptionDispjudgeID self) + { + if (self.IsValid()) + { + return OptionDispjudgeIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004513 RID: 17683 RVA: 0x0017F87C File Offset: 0x0017EA7C + public static string GetDetail(this OptionDispjudgeID self) + { + if (self.IsValid()) + { + return OptionDispjudgeIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004514 RID: 17684 RVA: 0x0017F898 File Offset: 0x0017EA98 + public static string GetDetailEx(this OptionDispjudgeID self) + { + if (self.IsValid()) + { + return OptionDispjudgeIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004515 RID: 17685 RVA: 0x0017F8B4 File Offset: 0x0017EAB4 + public static string GetFilePath(this OptionDispjudgeID self) + { + if (self.IsValid()) + { + return OptionDispjudgeIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x06004516 RID: 17686 RVA: 0x0017F8D0 File Offset: 0x0017EAD0 + public static bool IsDefault(this OptionDispjudgeID self) + { + return self.IsValid() && OptionDispjudgeIDEnum.records[(int)self].isDefault; + } + + // Token: 0x06004517 RID: 17687 RVA: 0x0017F8E8 File Offset: 0x0017EAE8 + public static bool IsCritical(this OptionDispjudgeID self) + { + return self.IsValid() && OptionDispjudgeIDEnum.records[(int)self].isCritical; + } + + // Token: 0x06004518 RID: 17688 RVA: 0x0017F900 File Offset: 0x0017EB00 + public static bool IsFastlate(this OptionDispjudgeID self) + { + return self.IsValid() && OptionDispjudgeIDEnum.records[(int)self].isFastlate; + } + + // Token: 0x040053EB RID: 21483 + private static readonly OptionDispjudgeTableRecord[] records = new OptionDispjudgeTableRecord[] + { + new OptionDispjudgeTableRecord(0, "Type1A", "类型1-A", "", "通常判定のみ。CRITICAL PERFECT無し。", "", "UI_OPT_C_15_01", 1, 0, 0), + new OptionDispjudgeTableRecord(1, "Type1B", "类型1-B", "", "GREAT以下2行表示。CRITICAL PERFECT無し。", "", "UI_OPT_C_15_02", 0, 0, 1), + new OptionDispjudgeTableRecord(2, "Type1C", "类型1-C", "", "GREAT以下判定の色をFAST/LATEに変更。CRITICAL PERFECT無し。", "", "UI_OPT_C_15_04", 0, 0, 0), + new OptionDispjudgeTableRecord(3, "Type1D", "类型1-D", "", "GREAT以下FAST/LATEだけで表示。PERFECT以上の判定表示は無し。", "", "UI_OPT_C_15_05", 0, 0, 1), + new OptionDispjudgeTableRecord(4, "Type1E", "类型1-E", "", "GREAT以下2行表示。CRITICAL PERFECT無し。BREAKはCRITICAL以外FAST/LATE表示。", "", "UI_OPT_C_15_03", 0, 0, 1), + new OptionDispjudgeTableRecord(5, "Type2A", "类型2-A", "", "通常判定のみ。CRITICAL PERFECT有り。", "", "UI_OPT_C_15_06", 0, 1, 0), + new OptionDispjudgeTableRecord(6, "Type2B", "类型2-B", "", "GREAT以下2行表示。CRITICAL PERFECT有り。", "", "UI_OPT_C_15_08", 0, 1, 1), + new OptionDispjudgeTableRecord(7, "Type2C", "类型2-C", "", "GREAT以下判定の色をFAST/LATEに変更。CRITICAL PERFECT有り。", "", "UI_OPT_C_15_09", 0, 1, 0), + new OptionDispjudgeTableRecord(8, "Type2D", "类型2-D", "", "GREAT以下FAST/LATEだけで表示。PERFECT以上の判定表示は無し。", "", "UI_OPT_C_15_10", 0, 1, 1), + new OptionDispjudgeTableRecord(9, "Type2E", "类型2-E", "", "GREAT以下2行表示。CRITICAL PERFECT有り。BREAKはCRITICAL以外FAST/LATE表示。", "", "UI_OPT_C_15_07", 0, 1, 1), + new OptionDispjudgeTableRecord(10, "Type2F", "类型2-F", "", "GREAT、GOODのタイミングで、FAST/LATEのみを表示。Breakでも同じくFAST/LATEを表示。", "", "UI_OPT_C_15_14", 0, 1, 1), + new OptionDispjudgeTableRecord(11, "Type3B", "类型3-B", "", "PERFECT以下2行表示。CRITICAL PERFECT有り。", "", "UI_OPT_C_15_11", 0, 1, 1), + new OptionDispjudgeTableRecord(12, "Type3C", "类型3-C", "", "PERFECT以下判定の色をFAST/LATEに変更。CRITICAL PERFECT有り。", "", "UI_OPT_C_15_12", 0, 1, 0), + new OptionDispjudgeTableRecord(13, "Type3D", "类型3-D", "", "PERFECT以下FAST/LATEだけで表示。CRITICAL PERFECTの判定表示は無し。", "", "UI_OPT_C_15_13", 0, 1, 1), + new OptionDispjudgeTableRecord(14, "Type4E", "类型4-E", "", "BREAKのFAST/LATEのみ表示。それ以外のノーツは、全てFAST/LATEの表示も含めて表示しない", "", "UI_OPT_C_15_15", 0, 1, 1) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionDispjudgeTableRecord.cs b/Assembly-CSharp/DB/OptionDispjudgeTableRecord.cs new file mode 100644 index 0000000..f0ed2fd --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispjudgeTableRecord.cs @@ -0,0 +1,58 @@ +using System; + +namespace DB +{ + // Token: 0x020007A6 RID: 1958 + public class OptionDispjudgeTableRecord + { + // Token: 0x06004507 RID: 17671 RVA: 0x00003560 File Offset: 0x00002760 + public OptionDispjudgeTableRecord() + { + } + + // Token: 0x06004508 RID: 17672 RVA: 0x0017F734 File Offset: 0x0017E934 + public OptionDispjudgeTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault, int isCritical, int isFastlate) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + this.isCritical = isCritical != 0; + this.isFastlate = isFastlate != 0; + } + + // Token: 0x040053E1 RID: 21473 + public int EnumValue; + + // Token: 0x040053E2 RID: 21474 + public string EnumName; + + // Token: 0x040053E3 RID: 21475 + public string Name; + + // Token: 0x040053E4 RID: 21476 + public string NameEx; + + // Token: 0x040053E5 RID: 21477 + public string Detail; + + // Token: 0x040053E6 RID: 21478 + public string DetailEx; + + // Token: 0x040053E7 RID: 21479 + public string FilePath; + + // Token: 0x040053E8 RID: 21480 + public bool isDefault; + + // Token: 0x040053E9 RID: 21481 + public bool isCritical; + + // Token: 0x040053EA RID: 21482 + public bool isFastlate; + } +} diff --git a/Assembly-CSharp/DB/OptionDispjudgeposID.cs b/Assembly-CSharp/DB/OptionDispjudgeposID.cs new file mode 100644 index 0000000..bcc7268 --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispjudgeposID.cs @@ -0,0 +1,27 @@ +using System; + +namespace DB +{ + // Token: 0x020007A8 RID: 1960 + public enum OptionDispjudgeposID + { + // Token: 0x040053ED RID: 21485 + Off, + // Token: 0x040053EE RID: 21486 + In, + // Token: 0x040053EF RID: 21487 + In2Mid, + // Token: 0x040053F0 RID: 21488 + Mid, + // Token: 0x040053F1 RID: 21489 + Mid2Out, + // Token: 0x040053F2 RID: 21490 + Out, + // Token: 0x040053F3 RID: 21491 + Begin = 0, + // Token: 0x040053F4 RID: 21492 + End = 6, + // Token: 0x040053F5 RID: 21493 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionDispjudgeposIDEnum.cs b/Assembly-CSharp/DB/OptionDispjudgeposIDEnum.cs new file mode 100644 index 0000000..63d581b --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispjudgeposIDEnum.cs @@ -0,0 +1,146 @@ +using System; + +namespace DB +{ + // Token: 0x020007AA RID: 1962 + public static class OptionDispjudgeposIDEnum + { + // Token: 0x0600451C RID: 17692 RVA: 0x00178314 File Offset: 0x00177514 + public static bool IsActive(this OptionDispjudgeposID self) + { + return self >= OptionDispjudgeposID.Off && self < OptionDispjudgeposID.End && self > OptionDispjudgeposID.Off; + } + + // Token: 0x0600451D RID: 17693 RVA: 0x00130760 File Offset: 0x0012F960 + public static bool IsValid(this OptionDispjudgeposID self) + { + return self >= OptionDispjudgeposID.Off && self < OptionDispjudgeposID.End; + } + + // Token: 0x0600451E RID: 17694 RVA: 0x0017FC07 File Offset: 0x0017EE07 + public static void Clamp(this OptionDispjudgeposID self) + { + if (self < OptionDispjudgeposID.Off) + { + self = OptionDispjudgeposID.Off; + return; + } + if (self >= (OptionDispjudgeposID)OptionDispjudgeposIDEnum.GetEnd()) + { + self = (OptionDispjudgeposID)OptionDispjudgeposIDEnum.GetEnd(); + } + } + + // Token: 0x0600451F RID: 17695 RVA: 0x0017FC20 File Offset: 0x0017EE20 + public static int GetEnd(this OptionDispjudgeposID self) + { + return OptionDispjudgeposIDEnum.GetEnd(); + } + + // Token: 0x06004520 RID: 17696 RVA: 0x0017FC28 File Offset: 0x0017EE28 + public static OptionDispjudgeposID FindID(string enumName) + { + for (OptionDispjudgeposID optionDispjudgeposID = OptionDispjudgeposID.Off; optionDispjudgeposID < OptionDispjudgeposID.End; optionDispjudgeposID++) + { + if (optionDispjudgeposID.GetEnumName() == enumName) + { + return optionDispjudgeposID; + } + } + return OptionDispjudgeposID.Invalid; + } + + // Token: 0x06004521 RID: 17697 RVA: 0x0017FC52 File Offset: 0x0017EE52 + public static int GetEnd() + { + return OptionDispjudgeposIDEnum.records.Length; + } + + // Token: 0x06004522 RID: 17698 RVA: 0x0017FC5B File Offset: 0x0017EE5B + public static int GetEnumValue(this OptionDispjudgeposID self) + { + if (self.IsValid()) + { + return OptionDispjudgeposIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004523 RID: 17699 RVA: 0x0017FC73 File Offset: 0x0017EE73 + public static string GetEnumName(this OptionDispjudgeposID self) + { + if (self.IsValid()) + { + return OptionDispjudgeposIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004524 RID: 17700 RVA: 0x0017FC8F File Offset: 0x0017EE8F + public static string GetName(this OptionDispjudgeposID self) + { + if (self.IsValid()) + { + return OptionDispjudgeposIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004525 RID: 17701 RVA: 0x0017FCAB File Offset: 0x0017EEAB + public static string GetNameEx(this OptionDispjudgeposID self) + { + if (self.IsValid()) + { + return OptionDispjudgeposIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004526 RID: 17702 RVA: 0x0017FCC7 File Offset: 0x0017EEC7 + public static string GetDetail(this OptionDispjudgeposID self) + { + if (self.IsValid()) + { + return OptionDispjudgeposIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004527 RID: 17703 RVA: 0x0017FCE3 File Offset: 0x0017EEE3 + public static string GetDetailEx(this OptionDispjudgeposID self) + { + if (self.IsValid()) + { + return OptionDispjudgeposIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004528 RID: 17704 RVA: 0x0017FCFF File Offset: 0x0017EEFF + public static string GetFilePath(this OptionDispjudgeposID self) + { + if (self.IsValid()) + { + return OptionDispjudgeposIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x06004529 RID: 17705 RVA: 0x0017FD1B File Offset: 0x0017EF1B + public static bool IsDefault(this OptionDispjudgeposID self) + { + return self.IsValid() && OptionDispjudgeposIDEnum.records[(int)self].isDefault; + } + + // Token: 0x040053FE RID: 21502 + private static readonly OptionDispjudgeposTableRecord[] records = new OptionDispjudgeposTableRecord[] + { + new OptionDispjudgeposTableRecord(0, "Off", "关", "", "", "", "UI_OPT_C_16_01", 0), + new OptionDispjudgeposTableRecord(1, "In", "内侧○・・・・外侧", "", "", "", "UI_OPT_C_16_06", 0), + new OptionDispjudgeposTableRecord(2, "In2Mid", "内侧・○・・・外侧", "", "", "", "UI_OPT_C_16_05", 0), + new OptionDispjudgeposTableRecord(3, "Mid", "内侧・・○・・外侧", "", "", "", "UI_OPT_C_16_04", 0), + new OptionDispjudgeposTableRecord(4, "Mid2Out", "内侧・・・○・外侧", "", "", "", "UI_OPT_C_16_03", 0), + new OptionDispjudgeposTableRecord(5, "Out", "内侧・・・・○外侧", "", "", "", "UI_OPT_C_16_02", 1) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionDispjudgeposTableRecord.cs b/Assembly-CSharp/DB/OptionDispjudgeposTableRecord.cs new file mode 100644 index 0000000..49ec140 --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispjudgeposTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007A9 RID: 1961 + public class OptionDispjudgeposTableRecord + { + // Token: 0x0600451A RID: 17690 RVA: 0x00003560 File Offset: 0x00002760 + public OptionDispjudgeposTableRecord() + { + } + + // Token: 0x0600451B RID: 17691 RVA: 0x0017FBB4 File Offset: 0x0017EDB4 + public OptionDispjudgeposTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x040053F6 RID: 21494 + public int EnumValue; + + // Token: 0x040053F7 RID: 21495 + public string EnumName; + + // Token: 0x040053F8 RID: 21496 + public string Name; + + // Token: 0x040053F9 RID: 21497 + public string NameEx; + + // Token: 0x040053FA RID: 21498 + public string Detail; + + // Token: 0x040053FB RID: 21499 + public string DetailEx; + + // Token: 0x040053FC RID: 21500 + public string FilePath; + + // Token: 0x040053FD RID: 21501 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionDispjudgetouchposID.cs b/Assembly-CSharp/DB/OptionDispjudgetouchposID.cs new file mode 100644 index 0000000..e0b5a97 --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispjudgetouchposID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x020007AB RID: 1963 + public enum OptionDispjudgetouchposID + { + // Token: 0x04005400 RID: 21504 + Off, + // Token: 0x04005401 RID: 21505 + In, + // Token: 0x04005402 RID: 21506 + Out, + // Token: 0x04005403 RID: 21507 + Begin = 0, + // Token: 0x04005404 RID: 21508 + End = 3, + // Token: 0x04005405 RID: 21509 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionDispjudgetouchposIDEnum.cs b/Assembly-CSharp/DB/OptionDispjudgetouchposIDEnum.cs new file mode 100644 index 0000000..e8e9047 --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispjudgetouchposIDEnum.cs @@ -0,0 +1,143 @@ +using System; + +namespace DB +{ + // Token: 0x020007AD RID: 1965 + public static class OptionDispjudgetouchposIDEnum + { + // Token: 0x0600452D RID: 17709 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this OptionDispjudgetouchposID self) + { + return self >= OptionDispjudgetouchposID.Off && self < OptionDispjudgetouchposID.End && self > OptionDispjudgetouchposID.Off; + } + + // Token: 0x0600452E RID: 17710 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this OptionDispjudgetouchposID self) + { + return self >= OptionDispjudgetouchposID.Off && self < OptionDispjudgetouchposID.End; + } + + // Token: 0x0600452F RID: 17711 RVA: 0x0017FE8F File Offset: 0x0017F08F + public static void Clamp(this OptionDispjudgetouchposID self) + { + if (self < OptionDispjudgetouchposID.Off) + { + self = OptionDispjudgetouchposID.Off; + return; + } + if (self >= (OptionDispjudgetouchposID)OptionDispjudgetouchposIDEnum.GetEnd()) + { + self = (OptionDispjudgetouchposID)OptionDispjudgetouchposIDEnum.GetEnd(); + } + } + + // Token: 0x06004530 RID: 17712 RVA: 0x0017FEA8 File Offset: 0x0017F0A8 + public static int GetEnd(this OptionDispjudgetouchposID self) + { + return OptionDispjudgetouchposIDEnum.GetEnd(); + } + + // Token: 0x06004531 RID: 17713 RVA: 0x0017FEB0 File Offset: 0x0017F0B0 + public static OptionDispjudgetouchposID FindID(string enumName) + { + for (OptionDispjudgetouchposID optionDispjudgetouchposID = OptionDispjudgetouchposID.Off; optionDispjudgetouchposID < OptionDispjudgetouchposID.End; optionDispjudgetouchposID++) + { + if (optionDispjudgetouchposID.GetEnumName() == enumName) + { + return optionDispjudgetouchposID; + } + } + return OptionDispjudgetouchposID.Invalid; + } + + // Token: 0x06004532 RID: 17714 RVA: 0x0017FEDA File Offset: 0x0017F0DA + public static int GetEnd() + { + return OptionDispjudgetouchposIDEnum.records.Length; + } + + // Token: 0x06004533 RID: 17715 RVA: 0x0017FEE3 File Offset: 0x0017F0E3 + public static int GetEnumValue(this OptionDispjudgetouchposID self) + { + if (self.IsValid()) + { + return OptionDispjudgetouchposIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004534 RID: 17716 RVA: 0x0017FEFB File Offset: 0x0017F0FB + public static string GetEnumName(this OptionDispjudgetouchposID self) + { + if (self.IsValid()) + { + return OptionDispjudgetouchposIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004535 RID: 17717 RVA: 0x0017FF17 File Offset: 0x0017F117 + public static string GetName(this OptionDispjudgetouchposID self) + { + if (self.IsValid()) + { + return OptionDispjudgetouchposIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004536 RID: 17718 RVA: 0x0017FF33 File Offset: 0x0017F133 + public static string GetNameEx(this OptionDispjudgetouchposID self) + { + if (self.IsValid()) + { + return OptionDispjudgetouchposIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004537 RID: 17719 RVA: 0x0017FF4F File Offset: 0x0017F14F + public static string GetDetail(this OptionDispjudgetouchposID self) + { + if (self.IsValid()) + { + return OptionDispjudgetouchposIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004538 RID: 17720 RVA: 0x0017FF6B File Offset: 0x0017F16B + public static string GetDetailEx(this OptionDispjudgetouchposID self) + { + if (self.IsValid()) + { + return OptionDispjudgetouchposIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004539 RID: 17721 RVA: 0x0017FF87 File Offset: 0x0017F187 + public static string GetFilePath(this OptionDispjudgetouchposID self) + { + if (self.IsValid()) + { + return OptionDispjudgetouchposIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x0600453A RID: 17722 RVA: 0x0017FFA3 File Offset: 0x0017F1A3 + public static bool IsDefault(this OptionDispjudgetouchposID self) + { + return self.IsValid() && OptionDispjudgetouchposIDEnum.records[(int)self].isDefault; + } + + // Token: 0x0400540E RID: 21518 + private static readonly OptionDispjudgetouchposTableRecord[] records = new OptionDispjudgetouchposTableRecord[] + { + new OptionDispjudgetouchposTableRecord(0, "Off", "关", "", "", "", "UI_OPT_C_17_01", 0), + new OptionDispjudgetouchposTableRecord(1, "In", "内侧", "", "", "", "UI_OPT_C_17_02", 1), + new OptionDispjudgetouchposTableRecord(2, "Out", "外侧", "", "", "", "UI_OPT_C_17_03", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionDispjudgetouchposTableRecord.cs b/Assembly-CSharp/DB/OptionDispjudgetouchposTableRecord.cs new file mode 100644 index 0000000..eb04a29 --- /dev/null +++ b/Assembly-CSharp/DB/OptionDispjudgetouchposTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007AC RID: 1964 + public class OptionDispjudgetouchposTableRecord + { + // Token: 0x0600452B RID: 17707 RVA: 0x00003560 File Offset: 0x00002760 + public OptionDispjudgetouchposTableRecord() + { + } + + // Token: 0x0600452C RID: 17708 RVA: 0x0017FE3C File Offset: 0x0017F03C + public OptionDispjudgetouchposTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x04005406 RID: 21510 + public int EnumValue; + + // Token: 0x04005407 RID: 21511 + public string EnumName; + + // Token: 0x04005408 RID: 21512 + public string Name; + + // Token: 0x04005409 RID: 21513 + public string NameEx; + + // Token: 0x0400540A RID: 21514 + public string Detail; + + // Token: 0x0400540B RID: 21515 + public string DetailEx; + + // Token: 0x0400540C RID: 21516 + public string FilePath; + + // Token: 0x0400540D RID: 21517 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionDisprateID.cs b/Assembly-CSharp/DB/OptionDisprateID.cs new file mode 100644 index 0000000..530c0dd --- /dev/null +++ b/Assembly-CSharp/DB/OptionDisprateID.cs @@ -0,0 +1,31 @@ +using System; + +namespace DB +{ + // Token: 0x020007AE RID: 1966 + public enum OptionDisprateID + { + // Token: 0x04005410 RID: 21520 + AllDisp, + // Token: 0x04005411 RID: 21521 + DispRateDan, + // Token: 0x04005412 RID: 21522 + DispRateClass, + // Token: 0x04005413 RID: 21523 + DispDanClass, + // Token: 0x04005414 RID: 21524 + DispRate, + // Token: 0x04005415 RID: 21525 + DispDan, + // Token: 0x04005416 RID: 21526 + DispClass, + // Token: 0x04005417 RID: 21527 + Hide, + // Token: 0x04005418 RID: 21528 + Begin = 0, + // Token: 0x04005419 RID: 21529 + End = 8, + // Token: 0x0400541A RID: 21530 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionDisprateIDEnum.cs b/Assembly-CSharp/DB/OptionDisprateIDEnum.cs new file mode 100644 index 0000000..623b3b9 --- /dev/null +++ b/Assembly-CSharp/DB/OptionDisprateIDEnum.cs @@ -0,0 +1,148 @@ +using System; + +namespace DB +{ + // Token: 0x020007B0 RID: 1968 + public static class OptionDisprateIDEnum + { + // Token: 0x0600453E RID: 17726 RVA: 0x00173EE9 File Offset: 0x001730E9 + public static bool IsActive(this OptionDisprateID self) + { + return self >= OptionDisprateID.AllDisp && self < OptionDisprateID.End && self > OptionDisprateID.AllDisp; + } + + // Token: 0x0600453F RID: 17727 RVA: 0x00123DBF File Offset: 0x00122FBF + public static bool IsValid(this OptionDisprateID self) + { + return self >= OptionDisprateID.AllDisp && self < OptionDisprateID.End; + } + + // Token: 0x06004540 RID: 17728 RVA: 0x0018009F File Offset: 0x0017F29F + public static void Clamp(this OptionDisprateID self) + { + if (self < OptionDisprateID.AllDisp) + { + self = OptionDisprateID.AllDisp; + return; + } + if (self >= (OptionDisprateID)OptionDisprateIDEnum.GetEnd()) + { + self = (OptionDisprateID)OptionDisprateIDEnum.GetEnd(); + } + } + + // Token: 0x06004541 RID: 17729 RVA: 0x001800B8 File Offset: 0x0017F2B8 + public static int GetEnd(this OptionDisprateID self) + { + return OptionDisprateIDEnum.GetEnd(); + } + + // Token: 0x06004542 RID: 17730 RVA: 0x001800C0 File Offset: 0x0017F2C0 + public static OptionDisprateID FindID(string enumName) + { + for (OptionDisprateID optionDisprateID = OptionDisprateID.AllDisp; optionDisprateID < OptionDisprateID.End; optionDisprateID++) + { + if (optionDisprateID.GetEnumName() == enumName) + { + return optionDisprateID; + } + } + return OptionDisprateID.Invalid; + } + + // Token: 0x06004543 RID: 17731 RVA: 0x001800EA File Offset: 0x0017F2EA + public static int GetEnd() + { + return OptionDisprateIDEnum.records.Length; + } + + // Token: 0x06004544 RID: 17732 RVA: 0x001800F3 File Offset: 0x0017F2F3 + public static int GetEnumValue(this OptionDisprateID self) + { + if (self.IsValid()) + { + return OptionDisprateIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004545 RID: 17733 RVA: 0x0018010B File Offset: 0x0017F30B + public static string GetEnumName(this OptionDisprateID self) + { + if (self.IsValid()) + { + return OptionDisprateIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004546 RID: 17734 RVA: 0x00180127 File Offset: 0x0017F327 + public static string GetName(this OptionDisprateID self) + { + if (self.IsValid()) + { + return OptionDisprateIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004547 RID: 17735 RVA: 0x00180143 File Offset: 0x0017F343 + public static string GetNameEx(this OptionDisprateID self) + { + if (self.IsValid()) + { + return OptionDisprateIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004548 RID: 17736 RVA: 0x0018015F File Offset: 0x0017F35F + public static string GetDetail(this OptionDisprateID self) + { + if (self.IsValid()) + { + return OptionDisprateIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004549 RID: 17737 RVA: 0x0018017B File Offset: 0x0017F37B + public static string GetDetailEx(this OptionDisprateID self) + { + if (self.IsValid()) + { + return OptionDisprateIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x0600454A RID: 17738 RVA: 0x00180197 File Offset: 0x0017F397 + public static string GetFilePath(this OptionDisprateID self) + { + if (self.IsValid()) + { + return OptionDisprateIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x0600454B RID: 17739 RVA: 0x001801B3 File Offset: 0x0017F3B3 + public static bool IsDefault(this OptionDisprateID self) + { + return self.IsValid() && OptionDisprateIDEnum.records[(int)self].isDefault; + } + + // Token: 0x04005423 RID: 21539 + private static readonly OptionDisprateTableRecord[] records = new OptionDisprateTableRecord[] + { + new OptionDisprateTableRecord(0, "AllDisp", "全部都显示", "", "", "", "UI_OPT_B_11_01", 1), + new OptionDisprateTableRecord(1, "DispRateDan", "显示评级和段位", "", "", "", "UI_OPT_B_11_02", 0), + new OptionDisprateTableRecord(2, "DispRateClass", "显示评级和阶级", "", "", "", "UI_OPT_B_11_03", 0), + new OptionDisprateTableRecord(3, "DispDanClass", "显示段位和阶级", "", "", "", "UI_OPT_B_11_04", 0), + new OptionDisprateTableRecord(4, "DispRate", "只显示评级", "", "", "", "UI_OPT_B_11_05", 0), + new OptionDisprateTableRecord(5, "DispDan", "只显示段位", "", "", "", "UI_OPT_B_11_06", 0), + new OptionDisprateTableRecord(6, "DispClass", "只显示阶级", "", "", "", "UI_OPT_B_11_07", 0), + new OptionDisprateTableRecord(7, "Hide", "全部都不显示", "", "", "", "UI_OPT_B_11_08", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionDisprateTableRecord.cs b/Assembly-CSharp/DB/OptionDisprateTableRecord.cs new file mode 100644 index 0000000..4de3ffb --- /dev/null +++ b/Assembly-CSharp/DB/OptionDisprateTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007AF RID: 1967 + public class OptionDisprateTableRecord + { + // Token: 0x0600453C RID: 17724 RVA: 0x00003560 File Offset: 0x00002760 + public OptionDisprateTableRecord() + { + } + + // Token: 0x0600453D RID: 17725 RVA: 0x0018004C File Offset: 0x0017F24C + public OptionDisprateTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x0400541B RID: 21531 + public int EnumValue; + + // Token: 0x0400541C RID: 21532 + public string EnumName; + + // Token: 0x0400541D RID: 21533 + public string Name; + + // Token: 0x0400541E RID: 21534 + public string NameEx; + + // Token: 0x0400541F RID: 21535 + public string Detail; + + // Token: 0x04005420 RID: 21536 + public string DetailEx; + + // Token: 0x04005421 RID: 21537 + public string FilePath; + + // Token: 0x04005422 RID: 21538 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionExseID.cs b/Assembly-CSharp/DB/OptionExseID.cs new file mode 100644 index 0000000..86762aa --- /dev/null +++ b/Assembly-CSharp/DB/OptionExseID.cs @@ -0,0 +1,29 @@ +using System; + +namespace DB +{ + // Token: 0x020007B1 RID: 1969 + public enum OptionExseID + { + // Token: 0x04005425 RID: 21541 + Se1, + // Token: 0x04005426 RID: 21542 + Se2, + // Token: 0x04005427 RID: 21543 + Se3, + // Token: 0x04005428 RID: 21544 + Se4, + // Token: 0x04005429 RID: 21545 + Se5, + // Token: 0x0400542A RID: 21546 + SE6, + // Token: 0x0400542B RID: 21547 + SE7, + // Token: 0x0400542C RID: 21548 + Begin = 0, + // Token: 0x0400542D RID: 21549 + End = 7, + // Token: 0x0400542E RID: 21550 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionExseIDEnum.cs b/Assembly-CSharp/DB/OptionExseIDEnum.cs new file mode 100644 index 0000000..6ad13d5 --- /dev/null +++ b/Assembly-CSharp/DB/OptionExseIDEnum.cs @@ -0,0 +1,157 @@ +using System; + +namespace DB +{ + // Token: 0x020007B3 RID: 1971 + public static class OptionExseIDEnum + { + // Token: 0x0600454F RID: 17743 RVA: 0x0017E20B File Offset: 0x0017D40B + public static bool IsActive(this OptionExseID self) + { + return self >= OptionExseID.Se1 && self < OptionExseID.End && self > OptionExseID.Se1; + } + + // Token: 0x06004550 RID: 17744 RVA: 0x0017E21B File Offset: 0x0017D41B + public static bool IsValid(this OptionExseID self) + { + return self >= OptionExseID.Se1 && self < OptionExseID.End; + } + + // Token: 0x06004551 RID: 17745 RVA: 0x0018037F File Offset: 0x0017F57F + public static void Clamp(this OptionExseID self) + { + if (self < OptionExseID.Se1) + { + self = OptionExseID.Se1; + return; + } + if (self >= (OptionExseID)OptionExseIDEnum.GetEnd()) + { + self = (OptionExseID)OptionExseIDEnum.GetEnd(); + } + } + + // Token: 0x06004552 RID: 17746 RVA: 0x00180398 File Offset: 0x0017F598 + public static int GetEnd(this OptionExseID self) + { + return OptionExseIDEnum.GetEnd(); + } + + // Token: 0x06004553 RID: 17747 RVA: 0x001803A0 File Offset: 0x0017F5A0 + public static OptionExseID FindID(string enumName) + { + for (OptionExseID optionExseID = OptionExseID.Se1; optionExseID < OptionExseID.End; optionExseID++) + { + if (optionExseID.GetEnumName() == enumName) + { + return optionExseID; + } + } + return OptionExseID.Invalid; + } + + // Token: 0x06004554 RID: 17748 RVA: 0x001803CA File Offset: 0x0017F5CA + public static int GetEnd() + { + return OptionExseIDEnum.records.Length; + } + + // Token: 0x06004555 RID: 17749 RVA: 0x001803D3 File Offset: 0x0017F5D3 + public static int GetEnumValue(this OptionExseID self) + { + if (self.IsValid()) + { + return OptionExseIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004556 RID: 17750 RVA: 0x001803EB File Offset: 0x0017F5EB + public static string GetEnumName(this OptionExseID self) + { + if (self.IsValid()) + { + return OptionExseIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004557 RID: 17751 RVA: 0x00180407 File Offset: 0x0017F607 + public static string GetName(this OptionExseID self) + { + if (self.IsValid()) + { + return OptionExseIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004558 RID: 17752 RVA: 0x00180423 File Offset: 0x0017F623 + public static string GetNameEx(this OptionExseID self) + { + if (self.IsValid()) + { + return OptionExseIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004559 RID: 17753 RVA: 0x0018043F File Offset: 0x0017F63F + public static string GetDetail(this OptionExseID self) + { + if (self.IsValid()) + { + return OptionExseIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x0600455A RID: 17754 RVA: 0x0018045B File Offset: 0x0017F65B + public static string GetDetailEx(this OptionExseID self) + { + if (self.IsValid()) + { + return OptionExseIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x0600455B RID: 17755 RVA: 0x00180477 File Offset: 0x0017F677 + public static string GetSeEnum(this OptionExseID self) + { + if (self.IsValid()) + { + return OptionExseIDEnum.records[(int)self].SeEnum; + } + return ""; + } + + // Token: 0x0600455C RID: 17756 RVA: 0x00180493 File Offset: 0x0017F693 + public static bool IsDefault(this OptionExseID self) + { + return self.IsValid() && OptionExseIDEnum.records[(int)self].isDefault; + } + + // Token: 0x0600455D RID: 17757 RVA: 0x001804AB File Offset: 0x0017F6AB + public static string GetFilePath(this OptionExseID self) + { + if (self.IsValid()) + { + return OptionExseIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x04005438 RID: 21560 + private static readonly OptionExseTableRecord[] records = new OptionExseTableRecord[] + { + new OptionExseTableRecord(0, "Se1", "默认", "", "", "", "SE_GAME_EXTAP_000001", 1, "UI_OPT_E_24_01"), + new OptionExseTableRecord(1, "Se2", "电子音1", "", "", "", "SE_GAME_EXTAP_000002", 0, "UI_OPT_E_24_01"), + new OptionExseTableRecord(2, "Se3", "电子音2", "", "", "", "SE_GAME_EXTAP_000003", 0, "UI_OPT_E_24_01"), + new OptionExseTableRecord(3, "Se4", "歌舞伎", "", "", "", "SE_GAME_EXTAP_000004", 0, "UI_OPT_E_24_01"), + new OptionExseTableRecord(4, "Se5", "猫", "", "", "", "SE_GAME_EXTAP_000005", 0, "UI_OPT_E_24_01"), + new OptionExseTableRecord(5, "SE6", "中二节奏", "", "", "", "SE_GAME_EXTAP_000006", 0, "UI_OPT_E_24_01"), + new OptionExseTableRecord(6, "SE7", "音击", "", "", "", "SE_GAME_EXTAP_000007", 0, "UI_OPT_E_24_01") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionExseTableRecord.cs b/Assembly-CSharp/DB/OptionExseTableRecord.cs new file mode 100644 index 0000000..efbd514 --- /dev/null +++ b/Assembly-CSharp/DB/OptionExseTableRecord.cs @@ -0,0 +1,54 @@ +using System; + +namespace DB +{ + // Token: 0x020007B2 RID: 1970 + public class OptionExseTableRecord + { + // Token: 0x0600454D RID: 17741 RVA: 0x00003560 File Offset: 0x00002760 + public OptionExseTableRecord() + { + } + + // Token: 0x0600454E RID: 17742 RVA: 0x00180324 File Offset: 0x0017F524 + public OptionExseTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string SeEnum, int isDefault, string FilePath) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.SeEnum = SeEnum; + this.isDefault = isDefault != 0; + this.FilePath = FilePath; + } + + // Token: 0x0400542F RID: 21551 + public int EnumValue; + + // Token: 0x04005430 RID: 21552 + public string EnumName; + + // Token: 0x04005431 RID: 21553 + public string Name; + + // Token: 0x04005432 RID: 21554 + public string NameEx; + + // Token: 0x04005433 RID: 21555 + public string Detail; + + // Token: 0x04005434 RID: 21556 + public string DetailEx; + + // Token: 0x04005435 RID: 21557 + public string SeEnum; + + // Token: 0x04005436 RID: 21558 + public bool isDefault; + + // Token: 0x04005437 RID: 21559 + public string FilePath; + } +} diff --git a/Assembly-CSharp/DB/OptionGameholdID.cs b/Assembly-CSharp/DB/OptionGameholdID.cs new file mode 100644 index 0000000..3816085 --- /dev/null +++ b/Assembly-CSharp/DB/OptionGameholdID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x020007B4 RID: 1972 + public enum OptionGameholdID + { + // Token: 0x0400543A RID: 21562 + Cute, + // Token: 0x0400543B RID: 21563 + Legacy, + // Token: 0x0400543C RID: 21564 + Begin = 0, + // Token: 0x0400543D RID: 21565 + End = 2, + // Token: 0x0400543E RID: 21566 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionGameholdIDEnum.cs b/Assembly-CSharp/DB/OptionGameholdIDEnum.cs new file mode 100644 index 0000000..f72f022 --- /dev/null +++ b/Assembly-CSharp/DB/OptionGameholdIDEnum.cs @@ -0,0 +1,142 @@ +using System; + +namespace DB +{ + // Token: 0x020007B6 RID: 1974 + public static class OptionGameholdIDEnum + { + // Token: 0x06004561 RID: 17761 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this OptionGameholdID self) + { + return self >= OptionGameholdID.Cute && self < OptionGameholdID.End && self > OptionGameholdID.Cute; + } + + // Token: 0x06004562 RID: 17762 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this OptionGameholdID self) + { + return self >= OptionGameholdID.Cute && self < OptionGameholdID.End; + } + + // Token: 0x06004563 RID: 17763 RVA: 0x0018066F File Offset: 0x0017F86F + public static void Clamp(this OptionGameholdID self) + { + if (self < OptionGameholdID.Cute) + { + self = OptionGameholdID.Cute; + return; + } + if (self >= (OptionGameholdID)OptionGameholdIDEnum.GetEnd()) + { + self = (OptionGameholdID)OptionGameholdIDEnum.GetEnd(); + } + } + + // Token: 0x06004564 RID: 17764 RVA: 0x00180688 File Offset: 0x0017F888 + public static int GetEnd(this OptionGameholdID self) + { + return OptionGameholdIDEnum.GetEnd(); + } + + // Token: 0x06004565 RID: 17765 RVA: 0x00180690 File Offset: 0x0017F890 + public static OptionGameholdID FindID(string enumName) + { + for (OptionGameholdID optionGameholdID = OptionGameholdID.Cute; optionGameholdID < OptionGameholdID.End; optionGameholdID++) + { + if (optionGameholdID.GetEnumName() == enumName) + { + return optionGameholdID; + } + } + return OptionGameholdID.Invalid; + } + + // Token: 0x06004566 RID: 17766 RVA: 0x001806BA File Offset: 0x0017F8BA + public static int GetEnd() + { + return OptionGameholdIDEnum.records.Length; + } + + // Token: 0x06004567 RID: 17767 RVA: 0x001806C3 File Offset: 0x0017F8C3 + public static int GetEnumValue(this OptionGameholdID self) + { + if (self.IsValid()) + { + return OptionGameholdIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004568 RID: 17768 RVA: 0x001806DB File Offset: 0x0017F8DB + public static string GetEnumName(this OptionGameholdID self) + { + if (self.IsValid()) + { + return OptionGameholdIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004569 RID: 17769 RVA: 0x001806F7 File Offset: 0x0017F8F7 + public static string GetName(this OptionGameholdID self) + { + if (self.IsValid()) + { + return OptionGameholdIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600456A RID: 17770 RVA: 0x00180713 File Offset: 0x0017F913 + public static string GetNameEx(this OptionGameholdID self) + { + if (self.IsValid()) + { + return OptionGameholdIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x0600456B RID: 17771 RVA: 0x0018072F File Offset: 0x0017F92F + public static string GetDetail(this OptionGameholdID self) + { + if (self.IsValid()) + { + return OptionGameholdIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x0600456C RID: 17772 RVA: 0x0018074B File Offset: 0x0017F94B + public static string GetDetailEx(this OptionGameholdID self) + { + if (self.IsValid()) + { + return OptionGameholdIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x0600456D RID: 17773 RVA: 0x00180767 File Offset: 0x0017F967 + public static bool IsDefault(this OptionGameholdID self) + { + return self.IsValid() && OptionGameholdIDEnum.records[(int)self].isDefault; + } + + // Token: 0x0600456E RID: 17774 RVA: 0x0018077F File Offset: 0x0017F97F + public static string GetFilePath(this OptionGameholdID self) + { + if (self.IsValid()) + { + return OptionGameholdIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x04005447 RID: 21575 + private static readonly OptionGameholdTableRecord[] records = new OptionGameholdTableRecord[] + { + new OptionGameholdTableRecord(0, "Cute", "简洁", "", "", "", 1, "UI_OPT_D_19_01"), + new OptionGameholdTableRecord(1, "Legacy", "经典", "", "", "", 0, "UI_OPT_D_19_02") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionGameholdTableRecord.cs b/Assembly-CSharp/DB/OptionGameholdTableRecord.cs new file mode 100644 index 0000000..6bc9fa2 --- /dev/null +++ b/Assembly-CSharp/DB/OptionGameholdTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007B5 RID: 1973 + public class OptionGameholdTableRecord + { + // Token: 0x0600455F RID: 17759 RVA: 0x00003560 File Offset: 0x00002760 + public OptionGameholdTableRecord() + { + } + + // Token: 0x06004560 RID: 17760 RVA: 0x0018061C File Offset: 0x0017F81C + public OptionGameholdTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, int isDefault, string FilePath) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.isDefault = isDefault != 0; + this.FilePath = FilePath; + } + + // Token: 0x0400543F RID: 21567 + public int EnumValue; + + // Token: 0x04005440 RID: 21568 + public string EnumName; + + // Token: 0x04005441 RID: 21569 + public string Name; + + // Token: 0x04005442 RID: 21570 + public string NameEx; + + // Token: 0x04005443 RID: 21571 + public string Detail; + + // Token: 0x04005444 RID: 21572 + public string DetailEx; + + // Token: 0x04005445 RID: 21573 + public bool isDefault; + + // Token: 0x04005446 RID: 21574 + public string FilePath; + } +} diff --git a/Assembly-CSharp/DB/OptionGameoutlineID.cs b/Assembly-CSharp/DB/OptionGameoutlineID.cs new file mode 100644 index 0000000..62c2e26 --- /dev/null +++ b/Assembly-CSharp/DB/OptionGameoutlineID.cs @@ -0,0 +1,49 @@ +using System; + +namespace DB +{ + // Token: 0x020007B7 RID: 1975 + public enum OptionGameoutlineID + { + // Token: 0x04005449 RID: 21577 + Hide, + // Token: 0x0400544A RID: 21578 + Dot, + // Token: 0x0400544B RID: 21579 + Simple, + // Token: 0x0400544C RID: 21580 + Sensor, + // Token: 0x0400544D RID: 21581 + maimai, + // Token: 0x0400544E RID: 21582 + GreeN, + // Token: 0x0400544F RID: 21583 + ORANGE, + // Token: 0x04005450 RID: 21584 + PiNK, + // Token: 0x04005451 RID: 21585 + MURASAKi, + // Token: 0x04005452 RID: 21586 + MiLK, + // Token: 0x04005453 RID: 21587 + FiNALE, + // Token: 0x04005454 RID: 21588 + DX, + // Token: 0x04005455 RID: 21589 + Splash, + // Token: 0x04005456 RID: 21590 + UNiVERSE, + // Token: 0x04005457 RID: 21591 + FESTiVAL, + // Token: 0x04005458 RID: 21592 + BUDDiES, + // Token: 0x04005459 RID: 21593 + PRiSM, + // Token: 0x0400545A RID: 21594 + Begin = 0, + // Token: 0x0400545B RID: 21595 + End = 17, + // Token: 0x0400545C RID: 21596 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionGameoutlineIDEnum.cs b/Assembly-CSharp/DB/OptionGameoutlineIDEnum.cs new file mode 100644 index 0000000..bb68851 --- /dev/null +++ b/Assembly-CSharp/DB/OptionGameoutlineIDEnum.cs @@ -0,0 +1,157 @@ +using System; + +namespace DB +{ + // Token: 0x020007B9 RID: 1977 + public static class OptionGameoutlineIDEnum + { + // Token: 0x06004572 RID: 17778 RVA: 0x00180857 File Offset: 0x0017FA57 + public static bool IsActive(this OptionGameoutlineID self) + { + return self >= OptionGameoutlineID.Hide && self < OptionGameoutlineID.End && self > OptionGameoutlineID.Hide; + } + + // Token: 0x06004573 RID: 17779 RVA: 0x00180868 File Offset: 0x0017FA68 + public static bool IsValid(this OptionGameoutlineID self) + { + return self >= OptionGameoutlineID.Hide && self < OptionGameoutlineID.End; + } + + // Token: 0x06004574 RID: 17780 RVA: 0x00180875 File Offset: 0x0017FA75 + public static void Clamp(this OptionGameoutlineID self) + { + if (self < OptionGameoutlineID.Hide) + { + self = OptionGameoutlineID.Hide; + return; + } + if (self >= (OptionGameoutlineID)OptionGameoutlineIDEnum.GetEnd()) + { + self = (OptionGameoutlineID)OptionGameoutlineIDEnum.GetEnd(); + } + } + + // Token: 0x06004575 RID: 17781 RVA: 0x0018088E File Offset: 0x0017FA8E + public static int GetEnd(this OptionGameoutlineID self) + { + return OptionGameoutlineIDEnum.GetEnd(); + } + + // Token: 0x06004576 RID: 17782 RVA: 0x00180898 File Offset: 0x0017FA98 + public static OptionGameoutlineID FindID(string enumName) + { + for (OptionGameoutlineID optionGameoutlineID = OptionGameoutlineID.Hide; optionGameoutlineID < OptionGameoutlineID.End; optionGameoutlineID++) + { + if (optionGameoutlineID.GetEnumName() == enumName) + { + return optionGameoutlineID; + } + } + return OptionGameoutlineID.Invalid; + } + + // Token: 0x06004577 RID: 17783 RVA: 0x001808C3 File Offset: 0x0017FAC3 + public static int GetEnd() + { + return OptionGameoutlineIDEnum.records.Length; + } + + // Token: 0x06004578 RID: 17784 RVA: 0x001808CC File Offset: 0x0017FACC + public static int GetEnumValue(this OptionGameoutlineID self) + { + if (self.IsValid()) + { + return OptionGameoutlineIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004579 RID: 17785 RVA: 0x001808E4 File Offset: 0x0017FAE4 + public static string GetEnumName(this OptionGameoutlineID self) + { + if (self.IsValid()) + { + return OptionGameoutlineIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600457A RID: 17786 RVA: 0x00180900 File Offset: 0x0017FB00 + public static string GetName(this OptionGameoutlineID self) + { + if (self.IsValid()) + { + return OptionGameoutlineIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600457B RID: 17787 RVA: 0x0018091C File Offset: 0x0017FB1C + public static string GetNameEx(this OptionGameoutlineID self) + { + if (self.IsValid()) + { + return OptionGameoutlineIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x0600457C RID: 17788 RVA: 0x00180938 File Offset: 0x0017FB38 + public static string GetDetail(this OptionGameoutlineID self) + { + if (self.IsValid()) + { + return OptionGameoutlineIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x0600457D RID: 17789 RVA: 0x00180954 File Offset: 0x0017FB54 + public static string GetDetailEx(this OptionGameoutlineID self) + { + if (self.IsValid()) + { + return OptionGameoutlineIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x0600457E RID: 17790 RVA: 0x00180970 File Offset: 0x0017FB70 + public static string GetFilePath(this OptionGameoutlineID self) + { + if (self.IsValid()) + { + return OptionGameoutlineIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x0600457F RID: 17791 RVA: 0x0018098C File Offset: 0x0017FB8C + public static bool IsDefault(this OptionGameoutlineID self) + { + return self.IsValid() && OptionGameoutlineIDEnum.records[(int)self].isDefault; + } + + // Token: 0x04005465 RID: 21605 + private static readonly OptionGameoutlineTableRecord[] records = new OptionGameoutlineTableRecord[] + { + new OptionGameoutlineTableRecord(0, "Hide", "无", "", "", "", "UI_OPT_D_22_01", 0), + new OptionGameoutlineTableRecord(1, "Dot", "点", "", "", "", "UI_OPT_D_22_02", 0), + new OptionGameoutlineTableRecord(2, "Simple", "简洁", "", "", "", "UI_OPT_D_22_03", 0), + new OptionGameoutlineTableRecord(3, "Sensor", "感应区", "", "", "", "UI_OPT_D_22_04", 0), + new OptionGameoutlineTableRecord(4, "maimai", "maimai", "", "", "", "UI_OPT_D_22_05", 0), + new OptionGameoutlineTableRecord(5, "GreeN", "GreeN", "", "", "", "UI_OPT_D_22_06", 0), + new OptionGameoutlineTableRecord(6, "ORANGE", "ORANGE", "", "", "", "UI_OPT_D_22_07", 0), + new OptionGameoutlineTableRecord(7, "PiNK", "PiNK", "", "", "", "UI_OPT_D_22_08", 0), + new OptionGameoutlineTableRecord(8, "MURASAKi", "MURASAKi", "", "", "", "UI_OPT_D_22_09", 0), + new OptionGameoutlineTableRecord(9, "MiLK", "MiLK", "", "", "", "UI_OPT_D_22_10", 0), + new OptionGameoutlineTableRecord(10, "FiNALE", "FiNALE", "", "", "", "UI_OPT_D_22_11", 0), + new OptionGameoutlineTableRecord(11, "DX", "DX", "", "", "", "UI_OPT_D_22_12", 0), + new OptionGameoutlineTableRecord(12, "Splash", "Splash", "", "", "", "UI_OPT_D_22_13", 0), + new OptionGameoutlineTableRecord(13, "UNiVERSE", "UNiVERSE", "", "", "", "UI_OPT_D_22_14", 0), + new OptionGameoutlineTableRecord(14, "FESTiVAL", "FESTiVAL", "", "", "", "UI_OPT_D_22_15", 0), + new OptionGameoutlineTableRecord(15, "BUDDiES", "BUDDiES", "", "", "", "UI_OPT_D_22_16", 0), + new OptionGameoutlineTableRecord(16, "PRiSM", "PRiSM", "", "", "", "UI_OPT_D_22_17", 1) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionGameoutlineTableRecord.cs b/Assembly-CSharp/DB/OptionGameoutlineTableRecord.cs new file mode 100644 index 0000000..cba9f71 --- /dev/null +++ b/Assembly-CSharp/DB/OptionGameoutlineTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007B8 RID: 1976 + public class OptionGameoutlineTableRecord + { + // Token: 0x06004570 RID: 17776 RVA: 0x00003560 File Offset: 0x00002760 + public OptionGameoutlineTableRecord() + { + } + + // Token: 0x06004571 RID: 17777 RVA: 0x00180804 File Offset: 0x0017FA04 + public OptionGameoutlineTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x0400545D RID: 21597 + public int EnumValue; + + // Token: 0x0400545E RID: 21598 + public string EnumName; + + // Token: 0x0400545F RID: 21599 + public string Name; + + // Token: 0x04005460 RID: 21600 + public string NameEx; + + // Token: 0x04005461 RID: 21601 + public string Detail; + + // Token: 0x04005462 RID: 21602 + public string DetailEx; + + // Token: 0x04005463 RID: 21603 + public string FilePath; + + // Token: 0x04005464 RID: 21604 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionGameslideID.cs b/Assembly-CSharp/DB/OptionGameslideID.cs new file mode 100644 index 0000000..3ce11f6 --- /dev/null +++ b/Assembly-CSharp/DB/OptionGameslideID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x020007BA RID: 1978 + public enum OptionGameslideID + { + // Token: 0x04005467 RID: 21607 + Cute, + // Token: 0x04005468 RID: 21608 + Legacy, + // Token: 0x04005469 RID: 21609 + Begin = 0, + // Token: 0x0400546A RID: 21610 + End = 2, + // Token: 0x0400546B RID: 21611 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionGameslideIDEnum.cs b/Assembly-CSharp/DB/OptionGameslideIDEnum.cs new file mode 100644 index 0000000..490021f --- /dev/null +++ b/Assembly-CSharp/DB/OptionGameslideIDEnum.cs @@ -0,0 +1,142 @@ +using System; + +namespace DB +{ + // Token: 0x020007BC RID: 1980 + public static class OptionGameslideIDEnum + { + // Token: 0x06004583 RID: 17795 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this OptionGameslideID self) + { + return self >= OptionGameslideID.Cute && self < OptionGameslideID.End && self > OptionGameslideID.Cute; + } + + // Token: 0x06004584 RID: 17796 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this OptionGameslideID self) + { + return self >= OptionGameslideID.Cute && self < OptionGameslideID.End; + } + + // Token: 0x06004585 RID: 17797 RVA: 0x00180CCB File Offset: 0x0017FECB + public static void Clamp(this OptionGameslideID self) + { + if (self < OptionGameslideID.Cute) + { + self = OptionGameslideID.Cute; + return; + } + if (self >= (OptionGameslideID)OptionGameslideIDEnum.GetEnd()) + { + self = (OptionGameslideID)OptionGameslideIDEnum.GetEnd(); + } + } + + // Token: 0x06004586 RID: 17798 RVA: 0x00180CE4 File Offset: 0x0017FEE4 + public static int GetEnd(this OptionGameslideID self) + { + return OptionGameslideIDEnum.GetEnd(); + } + + // Token: 0x06004587 RID: 17799 RVA: 0x00180CEC File Offset: 0x0017FEEC + public static OptionGameslideID FindID(string enumName) + { + for (OptionGameslideID optionGameslideID = OptionGameslideID.Cute; optionGameslideID < OptionGameslideID.End; optionGameslideID++) + { + if (optionGameslideID.GetEnumName() == enumName) + { + return optionGameslideID; + } + } + return OptionGameslideID.Invalid; + } + + // Token: 0x06004588 RID: 17800 RVA: 0x00180D16 File Offset: 0x0017FF16 + public static int GetEnd() + { + return OptionGameslideIDEnum.records.Length; + } + + // Token: 0x06004589 RID: 17801 RVA: 0x00180D1F File Offset: 0x0017FF1F + public static int GetEnumValue(this OptionGameslideID self) + { + if (self.IsValid()) + { + return OptionGameslideIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600458A RID: 17802 RVA: 0x00180D37 File Offset: 0x0017FF37 + public static string GetEnumName(this OptionGameslideID self) + { + if (self.IsValid()) + { + return OptionGameslideIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600458B RID: 17803 RVA: 0x00180D53 File Offset: 0x0017FF53 + public static string GetName(this OptionGameslideID self) + { + if (self.IsValid()) + { + return OptionGameslideIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600458C RID: 17804 RVA: 0x00180D6F File Offset: 0x0017FF6F + public static string GetNameEx(this OptionGameslideID self) + { + if (self.IsValid()) + { + return OptionGameslideIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x0600458D RID: 17805 RVA: 0x00180D8B File Offset: 0x0017FF8B + public static string GetDetail(this OptionGameslideID self) + { + if (self.IsValid()) + { + return OptionGameslideIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x0600458E RID: 17806 RVA: 0x00180DA7 File Offset: 0x0017FFA7 + public static string GetDetailEx(this OptionGameslideID self) + { + if (self.IsValid()) + { + return OptionGameslideIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x0600458F RID: 17807 RVA: 0x00180DC3 File Offset: 0x0017FFC3 + public static bool IsDefault(this OptionGameslideID self) + { + return self.IsValid() && OptionGameslideIDEnum.records[(int)self].isDefault; + } + + // Token: 0x06004590 RID: 17808 RVA: 0x00180DDB File Offset: 0x0017FFDB + public static string GetFilePath(this OptionGameslideID self) + { + if (self.IsValid()) + { + return OptionGameslideIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x04005474 RID: 21620 + private static readonly OptionGameslideTableRecord[] records = new OptionGameslideTableRecord[] + { + new OptionGameslideTableRecord(0, "Cute", "简洁", "", "", "", 1, "UI_OPT_D_20_01"), + new OptionGameslideTableRecord(1, "Legacy", "经典", "", "", "", 0, "UI_OPT_D_20_02") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionGameslideTableRecord.cs b/Assembly-CSharp/DB/OptionGameslideTableRecord.cs new file mode 100644 index 0000000..4b960d3 --- /dev/null +++ b/Assembly-CSharp/DB/OptionGameslideTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007BB RID: 1979 + public class OptionGameslideTableRecord + { + // Token: 0x06004581 RID: 17793 RVA: 0x00003560 File Offset: 0x00002760 + public OptionGameslideTableRecord() + { + } + + // Token: 0x06004582 RID: 17794 RVA: 0x00180C78 File Offset: 0x0017FE78 + public OptionGameslideTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, int isDefault, string FilePath) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.isDefault = isDefault != 0; + this.FilePath = FilePath; + } + + // Token: 0x0400546C RID: 21612 + public int EnumValue; + + // Token: 0x0400546D RID: 21613 + public string EnumName; + + // Token: 0x0400546E RID: 21614 + public string Name; + + // Token: 0x0400546F RID: 21615 + public string NameEx; + + // Token: 0x04005470 RID: 21616 + public string Detail; + + // Token: 0x04005471 RID: 21617 + public string DetailEx; + + // Token: 0x04005472 RID: 21618 + public bool isDefault; + + // Token: 0x04005473 RID: 21619 + public string FilePath; + } +} diff --git a/Assembly-CSharp/DB/OptionGametapID.cs b/Assembly-CSharp/DB/OptionGametapID.cs new file mode 100644 index 0000000..e710cc5 --- /dev/null +++ b/Assembly-CSharp/DB/OptionGametapID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x020007BD RID: 1981 + public enum OptionGametapID + { + // Token: 0x04005476 RID: 21622 + Default, + // Token: 0x04005477 RID: 21623 + Legacy, + // Token: 0x04005478 RID: 21624 + Bear, + // Token: 0x04005479 RID: 21625 + Bar, + // Token: 0x0400547A RID: 21626 + Any, + // Token: 0x0400547B RID: 21627 + Begin = 0, + // Token: 0x0400547C RID: 21628 + End = 5, + // Token: 0x0400547D RID: 21629 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionGametapIDEnum.cs b/Assembly-CSharp/DB/OptionGametapIDEnum.cs new file mode 100644 index 0000000..1272a25 --- /dev/null +++ b/Assembly-CSharp/DB/OptionGametapIDEnum.cs @@ -0,0 +1,145 @@ +using System; + +namespace DB +{ + // Token: 0x020007BF RID: 1983 + public static class OptionGametapIDEnum + { + // Token: 0x06004594 RID: 17812 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this OptionGametapID self) + { + return self >= OptionGametapID.Default && self < OptionGametapID.End && self > OptionGametapID.Default; + } + + // Token: 0x06004595 RID: 17813 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this OptionGametapID self) + { + return self >= OptionGametapID.Default && self < OptionGametapID.End; + } + + // Token: 0x06004596 RID: 17814 RVA: 0x00180EB3 File Offset: 0x001800B3 + public static void Clamp(this OptionGametapID self) + { + if (self < OptionGametapID.Default) + { + self = OptionGametapID.Default; + return; + } + if (self >= (OptionGametapID)OptionGametapIDEnum.GetEnd()) + { + self = (OptionGametapID)OptionGametapIDEnum.GetEnd(); + } + } + + // Token: 0x06004597 RID: 17815 RVA: 0x00180ECC File Offset: 0x001800CC + public static int GetEnd(this OptionGametapID self) + { + return OptionGametapIDEnum.GetEnd(); + } + + // Token: 0x06004598 RID: 17816 RVA: 0x00180ED4 File Offset: 0x001800D4 + public static OptionGametapID FindID(string enumName) + { + for (OptionGametapID optionGametapID = OptionGametapID.Default; optionGametapID < OptionGametapID.End; optionGametapID++) + { + if (optionGametapID.GetEnumName() == enumName) + { + return optionGametapID; + } + } + return OptionGametapID.Invalid; + } + + // Token: 0x06004599 RID: 17817 RVA: 0x00180EFE File Offset: 0x001800FE + public static int GetEnd() + { + return OptionGametapIDEnum.records.Length; + } + + // Token: 0x0600459A RID: 17818 RVA: 0x00180F07 File Offset: 0x00180107 + public static int GetEnumValue(this OptionGametapID self) + { + if (self.IsValid()) + { + return OptionGametapIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600459B RID: 17819 RVA: 0x00180F1F File Offset: 0x0018011F + public static string GetEnumName(this OptionGametapID self) + { + if (self.IsValid()) + { + return OptionGametapIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600459C RID: 17820 RVA: 0x00180F3B File Offset: 0x0018013B + public static string GetName(this OptionGametapID self) + { + if (self.IsValid()) + { + return OptionGametapIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600459D RID: 17821 RVA: 0x00180F57 File Offset: 0x00180157 + public static string GetNameEx(this OptionGametapID self) + { + if (self.IsValid()) + { + return OptionGametapIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x0600459E RID: 17822 RVA: 0x00180F73 File Offset: 0x00180173 + public static string GetDetail(this OptionGametapID self) + { + if (self.IsValid()) + { + return OptionGametapIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x0600459F RID: 17823 RVA: 0x00180F8F File Offset: 0x0018018F + public static string GetDetailEx(this OptionGametapID self) + { + if (self.IsValid()) + { + return OptionGametapIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060045A0 RID: 17824 RVA: 0x00180FAB File Offset: 0x001801AB + public static bool IsDefault(this OptionGametapID self) + { + return self.IsValid() && OptionGametapIDEnum.records[(int)self].isDefault; + } + + // Token: 0x060045A1 RID: 17825 RVA: 0x00180FC3 File Offset: 0x001801C3 + public static string GetFilePath(this OptionGametapID self) + { + if (self.IsValid()) + { + return OptionGametapIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x04005486 RID: 21638 + private static readonly OptionGametapTableRecord[] records = new OptionGametapTableRecord[] + { + new OptionGametapTableRecord(0, "Default", "简洁", "", "標準的なノーツ", "", 1, "UI_OPT_D_18_01"), + new OptionGametapTableRecord(1, "Legacy", "经典", "", "", "", 0, "UI_OPT_D_18_02"), + new OptionGametapTableRecord(2, "Bear", "でらっくま", "", "くまノーツ", "", 0, "UI_OPT_D_18_03"), + new OptionGametapTableRecord(3, "Bar", "条状", "", "", "", 0, "UI_OPT_D_18_04"), + new OptionGametapTableRecord(4, "Any", "タップくん", "", "", "", 0, "UI_OPT_D_18_05") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionGametapTableRecord.cs b/Assembly-CSharp/DB/OptionGametapTableRecord.cs new file mode 100644 index 0000000..ebb28fb --- /dev/null +++ b/Assembly-CSharp/DB/OptionGametapTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007BE RID: 1982 + public class OptionGametapTableRecord + { + // Token: 0x06004592 RID: 17810 RVA: 0x00003560 File Offset: 0x00002760 + public OptionGametapTableRecord() + { + } + + // Token: 0x06004593 RID: 17811 RVA: 0x00180E60 File Offset: 0x00180060 + public OptionGametapTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, int isDefault, string FilePath) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.isDefault = isDefault != 0; + this.FilePath = FilePath; + } + + // Token: 0x0400547E RID: 21630 + public int EnumValue; + + // Token: 0x0400547F RID: 21631 + public string EnumName; + + // Token: 0x04005480 RID: 21632 + public string Name; + + // Token: 0x04005481 RID: 21633 + public string NameEx; + + // Token: 0x04005482 RID: 21634 + public string Detail; + + // Token: 0x04005483 RID: 21635 + public string DetailEx; + + // Token: 0x04005484 RID: 21636 + public bool isDefault; + + // Token: 0x04005485 RID: 21637 + public string FilePath; + } +} diff --git a/Assembly-CSharp/DB/OptionHeadphonevolumeID.cs b/Assembly-CSharp/DB/OptionHeadphonevolumeID.cs new file mode 100644 index 0000000..a704bf5 --- /dev/null +++ b/Assembly-CSharp/DB/OptionHeadphonevolumeID.cs @@ -0,0 +1,55 @@ +using System; + +namespace DB +{ + // Token: 0x020007C0 RID: 1984 + public enum OptionHeadphonevolumeID + { + // Token: 0x04005488 RID: 21640 + Vol1, + // Token: 0x04005489 RID: 21641 + Vol2, + // Token: 0x0400548A RID: 21642 + Vol3, + // Token: 0x0400548B RID: 21643 + Vol4, + // Token: 0x0400548C RID: 21644 + Vol5, + // Token: 0x0400548D RID: 21645 + Vol6, + // Token: 0x0400548E RID: 21646 + Vol7, + // Token: 0x0400548F RID: 21647 + Vol8, + // Token: 0x04005490 RID: 21648 + Vol9, + // Token: 0x04005491 RID: 21649 + Vol10, + // Token: 0x04005492 RID: 21650 + Vol11, + // Token: 0x04005493 RID: 21651 + Vol12, + // Token: 0x04005494 RID: 21652 + Vol13, + // Token: 0x04005495 RID: 21653 + Vol14, + // Token: 0x04005496 RID: 21654 + Vol15, + // Token: 0x04005497 RID: 21655 + Vol16, + // Token: 0x04005498 RID: 21656 + Vol17, + // Token: 0x04005499 RID: 21657 + Vol18, + // Token: 0x0400549A RID: 21658 + Vol19, + // Token: 0x0400549B RID: 21659 + Vol20, + // Token: 0x0400549C RID: 21660 + Begin = 0, + // Token: 0x0400549D RID: 21661 + End = 20, + // Token: 0x0400549E RID: 21662 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionHeadphonevolumeIDEnum.cs b/Assembly-CSharp/DB/OptionHeadphonevolumeIDEnum.cs new file mode 100644 index 0000000..5947ec8 --- /dev/null +++ b/Assembly-CSharp/DB/OptionHeadphonevolumeIDEnum.cs @@ -0,0 +1,160 @@ +using System; + +namespace DB +{ + // Token: 0x020007C2 RID: 1986 + public static class OptionHeadphonevolumeIDEnum + { + // Token: 0x060045A5 RID: 17829 RVA: 0x00178B4C File Offset: 0x00177D4C + public static bool IsActive(this OptionHeadphonevolumeID self) + { + return self >= OptionHeadphonevolumeID.Vol1 && self < OptionHeadphonevolumeID.End && self > OptionHeadphonevolumeID.Vol1; + } + + // Token: 0x060045A6 RID: 17830 RVA: 0x00178B5D File Offset: 0x00177D5D + public static bool IsValid(this OptionHeadphonevolumeID self) + { + return self >= OptionHeadphonevolumeID.Vol1 && self < OptionHeadphonevolumeID.End; + } + + // Token: 0x060045A7 RID: 17831 RVA: 0x00181114 File Offset: 0x00180314 + public static void Clamp(this OptionHeadphonevolumeID self) + { + if (self < OptionHeadphonevolumeID.Vol1) + { + self = OptionHeadphonevolumeID.Vol1; + return; + } + if (self >= (OptionHeadphonevolumeID)OptionHeadphonevolumeIDEnum.GetEnd()) + { + self = (OptionHeadphonevolumeID)OptionHeadphonevolumeIDEnum.GetEnd(); + } + } + + // Token: 0x060045A8 RID: 17832 RVA: 0x0018112D File Offset: 0x0018032D + public static int GetEnd(this OptionHeadphonevolumeID self) + { + return OptionHeadphonevolumeIDEnum.GetEnd(); + } + + // Token: 0x060045A9 RID: 17833 RVA: 0x00181134 File Offset: 0x00180334 + public static OptionHeadphonevolumeID FindID(string enumName) + { + for (OptionHeadphonevolumeID optionHeadphonevolumeID = OptionHeadphonevolumeID.Vol1; optionHeadphonevolumeID < OptionHeadphonevolumeID.End; optionHeadphonevolumeID++) + { + if (optionHeadphonevolumeID.GetEnumName() == enumName) + { + return optionHeadphonevolumeID; + } + } + return OptionHeadphonevolumeID.Invalid; + } + + // Token: 0x060045AA RID: 17834 RVA: 0x0018115F File Offset: 0x0018035F + public static int GetEnd() + { + return OptionHeadphonevolumeIDEnum.records.Length; + } + + // Token: 0x060045AB RID: 17835 RVA: 0x00181168 File Offset: 0x00180368 + public static int GetEnumValue(this OptionHeadphonevolumeID self) + { + if (self.IsValid()) + { + return OptionHeadphonevolumeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060045AC RID: 17836 RVA: 0x00181180 File Offset: 0x00180380 + public static string GetEnumName(this OptionHeadphonevolumeID self) + { + if (self.IsValid()) + { + return OptionHeadphonevolumeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060045AD RID: 17837 RVA: 0x0018119C File Offset: 0x0018039C + public static float GetValue(this OptionHeadphonevolumeID self) + { + if (self.IsValid()) + { + return OptionHeadphonevolumeIDEnum.records[(int)self].Value; + } + return 0f; + } + + // Token: 0x060045AE RID: 17838 RVA: 0x001811B8 File Offset: 0x001803B8 + public static string GetName(this OptionHeadphonevolumeID self) + { + if (self.IsValid()) + { + return OptionHeadphonevolumeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060045AF RID: 17839 RVA: 0x001811D4 File Offset: 0x001803D4 + public static string GetNameEx(this OptionHeadphonevolumeID self) + { + if (self.IsValid()) + { + return OptionHeadphonevolumeIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060045B0 RID: 17840 RVA: 0x001811F0 File Offset: 0x001803F0 + public static string GetDetail(this OptionHeadphonevolumeID self) + { + if (self.IsValid()) + { + return OptionHeadphonevolumeIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060045B1 RID: 17841 RVA: 0x0018120C File Offset: 0x0018040C + public static string GetDetailEx(this OptionHeadphonevolumeID self) + { + if (self.IsValid()) + { + return OptionHeadphonevolumeIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060045B2 RID: 17842 RVA: 0x00181228 File Offset: 0x00180428 + public static bool IsDefault(this OptionHeadphonevolumeID self) + { + return self.IsValid() && OptionHeadphonevolumeIDEnum.records[(int)self].isDefault; + } + + // Token: 0x040054A7 RID: 21671 + private static readonly OptionHeadphonevolumeTableRecord[] records = new OptionHeadphonevolumeTableRecord[] + { + new OptionHeadphonevolumeTableRecord(0, "Vol1", 0.05f, "1", "", "", "", 1), + new OptionHeadphonevolumeTableRecord(1, "Vol2", 0.1f, "2", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(2, "Vol3", 0.15f, "3", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(3, "Vol4", 0.2f, "4", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(4, "Vol5", 0.25f, "5", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(5, "Vol6", 0.3f, "6", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(6, "Vol7", 0.35f, "7", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(7, "Vol8", 0.4f, "8", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(8, "Vol9", 0.45f, "9", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(9, "Vol10", 0.5f, "10", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(10, "Vol11", 0.55f, "11", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(11, "Vol12", 0.6f, "12", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(12, "Vol13", 0.65f, "13", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(13, "Vol14", 0.7f, "14", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(14, "Vol15", 0.75f, "15", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(15, "Vol16", 0.8f, "16", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(16, "Vol17", 0.85f, "17", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(17, "Vol18", 0.9f, "18", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(18, "Vol19", 0.95f, "19", "", "", "", 0), + new OptionHeadphonevolumeTableRecord(19, "Vol20", 1f, "20", "", "", "", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionHeadphonevolumeTableRecord.cs b/Assembly-CSharp/DB/OptionHeadphonevolumeTableRecord.cs new file mode 100644 index 0000000..1405f0b --- /dev/null +++ b/Assembly-CSharp/DB/OptionHeadphonevolumeTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007C1 RID: 1985 + public class OptionHeadphonevolumeTableRecord + { + // Token: 0x060045A3 RID: 17827 RVA: 0x00003560 File Offset: 0x00002760 + public OptionHeadphonevolumeTableRecord() + { + } + + // Token: 0x060045A4 RID: 17828 RVA: 0x001810C0 File Offset: 0x001802C0 + public OptionHeadphonevolumeTableRecord(int EnumValue, string EnumName, float Value, string Name, string NameEx, string Detail, string DetailEx, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Value = Value; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.isDefault = isDefault != 0; + } + + // Token: 0x0400549F RID: 21663 + public int EnumValue; + + // Token: 0x040054A0 RID: 21664 + public string EnumName; + + // Token: 0x040054A1 RID: 21665 + public float Value; + + // Token: 0x040054A2 RID: 21666 + public string Name; + + // Token: 0x040054A3 RID: 21667 + public string NameEx; + + // Token: 0x040054A4 RID: 21668 + public string Detail; + + // Token: 0x040054A5 RID: 21669 + public string DetailEx; + + // Token: 0x040054A6 RID: 21670 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionJudgetimingID.cs b/Assembly-CSharp/DB/OptionJudgetimingID.cs new file mode 100644 index 0000000..7993780 --- /dev/null +++ b/Assembly-CSharp/DB/OptionJudgetimingID.cs @@ -0,0 +1,97 @@ +using System; + +namespace DB +{ + // Token: 0x020007C3 RID: 1987 + public enum OptionJudgetimingID + { + // Token: 0x040054A9 RID: 21673 + Fast2_0, + // Token: 0x040054AA RID: 21674 + Fast1_9, + // Token: 0x040054AB RID: 21675 + Fast1_8, + // Token: 0x040054AC RID: 21676 + Fast1_7, + // Token: 0x040054AD RID: 21677 + Fast1_6, + // Token: 0x040054AE RID: 21678 + Fast1_5, + // Token: 0x040054AF RID: 21679 + Fast1_4, + // Token: 0x040054B0 RID: 21680 + Fast1_3, + // Token: 0x040054B1 RID: 21681 + Fast1_2, + // Token: 0x040054B2 RID: 21682 + Fast1_1, + // Token: 0x040054B3 RID: 21683 + Fast1_0, + // Token: 0x040054B4 RID: 21684 + Fast0_9, + // Token: 0x040054B5 RID: 21685 + Fast0_8, + // Token: 0x040054B6 RID: 21686 + Fast0_7, + // Token: 0x040054B7 RID: 21687 + Fast0_6, + // Token: 0x040054B8 RID: 21688 + Fast0_5, + // Token: 0x040054B9 RID: 21689 + Fast0_4, + // Token: 0x040054BA RID: 21690 + Fast0_3, + // Token: 0x040054BB RID: 21691 + Fast0_2, + // Token: 0x040054BC RID: 21692 + Fast0_1, + // Token: 0x040054BD RID: 21693 + Normal, + // Token: 0x040054BE RID: 21694 + Late0_1, + // Token: 0x040054BF RID: 21695 + Late0_2, + // Token: 0x040054C0 RID: 21696 + Late0_3, + // Token: 0x040054C1 RID: 21697 + Late0_4, + // Token: 0x040054C2 RID: 21698 + Late0_5, + // Token: 0x040054C3 RID: 21699 + Late0_6, + // Token: 0x040054C4 RID: 21700 + Late0_7, + // Token: 0x040054C5 RID: 21701 + Late0_8, + // Token: 0x040054C6 RID: 21702 + Late0_9, + // Token: 0x040054C7 RID: 21703 + Late1_0, + // Token: 0x040054C8 RID: 21704 + Late1_1, + // Token: 0x040054C9 RID: 21705 + Late1_2, + // Token: 0x040054CA RID: 21706 + Late1_3, + // Token: 0x040054CB RID: 21707 + Late1_4, + // Token: 0x040054CC RID: 21708 + Late1_5, + // Token: 0x040054CD RID: 21709 + Late1_6, + // Token: 0x040054CE RID: 21710 + Late1_7, + // Token: 0x040054CF RID: 21711 + Late1_8, + // Token: 0x040054D0 RID: 21712 + Late1_9, + // Token: 0x040054D1 RID: 21713 + Late2_0, + // Token: 0x040054D2 RID: 21714 + Begin = 0, + // Token: 0x040054D3 RID: 21715 + End = 41, + // Token: 0x040054D4 RID: 21716 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionJudgetimingIDEnum.cs b/Assembly-CSharp/DB/OptionJudgetimingIDEnum.cs new file mode 100644 index 0000000..59ba57d --- /dev/null +++ b/Assembly-CSharp/DB/OptionJudgetimingIDEnum.cs @@ -0,0 +1,181 @@ +using System; + +namespace DB +{ + // Token: 0x020007C5 RID: 1989 + public static class OptionJudgetimingIDEnum + { + // Token: 0x060045B6 RID: 17846 RVA: 0x001815E3 File Offset: 0x001807E3 + public static bool IsActive(this OptionJudgetimingID self) + { + return self >= OptionJudgetimingID.Fast2_0 && self < OptionJudgetimingID.End && self > OptionJudgetimingID.Fast2_0; + } + + // Token: 0x060045B7 RID: 17847 RVA: 0x001815F4 File Offset: 0x001807F4 + public static bool IsValid(this OptionJudgetimingID self) + { + return self >= OptionJudgetimingID.Fast2_0 && self < OptionJudgetimingID.End; + } + + // Token: 0x060045B8 RID: 17848 RVA: 0x00181601 File Offset: 0x00180801 + public static void Clamp(this OptionJudgetimingID self) + { + if (self < OptionJudgetimingID.Fast2_0) + { + self = OptionJudgetimingID.Fast2_0; + return; + } + if (self >= (OptionJudgetimingID)OptionJudgetimingIDEnum.GetEnd()) + { + self = (OptionJudgetimingID)OptionJudgetimingIDEnum.GetEnd(); + } + } + + // Token: 0x060045B9 RID: 17849 RVA: 0x0018161A File Offset: 0x0018081A + public static int GetEnd(this OptionJudgetimingID self) + { + return OptionJudgetimingIDEnum.GetEnd(); + } + + // Token: 0x060045BA RID: 17850 RVA: 0x00181624 File Offset: 0x00180824 + public static OptionJudgetimingID FindID(string enumName) + { + for (OptionJudgetimingID optionJudgetimingID = OptionJudgetimingID.Fast2_0; optionJudgetimingID < OptionJudgetimingID.End; optionJudgetimingID++) + { + if (optionJudgetimingID.GetEnumName() == enumName) + { + return optionJudgetimingID; + } + } + return OptionJudgetimingID.Invalid; + } + + // Token: 0x060045BB RID: 17851 RVA: 0x0018164F File Offset: 0x0018084F + public static int GetEnd() + { + return OptionJudgetimingIDEnum.records.Length; + } + + // Token: 0x060045BC RID: 17852 RVA: 0x00181658 File Offset: 0x00180858 + public static int GetEnumValue(this OptionJudgetimingID self) + { + if (self.IsValid()) + { + return OptionJudgetimingIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060045BD RID: 17853 RVA: 0x00181670 File Offset: 0x00180870 + public static string GetEnumName(this OptionJudgetimingID self) + { + if (self.IsValid()) + { + return OptionJudgetimingIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060045BE RID: 17854 RVA: 0x0018168C File Offset: 0x0018088C + public static string GetName(this OptionJudgetimingID self) + { + if (self.IsValid()) + { + return OptionJudgetimingIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060045BF RID: 17855 RVA: 0x001816A8 File Offset: 0x001808A8 + public static string GetNameEx(this OptionJudgetimingID self) + { + if (self.IsValid()) + { + return OptionJudgetimingIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060045C0 RID: 17856 RVA: 0x001816C4 File Offset: 0x001808C4 + public static string GetDetail(this OptionJudgetimingID self) + { + if (self.IsValid()) + { + return OptionJudgetimingIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060045C1 RID: 17857 RVA: 0x001816E0 File Offset: 0x001808E0 + public static string GetDetailEx(this OptionJudgetimingID self) + { + if (self.IsValid()) + { + return OptionJudgetimingIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060045C2 RID: 17858 RVA: 0x001816FC File Offset: 0x001808FC + public static string GetFilePath(this OptionJudgetimingID self) + { + if (self.IsValid()) + { + return OptionJudgetimingIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x060045C3 RID: 17859 RVA: 0x00181718 File Offset: 0x00180918 + public static bool IsDefault(this OptionJudgetimingID self) + { + return self.IsValid() && OptionJudgetimingIDEnum.records[(int)self].isDefault; + } + + // Token: 0x040054DD RID: 21725 + private static readonly OptionJudgetimingTableRecord[] records = new OptionJudgetimingTableRecord[] + { + new OptionJudgetimingTableRecord(0, "Fast2_0", "-2.0", "-2.0", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(1, "Fast1_9", "-1.9", "-1.9", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(2, "Fast1_8", "-1.8", "-1.8", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(3, "Fast1_7", "-1.7", "-1.7", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(4, "Fast1_6", "-1.6", "-1.6", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(5, "Fast1_5", "-1.5", "-1.5", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(6, "Fast1_4", "-1.4", "-1.4", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(7, "Fast1_3", "-1.3", "-1.3", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(8, "Fast1_2", "-1.2", "-1.2", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(9, "Fast1_1", "-1.1", "-1.1", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(10, "Fast1_0", "-1.0", "-1.0", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(11, "Fast0_9", "-0.9", "-0.9", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(12, "Fast0_8", "-0.8", "-0.8", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(13, "Fast0_7", "-0.7", "-0.7", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(14, "Fast0_6", "-0.6", "-0.6", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(15, "Fast0_5", "-0.5", "-0.5", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(16, "Fast0_4", "-0.4", "-0.4", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(17, "Fast0_3", "-0.3", "-0.3", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(18, "Fast0_2", "-0.2", "-0.2", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(19, "Fast0_1", "-0.1", "-0.1", "“FAST”较多时请选择这项", "", "UI_OPT_B_07_01", 0), + new OptionJudgetimingTableRecord(20, "Normal", "0.0", "0.0", "通常的时机", "", "UI_OPT_B_07_02", 1), + new OptionJudgetimingTableRecord(21, "Late0_1", "0.1", "0.1", "“太晚”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(22, "Late0_2", "0.2", "0.2", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(23, "Late0_3", "0.3", "0.3", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(24, "Late0_4", "0.4", "0.4", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(25, "Late0_5", "0.5", "0.5", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(26, "Late0_6", "0.6", "0.6", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(27, "Late0_7", "0.7", "0.7", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(28, "Late0_8", "0.8", "0.8", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(29, "Late0_9", "0.9", "0.9", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(30, "Late1_0", "1.0", "1.0", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(31, "Late1_1", "1.1", "1.1", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(32, "Late1_2", "1.2", "1.2", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(33, "Late1_3", "1.3", "1.3", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(34, "Late1_4", "1.4", "1.4", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(35, "Late1_5", "1.5", "1.5", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(36, "Late1_6", "1.6", "1.6", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(37, "Late1_7", "1.7", "1.7", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(38, "Late1_8", "1.8", "1.8", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(39, "Late1_9", "1.9", "1.9", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0), + new OptionJudgetimingTableRecord(40, "Late2_0", "2.0", "2.0", "“LATE”较多时请选择这项", "", "UI_OPT_B_07_03", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionJudgetimingTableRecord.cs b/Assembly-CSharp/DB/OptionJudgetimingTableRecord.cs new file mode 100644 index 0000000..590956b --- /dev/null +++ b/Assembly-CSharp/DB/OptionJudgetimingTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007C4 RID: 1988 + public class OptionJudgetimingTableRecord + { + // Token: 0x060045B4 RID: 17844 RVA: 0x00003560 File Offset: 0x00002760 + public OptionJudgetimingTableRecord() + { + } + + // Token: 0x060045B5 RID: 17845 RVA: 0x00181590 File Offset: 0x00180790 + public OptionJudgetimingTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x040054D5 RID: 21717 + public int EnumValue; + + // Token: 0x040054D6 RID: 21718 + public string EnumName; + + // Token: 0x040054D7 RID: 21719 + public string Name; + + // Token: 0x040054D8 RID: 21720 + public string NameEx; + + // Token: 0x040054D9 RID: 21721 + public string Detail; + + // Token: 0x040054DA RID: 21722 + public string DetailEx; + + // Token: 0x040054DB RID: 21723 + public string FilePath; + + // Token: 0x040054DC RID: 21724 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionKindID.cs b/Assembly-CSharp/DB/OptionKindID.cs new file mode 100644 index 0000000..473a657 --- /dev/null +++ b/Assembly-CSharp/DB/OptionKindID.cs @@ -0,0 +1,23 @@ +using System; + +namespace DB +{ + // Token: 0x020007C6 RID: 1990 + public enum OptionKindID + { + // Token: 0x040054DF RID: 21727 + Basic, + // Token: 0x040054E0 RID: 21728 + Advance, + // Token: 0x040054E1 RID: 21729 + Expert, + // Token: 0x040054E2 RID: 21730 + Custom, + // Token: 0x040054E3 RID: 21731 + Begin = 0, + // Token: 0x040054E4 RID: 21732 + End = 4, + // Token: 0x040054E5 RID: 21733 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionKindIDEnum.cs b/Assembly-CSharp/DB/OptionKindIDEnum.cs new file mode 100644 index 0000000..f3d31c1 --- /dev/null +++ b/Assembly-CSharp/DB/OptionKindIDEnum.cs @@ -0,0 +1,128 @@ +using System; + +namespace DB +{ + // Token: 0x020007C8 RID: 1992 + public static class OptionKindIDEnum + { + // Token: 0x060045C7 RID: 17863 RVA: 0x00173DA6 File Offset: 0x00172FA6 + public static bool IsActive(this OptionKindID self) + { + return self >= OptionKindID.Basic && self < OptionKindID.End && self > OptionKindID.Basic; + } + + // Token: 0x060045C8 RID: 17864 RVA: 0x00173DB6 File Offset: 0x00172FB6 + public static bool IsValid(this OptionKindID self) + { + return self >= OptionKindID.Basic && self < OptionKindID.End; + } + + // Token: 0x060045C9 RID: 17865 RVA: 0x00181E26 File Offset: 0x00181026 + public static void Clamp(this OptionKindID self) + { + if (self < OptionKindID.Basic) + { + self = OptionKindID.Basic; + return; + } + if (self >= (OptionKindID)OptionKindIDEnum.GetEnd()) + { + self = (OptionKindID)OptionKindIDEnum.GetEnd(); + } + } + + // Token: 0x060045CA RID: 17866 RVA: 0x00181E3F File Offset: 0x0018103F + public static int GetEnd(this OptionKindID self) + { + return OptionKindIDEnum.GetEnd(); + } + + // Token: 0x060045CB RID: 17867 RVA: 0x00181E48 File Offset: 0x00181048 + public static OptionKindID FindID(string enumName) + { + for (OptionKindID optionKindID = OptionKindID.Basic; optionKindID < OptionKindID.End; optionKindID++) + { + if (optionKindID.GetEnumName() == enumName) + { + return optionKindID; + } + } + return OptionKindID.Invalid; + } + + // Token: 0x060045CC RID: 17868 RVA: 0x00181E72 File Offset: 0x00181072 + public static int GetEnd() + { + return OptionKindIDEnum.records.Length; + } + + // Token: 0x060045CD RID: 17869 RVA: 0x00181E7B File Offset: 0x0018107B + public static int GetEnumValue(this OptionKindID self) + { + if (self.IsValid()) + { + return OptionKindIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060045CE RID: 17870 RVA: 0x00181E93 File Offset: 0x00181093 + public static string GetEnumName(this OptionKindID self) + { + if (self.IsValid()) + { + return OptionKindIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060045CF RID: 17871 RVA: 0x00181EAF File Offset: 0x001810AF + public static string GetName(this OptionKindID self) + { + if (self.IsValid()) + { + return OptionKindIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060045D0 RID: 17872 RVA: 0x00181ECB File Offset: 0x001810CB + public static string GetNameEx(this OptionKindID self) + { + if (self.IsValid()) + { + return OptionKindIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060045D1 RID: 17873 RVA: 0x00181EE7 File Offset: 0x001810E7 + public static string GetDetail(this OptionKindID self) + { + if (self.IsValid()) + { + return OptionKindIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060045D2 RID: 17874 RVA: 0x00181F03 File Offset: 0x00181103 + public static string GetDetailEx(this OptionKindID self) + { + if (self.IsValid()) + { + return OptionKindIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x040054EC RID: 21740 + private static readonly OptionKindTableRecord[] records = new OptionKindTableRecord[] + { + new OptionKindTableRecord(0, "Basic", "适合初级玩家的设置", "", "", ""), + new OptionKindTableRecord(1, "Advance", "适合高级玩家的设置", "", "", ""), + new OptionKindTableRecord(2, "Expert", "适合专家玩家的设置", "", "", ""), + new OptionKindTableRecord(3, "Custom", "详细设置", "", "", "") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionKindTableRecord.cs b/Assembly-CSharp/DB/OptionKindTableRecord.cs new file mode 100644 index 0000000..48f4d05 --- /dev/null +++ b/Assembly-CSharp/DB/OptionKindTableRecord.cs @@ -0,0 +1,42 @@ +using System; + +namespace DB +{ + // Token: 0x020007C7 RID: 1991 + public class OptionKindTableRecord + { + // Token: 0x060045C5 RID: 17861 RVA: 0x00003560 File Offset: 0x00002760 + public OptionKindTableRecord() + { + } + + // Token: 0x060045C6 RID: 17862 RVA: 0x00181DF1 File Offset: 0x00180FF1 + public OptionKindTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + } + + // Token: 0x040054E6 RID: 21734 + public int EnumValue; + + // Token: 0x040054E7 RID: 21735 + public string EnumName; + + // Token: 0x040054E8 RID: 21736 + public string Name; + + // Token: 0x040054E9 RID: 21737 + public string NameEx; + + // Token: 0x040054EA RID: 21738 + public string Detail; + + // Token: 0x040054EB RID: 21739 + public string DetailEx; + } +} diff --git a/Assembly-CSharp/DB/OptionMatchingID.cs b/Assembly-CSharp/DB/OptionMatchingID.cs new file mode 100644 index 0000000..194dcd7 --- /dev/null +++ b/Assembly-CSharp/DB/OptionMatchingID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x020007C9 RID: 1993 + public enum OptionMatchingID + { + // Token: 0x040054EE RID: 21742 + Off, + // Token: 0x040054EF RID: 21743 + On, + // Token: 0x040054F0 RID: 21744 + Begin = 0, + // Token: 0x040054F1 RID: 21745 + End = 2, + // Token: 0x040054F2 RID: 21746 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionMatchingIDEnum.cs b/Assembly-CSharp/DB/OptionMatchingIDEnum.cs new file mode 100644 index 0000000..92bc7e4 --- /dev/null +++ b/Assembly-CSharp/DB/OptionMatchingIDEnum.cs @@ -0,0 +1,136 @@ +using System; + +namespace DB +{ + // Token: 0x020007CB RID: 1995 + public static class OptionMatchingIDEnum + { + // Token: 0x060045D6 RID: 17878 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this OptionMatchingID self) + { + return self >= OptionMatchingID.Off && self < OptionMatchingID.End && self > OptionMatchingID.Off; + } + + // Token: 0x060045D7 RID: 17879 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this OptionMatchingID self) + { + return self >= OptionMatchingID.Off && self < OptionMatchingID.End; + } + + // Token: 0x060045D8 RID: 17880 RVA: 0x00181FFD File Offset: 0x001811FD + public static void Clamp(this OptionMatchingID self) + { + if (self < OptionMatchingID.Off) + { + self = OptionMatchingID.Off; + return; + } + if (self >= (OptionMatchingID)OptionMatchingIDEnum.GetEnd()) + { + self = (OptionMatchingID)OptionMatchingIDEnum.GetEnd(); + } + } + + // Token: 0x060045D9 RID: 17881 RVA: 0x00182016 File Offset: 0x00181216 + public static int GetEnd(this OptionMatchingID self) + { + return OptionMatchingIDEnum.GetEnd(); + } + + // Token: 0x060045DA RID: 17882 RVA: 0x00182020 File Offset: 0x00181220 + public static OptionMatchingID FindID(string enumName) + { + for (OptionMatchingID optionMatchingID = OptionMatchingID.Off; optionMatchingID < OptionMatchingID.End; optionMatchingID++) + { + if (optionMatchingID.GetEnumName() == enumName) + { + return optionMatchingID; + } + } + return OptionMatchingID.Invalid; + } + + // Token: 0x060045DB RID: 17883 RVA: 0x0018204A File Offset: 0x0018124A + public static int GetEnd() + { + return OptionMatchingIDEnum.records.Length; + } + + // Token: 0x060045DC RID: 17884 RVA: 0x00182053 File Offset: 0x00181253 + public static int GetEnumValue(this OptionMatchingID self) + { + if (self.IsValid()) + { + return OptionMatchingIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060045DD RID: 17885 RVA: 0x0018206B File Offset: 0x0018126B + public static string GetEnumName(this OptionMatchingID self) + { + if (self.IsValid()) + { + return OptionMatchingIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060045DE RID: 17886 RVA: 0x00182087 File Offset: 0x00181287 + public static string GetName(this OptionMatchingID self) + { + if (self.IsValid()) + { + return OptionMatchingIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060045DF RID: 17887 RVA: 0x001820A3 File Offset: 0x001812A3 + public static string GetNameEx(this OptionMatchingID self) + { + if (self.IsValid()) + { + return OptionMatchingIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060045E0 RID: 17888 RVA: 0x001820BF File Offset: 0x001812BF + public static string GetDetail(this OptionMatchingID self) + { + if (self.IsValid()) + { + return OptionMatchingIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060045E1 RID: 17889 RVA: 0x001820DB File Offset: 0x001812DB + public static string GetDetailEx(this OptionMatchingID self) + { + if (self.IsValid()) + { + return OptionMatchingIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060045E2 RID: 17890 RVA: 0x001820F7 File Offset: 0x001812F7 + public static string GetFilePath(this OptionMatchingID self) + { + if (self.IsValid()) + { + return OptionMatchingIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x040054FA RID: 21754 + private static readonly OptionMatchingTableRecord[] records = new OptionMatchingTableRecord[] + { + new OptionMatchingTableRecord(0, "Off", "不参加", "", "店内マッチングに参加しません\n募集のインフォメーションも表示しません", "", ""), + new OptionMatchingTableRecord(1, "On", "参加", "", "店内マッチングに参加します", "", "") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionMatchingTableRecord.cs b/Assembly-CSharp/DB/OptionMatchingTableRecord.cs new file mode 100644 index 0000000..64d47fb --- /dev/null +++ b/Assembly-CSharp/DB/OptionMatchingTableRecord.cs @@ -0,0 +1,46 @@ +using System; + +namespace DB +{ + // Token: 0x020007CA RID: 1994 + public class OptionMatchingTableRecord + { + // Token: 0x060045D4 RID: 17876 RVA: 0x00003560 File Offset: 0x00002760 + public OptionMatchingTableRecord() + { + } + + // Token: 0x060045D5 RID: 17877 RVA: 0x00181FC0 File Offset: 0x001811C0 + public OptionMatchingTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + } + + // Token: 0x040054F3 RID: 21747 + public int EnumValue; + + // Token: 0x040054F4 RID: 21748 + public string EnumName; + + // Token: 0x040054F5 RID: 21749 + public string Name; + + // Token: 0x040054F6 RID: 21750 + public string NameEx; + + // Token: 0x040054F7 RID: 21751 + public string Detail; + + // Token: 0x040054F8 RID: 21752 + public string DetailEx; + + // Token: 0x040054F9 RID: 21753 + public string FilePath; + } +} diff --git a/Assembly-CSharp/DB/OptionMirrorID.cs b/Assembly-CSharp/DB/OptionMirrorID.cs new file mode 100644 index 0000000..44b330b --- /dev/null +++ b/Assembly-CSharp/DB/OptionMirrorID.cs @@ -0,0 +1,23 @@ +using System; + +namespace DB +{ + // Token: 0x020007CC RID: 1996 + public enum OptionMirrorID + { + // Token: 0x040054FC RID: 21756 + Normal, + // Token: 0x040054FD RID: 21757 + LR, + // Token: 0x040054FE RID: 21758 + UD, + // Token: 0x040054FF RID: 21759 + UDLR, + // Token: 0x04005500 RID: 21760 + Begin = 0, + // Token: 0x04005501 RID: 21761 + End = 4, + // Token: 0x04005502 RID: 21762 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionMirrorIDEnum.cs b/Assembly-CSharp/DB/OptionMirrorIDEnum.cs new file mode 100644 index 0000000..207cc2b --- /dev/null +++ b/Assembly-CSharp/DB/OptionMirrorIDEnum.cs @@ -0,0 +1,144 @@ +using System; + +namespace DB +{ + // Token: 0x020007CE RID: 1998 + public static class OptionMirrorIDEnum + { + // Token: 0x060045E6 RID: 17894 RVA: 0x00173DA6 File Offset: 0x00172FA6 + public static bool IsActive(this OptionMirrorID self) + { + return self >= OptionMirrorID.Normal && self < OptionMirrorID.End && self > OptionMirrorID.Normal; + } + + // Token: 0x060045E7 RID: 17895 RVA: 0x00173DB6 File Offset: 0x00172FB6 + public static bool IsValid(this OptionMirrorID self) + { + return self >= OptionMirrorID.Normal && self < OptionMirrorID.End; + } + + // Token: 0x060045E8 RID: 17896 RVA: 0x001821CF File Offset: 0x001813CF + public static void Clamp(this OptionMirrorID self) + { + if (self < OptionMirrorID.Normal) + { + self = OptionMirrorID.Normal; + return; + } + if (self >= (OptionMirrorID)OptionMirrorIDEnum.GetEnd()) + { + self = (OptionMirrorID)OptionMirrorIDEnum.GetEnd(); + } + } + + // Token: 0x060045E9 RID: 17897 RVA: 0x001821E8 File Offset: 0x001813E8 + public static int GetEnd(this OptionMirrorID self) + { + return OptionMirrorIDEnum.GetEnd(); + } + + // Token: 0x060045EA RID: 17898 RVA: 0x001821F0 File Offset: 0x001813F0 + public static OptionMirrorID FindID(string enumName) + { + for (OptionMirrorID optionMirrorID = OptionMirrorID.Normal; optionMirrorID < OptionMirrorID.End; optionMirrorID++) + { + if (optionMirrorID.GetEnumName() == enumName) + { + return optionMirrorID; + } + } + return OptionMirrorID.Invalid; + } + + // Token: 0x060045EB RID: 17899 RVA: 0x0018221A File Offset: 0x0018141A + public static int GetEnd() + { + return OptionMirrorIDEnum.records.Length; + } + + // Token: 0x060045EC RID: 17900 RVA: 0x00182223 File Offset: 0x00181423 + public static int GetEnumValue(this OptionMirrorID self) + { + if (self.IsValid()) + { + return OptionMirrorIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060045ED RID: 17901 RVA: 0x0018223B File Offset: 0x0018143B + public static string GetEnumName(this OptionMirrorID self) + { + if (self.IsValid()) + { + return OptionMirrorIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060045EE RID: 17902 RVA: 0x00182257 File Offset: 0x00181457 + public static string GetName(this OptionMirrorID self) + { + if (self.IsValid()) + { + return OptionMirrorIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060045EF RID: 17903 RVA: 0x00182273 File Offset: 0x00181473 + public static string GetNameEx(this OptionMirrorID self) + { + if (self.IsValid()) + { + return OptionMirrorIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060045F0 RID: 17904 RVA: 0x0018228F File Offset: 0x0018148F + public static string GetDetail(this OptionMirrorID self) + { + if (self.IsValid()) + { + return OptionMirrorIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060045F1 RID: 17905 RVA: 0x001822AB File Offset: 0x001814AB + public static string GetDetailEx(this OptionMirrorID self) + { + if (self.IsValid()) + { + return OptionMirrorIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060045F2 RID: 17906 RVA: 0x001822C7 File Offset: 0x001814C7 + public static string GetFilePath(this OptionMirrorID self) + { + if (self.IsValid()) + { + return OptionMirrorIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x060045F3 RID: 17907 RVA: 0x001822E3 File Offset: 0x001814E3 + public static bool IsDefault(this OptionMirrorID self) + { + return self.IsValid() && OptionMirrorIDEnum.records[(int)self].isDefault; + } + + // Token: 0x0400550B RID: 21771 + private static readonly OptionMirrorTableRecord[] records = new OptionMirrorTableRecord[] + { + new OptionMirrorTableRecord(0, "Normal", "关", "", "默认配置", "", "UI_OPT_B_06_01", 1), + new OptionMirrorTableRecord(1, "LR", "⇔", "", "左右颠倒", "", "UI_OPT_B_06_02", 0), + new OptionMirrorTableRecord(2, "UD", "⇅", "", "上下颠倒", "", "UI_OPT_B_06_04", 0), + new OptionMirrorTableRecord(3, "UDLR", "↻", "", "旋转180°", "", "UI_OPT_B_06_03", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionMirrorTableRecord.cs b/Assembly-CSharp/DB/OptionMirrorTableRecord.cs new file mode 100644 index 0000000..be0c1e0 --- /dev/null +++ b/Assembly-CSharp/DB/OptionMirrorTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007CD RID: 1997 + public class OptionMirrorTableRecord + { + // Token: 0x060045E4 RID: 17892 RVA: 0x00003560 File Offset: 0x00002760 + public OptionMirrorTableRecord() + { + } + + // Token: 0x060045E5 RID: 17893 RVA: 0x0018217C File Offset: 0x0018137C + public OptionMirrorTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x04005503 RID: 21763 + public int EnumValue; + + // Token: 0x04005504 RID: 21764 + public string EnumName; + + // Token: 0x04005505 RID: 21765 + public string Name; + + // Token: 0x04005506 RID: 21766 + public string NameEx; + + // Token: 0x04005507 RID: 21767 + public string Detail; + + // Token: 0x04005508 RID: 21768 + public string DetailEx; + + // Token: 0x04005509 RID: 21769 + public string FilePath; + + // Token: 0x0400550A RID: 21770 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionMoviebrightnessID.cs b/Assembly-CSharp/DB/OptionMoviebrightnessID.cs new file mode 100644 index 0000000..6f2d4aa --- /dev/null +++ b/Assembly-CSharp/DB/OptionMoviebrightnessID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x020007CF RID: 1999 + public enum OptionMoviebrightnessID + { + // Token: 0x0400550D RID: 21773 + Bright_0, + // Token: 0x0400550E RID: 21774 + Bright_1, + // Token: 0x0400550F RID: 21775 + Bright_2, + // Token: 0x04005510 RID: 21776 + Bright_3, + // Token: 0x04005511 RID: 21777 + Bright_4, + // Token: 0x04005512 RID: 21778 + Begin = 0, + // Token: 0x04005513 RID: 21779 + End = 5, + // Token: 0x04005514 RID: 21780 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionMoviebrightnessIDEnum.cs b/Assembly-CSharp/DB/OptionMoviebrightnessIDEnum.cs new file mode 100644 index 0000000..0936df9 --- /dev/null +++ b/Assembly-CSharp/DB/OptionMoviebrightnessIDEnum.cs @@ -0,0 +1,155 @@ +using System; + +namespace DB +{ + // Token: 0x020007D1 RID: 2001 + public static class OptionMoviebrightnessIDEnum + { + // Token: 0x060045F7 RID: 17911 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this OptionMoviebrightnessID self) + { + return self >= OptionMoviebrightnessID.Bright_0 && self < OptionMoviebrightnessID.End && self > OptionMoviebrightnessID.Bright_0; + } + + // Token: 0x060045F8 RID: 17912 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this OptionMoviebrightnessID self) + { + return self >= OptionMoviebrightnessID.Bright_0 && self < OptionMoviebrightnessID.End; + } + + // Token: 0x060045F9 RID: 17913 RVA: 0x00182410 File Offset: 0x00181610 + public static void Clamp(this OptionMoviebrightnessID self) + { + if (self < OptionMoviebrightnessID.Bright_0) + { + self = OptionMoviebrightnessID.Bright_0; + return; + } + if (self >= (OptionMoviebrightnessID)OptionMoviebrightnessIDEnum.GetEnd()) + { + self = (OptionMoviebrightnessID)OptionMoviebrightnessIDEnum.GetEnd(); + } + } + + // Token: 0x060045FA RID: 17914 RVA: 0x00182429 File Offset: 0x00181629 + public static int GetEnd(this OptionMoviebrightnessID self) + { + return OptionMoviebrightnessIDEnum.GetEnd(); + } + + // Token: 0x060045FB RID: 17915 RVA: 0x00182430 File Offset: 0x00181630 + public static OptionMoviebrightnessID FindID(string enumName) + { + for (OptionMoviebrightnessID optionMoviebrightnessID = OptionMoviebrightnessID.Bright_0; optionMoviebrightnessID < OptionMoviebrightnessID.End; optionMoviebrightnessID++) + { + if (optionMoviebrightnessID.GetEnumName() == enumName) + { + return optionMoviebrightnessID; + } + } + return OptionMoviebrightnessID.Invalid; + } + + // Token: 0x060045FC RID: 17916 RVA: 0x0018245A File Offset: 0x0018165A + public static int GetEnd() + { + return OptionMoviebrightnessIDEnum.records.Length; + } + + // Token: 0x060045FD RID: 17917 RVA: 0x00182463 File Offset: 0x00181663 + public static int GetEnumValue(this OptionMoviebrightnessID self) + { + if (self.IsValid()) + { + return OptionMoviebrightnessIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060045FE RID: 17918 RVA: 0x0018247B File Offset: 0x0018167B + public static string GetEnumName(this OptionMoviebrightnessID self) + { + if (self.IsValid()) + { + return OptionMoviebrightnessIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060045FF RID: 17919 RVA: 0x00182497 File Offset: 0x00181697 + public static float GetValue(this OptionMoviebrightnessID self) + { + if (self.IsValid()) + { + return OptionMoviebrightnessIDEnum.records[(int)self].Value; + } + return 0f; + } + + // Token: 0x06004600 RID: 17920 RVA: 0x001824B3 File Offset: 0x001816B3 + public static string GetName(this OptionMoviebrightnessID self) + { + if (self.IsValid()) + { + return OptionMoviebrightnessIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004601 RID: 17921 RVA: 0x001824CF File Offset: 0x001816CF + public static string GetNameEx(this OptionMoviebrightnessID self) + { + if (self.IsValid()) + { + return OptionMoviebrightnessIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004602 RID: 17922 RVA: 0x001824EB File Offset: 0x001816EB + public static string GetDetail(this OptionMoviebrightnessID self) + { + if (self.IsValid()) + { + return OptionMoviebrightnessIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004603 RID: 17923 RVA: 0x00182507 File Offset: 0x00181707 + public static string GetDetailEx(this OptionMoviebrightnessID self) + { + if (self.IsValid()) + { + return OptionMoviebrightnessIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004604 RID: 17924 RVA: 0x00182523 File Offset: 0x00181723 + public static string GetFilePath(this OptionMoviebrightnessID self) + { + if (self.IsValid()) + { + return OptionMoviebrightnessIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x06004605 RID: 17925 RVA: 0x0018253F File Offset: 0x0018173F + public static bool IsDefault(this OptionMoviebrightnessID self) + { + return self.IsValid() && OptionMoviebrightnessIDEnum.records[(int)self].isDefault; + } + + // Token: 0x0400551E RID: 21790 + private static readonly OptionMoviebrightnessTableRecord[] records = new OptionMoviebrightnessTableRecord[] + { + new OptionMoviebrightnessTableRecord(0, "Bright_0", 0.75f, "暗", "25%", "暗", "", "UI_OPT_B_09_01", 0), + new OptionMoviebrightnessTableRecord(1, "Bright_1", 0.5f, "较暗", "50%", "较暗", "", "UI_OPT_B_09_02", 0), + new OptionMoviebrightnessTableRecord(2, "Bright_2", 0.4f, "普通", "60%", "普通", "", "UI_OPT_B_09_05", 1), + new OptionMoviebrightnessTableRecord(3, "Bright_3", 0.25f, "较亮", "75%", "较亮", "", "UI_OPT_B_09_03", 0), + new OptionMoviebrightnessTableRecord(4, "Bright_4", 0f, "明亮", "100%", "明亮", "", "UI_OPT_B_09_04", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionMoviebrightnessTableRecord.cs b/Assembly-CSharp/DB/OptionMoviebrightnessTableRecord.cs new file mode 100644 index 0000000..7079302 --- /dev/null +++ b/Assembly-CSharp/DB/OptionMoviebrightnessTableRecord.cs @@ -0,0 +1,54 @@ +using System; + +namespace DB +{ + // Token: 0x020007D0 RID: 2000 + public class OptionMoviebrightnessTableRecord + { + // Token: 0x060045F5 RID: 17909 RVA: 0x00003560 File Offset: 0x00002760 + public OptionMoviebrightnessTableRecord() + { + } + + // Token: 0x060045F6 RID: 17910 RVA: 0x001823B4 File Offset: 0x001815B4 + public OptionMoviebrightnessTableRecord(int EnumValue, string EnumName, float Value, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Value = Value; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x04005515 RID: 21781 + public int EnumValue; + + // Token: 0x04005516 RID: 21782 + public string EnumName; + + // Token: 0x04005517 RID: 21783 + public float Value; + + // Token: 0x04005518 RID: 21784 + public string Name; + + // Token: 0x04005519 RID: 21785 + public string NameEx; + + // Token: 0x0400551A RID: 21786 + public string Detail; + + // Token: 0x0400551B RID: 21787 + public string DetailEx; + + // Token: 0x0400551C RID: 21788 + public string FilePath; + + // Token: 0x0400551D RID: 21789 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionNotesizeID.cs b/Assembly-CSharp/DB/OptionNotesizeID.cs new file mode 100644 index 0000000..2e545ae --- /dev/null +++ b/Assembly-CSharp/DB/OptionNotesizeID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x020007D2 RID: 2002 + public enum OptionNotesizeID + { + // Token: 0x04005520 RID: 21792 + Small, + // Token: 0x04005521 RID: 21793 + Middle, + // Token: 0x04005522 RID: 21794 + Big, + // Token: 0x04005523 RID: 21795 + Begin = 0, + // Token: 0x04005524 RID: 21796 + End = 3, + // Token: 0x04005525 RID: 21797 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionNotesizeIDEnum.cs b/Assembly-CSharp/DB/OptionNotesizeIDEnum.cs new file mode 100644 index 0000000..87c049d --- /dev/null +++ b/Assembly-CSharp/DB/OptionNotesizeIDEnum.cs @@ -0,0 +1,153 @@ +using System; + +namespace DB +{ + // Token: 0x020007D4 RID: 2004 + public static class OptionNotesizeIDEnum + { + // Token: 0x06004609 RID: 17929 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this OptionNotesizeID self) + { + return self >= OptionNotesizeID.Small && self < OptionNotesizeID.End && self > OptionNotesizeID.Small; + } + + // Token: 0x0600460A RID: 17930 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this OptionNotesizeID self) + { + return self >= OptionNotesizeID.Small && self < OptionNotesizeID.End; + } + + // Token: 0x0600460B RID: 17931 RVA: 0x001826B0 File Offset: 0x001818B0 + public static void Clamp(this OptionNotesizeID self) + { + if (self < OptionNotesizeID.Small) + { + self = OptionNotesizeID.Small; + return; + } + if (self >= (OptionNotesizeID)OptionNotesizeIDEnum.GetEnd()) + { + self = (OptionNotesizeID)OptionNotesizeIDEnum.GetEnd(); + } + } + + // Token: 0x0600460C RID: 17932 RVA: 0x001826C9 File Offset: 0x001818C9 + public static int GetEnd(this OptionNotesizeID self) + { + return OptionNotesizeIDEnum.GetEnd(); + } + + // Token: 0x0600460D RID: 17933 RVA: 0x001826D0 File Offset: 0x001818D0 + public static OptionNotesizeID FindID(string enumName) + { + for (OptionNotesizeID optionNotesizeID = OptionNotesizeID.Small; optionNotesizeID < OptionNotesizeID.End; optionNotesizeID++) + { + if (optionNotesizeID.GetEnumName() == enumName) + { + return optionNotesizeID; + } + } + return OptionNotesizeID.Invalid; + } + + // Token: 0x0600460E RID: 17934 RVA: 0x001826FA File Offset: 0x001818FA + public static int GetEnd() + { + return OptionNotesizeIDEnum.records.Length; + } + + // Token: 0x0600460F RID: 17935 RVA: 0x00182703 File Offset: 0x00181903 + public static int GetEnumValue(this OptionNotesizeID self) + { + if (self.IsValid()) + { + return OptionNotesizeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004610 RID: 17936 RVA: 0x0018271B File Offset: 0x0018191B + public static string GetEnumName(this OptionNotesizeID self) + { + if (self.IsValid()) + { + return OptionNotesizeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004611 RID: 17937 RVA: 0x00182737 File Offset: 0x00181937 + public static string GetName(this OptionNotesizeID self) + { + if (self.IsValid()) + { + return OptionNotesizeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004612 RID: 17938 RVA: 0x00182753 File Offset: 0x00181953 + public static string GetNameEx(this OptionNotesizeID self) + { + if (self.IsValid()) + { + return OptionNotesizeIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004613 RID: 17939 RVA: 0x0018276F File Offset: 0x0018196F + public static string GetDetail(this OptionNotesizeID self) + { + if (self.IsValid()) + { + return OptionNotesizeIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004614 RID: 17940 RVA: 0x0018278B File Offset: 0x0018198B + public static string GetDetailEx(this OptionNotesizeID self) + { + if (self.IsValid()) + { + return OptionNotesizeIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004615 RID: 17941 RVA: 0x001827A7 File Offset: 0x001819A7 + public static string GetFilePath(this OptionNotesizeID self) + { + if (self.IsValid()) + { + return OptionNotesizeIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x06004616 RID: 17942 RVA: 0x001827C3 File Offset: 0x001819C3 + public static bool IsDefault(this OptionNotesizeID self) + { + return self.IsValid() && OptionNotesizeIDEnum.records[(int)self].isDefault; + } + + // Token: 0x06004617 RID: 17943 RVA: 0x001827DB File Offset: 0x001819DB + public static float GetValue(this OptionNotesizeID self) + { + if (self.IsValid()) + { + return OptionNotesizeIDEnum.records[(int)self].Value; + } + return 0f; + } + + // Token: 0x0400552F RID: 21807 + private static readonly OptionNotesizeTableRecord[] records = new OptionNotesizeTableRecord[] + { + new OptionNotesizeTableRecord(0, "Small", "小さい", "", "", "", "", 0, 0.7f), + new OptionNotesizeTableRecord(1, "Middle", "ふつう", "", "", "", "", 1, 1f), + new OptionNotesizeTableRecord(2, "Big", "大きい", "", "", "", "", 0, 1.3f) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionNotesizeTableRecord.cs b/Assembly-CSharp/DB/OptionNotesizeTableRecord.cs new file mode 100644 index 0000000..a62cab5 --- /dev/null +++ b/Assembly-CSharp/DB/OptionNotesizeTableRecord.cs @@ -0,0 +1,54 @@ +using System; + +namespace DB +{ + // Token: 0x020007D3 RID: 2003 + public class OptionNotesizeTableRecord + { + // Token: 0x06004607 RID: 17927 RVA: 0x00003560 File Offset: 0x00002760 + public OptionNotesizeTableRecord() + { + } + + // Token: 0x06004608 RID: 17928 RVA: 0x00182654 File Offset: 0x00181854 + public OptionNotesizeTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault, float Value) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + this.Value = Value; + } + + // Token: 0x04005526 RID: 21798 + public int EnumValue; + + // Token: 0x04005527 RID: 21799 + public string EnumName; + + // Token: 0x04005528 RID: 21800 + public string Name; + + // Token: 0x04005529 RID: 21801 + public string NameEx; + + // Token: 0x0400552A RID: 21802 + public string Detail; + + // Token: 0x0400552B RID: 21803 + public string DetailEx; + + // Token: 0x0400552C RID: 21804 + public string FilePath; + + // Token: 0x0400552D RID: 21805 + public bool isDefault; + + // Token: 0x0400552E RID: 21806 + public float Value; + } +} diff --git a/Assembly-CSharp/DB/OptionNotespeedID.cs b/Assembly-CSharp/DB/OptionNotespeedID.cs new file mode 100644 index 0000000..1bd80e6 --- /dev/null +++ b/Assembly-CSharp/DB/OptionNotespeedID.cs @@ -0,0 +1,91 @@ +using System; + +namespace DB +{ + // Token: 0x020007D5 RID: 2005 + public enum OptionNotespeedID + { + // Token: 0x04005531 RID: 21809 + Speed1_0, + // Token: 0x04005532 RID: 21810 + Speed_1_25, + // Token: 0x04005533 RID: 21811 + Speed1_5, + // Token: 0x04005534 RID: 21812 + Speed_1_75, + // Token: 0x04005535 RID: 21813 + Speed2_0, + // Token: 0x04005536 RID: 21814 + Speed_2_25, + // Token: 0x04005537 RID: 21815 + Speed2_5, + // Token: 0x04005538 RID: 21816 + Speed_2_75, + // Token: 0x04005539 RID: 21817 + Speed3_0, + // Token: 0x0400553A RID: 21818 + Speed_3_25, + // Token: 0x0400553B RID: 21819 + Speed3_5, + // Token: 0x0400553C RID: 21820 + Speed_3_75, + // Token: 0x0400553D RID: 21821 + Speed4_0, + // Token: 0x0400553E RID: 21822 + Speed_4_25, + // Token: 0x0400553F RID: 21823 + Speed4_5, + // Token: 0x04005540 RID: 21824 + Speed_4_75, + // Token: 0x04005541 RID: 21825 + Speed5_0, + // Token: 0x04005542 RID: 21826 + Speed_5_25, + // Token: 0x04005543 RID: 21827 + Speed5_5, + // Token: 0x04005544 RID: 21828 + Speed_5_75, + // Token: 0x04005545 RID: 21829 + Speed6_0, + // Token: 0x04005546 RID: 21830 + Speed_6_25, + // Token: 0x04005547 RID: 21831 + Speed6_5, + // Token: 0x04005548 RID: 21832 + Speed_6_75, + // Token: 0x04005549 RID: 21833 + Speed7_0, + // Token: 0x0400554A RID: 21834 + Speed7_25, + // Token: 0x0400554B RID: 21835 + Speed7_5, + // Token: 0x0400554C RID: 21836 + Speed7_75, + // Token: 0x0400554D RID: 21837 + Speed8_0, + // Token: 0x0400554E RID: 21838 + Speed8_25, + // Token: 0x0400554F RID: 21839 + Speed8_5, + // Token: 0x04005550 RID: 21840 + Speed8_75, + // Token: 0x04005551 RID: 21841 + Speed9_0, + // Token: 0x04005552 RID: 21842 + Speed9_25, + // Token: 0x04005553 RID: 21843 + Speed9_5, + // Token: 0x04005554 RID: 21844 + Speed9_75, + // Token: 0x04005555 RID: 21845 + Speed10_0, + // Token: 0x04005556 RID: 21846 + Speed_Sonic, + // Token: 0x04005557 RID: 21847 + Begin = 0, + // Token: 0x04005558 RID: 21848 + End = 38, + // Token: 0x04005559 RID: 21849 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionNotespeedIDEnum.cs b/Assembly-CSharp/DB/OptionNotespeedIDEnum.cs new file mode 100644 index 0000000..e303a1d --- /dev/null +++ b/Assembly-CSharp/DB/OptionNotespeedIDEnum.cs @@ -0,0 +1,188 @@ +using System; + +namespace DB +{ + // Token: 0x020007D7 RID: 2007 + public static class OptionNotespeedIDEnum + { + // Token: 0x0600461B RID: 17947 RVA: 0x001828F4 File Offset: 0x00181AF4 + public static bool IsActive(this OptionNotespeedID self) + { + return self >= OptionNotespeedID.Speed1_0 && self < OptionNotespeedID.End && self > OptionNotespeedID.Speed1_0; + } + + // Token: 0x0600461C RID: 17948 RVA: 0x00182905 File Offset: 0x00181B05 + public static bool IsValid(this OptionNotespeedID self) + { + return self >= OptionNotespeedID.Speed1_0 && self < OptionNotespeedID.End; + } + + // Token: 0x0600461D RID: 17949 RVA: 0x00182912 File Offset: 0x00181B12 + public static void Clamp(this OptionNotespeedID self) + { + if (self < OptionNotespeedID.Speed1_0) + { + self = OptionNotespeedID.Speed1_0; + return; + } + if (self >= (OptionNotespeedID)OptionNotespeedIDEnum.GetEnd()) + { + self = (OptionNotespeedID)OptionNotespeedIDEnum.GetEnd(); + } + } + + // Token: 0x0600461E RID: 17950 RVA: 0x0018292B File Offset: 0x00181B2B + public static int GetEnd(this OptionNotespeedID self) + { + return OptionNotespeedIDEnum.GetEnd(); + } + + // Token: 0x0600461F RID: 17951 RVA: 0x00182934 File Offset: 0x00181B34 + public static OptionNotespeedID FindID(string enumName) + { + for (OptionNotespeedID optionNotespeedID = OptionNotespeedID.Speed1_0; optionNotespeedID < OptionNotespeedID.End; optionNotespeedID++) + { + if (optionNotespeedID.GetEnumName() == enumName) + { + return optionNotespeedID; + } + } + return OptionNotespeedID.Invalid; + } + + // Token: 0x06004620 RID: 17952 RVA: 0x0018295F File Offset: 0x00181B5F + public static int GetEnd() + { + return OptionNotespeedIDEnum.records.Length; + } + + // Token: 0x06004621 RID: 17953 RVA: 0x00182968 File Offset: 0x00181B68 + public static int GetEnumValue(this OptionNotespeedID self) + { + if (self.IsValid()) + { + return OptionNotespeedIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004622 RID: 17954 RVA: 0x00182980 File Offset: 0x00181B80 + public static string GetEnumName(this OptionNotespeedID self) + { + if (self.IsValid()) + { + return OptionNotespeedIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004623 RID: 17955 RVA: 0x0018299C File Offset: 0x00181B9C + public static float GetValue(this OptionNotespeedID self) + { + if (self.IsValid()) + { + return OptionNotespeedIDEnum.records[(int)self].Value; + } + return 0f; + } + + // Token: 0x06004624 RID: 17956 RVA: 0x001829B8 File Offset: 0x00181BB8 + public static string GetName(this OptionNotespeedID self) + { + if (self.IsValid()) + { + return OptionNotespeedIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004625 RID: 17957 RVA: 0x001829D4 File Offset: 0x00181BD4 + public static string GetNameEx(this OptionNotespeedID self) + { + if (self.IsValid()) + { + return OptionNotespeedIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004626 RID: 17958 RVA: 0x001829F0 File Offset: 0x00181BF0 + public static string GetDetail(this OptionNotespeedID self) + { + if (self.IsValid()) + { + return OptionNotespeedIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004627 RID: 17959 RVA: 0x00182A0C File Offset: 0x00181C0C + public static string GetDetailEx(this OptionNotespeedID self) + { + if (self.IsValid()) + { + return OptionNotespeedIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004628 RID: 17960 RVA: 0x00182A28 File Offset: 0x00181C28 + public static string GetFilePath(this OptionNotespeedID self) + { + if (self.IsValid()) + { + return OptionNotespeedIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x06004629 RID: 17961 RVA: 0x00182A44 File Offset: 0x00181C44 + public static bool IsDefault(this OptionNotespeedID self) + { + return self.IsValid() && OptionNotespeedIDEnum.records[(int)self].isDefault; + } + + // Token: 0x04005563 RID: 21859 + private static readonly OptionNotespeedTableRecord[] records = new OptionNotespeedTableRecord[] + { + new OptionNotespeedTableRecord(0, "Speed1_0", 200f, "1.00", "1.00", "比标准速度慢", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(1, "Speed_1_25", 225f, "1.25", "1.25", "比标准速度慢", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(2, "Speed1_5", 250f, "1.50", "1.50", "比标准速度慢", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(3, "Speed_1_75", 275f, "1.75", "1.75", "比标准速度慢", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(4, "Speed2_0", 300f, "2.00", "2.00", "推荐给选择BASIC的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(5, "Speed_2_25", 325f, "2.25", "2.25", "推荐给选择BASIC的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(6, "Speed2_5", 350f, "2.50", "2.50", "推荐给选择BASIC的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(7, "Speed_2_75", 375f, "2.75", "2.75", "推荐给选择BASIC的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(8, "Speed3_0", 400f, "3.00", "3.00", "推荐给选择ADVANCED的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(9, "Speed_3_25", 425f, "3.25", "3.25", "推荐给选择ADVANCED的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(10, "Speed3_5", 450f, "3.50", "3.50", "推荐给选择ADVANCED的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(11, "Speed_3_75", 475f, "3.75", "3.75", "推荐给选择ADVANCED的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(12, "Speed4_0", 500f, "4.00", "4.00", "推荐给选择ADVANCED的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(13, "Speed_4_25", 525f, "4.25", "4.25", "推荐给选择ADVANCED的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(14, "Speed4_5", 550f, "4.50", "4.50", "推荐给选择EXPERT的玩家", "", "UI_OPT_A_01_01", 1), + new OptionNotespeedTableRecord(15, "Speed_4_75", 575f, "4.75", "4.75", "推荐给选择EXPERT的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(16, "Speed5_0", 600f, "5.00", "5.00", "推荐给选择EXPERT的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(17, "Speed_5_25", 625f, "5.25", "5.25", "推荐给选择EXPERT的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(18, "Speed5_5", 650f, "5.50", "5.50", "推荐给选择EXPERT的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(19, "Speed_5_75", 675f, "5.75", "5.75", "推荐给选择EXPERT的玩家", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(20, "Speed6_0", 700f, "6.00", "6.00", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(21, "Speed_6_25", 725f, "6.25", "6.25", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(22, "Speed6_5", 750f, "6.50", "6.50", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(23, "Speed_6_75", 775f, "6.75", "6.75", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(24, "Speed7_0", 800f, "7.00", "7.00", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(25, "Speed7_25", 825f, "7.25", "7.25", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(26, "Speed7_5", 850f, "7.50", "7.50", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(27, "Speed7_75", 875f, "7.75", "7.75", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(28, "Speed8_0", 900f, "8.00", "8.00", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(29, "Speed8_25", 925f, "8.25", "8.25", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(30, "Speed8_5", 950f, "8.50", "8.50", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(31, "Speed8_75", 975f, "8.75", "8.75", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(32, "Speed9_0", 1000f, "9.00", "9.00", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(33, "Speed9_25", 1025f, "9.25", "9.25", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(34, "Speed9_5", 1050f, "9.50", "9.50", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(35, "Speed9_75", 1075f, "9.75", "9.75", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(36, "Speed10_0", 1100f, "10.00", "10.00", "请按照喜好设定速度", "", "UI_OPT_A_01_01", 0), + new OptionNotespeedTableRecord(37, "Speed_Sonic", 5000f, "索尼克", "SONIC", "注意! 光环只会显示一瞬间", "", "UI_OPT_A_01_01", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionNotespeedTableRecord.cs b/Assembly-CSharp/DB/OptionNotespeedTableRecord.cs new file mode 100644 index 0000000..61149aa --- /dev/null +++ b/Assembly-CSharp/DB/OptionNotespeedTableRecord.cs @@ -0,0 +1,54 @@ +using System; + +namespace DB +{ + // Token: 0x020007D6 RID: 2006 + public class OptionNotespeedTableRecord + { + // Token: 0x06004619 RID: 17945 RVA: 0x00003560 File Offset: 0x00002760 + public OptionNotespeedTableRecord() + { + } + + // Token: 0x0600461A RID: 17946 RVA: 0x00182898 File Offset: 0x00181A98 + public OptionNotespeedTableRecord(int EnumValue, string EnumName, float Value, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Value = Value; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x0400555A RID: 21850 + public int EnumValue; + + // Token: 0x0400555B RID: 21851 + public string EnumName; + + // Token: 0x0400555C RID: 21852 + public float Value; + + // Token: 0x0400555D RID: 21853 + public string Name; + + // Token: 0x0400555E RID: 21854 + public string NameEx; + + // Token: 0x0400555F RID: 21855 + public string Detail; + + // Token: 0x04005560 RID: 21856 + public string DetailEx; + + // Token: 0x04005561 RID: 21857 + public string FilePath; + + // Token: 0x04005562 RID: 21858 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionOutframedisplayID.cs b/Assembly-CSharp/DB/OptionOutframedisplayID.cs new file mode 100644 index 0000000..93f4cb4 --- /dev/null +++ b/Assembly-CSharp/DB/OptionOutframedisplayID.cs @@ -0,0 +1,31 @@ +using System; + +namespace DB +{ + // Token: 0x020007D8 RID: 2008 + public enum OptionOutframedisplayID + { + // Token: 0x04005565 RID: 21861 + OFF, + // Token: 0x04005566 RID: 21862 + AchievementPlus, + // Token: 0x04005567 RID: 21863 + AchievementMinus1, + // Token: 0x04005568 RID: 21864 + AchievementMinus2, + // Token: 0x04005569 RID: 21865 + DxScorePlus, + // Token: 0x0400556A RID: 21866 + DxScoreMinus, + // Token: 0x0400556B RID: 21867 + FastLate, + // Token: 0x0400556C RID: 21868 + Judge, + // Token: 0x0400556D RID: 21869 + Begin = 0, + // Token: 0x0400556E RID: 21870 + End = 8, + // Token: 0x0400556F RID: 21871 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionOutframedisplayIDEnum.cs b/Assembly-CSharp/DB/OptionOutframedisplayIDEnum.cs new file mode 100644 index 0000000..8c96a02 --- /dev/null +++ b/Assembly-CSharp/DB/OptionOutframedisplayIDEnum.cs @@ -0,0 +1,148 @@ +using System; + +namespace DB +{ + // Token: 0x020007DA RID: 2010 + public static class OptionOutframedisplayIDEnum + { + // Token: 0x0600462D RID: 17965 RVA: 0x00173EE9 File Offset: 0x001730E9 + public static bool IsActive(this OptionOutframedisplayID self) + { + return self >= OptionOutframedisplayID.OFF && self < OptionOutframedisplayID.End && self > OptionOutframedisplayID.OFF; + } + + // Token: 0x0600462E RID: 17966 RVA: 0x00123DBF File Offset: 0x00122FBF + public static bool IsValid(this OptionOutframedisplayID self) + { + return self >= OptionOutframedisplayID.OFF && self < OptionOutframedisplayID.End; + } + + // Token: 0x0600462F RID: 17967 RVA: 0x001831B3 File Offset: 0x001823B3 + public static void Clamp(this OptionOutframedisplayID self) + { + if (self < OptionOutframedisplayID.OFF) + { + self = OptionOutframedisplayID.OFF; + return; + } + if (self >= (OptionOutframedisplayID)OptionOutframedisplayIDEnum.GetEnd()) + { + self = (OptionOutframedisplayID)OptionOutframedisplayIDEnum.GetEnd(); + } + } + + // Token: 0x06004630 RID: 17968 RVA: 0x001831CC File Offset: 0x001823CC + public static int GetEnd(this OptionOutframedisplayID self) + { + return OptionOutframedisplayIDEnum.GetEnd(); + } + + // Token: 0x06004631 RID: 17969 RVA: 0x001831D4 File Offset: 0x001823D4 + public static OptionOutframedisplayID FindID(string enumName) + { + for (OptionOutframedisplayID optionOutframedisplayID = OptionOutframedisplayID.OFF; optionOutframedisplayID < OptionOutframedisplayID.End; optionOutframedisplayID++) + { + if (optionOutframedisplayID.GetEnumName() == enumName) + { + return optionOutframedisplayID; + } + } + return OptionOutframedisplayID.Invalid; + } + + // Token: 0x06004632 RID: 17970 RVA: 0x001831FE File Offset: 0x001823FE + public static int GetEnd() + { + return OptionOutframedisplayIDEnum.records.Length; + } + + // Token: 0x06004633 RID: 17971 RVA: 0x00183207 File Offset: 0x00182407 + public static int GetEnumValue(this OptionOutframedisplayID self) + { + if (self.IsValid()) + { + return OptionOutframedisplayIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004634 RID: 17972 RVA: 0x0018321F File Offset: 0x0018241F + public static string GetEnumName(this OptionOutframedisplayID self) + { + if (self.IsValid()) + { + return OptionOutframedisplayIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004635 RID: 17973 RVA: 0x0018323B File Offset: 0x0018243B + public static string GetName(this OptionOutframedisplayID self) + { + if (self.IsValid()) + { + return OptionOutframedisplayIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004636 RID: 17974 RVA: 0x00183257 File Offset: 0x00182457 + public static string GetNameEx(this OptionOutframedisplayID self) + { + if (self.IsValid()) + { + return OptionOutframedisplayIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004637 RID: 17975 RVA: 0x00183273 File Offset: 0x00182473 + public static string GetDetail(this OptionOutframedisplayID self) + { + if (self.IsValid()) + { + return OptionOutframedisplayIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004638 RID: 17976 RVA: 0x0018328F File Offset: 0x0018248F + public static string GetDetailEx(this OptionOutframedisplayID self) + { + if (self.IsValid()) + { + return OptionOutframedisplayIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004639 RID: 17977 RVA: 0x001832AB File Offset: 0x001824AB + public static string GetFilePath(this OptionOutframedisplayID self) + { + if (self.IsValid()) + { + return OptionOutframedisplayIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x0600463A RID: 17978 RVA: 0x001832C7 File Offset: 0x001824C7 + public static bool IsDefault(this OptionOutframedisplayID self) + { + return self.IsValid() && OptionOutframedisplayIDEnum.records[(int)self].isDefault; + } + + // Token: 0x04005578 RID: 21880 + private static readonly OptionOutframedisplayTableRecord[] records = new OptionOutframedisplayTableRecord[] + { + new OptionOutframedisplayTableRecord(0, "OFF", "关", "", "", "", "UI_OPT_F_34_01", 0), + new OptionOutframedisplayTableRecord(1, "AchievementPlus", "达成率(+型)", "", "", "", "UI_OPT_F_34_02", 1), + new OptionOutframedisplayTableRecord(2, "AchievementMinus1", "达成率(-型1)", "", "", "", "UI_OPT_F_34_03", 0), + new OptionOutframedisplayTableRecord(3, "AchievementMinus2", "达成率(-型2)", "", "", "", "UI_OPT_F_34_04", 0), + new OptionOutframedisplayTableRecord(4, "DxScorePlus", "DX分数(+型)", "", "", "", "UI_OPT_F_34_05", 0), + new OptionOutframedisplayTableRecord(5, "DxScoreMinus", "DX分数(-型)", "", "", "", "UI_OPT_F_34_06", 0), + new OptionOutframedisplayTableRecord(6, "FastLate", "快/慢", "", "", "", "UI_OPT_F_34_07", 0), + new OptionOutframedisplayTableRecord(7, "Judge", "判定细节", "", "", "", "UI_OPT_F_34_08", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionOutframedisplayTableRecord.cs b/Assembly-CSharp/DB/OptionOutframedisplayTableRecord.cs new file mode 100644 index 0000000..497a57b --- /dev/null +++ b/Assembly-CSharp/DB/OptionOutframedisplayTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007D9 RID: 2009 + public class OptionOutframedisplayTableRecord + { + // Token: 0x0600462B RID: 17963 RVA: 0x00003560 File Offset: 0x00002760 + public OptionOutframedisplayTableRecord() + { + } + + // Token: 0x0600462C RID: 17964 RVA: 0x00183160 File Offset: 0x00182360 + public OptionOutframedisplayTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x04005570 RID: 21872 + public int EnumValue; + + // Token: 0x04005571 RID: 21873 + public string EnumName; + + // Token: 0x04005572 RID: 21874 + public string Name; + + // Token: 0x04005573 RID: 21875 + public string NameEx; + + // Token: 0x04005574 RID: 21876 + public string Detail; + + // Token: 0x04005575 RID: 21877 + public string DetailEx; + + // Token: 0x04005576 RID: 21878 + public string FilePath; + + // Token: 0x04005577 RID: 21879 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionRootID.cs b/Assembly-CSharp/DB/OptionRootID.cs new file mode 100644 index 0000000..a4f7103 --- /dev/null +++ b/Assembly-CSharp/DB/OptionRootID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x020007DB RID: 2011 + public enum OptionRootID + { + // Token: 0x0400557A RID: 21882 + DefaultColorTag, + // Token: 0x0400557B RID: 21883 + NormalColorTag, + // Token: 0x0400557C RID: 21884 + Begin = 0, + // Token: 0x0400557D RID: 21885 + End = 2, + // Token: 0x0400557E RID: 21886 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionRootIDEnum.cs b/Assembly-CSharp/DB/OptionRootIDEnum.cs new file mode 100644 index 0000000..8c734b0 --- /dev/null +++ b/Assembly-CSharp/DB/OptionRootIDEnum.cs @@ -0,0 +1,96 @@ +using System; + +namespace DB +{ + // Token: 0x020007DD RID: 2013 + public static class OptionRootIDEnum + { + // Token: 0x0600463E RID: 17982 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this OptionRootID self) + { + return self >= OptionRootID.DefaultColorTag && self < OptionRootID.End && self > OptionRootID.DefaultColorTag; + } + + // Token: 0x0600463F RID: 17983 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this OptionRootID self) + { + return self >= OptionRootID.DefaultColorTag && self < OptionRootID.End; + } + + // Token: 0x06004640 RID: 17984 RVA: 0x00183455 File Offset: 0x00182655 + public static void Clamp(this OptionRootID self) + { + if (self < OptionRootID.DefaultColorTag) + { + self = OptionRootID.DefaultColorTag; + return; + } + if (self >= (OptionRootID)OptionRootIDEnum.GetEnd()) + { + self = (OptionRootID)OptionRootIDEnum.GetEnd(); + } + } + + // Token: 0x06004641 RID: 17985 RVA: 0x0018346E File Offset: 0x0018266E + public static int GetEnd(this OptionRootID self) + { + return OptionRootIDEnum.GetEnd(); + } + + // Token: 0x06004642 RID: 17986 RVA: 0x00183478 File Offset: 0x00182678 + public static OptionRootID FindID(string enumName) + { + for (OptionRootID optionRootID = OptionRootID.DefaultColorTag; optionRootID < OptionRootID.End; optionRootID++) + { + if (optionRootID.GetEnumName() == enumName) + { + return optionRootID; + } + } + return OptionRootID.Invalid; + } + + // Token: 0x06004643 RID: 17987 RVA: 0x001834A2 File Offset: 0x001826A2 + public static int GetEnd() + { + return OptionRootIDEnum.records.Length; + } + + // Token: 0x06004644 RID: 17988 RVA: 0x001834AB File Offset: 0x001826AB + public static int GetEnumValue(this OptionRootID self) + { + if (self.IsValid()) + { + return OptionRootIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004645 RID: 17989 RVA: 0x001834C3 File Offset: 0x001826C3 + public static string GetEnumName(this OptionRootID self) + { + if (self.IsValid()) + { + return OptionRootIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004646 RID: 17990 RVA: 0x001834DF File Offset: 0x001826DF + public static string GetName(this OptionRootID self) + { + if (self.IsValid()) + { + return OptionRootIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04005582 RID: 21890 + private static readonly OptionRootTableRecord[] records = new OptionRootTableRecord[] + { + new OptionRootTableRecord(0, "DefaultColorTag", "<#ffffff>"), + new OptionRootTableRecord(1, "NormalColorTag", "<#02f6ff>") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionRootTableRecord.cs b/Assembly-CSharp/DB/OptionRootTableRecord.cs new file mode 100644 index 0000000..52264e8 --- /dev/null +++ b/Assembly-CSharp/DB/OptionRootTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x020007DC RID: 2012 + public class OptionRootTableRecord + { + // Token: 0x0600463C RID: 17980 RVA: 0x00003560 File Offset: 0x00002760 + public OptionRootTableRecord() + { + } + + // Token: 0x0600463D RID: 17981 RVA: 0x00183438 File Offset: 0x00182638 + public OptionRootTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x0400557F RID: 21887 + public int EnumValue; + + // Token: 0x04005580 RID: 21888 + public string EnumName; + + // Token: 0x04005581 RID: 21889 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/OptionSlideseID.cs b/Assembly-CSharp/DB/OptionSlideseID.cs new file mode 100644 index 0000000..f44df0a --- /dev/null +++ b/Assembly-CSharp/DB/OptionSlideseID.cs @@ -0,0 +1,77 @@ +using System; + +namespace DB +{ + // Token: 0x020007DE RID: 2014 + public enum OptionSlideseID + { + // Token: 0x04005584 RID: 21892 + Se1, + // Token: 0x04005585 RID: 21893 + Se2, + // Token: 0x04005586 RID: 21894 + Se4, + // Token: 0x04005587 RID: 21895 + Se10, + // Token: 0x04005588 RID: 21896 + Se12, + // Token: 0x04005589 RID: 21897 + Se32, + // Token: 0x0400558A RID: 21898 + Se17, + // Token: 0x0400558B RID: 21899 + Se18, + // Token: 0x0400558C RID: 21900 + Se26, + // Token: 0x0400558D RID: 21901 + Se9, + // Token: 0x0400558E RID: 21902 + Se8, + // Token: 0x0400558F RID: 21903 + Se38, + // Token: 0x04005590 RID: 21904 + Se39, + // Token: 0x04005591 RID: 21905 + Se40, + // Token: 0x04005592 RID: 21906 + Se13, + // Token: 0x04005593 RID: 21907 + Se41, + // Token: 0x04005594 RID: 21908 + Se11, + // Token: 0x04005595 RID: 21909 + Se15, + // Token: 0x04005596 RID: 21910 + Se42, + // Token: 0x04005597 RID: 21911 + Se5, + // Token: 0x04005598 RID: 21912 + Se6, + // Token: 0x04005599 RID: 21913 + Se7, + // Token: 0x0400559A RID: 21914 + Se14, + // Token: 0x0400559B RID: 21915 + Se43, + // Token: 0x0400559C RID: 21916 + Se44, + // Token: 0x0400559D RID: 21917 + Se45, + // Token: 0x0400559E RID: 21918 + Se46, + // Token: 0x0400559F RID: 21919 + Se47, + // Token: 0x040055A0 RID: 21920 + Se48, + // Token: 0x040055A1 RID: 21921 + Se49, + // Token: 0x040055A2 RID: 21922 + Se50, + // Token: 0x040055A3 RID: 21923 + Begin = 0, + // Token: 0x040055A4 RID: 21924 + End = 31, + // Token: 0x040055A5 RID: 21925 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionSlideseIDEnum.cs b/Assembly-CSharp/DB/OptionSlideseIDEnum.cs new file mode 100644 index 0000000..50d81e5 --- /dev/null +++ b/Assembly-CSharp/DB/OptionSlideseIDEnum.cs @@ -0,0 +1,181 @@ +using System; + +namespace DB +{ + // Token: 0x020007E0 RID: 2016 + public static class OptionSlideseIDEnum + { + // Token: 0x0600464A RID: 17994 RVA: 0x00177582 File Offset: 0x00176782 + public static bool IsActive(this OptionSlideseID self) + { + return self >= OptionSlideseID.Se1 && self < OptionSlideseID.End && self > OptionSlideseID.Se1; + } + + // Token: 0x0600464B RID: 17995 RVA: 0x00177593 File Offset: 0x00176793 + public static bool IsValid(this OptionSlideseID self) + { + return self >= OptionSlideseID.Se1 && self < OptionSlideseID.End; + } + + // Token: 0x0600464C RID: 17996 RVA: 0x0018358B File Offset: 0x0018278B + public static void Clamp(this OptionSlideseID self) + { + if (self < OptionSlideseID.Se1) + { + self = OptionSlideseID.Se1; + return; + } + if (self >= (OptionSlideseID)OptionSlideseIDEnum.GetEnd()) + { + self = (OptionSlideseID)OptionSlideseIDEnum.GetEnd(); + } + } + + // Token: 0x0600464D RID: 17997 RVA: 0x001835A4 File Offset: 0x001827A4 + public static int GetEnd(this OptionSlideseID self) + { + return OptionSlideseIDEnum.GetEnd(); + } + + // Token: 0x0600464E RID: 17998 RVA: 0x001835AC File Offset: 0x001827AC + public static OptionSlideseID FindID(string enumName) + { + for (OptionSlideseID optionSlideseID = OptionSlideseID.Se1; optionSlideseID < OptionSlideseID.End; optionSlideseID++) + { + if (optionSlideseID.GetEnumName() == enumName) + { + return optionSlideseID; + } + } + return OptionSlideseID.Invalid; + } + + // Token: 0x0600464F RID: 17999 RVA: 0x001835D7 File Offset: 0x001827D7 + public static int GetEnd() + { + return OptionSlideseIDEnum.records.Length; + } + + // Token: 0x06004650 RID: 18000 RVA: 0x001835E0 File Offset: 0x001827E0 + public static int GetEnumValue(this OptionSlideseID self) + { + if (self.IsValid()) + { + return OptionSlideseIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004651 RID: 18001 RVA: 0x001835F8 File Offset: 0x001827F8 + public static string GetEnumName(this OptionSlideseID self) + { + if (self.IsValid()) + { + return OptionSlideseIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004652 RID: 18002 RVA: 0x00183614 File Offset: 0x00182814 + public static string GetName(this OptionSlideseID self) + { + if (self.IsValid()) + { + return OptionSlideseIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004653 RID: 18003 RVA: 0x00183630 File Offset: 0x00182830 + public static string GetNameEx(this OptionSlideseID self) + { + if (self.IsValid()) + { + return OptionSlideseIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004654 RID: 18004 RVA: 0x0018364C File Offset: 0x0018284C + public static string GetDetail(this OptionSlideseID self) + { + if (self.IsValid()) + { + return OptionSlideseIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004655 RID: 18005 RVA: 0x00183668 File Offset: 0x00182868 + public static string GetDetailEx(this OptionSlideseID self) + { + if (self.IsValid()) + { + return OptionSlideseIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004656 RID: 18006 RVA: 0x00183684 File Offset: 0x00182884 + public static string GetSeEnum(this OptionSlideseID self) + { + if (self.IsValid()) + { + return OptionSlideseIDEnum.records[(int)self].SeEnum; + } + return ""; + } + + // Token: 0x06004657 RID: 18007 RVA: 0x001836A0 File Offset: 0x001828A0 + public static bool IsDefault(this OptionSlideseID self) + { + return self.IsValid() && OptionSlideseIDEnum.records[(int)self].isDefault; + } + + // Token: 0x06004658 RID: 18008 RVA: 0x001836B8 File Offset: 0x001828B8 + public static string GetFilePath(this OptionSlideseID self) + { + if (self.IsValid()) + { + return OptionSlideseIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x040055AF RID: 21935 + private static readonly OptionSlideseTableRecord[] records = new OptionSlideseTableRecord[] + { + new OptionSlideseTableRecord(0, "Se1", "默认", "", "", "", "SE_GAME_SLIDE_000001", 1, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(1, "Se2", "犬", "", "", "", "SE_GAME_SLIDE_000002", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(2, "Se4", "刀", "", "", "", "SE_GAME_SLIDE_000004", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(3, "Se10", "铃鼓", "", "", "", "SE_GAME_SLIDE_000010", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(4, "Se12", "歌舞伎", "", "", "", "SE_GAME_SLIDE_000012", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(5, "Se32", "空手道", "", "", "", "SE_GAME_SLIDE_000032", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(6, "Se17", "中二节奏", "", "", "", "SE_GAME_SLIDE_000017", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(7, "Se18", "音击", "", "", "", "SE_GAME_SLIDE_000018", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(8, "Se26", "でらっくま", "", "", "", "SE_GAME_SLIDE_000026", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(9, "Se9", "はっぴー", "", "", "", "SE_GAME_SLIDE_000009", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(10, "Se8", "MI・TSU・YO・SHI", "", "", "", "SE_GAME_SLIDE_000008", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(11, "Se38", "maimai Ver.1.0", "", "", "", "SE_GAME_SLIDE_000038", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(12, "Se39", "洗衣祭2014 第1天", "", "", "", "SE_GAME_SLIDE_000039", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(13, "Se40", "洗衣祭2014 第2天", "", "", "", "SE_GAME_SLIDE_000040", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(14, "Se13", "SEGA", "", "", "", "SE_GAME_SLIDE_000013", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(15, "Se41", "SEGA SATURN", "", "", "", "SE_GAME_SLIDE_000041", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(16, "Se11", "DARTSLIVE", "", "", "", "SE_GAME_SLIDE_000011", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(17, "Se15", "DIVA 音效A", "", "", "", "SE_GAME_SLIDE_000015", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(18, "Se42", "DIVA 音效B", "", "", "", "SE_GAME_SLIDE_000042", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(19, "Se5", "SONIC(DASH)", "", "", "", "SE_GAME_SLIDE_000005", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(20, "Se6", "SONIC(GATE)", "", "", "", "SE_GAME_SLIDE_000006", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(21, "Se7", "PSO SOUND", "", "", "", "SE_GAME_SLIDE_000007", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(22, "Se14", "PUYOPUYO", "", "", "", "SE_GAME_SLIDE_000014", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(23, "Se43", "SAMBA DE AMIGO", "", "", "", "SE_GAME_SLIDE_000043", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(24, "Se44", "VIRTUAL-ON", "", "", "", "SE_GAME_SLIDE_000044", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(25, "Se45", "Virtua Fighter", "", "", "", "SE_GAME_SLIDE_000045", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(26, "Se46", "JACKY", "", "", "", "SE_GAME_SLIDE_000046", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(27, "Se47", "An×An", "", "", "", "SE_GAME_SLIDE_000047", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(28, "Se48", "Rub Rabbits", "", "", "", "SE_GAME_SLIDE_000048", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(29, "Se49", "CODE OF JOKER", "", "", "", "SE_GAME_SLIDE_000049", 0, "UI_OPT_E_24_01"), + new OptionSlideseTableRecord(30, "Se50", "H×T 声呐", "", "", "", "SE_GAME_SLIDE_000050", 0, "UI_OPT_E_24_01") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionSlideseTableRecord.cs b/Assembly-CSharp/DB/OptionSlideseTableRecord.cs new file mode 100644 index 0000000..0a7561b --- /dev/null +++ b/Assembly-CSharp/DB/OptionSlideseTableRecord.cs @@ -0,0 +1,54 @@ +using System; + +namespace DB +{ + // Token: 0x020007DF RID: 2015 + public class OptionSlideseTableRecord + { + // Token: 0x06004648 RID: 17992 RVA: 0x00003560 File Offset: 0x00002760 + public OptionSlideseTableRecord() + { + } + + // Token: 0x06004649 RID: 17993 RVA: 0x00183530 File Offset: 0x00182730 + public OptionSlideseTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string SeEnum, int isDefault, string FilePath) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.SeEnum = SeEnum; + this.isDefault = isDefault != 0; + this.FilePath = FilePath; + } + + // Token: 0x040055A6 RID: 21926 + public int EnumValue; + + // Token: 0x040055A7 RID: 21927 + public string EnumName; + + // Token: 0x040055A8 RID: 21928 + public string Name; + + // Token: 0x040055A9 RID: 21929 + public string NameEx; + + // Token: 0x040055AA RID: 21930 + public string Detail; + + // Token: 0x040055AB RID: 21931 + public string DetailEx; + + // Token: 0x040055AC RID: 21932 + public string SeEnum; + + // Token: 0x040055AD RID: 21933 + public bool isDefault; + + // Token: 0x040055AE RID: 21934 + public string FilePath; + } +} diff --git a/Assembly-CSharp/DB/OptionSlidesizeID.cs b/Assembly-CSharp/DB/OptionSlidesizeID.cs new file mode 100644 index 0000000..6538faa --- /dev/null +++ b/Assembly-CSharp/DB/OptionSlidesizeID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x020007E1 RID: 2017 + public enum OptionSlidesizeID + { + // Token: 0x040055B1 RID: 21937 + Small, + // Token: 0x040055B2 RID: 21938 + Middle, + // Token: 0x040055B3 RID: 21939 + Big, + // Token: 0x040055B4 RID: 21940 + Begin = 0, + // Token: 0x040055B5 RID: 21941 + End = 3, + // Token: 0x040055B6 RID: 21942 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionSlidesizeIDEnum.cs b/Assembly-CSharp/DB/OptionSlidesizeIDEnum.cs new file mode 100644 index 0000000..5eebb60 --- /dev/null +++ b/Assembly-CSharp/DB/OptionSlidesizeIDEnum.cs @@ -0,0 +1,153 @@ +using System; + +namespace DB +{ + // Token: 0x020007E3 RID: 2019 + public static class OptionSlidesizeIDEnum + { + // Token: 0x0600465C RID: 18012 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this OptionSlidesizeID self) + { + return self >= OptionSlidesizeID.Small && self < OptionSlidesizeID.End && self > OptionSlidesizeID.Small; + } + + // Token: 0x0600465D RID: 18013 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this OptionSlidesizeID self) + { + return self >= OptionSlidesizeID.Small && self < OptionSlidesizeID.End; + } + + // Token: 0x0600465E RID: 18014 RVA: 0x00183CE8 File Offset: 0x00182EE8 + public static void Clamp(this OptionSlidesizeID self) + { + if (self < OptionSlidesizeID.Small) + { + self = OptionSlidesizeID.Small; + return; + } + if (self >= (OptionSlidesizeID)OptionSlidesizeIDEnum.GetEnd()) + { + self = (OptionSlidesizeID)OptionSlidesizeIDEnum.GetEnd(); + } + } + + // Token: 0x0600465F RID: 18015 RVA: 0x00183D01 File Offset: 0x00182F01 + public static int GetEnd(this OptionSlidesizeID self) + { + return OptionSlidesizeIDEnum.GetEnd(); + } + + // Token: 0x06004660 RID: 18016 RVA: 0x00183D08 File Offset: 0x00182F08 + public static OptionSlidesizeID FindID(string enumName) + { + for (OptionSlidesizeID optionSlidesizeID = OptionSlidesizeID.Small; optionSlidesizeID < OptionSlidesizeID.End; optionSlidesizeID++) + { + if (optionSlidesizeID.GetEnumName() == enumName) + { + return optionSlidesizeID; + } + } + return OptionSlidesizeID.Invalid; + } + + // Token: 0x06004661 RID: 18017 RVA: 0x00183D32 File Offset: 0x00182F32 + public static int GetEnd() + { + return OptionSlidesizeIDEnum.records.Length; + } + + // Token: 0x06004662 RID: 18018 RVA: 0x00183D3B File Offset: 0x00182F3B + public static int GetEnumValue(this OptionSlidesizeID self) + { + if (self.IsValid()) + { + return OptionSlidesizeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004663 RID: 18019 RVA: 0x00183D53 File Offset: 0x00182F53 + public static string GetEnumName(this OptionSlidesizeID self) + { + if (self.IsValid()) + { + return OptionSlidesizeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004664 RID: 18020 RVA: 0x00183D6F File Offset: 0x00182F6F + public static string GetName(this OptionSlidesizeID self) + { + if (self.IsValid()) + { + return OptionSlidesizeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004665 RID: 18021 RVA: 0x00183D8B File Offset: 0x00182F8B + public static string GetNameEx(this OptionSlidesizeID self) + { + if (self.IsValid()) + { + return OptionSlidesizeIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004666 RID: 18022 RVA: 0x00183DA7 File Offset: 0x00182FA7 + public static string GetDetail(this OptionSlidesizeID self) + { + if (self.IsValid()) + { + return OptionSlidesizeIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004667 RID: 18023 RVA: 0x00183DC3 File Offset: 0x00182FC3 + public static string GetDetailEx(this OptionSlidesizeID self) + { + if (self.IsValid()) + { + return OptionSlidesizeIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004668 RID: 18024 RVA: 0x00183DDF File Offset: 0x00182FDF + public static string GetFilePath(this OptionSlidesizeID self) + { + if (self.IsValid()) + { + return OptionSlidesizeIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x06004669 RID: 18025 RVA: 0x00183DFB File Offset: 0x00182FFB + public static bool IsDefault(this OptionSlidesizeID self) + { + return self.IsValid() && OptionSlidesizeIDEnum.records[(int)self].isDefault; + } + + // Token: 0x0600466A RID: 18026 RVA: 0x00183E13 File Offset: 0x00183013 + public static float GetValue(this OptionSlidesizeID self) + { + if (self.IsValid()) + { + return OptionSlidesizeIDEnum.records[(int)self].Value; + } + return 0f; + } + + // Token: 0x040055C0 RID: 21952 + private static readonly OptionSlidesizeTableRecord[] records = new OptionSlidesizeTableRecord[] + { + new OptionSlidesizeTableRecord(0, "Small", "細い", "", "", "", "", 0, 0.7f), + new OptionSlidesizeTableRecord(1, "Middle", "ふつう", "", "", "", "", 1, 1f), + new OptionSlidesizeTableRecord(2, "Big", "太い", "", "", "", "", 0, 1.3f) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionSlidesizeTableRecord.cs b/Assembly-CSharp/DB/OptionSlidesizeTableRecord.cs new file mode 100644 index 0000000..1fae190 --- /dev/null +++ b/Assembly-CSharp/DB/OptionSlidesizeTableRecord.cs @@ -0,0 +1,54 @@ +using System; + +namespace DB +{ + // Token: 0x020007E2 RID: 2018 + public class OptionSlidesizeTableRecord + { + // Token: 0x0600465A RID: 18010 RVA: 0x00003560 File Offset: 0x00002760 + public OptionSlidesizeTableRecord() + { + } + + // Token: 0x0600465B RID: 18011 RVA: 0x00183C8C File Offset: 0x00182E8C + public OptionSlidesizeTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault, float Value) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + this.Value = Value; + } + + // Token: 0x040055B7 RID: 21943 + public int EnumValue; + + // Token: 0x040055B8 RID: 21944 + public string EnumName; + + // Token: 0x040055B9 RID: 21945 + public string Name; + + // Token: 0x040055BA RID: 21946 + public string NameEx; + + // Token: 0x040055BB RID: 21947 + public string Detail; + + // Token: 0x040055BC RID: 21948 + public string DetailEx; + + // Token: 0x040055BD RID: 21949 + public string FilePath; + + // Token: 0x040055BE RID: 21950 + public bool isDefault; + + // Token: 0x040055BF RID: 21951 + public float Value; + } +} diff --git a/Assembly-CSharp/DB/OptionSlidespeedID.cs b/Assembly-CSharp/DB/OptionSlidespeedID.cs new file mode 100644 index 0000000..17c2b0c --- /dev/null +++ b/Assembly-CSharp/DB/OptionSlidespeedID.cs @@ -0,0 +1,57 @@ +using System; + +namespace DB +{ + // Token: 0x020007E4 RID: 2020 + public enum OptionSlidespeedID + { + // Token: 0x040055C2 RID: 21954 + Fast1_0, + // Token: 0x040055C3 RID: 21955 + Fast0_9, + // Token: 0x040055C4 RID: 21956 + Fast0_8, + // Token: 0x040055C5 RID: 21957 + Fast0_7, + // Token: 0x040055C6 RID: 21958 + Fast0_6, + // Token: 0x040055C7 RID: 21959 + Fast0_5, + // Token: 0x040055C8 RID: 21960 + Fast0_4, + // Token: 0x040055C9 RID: 21961 + Fast0_3, + // Token: 0x040055CA RID: 21962 + Fast0_2, + // Token: 0x040055CB RID: 21963 + Fast0_1, + // Token: 0x040055CC RID: 21964 + Normal, + // Token: 0x040055CD RID: 21965 + Late0_1, + // Token: 0x040055CE RID: 21966 + Late0_2, + // Token: 0x040055CF RID: 21967 + Late0_3, + // Token: 0x040055D0 RID: 21968 + Late0_4, + // Token: 0x040055D1 RID: 21969 + Late0_5, + // Token: 0x040055D2 RID: 21970 + Late0_6, + // Token: 0x040055D3 RID: 21971 + Late0_7, + // Token: 0x040055D4 RID: 21972 + Late0_8, + // Token: 0x040055D5 RID: 21973 + Late0_9, + // Token: 0x040055D6 RID: 21974 + Late1_0, + // Token: 0x040055D7 RID: 21975 + Begin = 0, + // Token: 0x040055D8 RID: 21976 + End = 21, + // Token: 0x040055D9 RID: 21977 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionSlidespeedIDEnum.cs b/Assembly-CSharp/DB/OptionSlidespeedIDEnum.cs new file mode 100644 index 0000000..dcd67b7 --- /dev/null +++ b/Assembly-CSharp/DB/OptionSlidespeedIDEnum.cs @@ -0,0 +1,161 @@ +using System; + +namespace DB +{ + // Token: 0x020007E6 RID: 2022 + public static class OptionSlidespeedIDEnum + { + // Token: 0x0600466E RID: 18030 RVA: 0x00183F23 File Offset: 0x00183123 + public static bool IsActive(this OptionSlidespeedID self) + { + return self >= OptionSlidespeedID.Fast1_0 && self < OptionSlidespeedID.End && self > OptionSlidespeedID.Fast1_0; + } + + // Token: 0x0600466F RID: 18031 RVA: 0x00183F34 File Offset: 0x00183134 + public static bool IsValid(this OptionSlidespeedID self) + { + return self >= OptionSlidespeedID.Fast1_0 && self < OptionSlidespeedID.End; + } + + // Token: 0x06004670 RID: 18032 RVA: 0x00183F41 File Offset: 0x00183141 + public static void Clamp(this OptionSlidespeedID self) + { + if (self < OptionSlidespeedID.Fast1_0) + { + self = OptionSlidespeedID.Fast1_0; + return; + } + if (self >= (OptionSlidespeedID)OptionSlidespeedIDEnum.GetEnd()) + { + self = (OptionSlidespeedID)OptionSlidespeedIDEnum.GetEnd(); + } + } + + // Token: 0x06004671 RID: 18033 RVA: 0x00183F5A File Offset: 0x0018315A + public static int GetEnd(this OptionSlidespeedID self) + { + return OptionSlidespeedIDEnum.GetEnd(); + } + + // Token: 0x06004672 RID: 18034 RVA: 0x00183F64 File Offset: 0x00183164 + public static OptionSlidespeedID FindID(string enumName) + { + for (OptionSlidespeedID optionSlidespeedID = OptionSlidespeedID.Fast1_0; optionSlidespeedID < OptionSlidespeedID.End; optionSlidespeedID++) + { + if (optionSlidespeedID.GetEnumName() == enumName) + { + return optionSlidespeedID; + } + } + return OptionSlidespeedID.Invalid; + } + + // Token: 0x06004673 RID: 18035 RVA: 0x00183F8F File Offset: 0x0018318F + public static int GetEnd() + { + return OptionSlidespeedIDEnum.records.Length; + } + + // Token: 0x06004674 RID: 18036 RVA: 0x00183F98 File Offset: 0x00183198 + public static int GetEnumValue(this OptionSlidespeedID self) + { + if (self.IsValid()) + { + return OptionSlidespeedIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004675 RID: 18037 RVA: 0x00183FB0 File Offset: 0x001831B0 + public static string GetEnumName(this OptionSlidespeedID self) + { + if (self.IsValid()) + { + return OptionSlidespeedIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004676 RID: 18038 RVA: 0x00183FCC File Offset: 0x001831CC + public static string GetName(this OptionSlidespeedID self) + { + if (self.IsValid()) + { + return OptionSlidespeedIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004677 RID: 18039 RVA: 0x00183FE8 File Offset: 0x001831E8 + public static string GetNameEx(this OptionSlidespeedID self) + { + if (self.IsValid()) + { + return OptionSlidespeedIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004678 RID: 18040 RVA: 0x00184004 File Offset: 0x00183204 + public static string GetDetail(this OptionSlidespeedID self) + { + if (self.IsValid()) + { + return OptionSlidespeedIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004679 RID: 18041 RVA: 0x00184020 File Offset: 0x00183220 + public static string GetDetailEx(this OptionSlidespeedID self) + { + if (self.IsValid()) + { + return OptionSlidespeedIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x0600467A RID: 18042 RVA: 0x0018403C File Offset: 0x0018323C + public static string GetFilePath(this OptionSlidespeedID self) + { + if (self.IsValid()) + { + return OptionSlidespeedIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x0600467B RID: 18043 RVA: 0x00184058 File Offset: 0x00183258 + public static bool IsDefault(this OptionSlidespeedID self) + { + return self.IsValid() && OptionSlidespeedIDEnum.records[(int)self].isDefault; + } + + // Token: 0x040055E2 RID: 21986 + private static readonly OptionSlidespeedTableRecord[] records = new OptionSlidespeedTableRecord[] + { + new OptionSlidespeedTableRecord(0, "Fast1_0", "-1.0", "-1.0", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(1, "Fast0_9", "-0.9", "-0.9", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(2, "Fast0_8", "-0.8", "-0.8", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(3, "Fast0_7", "-0.7", "-0.7", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(4, "Fast0_6", "-0.6", "-0.6", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(5, "Fast0_5", "-0.5", "-0.5", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(6, "Fast0_4", "-0.4", "-0.4", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(7, "Fast0_3", "-0.3", "-0.3", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(8, "Fast0_2", "-0.2", "-0.2", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(9, "Fast0_1", "-0.1", "-0.1", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(10, "Normal", "0.0", "0.0", "", "", "UI_OPT_A_03_01", 1), + new OptionSlidespeedTableRecord(11, "Late0_1", "0.1", "0.1", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(12, "Late0_2", "0.2", "0.2", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(13, "Late0_3", "0.3", "0.3", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(14, "Late0_4", "0.4", "0.4", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(15, "Late0_5", "0.5", "0.5", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(16, "Late0_6", "0.6", "0.6", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(17, "Late0_7", "0.7", "0.7", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(18, "Late0_8", "0.8", "0.8", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(19, "Late0_9", "0.9", "0.9", "", "", "UI_OPT_A_03_01", 0), + new OptionSlidespeedTableRecord(20, "Late1_0", "1.0", "1.0", "", "", "UI_OPT_A_03_01", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionSlidespeedTableRecord.cs b/Assembly-CSharp/DB/OptionSlidespeedTableRecord.cs new file mode 100644 index 0000000..3f89d2b --- /dev/null +++ b/Assembly-CSharp/DB/OptionSlidespeedTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007E5 RID: 2021 + public class OptionSlidespeedTableRecord + { + // Token: 0x0600466C RID: 18028 RVA: 0x00003560 File Offset: 0x00002760 + public OptionSlidespeedTableRecord() + { + } + + // Token: 0x0600466D RID: 18029 RVA: 0x00183ED0 File Offset: 0x001830D0 + public OptionSlidespeedTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x040055DA RID: 21978 + public int EnumValue; + + // Token: 0x040055DB RID: 21979 + public string EnumName; + + // Token: 0x040055DC RID: 21980 + public string Name; + + // Token: 0x040055DD RID: 21981 + public string NameEx; + + // Token: 0x040055DE RID: 21982 + public string Detail; + + // Token: 0x040055DF RID: 21983 + public string DetailEx; + + // Token: 0x040055E0 RID: 21984 + public string FilePath; + + // Token: 0x040055E1 RID: 21985 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionStarrotateID.cs b/Assembly-CSharp/DB/OptionStarrotateID.cs new file mode 100644 index 0000000..de67dff --- /dev/null +++ b/Assembly-CSharp/DB/OptionStarrotateID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x020007E7 RID: 2023 + public enum OptionStarrotateID + { + // Token: 0x040055E4 RID: 21988 + Off, + // Token: 0x040055E5 RID: 21989 + On, + // Token: 0x040055E6 RID: 21990 + Begin = 0, + // Token: 0x040055E7 RID: 21991 + End = 2, + // Token: 0x040055E8 RID: 21992 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionStarrotateIDEnum.cs b/Assembly-CSharp/DB/OptionStarrotateIDEnum.cs new file mode 100644 index 0000000..f912b3a --- /dev/null +++ b/Assembly-CSharp/DB/OptionStarrotateIDEnum.cs @@ -0,0 +1,142 @@ +using System; + +namespace DB +{ + // Token: 0x020007E9 RID: 2025 + public static class OptionStarrotateIDEnum + { + // Token: 0x0600467F RID: 18047 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this OptionStarrotateID self) + { + return self >= OptionStarrotateID.Off && self < OptionStarrotateID.End && self > OptionStarrotateID.Off; + } + + // Token: 0x06004680 RID: 18048 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this OptionStarrotateID self) + { + return self >= OptionStarrotateID.Off && self < OptionStarrotateID.End; + } + + // Token: 0x06004681 RID: 18049 RVA: 0x0018443F File Offset: 0x0018363F + public static void Clamp(this OptionStarrotateID self) + { + if (self < OptionStarrotateID.Off) + { + self = OptionStarrotateID.Off; + return; + } + if (self >= (OptionStarrotateID)OptionStarrotateIDEnum.GetEnd()) + { + self = (OptionStarrotateID)OptionStarrotateIDEnum.GetEnd(); + } + } + + // Token: 0x06004682 RID: 18050 RVA: 0x00184458 File Offset: 0x00183658 + public static int GetEnd(this OptionStarrotateID self) + { + return OptionStarrotateIDEnum.GetEnd(); + } + + // Token: 0x06004683 RID: 18051 RVA: 0x00184460 File Offset: 0x00183660 + public static OptionStarrotateID FindID(string enumName) + { + for (OptionStarrotateID optionStarrotateID = OptionStarrotateID.Off; optionStarrotateID < OptionStarrotateID.End; optionStarrotateID++) + { + if (optionStarrotateID.GetEnumName() == enumName) + { + return optionStarrotateID; + } + } + return OptionStarrotateID.Invalid; + } + + // Token: 0x06004684 RID: 18052 RVA: 0x0018448A File Offset: 0x0018368A + public static int GetEnd() + { + return OptionStarrotateIDEnum.records.Length; + } + + // Token: 0x06004685 RID: 18053 RVA: 0x00184493 File Offset: 0x00183693 + public static int GetEnumValue(this OptionStarrotateID self) + { + if (self.IsValid()) + { + return OptionStarrotateIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004686 RID: 18054 RVA: 0x001844AB File Offset: 0x001836AB + public static string GetEnumName(this OptionStarrotateID self) + { + if (self.IsValid()) + { + return OptionStarrotateIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004687 RID: 18055 RVA: 0x001844C7 File Offset: 0x001836C7 + public static string GetName(this OptionStarrotateID self) + { + if (self.IsValid()) + { + return OptionStarrotateIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004688 RID: 18056 RVA: 0x001844E3 File Offset: 0x001836E3 + public static string GetNameEx(this OptionStarrotateID self) + { + if (self.IsValid()) + { + return OptionStarrotateIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004689 RID: 18057 RVA: 0x001844FF File Offset: 0x001836FF + public static string GetDetail(this OptionStarrotateID self) + { + if (self.IsValid()) + { + return OptionStarrotateIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x0600468A RID: 18058 RVA: 0x0018451B File Offset: 0x0018371B + public static string GetDetailEx(this OptionStarrotateID self) + { + if (self.IsValid()) + { + return OptionStarrotateIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x0600468B RID: 18059 RVA: 0x00184537 File Offset: 0x00183737 + public static string GetFilePath(this OptionStarrotateID self) + { + if (self.IsValid()) + { + return OptionStarrotateIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x0600468C RID: 18060 RVA: 0x00184553 File Offset: 0x00183753 + public static bool IsDefault(this OptionStarrotateID self) + { + return self.IsValid() && OptionStarrotateIDEnum.records[(int)self].isDefault; + } + + // Token: 0x040055F1 RID: 22001 + private static readonly OptionStarrotateTableRecord[] records = new OptionStarrotateTableRecord[] + { + new OptionStarrotateTableRecord(0, "Off", "关", "", "☆不旋转", "", "UI_OPT_B_08_01", 0), + new OptionStarrotateTableRecord(1, "On", "开", "", "☆会旋转", "", "UI_OPT_B_08_02", 1) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionStarrotateTableRecord.cs b/Assembly-CSharp/DB/OptionStarrotateTableRecord.cs new file mode 100644 index 0000000..ccbab0b --- /dev/null +++ b/Assembly-CSharp/DB/OptionStarrotateTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007E8 RID: 2024 + public class OptionStarrotateTableRecord + { + // Token: 0x0600467D RID: 18045 RVA: 0x00003560 File Offset: 0x00002760 + public OptionStarrotateTableRecord() + { + } + + // Token: 0x0600467E RID: 18046 RVA: 0x001843EC File Offset: 0x001835EC + public OptionStarrotateTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x040055E9 RID: 21993 + public int EnumValue; + + // Token: 0x040055EA RID: 21994 + public string EnumName; + + // Token: 0x040055EB RID: 21995 + public string Name; + + // Token: 0x040055EC RID: 21996 + public string NameEx; + + // Token: 0x040055ED RID: 21997 + public string Detail; + + // Token: 0x040055EE RID: 21998 + public string DetailEx; + + // Token: 0x040055EF RID: 21999 + public string FilePath; + + // Token: 0x040055F0 RID: 22000 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionStartypeID.cs b/Assembly-CSharp/DB/OptionStartypeID.cs new file mode 100644 index 0000000..f75b40d --- /dev/null +++ b/Assembly-CSharp/DB/OptionStartypeID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x020007EA RID: 2026 + public enum OptionStartypeID + { + // Token: 0x040055F3 RID: 22003 + Blue, + // Token: 0x040055F4 RID: 22004 + Pink, + // Token: 0x040055F5 RID: 22005 + Begin = 0, + // Token: 0x040055F6 RID: 22006 + End = 2, + // Token: 0x040055F7 RID: 22007 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionStartypeIDEnum.cs b/Assembly-CSharp/DB/OptionStartypeIDEnum.cs new file mode 100644 index 0000000..95face2 --- /dev/null +++ b/Assembly-CSharp/DB/OptionStartypeIDEnum.cs @@ -0,0 +1,142 @@ +using System; + +namespace DB +{ + // Token: 0x020007EC RID: 2028 + public static class OptionStartypeIDEnum + { + // Token: 0x06004690 RID: 18064 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this OptionStartypeID self) + { + return self >= OptionStartypeID.Blue && self < OptionStartypeID.End && self > OptionStartypeID.Blue; + } + + // Token: 0x06004691 RID: 18065 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this OptionStartypeID self) + { + return self >= OptionStartypeID.Blue && self < OptionStartypeID.End; + } + + // Token: 0x06004692 RID: 18066 RVA: 0x00184627 File Offset: 0x00183827 + public static void Clamp(this OptionStartypeID self) + { + if (self < OptionStartypeID.Blue) + { + self = OptionStartypeID.Blue; + return; + } + if (self >= (OptionStartypeID)OptionStartypeIDEnum.GetEnd()) + { + self = (OptionStartypeID)OptionStartypeIDEnum.GetEnd(); + } + } + + // Token: 0x06004693 RID: 18067 RVA: 0x00184640 File Offset: 0x00183840 + public static int GetEnd(this OptionStartypeID self) + { + return OptionStartypeIDEnum.GetEnd(); + } + + // Token: 0x06004694 RID: 18068 RVA: 0x00184648 File Offset: 0x00183848 + public static OptionStartypeID FindID(string enumName) + { + for (OptionStartypeID optionStartypeID = OptionStartypeID.Blue; optionStartypeID < OptionStartypeID.End; optionStartypeID++) + { + if (optionStartypeID.GetEnumName() == enumName) + { + return optionStartypeID; + } + } + return OptionStartypeID.Invalid; + } + + // Token: 0x06004695 RID: 18069 RVA: 0x00184672 File Offset: 0x00183872 + public static int GetEnd() + { + return OptionStartypeIDEnum.records.Length; + } + + // Token: 0x06004696 RID: 18070 RVA: 0x0018467B File Offset: 0x0018387B + public static int GetEnumValue(this OptionStartypeID self) + { + if (self.IsValid()) + { + return OptionStartypeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004697 RID: 18071 RVA: 0x00184693 File Offset: 0x00183893 + public static string GetEnumName(this OptionStartypeID self) + { + if (self.IsValid()) + { + return OptionStartypeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004698 RID: 18072 RVA: 0x001846AF File Offset: 0x001838AF + public static string GetName(this OptionStartypeID self) + { + if (self.IsValid()) + { + return OptionStartypeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004699 RID: 18073 RVA: 0x001846CB File Offset: 0x001838CB + public static string GetNameEx(this OptionStartypeID self) + { + if (self.IsValid()) + { + return OptionStartypeIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x0600469A RID: 18074 RVA: 0x001846E7 File Offset: 0x001838E7 + public static string GetDetail(this OptionStartypeID self) + { + if (self.IsValid()) + { + return OptionStartypeIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x0600469B RID: 18075 RVA: 0x00184703 File Offset: 0x00183903 + public static string GetDetailEx(this OptionStartypeID self) + { + if (self.IsValid()) + { + return OptionStartypeIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x0600469C RID: 18076 RVA: 0x0018471F File Offset: 0x0018391F + public static string GetFilePath(this OptionStartypeID self) + { + if (self.IsValid()) + { + return OptionStartypeIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x0600469D RID: 18077 RVA: 0x0018473B File Offset: 0x0018393B + public static bool IsDefault(this OptionStartypeID self) + { + return self.IsValid() && OptionStartypeIDEnum.records[(int)self].isDefault; + } + + // Token: 0x04005600 RID: 22016 + private static readonly OptionStartypeTableRecord[] records = new OptionStartypeTableRecord[] + { + new OptionStartypeTableRecord(0, "Blue", "蓝色", "", "", "", "UI_OPT_D_21_01", 1), + new OptionStartypeTableRecord(1, "Pink", "粉红色", "", "", "", "UI_OPT_D_21_02", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionStartypeTableRecord.cs b/Assembly-CSharp/DB/OptionStartypeTableRecord.cs new file mode 100644 index 0000000..1106ec1 --- /dev/null +++ b/Assembly-CSharp/DB/OptionStartypeTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007EB RID: 2027 + public class OptionStartypeTableRecord + { + // Token: 0x0600468E RID: 18062 RVA: 0x00003560 File Offset: 0x00002760 + public OptionStartypeTableRecord() + { + } + + // Token: 0x0600468F RID: 18063 RVA: 0x001845D4 File Offset: 0x001837D4 + public OptionStartypeTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x040055F8 RID: 22008 + public int EnumValue; + + // Token: 0x040055F9 RID: 22009 + public string EnumName; + + // Token: 0x040055FA RID: 22010 + public string Name; + + // Token: 0x040055FB RID: 22011 + public string NameEx; + + // Token: 0x040055FC RID: 22012 + public string Detail; + + // Token: 0x040055FD RID: 22013 + public string DetailEx; + + // Token: 0x040055FE RID: 22014 + public string FilePath; + + // Token: 0x040055FF RID: 22015 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionSubmonAchiveID.cs b/Assembly-CSharp/DB/OptionSubmonAchiveID.cs new file mode 100644 index 0000000..69a431b --- /dev/null +++ b/Assembly-CSharp/DB/OptionSubmonAchiveID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x020007ED RID: 2029 + public enum OptionSubmonAchiveID + { + // Token: 0x04005602 RID: 22018 + AchivePlus, + // Token: 0x04005603 RID: 22019 + AchiveMinus, + // Token: 0x04005604 RID: 22020 + Begin = 0, + // Token: 0x04005605 RID: 22021 + End = 2, + // Token: 0x04005606 RID: 22022 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionSubmonAchiveIDEnum.cs b/Assembly-CSharp/DB/OptionSubmonAchiveIDEnum.cs new file mode 100644 index 0000000..5778b10 --- /dev/null +++ b/Assembly-CSharp/DB/OptionSubmonAchiveIDEnum.cs @@ -0,0 +1,142 @@ +using System; + +namespace DB +{ + // Token: 0x020007EF RID: 2031 + public static class OptionSubmonAchiveIDEnum + { + // Token: 0x060046A1 RID: 18081 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this OptionSubmonAchiveID self) + { + return self >= OptionSubmonAchiveID.AchivePlus && self < OptionSubmonAchiveID.End && self > OptionSubmonAchiveID.AchivePlus; + } + + // Token: 0x060046A2 RID: 18082 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this OptionSubmonAchiveID self) + { + return self >= OptionSubmonAchiveID.AchivePlus && self < OptionSubmonAchiveID.End; + } + + // Token: 0x060046A3 RID: 18083 RVA: 0x0018480F File Offset: 0x00183A0F + public static void Clamp(this OptionSubmonAchiveID self) + { + if (self < OptionSubmonAchiveID.AchivePlus) + { + self = OptionSubmonAchiveID.AchivePlus; + return; + } + if (self >= (OptionSubmonAchiveID)OptionSubmonAchiveIDEnum.GetEnd()) + { + self = (OptionSubmonAchiveID)OptionSubmonAchiveIDEnum.GetEnd(); + } + } + + // Token: 0x060046A4 RID: 18084 RVA: 0x00184828 File Offset: 0x00183A28 + public static int GetEnd(this OptionSubmonAchiveID self) + { + return OptionSubmonAchiveIDEnum.GetEnd(); + } + + // Token: 0x060046A5 RID: 18085 RVA: 0x00184830 File Offset: 0x00183A30 + public static OptionSubmonAchiveID FindID(string enumName) + { + for (OptionSubmonAchiveID optionSubmonAchiveID = OptionSubmonAchiveID.AchivePlus; optionSubmonAchiveID < OptionSubmonAchiveID.End; optionSubmonAchiveID++) + { + if (optionSubmonAchiveID.GetEnumName() == enumName) + { + return optionSubmonAchiveID; + } + } + return OptionSubmonAchiveID.Invalid; + } + + // Token: 0x060046A6 RID: 18086 RVA: 0x0018485A File Offset: 0x00183A5A + public static int GetEnd() + { + return OptionSubmonAchiveIDEnum.records.Length; + } + + // Token: 0x060046A7 RID: 18087 RVA: 0x00184863 File Offset: 0x00183A63 + public static int GetEnumValue(this OptionSubmonAchiveID self) + { + if (self.IsValid()) + { + return OptionSubmonAchiveIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060046A8 RID: 18088 RVA: 0x0018487B File Offset: 0x00183A7B + public static string GetEnumName(this OptionSubmonAchiveID self) + { + if (self.IsValid()) + { + return OptionSubmonAchiveIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060046A9 RID: 18089 RVA: 0x00184897 File Offset: 0x00183A97 + public static string GetName(this OptionSubmonAchiveID self) + { + if (self.IsValid()) + { + return OptionSubmonAchiveIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060046AA RID: 18090 RVA: 0x001848B3 File Offset: 0x00183AB3 + public static string GetNameEx(this OptionSubmonAchiveID self) + { + if (self.IsValid()) + { + return OptionSubmonAchiveIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060046AB RID: 18091 RVA: 0x001848CF File Offset: 0x00183ACF + public static string GetDetail(this OptionSubmonAchiveID self) + { + if (self.IsValid()) + { + return OptionSubmonAchiveIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060046AC RID: 18092 RVA: 0x001848EB File Offset: 0x00183AEB + public static string GetDetailEx(this OptionSubmonAchiveID self) + { + if (self.IsValid()) + { + return OptionSubmonAchiveIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060046AD RID: 18093 RVA: 0x00184907 File Offset: 0x00183B07 + public static string GetFilePath(this OptionSubmonAchiveID self) + { + if (self.IsValid()) + { + return OptionSubmonAchiveIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x060046AE RID: 18094 RVA: 0x00184923 File Offset: 0x00183B23 + public static bool IsDefault(this OptionSubmonAchiveID self) + { + return self.IsValid() && OptionSubmonAchiveIDEnum.records[(int)self].isDefault; + } + + // Token: 0x0400560F RID: 22031 + private static readonly OptionSubmonAchiveTableRecord[] records = new OptionSubmonAchiveTableRecord[] + { + new OptionSubmonAchiveTableRecord(0, "AchivePlus", "类型+", "", "", "", "UI_OPT_B_13_01", 1), + new OptionSubmonAchiveTableRecord(1, "AchiveMinus", "类型-", "", "", "", "UI_OPT_B_13_02", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionSubmonAchiveTableRecord.cs b/Assembly-CSharp/DB/OptionSubmonAchiveTableRecord.cs new file mode 100644 index 0000000..c6408c9 --- /dev/null +++ b/Assembly-CSharp/DB/OptionSubmonAchiveTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007EE RID: 2030 + public class OptionSubmonAchiveTableRecord + { + // Token: 0x0600469F RID: 18079 RVA: 0x00003560 File Offset: 0x00002760 + public OptionSubmonAchiveTableRecord() + { + } + + // Token: 0x060046A0 RID: 18080 RVA: 0x001847BC File Offset: 0x001839BC + public OptionSubmonAchiveTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x04005607 RID: 22023 + public int EnumValue; + + // Token: 0x04005608 RID: 22024 + public string EnumName; + + // Token: 0x04005609 RID: 22025 + public string Name; + + // Token: 0x0400560A RID: 22026 + public string NameEx; + + // Token: 0x0400560B RID: 22027 + public string Detail; + + // Token: 0x0400560C RID: 22028 + public string DetailEx; + + // Token: 0x0400560D RID: 22029 + public string FilePath; + + // Token: 0x0400560E RID: 22030 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionSubmonitorID.cs b/Assembly-CSharp/DB/OptionSubmonitorID.cs new file mode 100644 index 0000000..88f0470 --- /dev/null +++ b/Assembly-CSharp/DB/OptionSubmonitorID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x020007F0 RID: 2032 + public enum OptionSubmonitorID + { + // Token: 0x04005611 RID: 22033 + animation_type01, + // Token: 0x04005612 RID: 22034 + charactor_only, + // Token: 0x04005613 RID: 22035 + achievement_only, + // Token: 0x04005614 RID: 22036 + Begin = 0, + // Token: 0x04005615 RID: 22037 + End = 3, + // Token: 0x04005616 RID: 22038 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionSubmonitorIDEnum.cs b/Assembly-CSharp/DB/OptionSubmonitorIDEnum.cs new file mode 100644 index 0000000..ef4e39f --- /dev/null +++ b/Assembly-CSharp/DB/OptionSubmonitorIDEnum.cs @@ -0,0 +1,143 @@ +using System; + +namespace DB +{ + // Token: 0x020007F2 RID: 2034 + public static class OptionSubmonitorIDEnum + { + // Token: 0x060046B2 RID: 18098 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this OptionSubmonitorID self) + { + return self >= OptionSubmonitorID.animation_type01 && self < OptionSubmonitorID.End && self > OptionSubmonitorID.animation_type01; + } + + // Token: 0x060046B3 RID: 18099 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this OptionSubmonitorID self) + { + return self >= OptionSubmonitorID.animation_type01 && self < OptionSubmonitorID.End; + } + + // Token: 0x060046B4 RID: 18100 RVA: 0x001849F7 File Offset: 0x00183BF7 + public static void Clamp(this OptionSubmonitorID self) + { + if (self < OptionSubmonitorID.animation_type01) + { + self = OptionSubmonitorID.animation_type01; + return; + } + if (self >= (OptionSubmonitorID)OptionSubmonitorIDEnum.GetEnd()) + { + self = (OptionSubmonitorID)OptionSubmonitorIDEnum.GetEnd(); + } + } + + // Token: 0x060046B5 RID: 18101 RVA: 0x00184A10 File Offset: 0x00183C10 + public static int GetEnd(this OptionSubmonitorID self) + { + return OptionSubmonitorIDEnum.GetEnd(); + } + + // Token: 0x060046B6 RID: 18102 RVA: 0x00184A18 File Offset: 0x00183C18 + public static OptionSubmonitorID FindID(string enumName) + { + for (OptionSubmonitorID optionSubmonitorID = OptionSubmonitorID.animation_type01; optionSubmonitorID < OptionSubmonitorID.End; optionSubmonitorID++) + { + if (optionSubmonitorID.GetEnumName() == enumName) + { + return optionSubmonitorID; + } + } + return OptionSubmonitorID.Invalid; + } + + // Token: 0x060046B7 RID: 18103 RVA: 0x00184A42 File Offset: 0x00183C42 + public static int GetEnd() + { + return OptionSubmonitorIDEnum.records.Length; + } + + // Token: 0x060046B8 RID: 18104 RVA: 0x00184A4B File Offset: 0x00183C4B + public static int GetEnumValue(this OptionSubmonitorID self) + { + if (self.IsValid()) + { + return OptionSubmonitorIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060046B9 RID: 18105 RVA: 0x00184A63 File Offset: 0x00183C63 + public static string GetEnumName(this OptionSubmonitorID self) + { + if (self.IsValid()) + { + return OptionSubmonitorIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060046BA RID: 18106 RVA: 0x00184A7F File Offset: 0x00183C7F + public static string GetName(this OptionSubmonitorID self) + { + if (self.IsValid()) + { + return OptionSubmonitorIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060046BB RID: 18107 RVA: 0x00184A9B File Offset: 0x00183C9B + public static string GetNameEx(this OptionSubmonitorID self) + { + if (self.IsValid()) + { + return OptionSubmonitorIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060046BC RID: 18108 RVA: 0x00184AB7 File Offset: 0x00183CB7 + public static string GetDetail(this OptionSubmonitorID self) + { + if (self.IsValid()) + { + return OptionSubmonitorIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060046BD RID: 18109 RVA: 0x00184AD3 File Offset: 0x00183CD3 + public static string GetDetailEx(this OptionSubmonitorID self) + { + if (self.IsValid()) + { + return OptionSubmonitorIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060046BE RID: 18110 RVA: 0x00184AEF File Offset: 0x00183CEF + public static bool IsDefault(this OptionSubmonitorID self) + { + return self.IsValid() && OptionSubmonitorIDEnum.records[(int)self].isDefault; + } + + // Token: 0x060046BF RID: 18111 RVA: 0x00184B07 File Offset: 0x00183D07 + public static string GetFilePath(this OptionSubmonitorID self) + { + if (self.IsValid()) + { + return OptionSubmonitorIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x0400561F RID: 22047 + private static readonly OptionSubmonitorTableRecord[] records = new OptionSubmonitorTableRecord[] + { + new OptionSubmonitorTableRecord(0, "animation_type01", "スクロール", "", "", "", 0, "UI_OPT_B_10_01"), + new OptionSubmonitorTableRecord(1, "charactor_only", "キャラクター", "", "", "", 0, "UI_OPT_B_10_03"), + new OptionSubmonitorTableRecord(2, "achievement_only", "楽曲情報・プレイ結果", "", "", "", 1, "UI_OPT_B_10_02") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionSubmonitorTableRecord.cs b/Assembly-CSharp/DB/OptionSubmonitorTableRecord.cs new file mode 100644 index 0000000..470f75b --- /dev/null +++ b/Assembly-CSharp/DB/OptionSubmonitorTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007F1 RID: 2033 + public class OptionSubmonitorTableRecord + { + // Token: 0x060046B0 RID: 18096 RVA: 0x00003560 File Offset: 0x00002760 + public OptionSubmonitorTableRecord() + { + } + + // Token: 0x060046B1 RID: 18097 RVA: 0x001849A4 File Offset: 0x00183BA4 + public OptionSubmonitorTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, int isDefault, string FilePath) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.isDefault = isDefault != 0; + this.FilePath = FilePath; + } + + // Token: 0x04005617 RID: 22039 + public int EnumValue; + + // Token: 0x04005618 RID: 22040 + public string EnumName; + + // Token: 0x04005619 RID: 22041 + public string Name; + + // Token: 0x0400561A RID: 22042 + public string NameEx; + + // Token: 0x0400561B RID: 22043 + public string Detail; + + // Token: 0x0400561C RID: 22044 + public string DetailEx; + + // Token: 0x0400561D RID: 22045 + public bool isDefault; + + // Token: 0x0400561E RID: 22046 + public string FilePath; + } +} diff --git a/Assembly-CSharp/DB/OptionTapSuccessSeID.cs b/Assembly-CSharp/DB/OptionTapSuccessSeID.cs new file mode 100644 index 0000000..90e74de --- /dev/null +++ b/Assembly-CSharp/DB/OptionTapSuccessSeID.cs @@ -0,0 +1,31 @@ +using System; + +namespace DB +{ + // Token: 0x020007F3 RID: 2035 + public enum OptionTapSuccessSeID + { + // Token: 0x04005621 RID: 22049 + Se1, + // Token: 0x04005622 RID: 22050 + Se2, + // Token: 0x04005623 RID: 22051 + Se3, + // Token: 0x04005624 RID: 22052 + Se4, + // Token: 0x04005625 RID: 22053 + Se5, + // Token: 0x04005626 RID: 22054 + Se6, + // Token: 0x04005627 RID: 22055 + Se7, + // Token: 0x04005628 RID: 22056 + Se8, + // Token: 0x04005629 RID: 22057 + Begin = 0, + // Token: 0x0400562A RID: 22058 + End = 8, + // Token: 0x0400562B RID: 22059 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionTapSuccessSeIDEnum.cs b/Assembly-CSharp/DB/OptionTapSuccessSeIDEnum.cs new file mode 100644 index 0000000..806a6b7 --- /dev/null +++ b/Assembly-CSharp/DB/OptionTapSuccessSeIDEnum.cs @@ -0,0 +1,188 @@ +using System; + +namespace DB +{ + // Token: 0x020007F5 RID: 2037 + public static class OptionTapSuccessSeIDEnum + { + // Token: 0x060046C3 RID: 18115 RVA: 0x00173EE9 File Offset: 0x001730E9 + public static bool IsActive(this OptionTapSuccessSeID self) + { + return self >= OptionTapSuccessSeID.Se1 && self < OptionTapSuccessSeID.End && self > OptionTapSuccessSeID.Se1; + } + + // Token: 0x060046C4 RID: 18116 RVA: 0x00123DBF File Offset: 0x00122FBF + public static bool IsValid(this OptionTapSuccessSeID self) + { + return self >= OptionTapSuccessSeID.Se1 && self < OptionTapSuccessSeID.End; + } + + // Token: 0x060046C5 RID: 18117 RVA: 0x00184C27 File Offset: 0x00183E27 + public static void Clamp(this OptionTapSuccessSeID self) + { + if (self < OptionTapSuccessSeID.Se1) + { + self = OptionTapSuccessSeID.Se1; + return; + } + if (self >= (OptionTapSuccessSeID)OptionTapSuccessSeIDEnum.GetEnd()) + { + self = (OptionTapSuccessSeID)OptionTapSuccessSeIDEnum.GetEnd(); + } + } + + // Token: 0x060046C6 RID: 18118 RVA: 0x00184C40 File Offset: 0x00183E40 + public static int GetEnd(this OptionTapSuccessSeID self) + { + return OptionTapSuccessSeIDEnum.GetEnd(); + } + + // Token: 0x060046C7 RID: 18119 RVA: 0x00184C48 File Offset: 0x00183E48 + public static OptionTapSuccessSeID FindID(string enumName) + { + for (OptionTapSuccessSeID optionTapSuccessSeID = OptionTapSuccessSeID.Se1; optionTapSuccessSeID < OptionTapSuccessSeID.End; optionTapSuccessSeID++) + { + if (optionTapSuccessSeID.GetEnumName() == enumName) + { + return optionTapSuccessSeID; + } + } + return OptionTapSuccessSeID.Invalid; + } + + // Token: 0x060046C8 RID: 18120 RVA: 0x00184C72 File Offset: 0x00183E72 + public static int GetEnd() + { + return OptionTapSuccessSeIDEnum.records.Length; + } + + // Token: 0x060046C9 RID: 18121 RVA: 0x00184C7B File Offset: 0x00183E7B + public static int GetEnumValue(this OptionTapSuccessSeID self) + { + if (self.IsValid()) + { + return OptionTapSuccessSeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060046CA RID: 18122 RVA: 0x00184C93 File Offset: 0x00183E93 + public static string GetEnumName(this OptionTapSuccessSeID self) + { + if (self.IsValid()) + { + return OptionTapSuccessSeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060046CB RID: 18123 RVA: 0x00184CAF File Offset: 0x00183EAF + public static string GetName(this OptionTapSuccessSeID self) + { + if (self.IsValid()) + { + return OptionTapSuccessSeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060046CC RID: 18124 RVA: 0x00184CCB File Offset: 0x00183ECB + public static string GetNameEx(this OptionTapSuccessSeID self) + { + if (self.IsValid()) + { + return OptionTapSuccessSeIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060046CD RID: 18125 RVA: 0x00184CE7 File Offset: 0x00183EE7 + public static string GetDetail(this OptionTapSuccessSeID self) + { + if (self.IsValid()) + { + return OptionTapSuccessSeIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060046CE RID: 18126 RVA: 0x00184D03 File Offset: 0x00183F03 + public static string GetDetailEx(this OptionTapSuccessSeID self) + { + if (self.IsValid()) + { + return OptionTapSuccessSeIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060046CF RID: 18127 RVA: 0x00184D1F File Offset: 0x00183F1F + public static string GetSeEnumCritical(this OptionTapSuccessSeID self) + { + if (self.IsValid()) + { + return OptionTapSuccessSeIDEnum.records[(int)self].SeEnumCritical; + } + return ""; + } + + // Token: 0x060046D0 RID: 18128 RVA: 0x00184D3B File Offset: 0x00183F3B + public static string GetSeEnumPerfect(this OptionTapSuccessSeID self) + { + if (self.IsValid()) + { + return OptionTapSuccessSeIDEnum.records[(int)self].SeEnumPerfect; + } + return ""; + } + + // Token: 0x060046D1 RID: 18129 RVA: 0x00184D57 File Offset: 0x00183F57 + public static string GetSeEnumGreat(this OptionTapSuccessSeID self) + { + if (self.IsValid()) + { + return OptionTapSuccessSeIDEnum.records[(int)self].SeEnumGreat; + } + return ""; + } + + // Token: 0x060046D2 RID: 18130 RVA: 0x00184D73 File Offset: 0x00183F73 + public static string GetSeEnumGood(this OptionTapSuccessSeID self) + { + if (self.IsValid()) + { + return OptionTapSuccessSeIDEnum.records[(int)self].SeEnumGood; + } + return ""; + } + + // Token: 0x060046D3 RID: 18131 RVA: 0x00184D8F File Offset: 0x00183F8F + public static bool IsDefault(this OptionTapSuccessSeID self) + { + return self.IsValid() && OptionTapSuccessSeIDEnum.records[(int)self].isDefault; + } + + // Token: 0x060046D4 RID: 18132 RVA: 0x00184DA7 File Offset: 0x00183FA7 + public static string GetFilePath(this OptionTapSuccessSeID self) + { + if (self.IsValid()) + { + return OptionTapSuccessSeIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x04005638 RID: 22072 + private static readonly OptionTapSuccessSeTableRecord[] records = new OptionTapSuccessSeTableRecord[] + { + new OptionTapSuccessSeTableRecord(0, "Se1", "默认", "", "", "", "SE_GAME_CRITICAL_PERFECT", "SE_GAME_PERFECT", "SE_GAME_GREAT", "SE_GAME_GOOD", 1, "UI_OPT_E_24_01"), + new OptionTapSuccessSeTableRecord(1, "Se2", "拍手", "", "", "", "SE_GAME_CRITICAL_PERFECT_000002", "SE_GAME_CRITICAL_PERFECT_000002", "SE_GAME_GREAT_000002", "SE_GAME_GOOD_000002", 0, "UI_OPT_E_24_01"), + new OptionTapSuccessSeTableRecord(2, "Se3", "雨水", "", "", "", "SE_GAME_CRITICAL_PERFECT_000003", "SE_GAME_CRITICAL_PERFECT_000003", "SE_GAME_GREAT_000003", "SE_GAME_GOOD_000003", 0, "UI_OPT_E_24_01"), + new OptionTapSuccessSeTableRecord(3, "Se4", "木块", "", "", "", "SE_GAME_CRITICAL_PERFECT_000004", "SE_GAME_CRITICAL_PERFECT_000004", "SE_GAME_GREAT_000004", "SE_GAME_GOOD_000004", 0, "UI_OPT_E_24_01"), + new OptionTapSuccessSeTableRecord(4, "Se5", "铃铛", "", "", "", "SE_GAME_CRITICAL_PERFECT_000005", "SE_GAME_CRITICAL_PERFECT_000005", "SE_GAME_GREAT_000005", "SE_GAME_GOOD_000005", 0, "UI_OPT_E_24_01"), + new OptionTapSuccessSeTableRecord(5, "Se6", "低鼓&镲片", "", "", "", "SE_GAME_CRITICAL_PERFECT_000006", "SE_GAME_CRITICAL_PERFECT_000006", "SE_GAME_GREAT_000006", "SE_GAME_GOOD_000006", 0, "UI_OPT_E_24_01"), + new OptionTapSuccessSeTableRecord(6, "Se7", "中二节奏", "", "", "", "SE_GAME_CRITICAL_PERFECT_000007", "SE_GAME_CRITICAL_PERFECT_000007", "SE_GAME_GREAT_000007", "SE_GAME_GOOD_000007", 0, "UI_OPT_E_24_01"), + new OptionTapSuccessSeTableRecord(7, "Se8", "音击", "", "", "", "SE_GAME_CRITICAL_PERFECT_000008", "SE_GAME_CRITICAL_PERFECT_000008", "SE_GAME_GREAT_000008", "SE_GAME_GOOD_000008", 0, "UI_OPT_E_24_01") + }; + } +} diff --git a/Assembly-CSharp/DB/OptionTapSuccessSeTableRecord.cs b/Assembly-CSharp/DB/OptionTapSuccessSeTableRecord.cs new file mode 100644 index 0000000..0feba4c --- /dev/null +++ b/Assembly-CSharp/DB/OptionTapSuccessSeTableRecord.cs @@ -0,0 +1,66 @@ +using System; + +namespace DB +{ + // Token: 0x020007F4 RID: 2036 + public class OptionTapSuccessSeTableRecord + { + // Token: 0x060046C1 RID: 18113 RVA: 0x00003560 File Offset: 0x00002760 + public OptionTapSuccessSeTableRecord() + { + } + + // Token: 0x060046C2 RID: 18114 RVA: 0x00184BB4 File Offset: 0x00183DB4 + public OptionTapSuccessSeTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string SeEnumCritical, string SeEnumPerfect, string SeEnumGreat, string SeEnumGood, int isDefault, string FilePath) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.SeEnumCritical = SeEnumCritical; + this.SeEnumPerfect = SeEnumPerfect; + this.SeEnumGreat = SeEnumGreat; + this.SeEnumGood = SeEnumGood; + this.isDefault = isDefault != 0; + this.FilePath = FilePath; + } + + // Token: 0x0400562C RID: 22060 + public int EnumValue; + + // Token: 0x0400562D RID: 22061 + public string EnumName; + + // Token: 0x0400562E RID: 22062 + public string Name; + + // Token: 0x0400562F RID: 22063 + public string NameEx; + + // Token: 0x04005630 RID: 22064 + public string Detail; + + // Token: 0x04005631 RID: 22065 + public string DetailEx; + + // Token: 0x04005632 RID: 22066 + public string SeEnumCritical; + + // Token: 0x04005633 RID: 22067 + public string SeEnumPerfect; + + // Token: 0x04005634 RID: 22068 + public string SeEnumGreat; + + // Token: 0x04005635 RID: 22069 + public string SeEnumGood; + + // Token: 0x04005636 RID: 22070 + public bool isDefault; + + // Token: 0x04005637 RID: 22071 + public string FilePath; + } +} diff --git a/Assembly-CSharp/DB/OptionToucheffectID.cs b/Assembly-CSharp/DB/OptionToucheffectID.cs new file mode 100644 index 0000000..2ccf0b6 --- /dev/null +++ b/Assembly-CSharp/DB/OptionToucheffectID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x020007F6 RID: 2038 + public enum OptionToucheffectID + { + // Token: 0x0400563A RID: 22074 + Off, + // Token: 0x0400563B RID: 22075 + Outline, + // Token: 0x0400563C RID: 22076 + On, + // Token: 0x0400563D RID: 22077 + Begin = 0, + // Token: 0x0400563E RID: 22078 + End = 3, + // Token: 0x0400563F RID: 22079 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionToucheffectIDEnum.cs b/Assembly-CSharp/DB/OptionToucheffectIDEnum.cs new file mode 100644 index 0000000..2c3b2ab --- /dev/null +++ b/Assembly-CSharp/DB/OptionToucheffectIDEnum.cs @@ -0,0 +1,143 @@ +using System; + +namespace DB +{ + // Token: 0x020007F8 RID: 2040 + public static class OptionToucheffectIDEnum + { + // Token: 0x060046D8 RID: 18136 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this OptionToucheffectID self) + { + return self >= OptionToucheffectID.Off && self < OptionToucheffectID.End && self > OptionToucheffectID.Off; + } + + // Token: 0x060046D9 RID: 18137 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this OptionToucheffectID self) + { + return self >= OptionToucheffectID.Off && self < OptionToucheffectID.End; + } + + // Token: 0x060046DA RID: 18138 RVA: 0x0018500F File Offset: 0x0018420F + public static void Clamp(this OptionToucheffectID self) + { + if (self < OptionToucheffectID.Off) + { + self = OptionToucheffectID.Off; + return; + } + if (self >= (OptionToucheffectID)OptionToucheffectIDEnum.GetEnd()) + { + self = (OptionToucheffectID)OptionToucheffectIDEnum.GetEnd(); + } + } + + // Token: 0x060046DB RID: 18139 RVA: 0x00185028 File Offset: 0x00184228 + public static int GetEnd(this OptionToucheffectID self) + { + return OptionToucheffectIDEnum.GetEnd(); + } + + // Token: 0x060046DC RID: 18140 RVA: 0x00185030 File Offset: 0x00184230 + public static OptionToucheffectID FindID(string enumName) + { + for (OptionToucheffectID optionToucheffectID = OptionToucheffectID.Off; optionToucheffectID < OptionToucheffectID.End; optionToucheffectID++) + { + if (optionToucheffectID.GetEnumName() == enumName) + { + return optionToucheffectID; + } + } + return OptionToucheffectID.Invalid; + } + + // Token: 0x060046DD RID: 18141 RVA: 0x0018505A File Offset: 0x0018425A + public static int GetEnd() + { + return OptionToucheffectIDEnum.records.Length; + } + + // Token: 0x060046DE RID: 18142 RVA: 0x00185063 File Offset: 0x00184263 + public static int GetEnumValue(this OptionToucheffectID self) + { + if (self.IsValid()) + { + return OptionToucheffectIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060046DF RID: 18143 RVA: 0x0018507B File Offset: 0x0018427B + public static string GetEnumName(this OptionToucheffectID self) + { + if (self.IsValid()) + { + return OptionToucheffectIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060046E0 RID: 18144 RVA: 0x00185097 File Offset: 0x00184297 + public static string GetName(this OptionToucheffectID self) + { + if (self.IsValid()) + { + return OptionToucheffectIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060046E1 RID: 18145 RVA: 0x001850B3 File Offset: 0x001842B3 + public static string GetNameEx(this OptionToucheffectID self) + { + if (self.IsValid()) + { + return OptionToucheffectIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060046E2 RID: 18146 RVA: 0x001850CF File Offset: 0x001842CF + public static string GetDetail(this OptionToucheffectID self) + { + if (self.IsValid()) + { + return OptionToucheffectIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060046E3 RID: 18147 RVA: 0x001850EB File Offset: 0x001842EB + public static string GetDetailEx(this OptionToucheffectID self) + { + if (self.IsValid()) + { + return OptionToucheffectIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060046E4 RID: 18148 RVA: 0x00185107 File Offset: 0x00184307 + public static string GetFilePath(this OptionToucheffectID self) + { + if (self.IsValid()) + { + return OptionToucheffectIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x060046E5 RID: 18149 RVA: 0x00185123 File Offset: 0x00184323 + public static bool IsDefault(this OptionToucheffectID self) + { + return self.IsValid() && OptionToucheffectIDEnum.records[(int)self].isDefault; + } + + // Token: 0x04005648 RID: 22088 + private static readonly OptionToucheffectTableRecord[] records = new OptionToucheffectTableRecord[] + { + new OptionToucheffectTableRecord(0, "Off", "关", "", "", "", "UI_OPT_B_10_01", 0), + new OptionToucheffectTableRecord(1, "Outline", "只在外圈显示", "", "", "", "UI_OPT_B_10_02", 0), + new OptionToucheffectTableRecord(2, "On", "开", "", "", "", "UI_OPT_B_10_03", 1) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionToucheffectTableRecord.cs b/Assembly-CSharp/DB/OptionToucheffectTableRecord.cs new file mode 100644 index 0000000..0b6385a --- /dev/null +++ b/Assembly-CSharp/DB/OptionToucheffectTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x020007F7 RID: 2039 + public class OptionToucheffectTableRecord + { + // Token: 0x060046D6 RID: 18134 RVA: 0x00003560 File Offset: 0x00002760 + public OptionToucheffectTableRecord() + { + } + + // Token: 0x060046D7 RID: 18135 RVA: 0x00184FBC File Offset: 0x001841BC + public OptionToucheffectTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x04005640 RID: 22080 + public int EnumValue; + + // Token: 0x04005641 RID: 22081 + public string EnumName; + + // Token: 0x04005642 RID: 22082 + public string Name; + + // Token: 0x04005643 RID: 22083 + public string NameEx; + + // Token: 0x04005644 RID: 22084 + public string Detail; + + // Token: 0x04005645 RID: 22085 + public string DetailEx; + + // Token: 0x04005646 RID: 22086 + public string FilePath; + + // Token: 0x04005647 RID: 22087 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionTouchsizeID.cs b/Assembly-CSharp/DB/OptionTouchsizeID.cs new file mode 100644 index 0000000..b6fa72d --- /dev/null +++ b/Assembly-CSharp/DB/OptionTouchsizeID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x020007F9 RID: 2041 + public enum OptionTouchsizeID + { + // Token: 0x0400564A RID: 22090 + Small, + // Token: 0x0400564B RID: 22091 + Middle, + // Token: 0x0400564C RID: 22092 + Begin = 0, + // Token: 0x0400564D RID: 22093 + End = 2, + // Token: 0x0400564E RID: 22094 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionTouchsizeIDEnum.cs b/Assembly-CSharp/DB/OptionTouchsizeIDEnum.cs new file mode 100644 index 0000000..383aaa5 --- /dev/null +++ b/Assembly-CSharp/DB/OptionTouchsizeIDEnum.cs @@ -0,0 +1,152 @@ +using System; + +namespace DB +{ + // Token: 0x020007FB RID: 2043 + public static class OptionTouchsizeIDEnum + { + // Token: 0x060046E9 RID: 18153 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this OptionTouchsizeID self) + { + return self >= OptionTouchsizeID.Small && self < OptionTouchsizeID.End && self > OptionTouchsizeID.Small; + } + + // Token: 0x060046EA RID: 18154 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this OptionTouchsizeID self) + { + return self >= OptionTouchsizeID.Small && self < OptionTouchsizeID.End; + } + + // Token: 0x060046EB RID: 18155 RVA: 0x00185228 File Offset: 0x00184428 + public static void Clamp(this OptionTouchsizeID self) + { + if (self < OptionTouchsizeID.Small) + { + self = OptionTouchsizeID.Small; + return; + } + if (self >= (OptionTouchsizeID)OptionTouchsizeIDEnum.GetEnd()) + { + self = (OptionTouchsizeID)OptionTouchsizeIDEnum.GetEnd(); + } + } + + // Token: 0x060046EC RID: 18156 RVA: 0x00185241 File Offset: 0x00184441 + public static int GetEnd(this OptionTouchsizeID self) + { + return OptionTouchsizeIDEnum.GetEnd(); + } + + // Token: 0x060046ED RID: 18157 RVA: 0x00185248 File Offset: 0x00184448 + public static OptionTouchsizeID FindID(string enumName) + { + for (OptionTouchsizeID optionTouchsizeID = OptionTouchsizeID.Small; optionTouchsizeID < OptionTouchsizeID.End; optionTouchsizeID++) + { + if (optionTouchsizeID.GetEnumName() == enumName) + { + return optionTouchsizeID; + } + } + return OptionTouchsizeID.Invalid; + } + + // Token: 0x060046EE RID: 18158 RVA: 0x00185272 File Offset: 0x00184472 + public static int GetEnd() + { + return OptionTouchsizeIDEnum.records.Length; + } + + // Token: 0x060046EF RID: 18159 RVA: 0x0018527B File Offset: 0x0018447B + public static int GetEnumValue(this OptionTouchsizeID self) + { + if (self.IsValid()) + { + return OptionTouchsizeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060046F0 RID: 18160 RVA: 0x00185293 File Offset: 0x00184493 + public static string GetEnumName(this OptionTouchsizeID self) + { + if (self.IsValid()) + { + return OptionTouchsizeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060046F1 RID: 18161 RVA: 0x001852AF File Offset: 0x001844AF + public static string GetName(this OptionTouchsizeID self) + { + if (self.IsValid()) + { + return OptionTouchsizeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060046F2 RID: 18162 RVA: 0x001852CB File Offset: 0x001844CB + public static string GetNameEx(this OptionTouchsizeID self) + { + if (self.IsValid()) + { + return OptionTouchsizeIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060046F3 RID: 18163 RVA: 0x001852E7 File Offset: 0x001844E7 + public static string GetDetail(this OptionTouchsizeID self) + { + if (self.IsValid()) + { + return OptionTouchsizeIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060046F4 RID: 18164 RVA: 0x00185303 File Offset: 0x00184503 + public static string GetDetailEx(this OptionTouchsizeID self) + { + if (self.IsValid()) + { + return OptionTouchsizeIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060046F5 RID: 18165 RVA: 0x0018531F File Offset: 0x0018451F + public static string GetFilePath(this OptionTouchsizeID self) + { + if (self.IsValid()) + { + return OptionTouchsizeIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x060046F6 RID: 18166 RVA: 0x0018533B File Offset: 0x0018453B + public static bool IsDefault(this OptionTouchsizeID self) + { + return self.IsValid() && OptionTouchsizeIDEnum.records[(int)self].isDefault; + } + + // Token: 0x060046F7 RID: 18167 RVA: 0x00185353 File Offset: 0x00184553 + public static float GetValue(this OptionTouchsizeID self) + { + if (self.IsValid()) + { + return OptionTouchsizeIDEnum.records[(int)self].Value; + } + return 0f; + } + + // Token: 0x04005658 RID: 22104 + private static readonly OptionTouchsizeTableRecord[] records = new OptionTouchsizeTableRecord[] + { + new OptionTouchsizeTableRecord(0, "Small", "小さい", "", "", "", "", 0, 0.7f), + new OptionTouchsizeTableRecord(1, "Middle", "ふつう", "", "", "", "", 1, 1f) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionTouchsizeTableRecord.cs b/Assembly-CSharp/DB/OptionTouchsizeTableRecord.cs new file mode 100644 index 0000000..e31ae4a --- /dev/null +++ b/Assembly-CSharp/DB/OptionTouchsizeTableRecord.cs @@ -0,0 +1,54 @@ +using System; + +namespace DB +{ + // Token: 0x020007FA RID: 2042 + public class OptionTouchsizeTableRecord + { + // Token: 0x060046E7 RID: 18151 RVA: 0x00003560 File Offset: 0x00002760 + public OptionTouchsizeTableRecord() + { + } + + // Token: 0x060046E8 RID: 18152 RVA: 0x001851CC File Offset: 0x001843CC + public OptionTouchsizeTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault, float Value) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + this.Value = Value; + } + + // Token: 0x0400564F RID: 22095 + public int EnumValue; + + // Token: 0x04005650 RID: 22096 + public string EnumName; + + // Token: 0x04005651 RID: 22097 + public string Name; + + // Token: 0x04005652 RID: 22098 + public string NameEx; + + // Token: 0x04005653 RID: 22099 + public string Detail; + + // Token: 0x04005654 RID: 22100 + public string DetailEx; + + // Token: 0x04005655 RID: 22101 + public string FilePath; + + // Token: 0x04005656 RID: 22102 + public bool isDefault; + + // Token: 0x04005657 RID: 22103 + public float Value; + } +} diff --git a/Assembly-CSharp/DB/OptionTouchspeedID.cs b/Assembly-CSharp/DB/OptionTouchspeedID.cs new file mode 100644 index 0000000..034aa08 --- /dev/null +++ b/Assembly-CSharp/DB/OptionTouchspeedID.cs @@ -0,0 +1,91 @@ +using System; + +namespace DB +{ + // Token: 0x020007FC RID: 2044 + public enum OptionTouchspeedID + { + // Token: 0x0400565A RID: 22106 + Speed1_0, + // Token: 0x0400565B RID: 22107 + Speed1_25, + // Token: 0x0400565C RID: 22108 + Speed1_5, + // Token: 0x0400565D RID: 22109 + Speed1_75, + // Token: 0x0400565E RID: 22110 + Speed2_0, + // Token: 0x0400565F RID: 22111 + Speed2_25, + // Token: 0x04005660 RID: 22112 + Speed2_5, + // Token: 0x04005661 RID: 22113 + Speed2_75, + // Token: 0x04005662 RID: 22114 + Speed3_0, + // Token: 0x04005663 RID: 22115 + Speed3_25, + // Token: 0x04005664 RID: 22116 + Speed3_5, + // Token: 0x04005665 RID: 22117 + Speed3_75, + // Token: 0x04005666 RID: 22118 + Speed4_0, + // Token: 0x04005667 RID: 22119 + Speed4_25, + // Token: 0x04005668 RID: 22120 + Speed4_5, + // Token: 0x04005669 RID: 22121 + Speed4_75, + // Token: 0x0400566A RID: 22122 + Speed5_0, + // Token: 0x0400566B RID: 22123 + Speed5_25, + // Token: 0x0400566C RID: 22124 + Speed5_5, + // Token: 0x0400566D RID: 22125 + Speed5_75, + // Token: 0x0400566E RID: 22126 + Speed6_0, + // Token: 0x0400566F RID: 22127 + Speed6_25, + // Token: 0x04005670 RID: 22128 + Speed6_5, + // Token: 0x04005671 RID: 22129 + Speed6_75, + // Token: 0x04005672 RID: 22130 + Speed7_0, + // Token: 0x04005673 RID: 22131 + Speed7_25, + // Token: 0x04005674 RID: 22132 + Speed7_5, + // Token: 0x04005675 RID: 22133 + Speed7_75, + // Token: 0x04005676 RID: 22134 + Speed8_0, + // Token: 0x04005677 RID: 22135 + Speed8_25, + // Token: 0x04005678 RID: 22136 + Speed8_5, + // Token: 0x04005679 RID: 22137 + Speed8_75, + // Token: 0x0400567A RID: 22138 + Speed9_0, + // Token: 0x0400567B RID: 22139 + Speed9_25, + // Token: 0x0400567C RID: 22140 + Speed9_5, + // Token: 0x0400567D RID: 22141 + Speed9_75, + // Token: 0x0400567E RID: 22142 + Speed10_0, + // Token: 0x0400567F RID: 22143 + Speed_Sonic, + // Token: 0x04005680 RID: 22144 + Begin = 0, + // Token: 0x04005681 RID: 22145 + End = 38, + // Token: 0x04005682 RID: 22146 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionTouchspeedIDEnum.cs b/Assembly-CSharp/DB/OptionTouchspeedIDEnum.cs new file mode 100644 index 0000000..9da6028 --- /dev/null +++ b/Assembly-CSharp/DB/OptionTouchspeedIDEnum.cs @@ -0,0 +1,188 @@ +using System; + +namespace DB +{ + // Token: 0x020007FE RID: 2046 + public static class OptionTouchspeedIDEnum + { + // Token: 0x060046FB RID: 18171 RVA: 0x001828F4 File Offset: 0x00181AF4 + public static bool IsActive(this OptionTouchspeedID self) + { + return self >= OptionTouchspeedID.Speed1_0 && self < OptionTouchspeedID.End && self > OptionTouchspeedID.Speed1_0; + } + + // Token: 0x060046FC RID: 18172 RVA: 0x00182905 File Offset: 0x00181B05 + public static bool IsValid(this OptionTouchspeedID self) + { + return self >= OptionTouchspeedID.Speed1_0 && self < OptionTouchspeedID.End; + } + + // Token: 0x060046FD RID: 18173 RVA: 0x00185440 File Offset: 0x00184640 + public static void Clamp(this OptionTouchspeedID self) + { + if (self < OptionTouchspeedID.Speed1_0) + { + self = OptionTouchspeedID.Speed1_0; + return; + } + if (self >= (OptionTouchspeedID)OptionTouchspeedIDEnum.GetEnd()) + { + self = (OptionTouchspeedID)OptionTouchspeedIDEnum.GetEnd(); + } + } + + // Token: 0x060046FE RID: 18174 RVA: 0x00185459 File Offset: 0x00184659 + public static int GetEnd(this OptionTouchspeedID self) + { + return OptionTouchspeedIDEnum.GetEnd(); + } + + // Token: 0x060046FF RID: 18175 RVA: 0x00185460 File Offset: 0x00184660 + public static OptionTouchspeedID FindID(string enumName) + { + for (OptionTouchspeedID optionTouchspeedID = OptionTouchspeedID.Speed1_0; optionTouchspeedID < OptionTouchspeedID.End; optionTouchspeedID++) + { + if (optionTouchspeedID.GetEnumName() == enumName) + { + return optionTouchspeedID; + } + } + return OptionTouchspeedID.Invalid; + } + + // Token: 0x06004700 RID: 18176 RVA: 0x0018548B File Offset: 0x0018468B + public static int GetEnd() + { + return OptionTouchspeedIDEnum.records.Length; + } + + // Token: 0x06004701 RID: 18177 RVA: 0x00185494 File Offset: 0x00184694 + public static int GetEnumValue(this OptionTouchspeedID self) + { + if (self.IsValid()) + { + return OptionTouchspeedIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004702 RID: 18178 RVA: 0x001854AC File Offset: 0x001846AC + public static string GetEnumName(this OptionTouchspeedID self) + { + if (self.IsValid()) + { + return OptionTouchspeedIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004703 RID: 18179 RVA: 0x001854C8 File Offset: 0x001846C8 + public static float GetValue(this OptionTouchspeedID self) + { + if (self.IsValid()) + { + return OptionTouchspeedIDEnum.records[(int)self].Value; + } + return 0f; + } + + // Token: 0x06004704 RID: 18180 RVA: 0x001854E4 File Offset: 0x001846E4 + public static string GetName(this OptionTouchspeedID self) + { + if (self.IsValid()) + { + return OptionTouchspeedIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004705 RID: 18181 RVA: 0x00185500 File Offset: 0x00184700 + public static string GetNameEx(this OptionTouchspeedID self) + { + if (self.IsValid()) + { + return OptionTouchspeedIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004706 RID: 18182 RVA: 0x0018551C File Offset: 0x0018471C + public static string GetDetail(this OptionTouchspeedID self) + { + if (self.IsValid()) + { + return OptionTouchspeedIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004707 RID: 18183 RVA: 0x00185538 File Offset: 0x00184738 + public static string GetDetailEx(this OptionTouchspeedID self) + { + if (self.IsValid()) + { + return OptionTouchspeedIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004708 RID: 18184 RVA: 0x00185554 File Offset: 0x00184754 + public static string GetFilePath(this OptionTouchspeedID self) + { + if (self.IsValid()) + { + return OptionTouchspeedIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x06004709 RID: 18185 RVA: 0x00185570 File Offset: 0x00184770 + public static bool IsDefault(this OptionTouchspeedID self) + { + return self.IsValid() && OptionTouchspeedIDEnum.records[(int)self].isDefault; + } + + // Token: 0x0400568C RID: 22156 + private static readonly OptionTouchspeedTableRecord[] records = new OptionTouchspeedTableRecord[] + { + new OptionTouchspeedTableRecord(0, "Speed1_0", 175f, "1.00 ", "1.00 ", "比标准速度慢", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(1, "Speed1_25", 183f, "1.25 ", "1.25 ", "比标准速度慢", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(2, "Speed1_5", 200f, "1.50 ", "1.50 ", "比标准速度慢", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(3, "Speed1_75", 212f, "1.75 ", "1.75 ", "比标准速度慢", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(4, "Speed2_0", 225f, "2.00 ", "2.00 ", "推荐给选择BASIC的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(5, "Speed2_25", 237f, "2.25 ", "2.25 ", "推荐给选择BASIC的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(6, "Speed2_5", 250f, "2.50 ", "2.50 ", "推荐给选择BASIC的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(7, "Speed2_75", 262f, "2.75 ", "2.75 ", "推荐给选择BASIC的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(8, "Speed3_0", 275f, "3.00 ", "3.00 ", "推荐给选择ADVANCED的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(9, "Speed3_25", 283f, "3.25 ", "3.25 ", "推荐给选择ADVANCED的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(10, "Speed3_5", 300f, "3.50 ", "3.50 ", "推荐给选择ADVANCED的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(11, "Speed3_75", 312f, "3.75 ", "3.75 ", "推荐给选择ADVANCED的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(12, "Speed4_0", 325f, "4.00 ", "4.00 ", "推荐给选择ADVANCED的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(13, "Speed4_25", 337f, "4.25 ", "4.25 ", "推荐给选择ADVANCED的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(14, "Speed4_5", 350f, "4.50 ", "4.50 ", "推荐给选择EXPERT的玩家", "", "UI_OPT_A_02_01", 1), + new OptionTouchspeedTableRecord(15, "Speed4_75", 375f, "4.75 ", "4.75 ", "推荐给选择EXPERT的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(16, "Speed5_0", 400f, "5.00 ", "5.00 ", "推荐给选择EXPERT的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(17, "Speed5_25", 425f, "5.25 ", "5.25 ", "推荐给选择EXPERT的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(18, "Speed5_5", 450f, "5.50 ", "5.50 ", "推荐给选择EXPERT的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(19, "Speed5_75", 475f, "5.75 ", "5.75 ", "推荐给选择EXPERT的玩家", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(20, "Speed6_0", 500f, "6.00 ", "6.00 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(21, "Speed6_25", 525f, "6.25 ", "6.25 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(22, "Speed6_5", 550f, "6.50 ", "6.50 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(23, "Speed6_75", 575f, "6.75 ", "6.75 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(24, "Speed7_0", 600f, "7.00 ", "7.00 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(25, "Speed7_25", 625f, "7.25 ", "7.25 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(26, "Speed7_5", 650f, "7.50 ", "7.50 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(27, "Speed7_75", 675f, "7.75 ", "7.75 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(28, "Speed8_0", 700f, "8.00 ", "8.00 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(29, "Speed8_25", 725f, "8.25 ", "8.25 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(30, "Speed8_5", 750f, "8.50 ", "8.50 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(31, "Speed8_75", 775f, "8.75 ", "8.75 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(32, "Speed9_0", 800f, "9.00 ", "9.00 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(33, "Speed9_25", 825f, "9.25 ", "9.25 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(34, "Speed9_5", 850f, "9.50 ", "9.50 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(35, "Speed9_75", 875f, "9.75 ", "9.75 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(36, "Speed10_0", 900f, "10.00 ", "10.00 ", "请按照喜好设定速度", "", "UI_OPT_A_02_01", 0), + new OptionTouchspeedTableRecord(37, "Speed_Sonic", 5000f, "索尼克", "SONIC", "注意! 光环只会显示一瞬间", "", "UI_OPT_A_02_01", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionTouchspeedTableRecord.cs b/Assembly-CSharp/DB/OptionTouchspeedTableRecord.cs new file mode 100644 index 0000000..cb37c9a --- /dev/null +++ b/Assembly-CSharp/DB/OptionTouchspeedTableRecord.cs @@ -0,0 +1,54 @@ +using System; + +namespace DB +{ + // Token: 0x020007FD RID: 2045 + public class OptionTouchspeedTableRecord + { + // Token: 0x060046F9 RID: 18169 RVA: 0x00003560 File Offset: 0x00002760 + public OptionTouchspeedTableRecord() + { + } + + // Token: 0x060046FA RID: 18170 RVA: 0x001853E4 File Offset: 0x001845E4 + public OptionTouchspeedTableRecord(int EnumValue, string EnumName, float Value, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Value = Value; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x04005683 RID: 22147 + public int EnumValue; + + // Token: 0x04005684 RID: 22148 + public string EnumName; + + // Token: 0x04005685 RID: 22149 + public float Value; + + // Token: 0x04005686 RID: 22150 + public string Name; + + // Token: 0x04005687 RID: 22151 + public string NameEx; + + // Token: 0x04005688 RID: 22152 + public string Detail; + + // Token: 0x04005689 RID: 22153 + public string DetailEx; + + // Token: 0x0400568A RID: 22154 + public string FilePath; + + // Token: 0x0400568B RID: 22155 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionTrackskipID.cs b/Assembly-CSharp/DB/OptionTrackskipID.cs new file mode 100644 index 0000000..8ad759f --- /dev/null +++ b/Assembly-CSharp/DB/OptionTrackskipID.cs @@ -0,0 +1,39 @@ +using System; + +namespace DB +{ + // Token: 0x020007FF RID: 2047 + public enum OptionTrackskipID + { + // Token: 0x0400568E RID: 22158 + Off, + // Token: 0x0400568F RID: 22159 + Push, + // Token: 0x04005690 RID: 22160 + AutoS, + // Token: 0x04005691 RID: 22161 + AutoSS, + // Token: 0x04005692 RID: 22162 + AutoSSS, + // Token: 0x04005693 RID: 22163 + AutoBest, + // Token: 0x04005694 RID: 22164 + AutoRivalScore, + // Token: 0x04005695 RID: 22165 + AutoLife300, + // Token: 0x04005696 RID: 22166 + AutoLife100, + // Token: 0x04005697 RID: 22167 + AutoLife50, + // Token: 0x04005698 RID: 22168 + AutoLife10, + // Token: 0x04005699 RID: 22169 + AutoLife1, + // Token: 0x0400569A RID: 22170 + Begin = 0, + // Token: 0x0400569B RID: 22171 + End = 12, + // Token: 0x0400569C RID: 22172 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionTrackskipIDEnum.cs b/Assembly-CSharp/DB/OptionTrackskipIDEnum.cs new file mode 100644 index 0000000..9dd1bcc --- /dev/null +++ b/Assembly-CSharp/DB/OptionTrackskipIDEnum.cs @@ -0,0 +1,152 @@ +using System; + +namespace DB +{ + // Token: 0x02000801 RID: 2049 + public static class OptionTrackskipIDEnum + { + // Token: 0x0600470D RID: 18189 RVA: 0x001748BD File Offset: 0x00173ABD + public static bool IsActive(this OptionTrackskipID self) + { + return self >= OptionTrackskipID.Off && self < OptionTrackskipID.End && self > OptionTrackskipID.Off; + } + + // Token: 0x0600470E RID: 18190 RVA: 0x001748CE File Offset: 0x00173ACE + public static bool IsValid(this OptionTrackskipID self) + { + return self >= OptionTrackskipID.Off && self < OptionTrackskipID.End; + } + + // Token: 0x0600470F RID: 18191 RVA: 0x00185CDF File Offset: 0x00184EDF + public static void Clamp(this OptionTrackskipID self) + { + if (self < OptionTrackskipID.Off) + { + self = OptionTrackskipID.Off; + return; + } + if (self >= (OptionTrackskipID)OptionTrackskipIDEnum.GetEnd()) + { + self = (OptionTrackskipID)OptionTrackskipIDEnum.GetEnd(); + } + } + + // Token: 0x06004710 RID: 18192 RVA: 0x00185CF8 File Offset: 0x00184EF8 + public static int GetEnd(this OptionTrackskipID self) + { + return OptionTrackskipIDEnum.GetEnd(); + } + + // Token: 0x06004711 RID: 18193 RVA: 0x00185D00 File Offset: 0x00184F00 + public static OptionTrackskipID FindID(string enumName) + { + for (OptionTrackskipID optionTrackskipID = OptionTrackskipID.Off; optionTrackskipID < OptionTrackskipID.End; optionTrackskipID++) + { + if (optionTrackskipID.GetEnumName() == enumName) + { + return optionTrackskipID; + } + } + return OptionTrackskipID.Invalid; + } + + // Token: 0x06004712 RID: 18194 RVA: 0x00185D2B File Offset: 0x00184F2B + public static int GetEnd() + { + return OptionTrackskipIDEnum.records.Length; + } + + // Token: 0x06004713 RID: 18195 RVA: 0x00185D34 File Offset: 0x00184F34 + public static int GetEnumValue(this OptionTrackskipID self) + { + if (self.IsValid()) + { + return OptionTrackskipIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004714 RID: 18196 RVA: 0x00185D4C File Offset: 0x00184F4C + public static string GetEnumName(this OptionTrackskipID self) + { + if (self.IsValid()) + { + return OptionTrackskipIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004715 RID: 18197 RVA: 0x00185D68 File Offset: 0x00184F68 + public static string GetName(this OptionTrackskipID self) + { + if (self.IsValid()) + { + return OptionTrackskipIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004716 RID: 18198 RVA: 0x00185D84 File Offset: 0x00184F84 + public static string GetNameEx(this OptionTrackskipID self) + { + if (self.IsValid()) + { + return OptionTrackskipIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004717 RID: 18199 RVA: 0x00185DA0 File Offset: 0x00184FA0 + public static string GetDetail(this OptionTrackskipID self) + { + if (self.IsValid()) + { + return OptionTrackskipIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004718 RID: 18200 RVA: 0x00185DBC File Offset: 0x00184FBC + public static string GetDetailEx(this OptionTrackskipID self) + { + if (self.IsValid()) + { + return OptionTrackskipIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004719 RID: 18201 RVA: 0x00185DD8 File Offset: 0x00184FD8 + public static string GetFilePath(this OptionTrackskipID self) + { + if (self.IsValid()) + { + return OptionTrackskipIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x0600471A RID: 18202 RVA: 0x00185DF4 File Offset: 0x00184FF4 + public static bool IsDefault(this OptionTrackskipID self) + { + return self.IsValid() && OptionTrackskipIDEnum.records[(int)self].isDefault; + } + + // Token: 0x040056A5 RID: 22181 + private static readonly OptionTrackskipTableRecord[] records = new OptionTrackskipTableRecord[] + { + new OptionTrackskipTableRecord(0, "Off", "关", "", "不使用跳过乐曲", "", "UI_OPT_B_05_01", 1), + new OptionTrackskipTableRecord(1, "Push", "长按按键", "", "通过长按左右的4个按键", "", "UI_OPT_B_05_02", 0), + new OptionTrackskipTableRecord(2, "AutoS", "自动/S级", "", "当在某一时刻失分导致无法\r\n达成S级评价时跳过该乐曲\r\n", "", "UI_OPT_B_05_03", 0), + new OptionTrackskipTableRecord(3, "AutoSS", "自动/SS级", "", "当在某一时刻失分导致无法\r\n达成SS级评价时跳过该乐曲", "", "UI_OPT_B_05_04", 0), + new OptionTrackskipTableRecord(4, "AutoSSS", "自动/SSS级", "", "当在某一时刻失分导致无法\r\n达成SSS级评价时跳过该乐曲", "", "UI_OPT_B_05_05", 0), + new OptionTrackskipTableRecord(5, "AutoBest", "自动/最好成绩", "", "当在某一时刻失分导致无法\r\n达成自己最好成绩时跳过该乐曲", "", "UI_OPT_B_05_06", 0), + new OptionTrackskipTableRecord(6, "AutoRivalScore", "自动/对手达成率", "", "", "", "UI_OPT_B_05_12", 0), + new OptionTrackskipTableRecord(7, "AutoLife300", "生命值/300", "", "获得GREAT以下的判定时减少1生命值\r\n生命值为0时结束曲目", "", "UI_OPT_B_05_07", 0), + new OptionTrackskipTableRecord(8, "AutoLife100", "生命值/100", "", "获得GREAT以下的判定时减少1生命值\r\n生命值为0时结束曲目", "", "UI_OPT_B_05_08", 0), + new OptionTrackskipTableRecord(9, "AutoLife50", "生命值/50", "", "获得GREAT以下的判定时减少1生命值\r\n生命值为0时结束曲目", "", "UI_OPT_B_05_09", 0), + new OptionTrackskipTableRecord(10, "AutoLife10", "生命值/10", "", "获得GREAT以下的判定时减少1生命值\r\n生命值为0时结束曲目", "", "UI_OPT_B_05_10", 0), + new OptionTrackskipTableRecord(11, "AutoLife1", "生命值/1", "", "获得GREAT以下的判定时减少1生命值\r\n生命值为0时结束曲目", "", "UI_OPT_B_05_11", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionTrackskipTableRecord.cs b/Assembly-CSharp/DB/OptionTrackskipTableRecord.cs new file mode 100644 index 0000000..6978201 --- /dev/null +++ b/Assembly-CSharp/DB/OptionTrackskipTableRecord.cs @@ -0,0 +1,50 @@ +using System; + +namespace DB +{ + // Token: 0x02000800 RID: 2048 + public class OptionTrackskipTableRecord + { + // Token: 0x0600470B RID: 18187 RVA: 0x00003560 File Offset: 0x00002760 + public OptionTrackskipTableRecord() + { + } + + // Token: 0x0600470C RID: 18188 RVA: 0x00185C8C File Offset: 0x00184E8C + public OptionTrackskipTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x0400569D RID: 22173 + public int EnumValue; + + // Token: 0x0400569E RID: 22174 + public string EnumName; + + // Token: 0x0400569F RID: 22175 + public string Name; + + // Token: 0x040056A0 RID: 22176 + public string NameEx; + + // Token: 0x040056A1 RID: 22177 + public string Detail; + + // Token: 0x040056A2 RID: 22178 + public string DetailEx; + + // Token: 0x040056A3 RID: 22179 + public string FilePath; + + // Token: 0x040056A4 RID: 22180 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionVolumeAnswerSoundID.cs b/Assembly-CSharp/DB/OptionVolumeAnswerSoundID.cs new file mode 100644 index 0000000..b2cb9a0 --- /dev/null +++ b/Assembly-CSharp/DB/OptionVolumeAnswerSoundID.cs @@ -0,0 +1,37 @@ +using System; + +namespace DB +{ + // Token: 0x02000802 RID: 2050 + public enum OptionVolumeAnswerSoundID + { + // Token: 0x040056A7 RID: 22183 + Mute, + // Token: 0x040056A8 RID: 22184 + Vol1, + // Token: 0x040056A9 RID: 22185 + Vol2, + // Token: 0x040056AA RID: 22186 + Vol3, + // Token: 0x040056AB RID: 22187 + Vol4, + // Token: 0x040056AC RID: 22188 + Vol5, + // Token: 0x040056AD RID: 22189 + Vol6, + // Token: 0x040056AE RID: 22190 + Vol7, + // Token: 0x040056AF RID: 22191 + Vol8, + // Token: 0x040056B0 RID: 22192 + Vol9, + // Token: 0x040056B1 RID: 22193 + Vol10, + // Token: 0x040056B2 RID: 22194 + Begin = 0, + // Token: 0x040056B3 RID: 22195 + End = 11, + // Token: 0x040056B4 RID: 22196 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionVolumeAnswerSoundIDEnum.cs b/Assembly-CSharp/DB/OptionVolumeAnswerSoundIDEnum.cs new file mode 100644 index 0000000..46ce635 --- /dev/null +++ b/Assembly-CSharp/DB/OptionVolumeAnswerSoundIDEnum.cs @@ -0,0 +1,161 @@ +using System; + +namespace DB +{ + // Token: 0x02000804 RID: 2052 + public static class OptionVolumeAnswerSoundIDEnum + { + // Token: 0x0600471E RID: 18206 RVA: 0x00186068 File Offset: 0x00185268 + public static bool IsActive(this OptionVolumeAnswerSoundID self) + { + return self >= OptionVolumeAnswerSoundID.Mute && self < OptionVolumeAnswerSoundID.End && self > OptionVolumeAnswerSoundID.Mute; + } + + // Token: 0x0600471F RID: 18207 RVA: 0x00186079 File Offset: 0x00185279 + public static bool IsValid(this OptionVolumeAnswerSoundID self) + { + return self >= OptionVolumeAnswerSoundID.Mute && self < OptionVolumeAnswerSoundID.End; + } + + // Token: 0x06004720 RID: 18208 RVA: 0x00186086 File Offset: 0x00185286 + public static void Clamp(this OptionVolumeAnswerSoundID self) + { + if (self < OptionVolumeAnswerSoundID.Mute) + { + self = OptionVolumeAnswerSoundID.Mute; + return; + } + if (self >= (OptionVolumeAnswerSoundID)OptionVolumeAnswerSoundIDEnum.GetEnd()) + { + self = (OptionVolumeAnswerSoundID)OptionVolumeAnswerSoundIDEnum.GetEnd(); + } + } + + // Token: 0x06004721 RID: 18209 RVA: 0x0018609F File Offset: 0x0018529F + public static int GetEnd(this OptionVolumeAnswerSoundID self) + { + return OptionVolumeAnswerSoundIDEnum.GetEnd(); + } + + // Token: 0x06004722 RID: 18210 RVA: 0x001860A8 File Offset: 0x001852A8 + public static OptionVolumeAnswerSoundID FindID(string enumName) + { + for (OptionVolumeAnswerSoundID optionVolumeAnswerSoundID = OptionVolumeAnswerSoundID.Mute; optionVolumeAnswerSoundID < OptionVolumeAnswerSoundID.End; optionVolumeAnswerSoundID++) + { + if (optionVolumeAnswerSoundID.GetEnumName() == enumName) + { + return optionVolumeAnswerSoundID; + } + } + return OptionVolumeAnswerSoundID.Invalid; + } + + // Token: 0x06004723 RID: 18211 RVA: 0x001860D3 File Offset: 0x001852D3 + public static int GetEnd() + { + return OptionVolumeAnswerSoundIDEnum.records.Length; + } + + // Token: 0x06004724 RID: 18212 RVA: 0x001860DC File Offset: 0x001852DC + public static int GetEnumValue(this OptionVolumeAnswerSoundID self) + { + if (self.IsValid()) + { + return OptionVolumeAnswerSoundIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004725 RID: 18213 RVA: 0x001860F4 File Offset: 0x001852F4 + public static string GetEnumName(this OptionVolumeAnswerSoundID self) + { + if (self.IsValid()) + { + return OptionVolumeAnswerSoundIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004726 RID: 18214 RVA: 0x00186110 File Offset: 0x00185310 + public static float GetValue(this OptionVolumeAnswerSoundID self) + { + if (self.IsValid()) + { + return OptionVolumeAnswerSoundIDEnum.records[(int)self].Value; + } + return 0f; + } + + // Token: 0x06004727 RID: 18215 RVA: 0x0018612C File Offset: 0x0018532C + public static string GetName(this OptionVolumeAnswerSoundID self) + { + if (self.IsValid()) + { + return OptionVolumeAnswerSoundIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004728 RID: 18216 RVA: 0x00186148 File Offset: 0x00185348 + public static string GetNameEx(this OptionVolumeAnswerSoundID self) + { + if (self.IsValid()) + { + return OptionVolumeAnswerSoundIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004729 RID: 18217 RVA: 0x00186164 File Offset: 0x00185364 + public static string GetDetail(this OptionVolumeAnswerSoundID self) + { + if (self.IsValid()) + { + return OptionVolumeAnswerSoundIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x0600472A RID: 18218 RVA: 0x00186180 File Offset: 0x00185380 + public static string GetDetailEx(this OptionVolumeAnswerSoundID self) + { + if (self.IsValid()) + { + return OptionVolumeAnswerSoundIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x0600472B RID: 18219 RVA: 0x0018619C File Offset: 0x0018539C + public static string GetFilePath(this OptionVolumeAnswerSoundID self) + { + if (self.IsValid()) + { + return OptionVolumeAnswerSoundIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x0600472C RID: 18220 RVA: 0x001861B8 File Offset: 0x001853B8 + public static bool IsDefault(this OptionVolumeAnswerSoundID self) + { + return self.IsValid() && OptionVolumeAnswerSoundIDEnum.records[(int)self].isDefault; + } + + // Token: 0x040056BE RID: 22206 + private static readonly OptionVolumeAnswerSoundTableRecord[] records = new OptionVolumeAnswerSoundTableRecord[] + { + new OptionVolumeAnswerSoundTableRecord(0, "Mute", 0f, "关", "", "", "", "UI_OPT_E_23_01", 0), + new OptionVolumeAnswerSoundTableRecord(1, "Vol1", 0.1f, "1", "", "", "", "UI_OPT_E_23_02", 0), + new OptionVolumeAnswerSoundTableRecord(2, "Vol2", 0.2f, "2", "", "", "", "UI_OPT_E_23_02", 0), + new OptionVolumeAnswerSoundTableRecord(3, "Vol3", 0.3f, "3", "", "", "", "UI_OPT_E_23_03", 0), + new OptionVolumeAnswerSoundTableRecord(4, "Vol4", 0.4f, "4", "", "", "", "UI_OPT_E_23_03", 0), + new OptionVolumeAnswerSoundTableRecord(5, "Vol5", 0.5f, "5", "", "", "", "UI_OPT_E_23_04", 0), + new OptionVolumeAnswerSoundTableRecord(6, "Vol6", 0.6f, "6", "", "", "", "UI_OPT_E_23_04", 1), + new OptionVolumeAnswerSoundTableRecord(7, "Vol7", 0.7f, "7", "", "", "", "UI_OPT_E_23_05", 0), + new OptionVolumeAnswerSoundTableRecord(8, "Vol8", 0.8f, "8", "", "", "", "UI_OPT_E_23_05", 0), + new OptionVolumeAnswerSoundTableRecord(9, "Vol9", 0.9f, "9", "", "", "", "UI_OPT_E_23_06", 0), + new OptionVolumeAnswerSoundTableRecord(10, "Vol10", 1f, "10", "", "", "", "UI_OPT_E_23_06", 0) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionVolumeAnswerSoundTableRecord.cs b/Assembly-CSharp/DB/OptionVolumeAnswerSoundTableRecord.cs new file mode 100644 index 0000000..376f086 --- /dev/null +++ b/Assembly-CSharp/DB/OptionVolumeAnswerSoundTableRecord.cs @@ -0,0 +1,54 @@ +using System; + +namespace DB +{ + // Token: 0x02000803 RID: 2051 + public class OptionVolumeAnswerSoundTableRecord + { + // Token: 0x0600471C RID: 18204 RVA: 0x00003560 File Offset: 0x00002760 + public OptionVolumeAnswerSoundTableRecord() + { + } + + // Token: 0x0600471D RID: 18205 RVA: 0x0018600C File Offset: 0x0018520C + public OptionVolumeAnswerSoundTableRecord(int EnumValue, string EnumName, float Value, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Value = Value; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x040056B5 RID: 22197 + public int EnumValue; + + // Token: 0x040056B6 RID: 22198 + public string EnumName; + + // Token: 0x040056B7 RID: 22199 + public float Value; + + // Token: 0x040056B8 RID: 22200 + public string Name; + + // Token: 0x040056B9 RID: 22201 + public string NameEx; + + // Token: 0x040056BA RID: 22202 + public string Detail; + + // Token: 0x040056BB RID: 22203 + public string DetailEx; + + // Token: 0x040056BC RID: 22204 + public string FilePath; + + // Token: 0x040056BD RID: 22205 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/OptionVolumeID.cs b/Assembly-CSharp/DB/OptionVolumeID.cs new file mode 100644 index 0000000..a19e475 --- /dev/null +++ b/Assembly-CSharp/DB/OptionVolumeID.cs @@ -0,0 +1,27 @@ +using System; + +namespace DB +{ + // Token: 0x02000805 RID: 2053 + public enum OptionVolumeID + { + // Token: 0x040056C0 RID: 22208 + Mute, + // Token: 0x040056C1 RID: 22209 + Vol1, + // Token: 0x040056C2 RID: 22210 + Vol2, + // Token: 0x040056C3 RID: 22211 + Vol3, + // Token: 0x040056C4 RID: 22212 + Vol4, + // Token: 0x040056C5 RID: 22213 + Vol5, + // Token: 0x040056C6 RID: 22214 + Begin = 0, + // Token: 0x040056C7 RID: 22215 + End = 6, + // Token: 0x040056C8 RID: 22216 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/OptionVolumeIDEnum.cs b/Assembly-CSharp/DB/OptionVolumeIDEnum.cs new file mode 100644 index 0000000..00ff58f --- /dev/null +++ b/Assembly-CSharp/DB/OptionVolumeIDEnum.cs @@ -0,0 +1,156 @@ +using System; + +namespace DB +{ + // Token: 0x02000807 RID: 2055 + public static class OptionVolumeIDEnum + { + // Token: 0x06004730 RID: 18224 RVA: 0x00178314 File Offset: 0x00177514 + public static bool IsActive(this OptionVolumeID self) + { + return self >= OptionVolumeID.Mute && self < OptionVolumeID.End && self > OptionVolumeID.Mute; + } + + // Token: 0x06004731 RID: 18225 RVA: 0x00130760 File Offset: 0x0012F960 + public static bool IsValid(this OptionVolumeID self) + { + return self >= OptionVolumeID.Mute && self < OptionVolumeID.End; + } + + // Token: 0x06004732 RID: 18226 RVA: 0x00186438 File Offset: 0x00185638 + public static void Clamp(this OptionVolumeID self) + { + if (self < OptionVolumeID.Mute) + { + self = OptionVolumeID.Mute; + return; + } + if (self >= (OptionVolumeID)OptionVolumeIDEnum.GetEnd()) + { + self = (OptionVolumeID)OptionVolumeIDEnum.GetEnd(); + } + } + + // Token: 0x06004733 RID: 18227 RVA: 0x00186451 File Offset: 0x00185651 + public static int GetEnd(this OptionVolumeID self) + { + return OptionVolumeIDEnum.GetEnd(); + } + + // Token: 0x06004734 RID: 18228 RVA: 0x00186458 File Offset: 0x00185658 + public static OptionVolumeID FindID(string enumName) + { + for (OptionVolumeID optionVolumeID = OptionVolumeID.Mute; optionVolumeID < OptionVolumeID.End; optionVolumeID++) + { + if (optionVolumeID.GetEnumName() == enumName) + { + return optionVolumeID; + } + } + return OptionVolumeID.Invalid; + } + + // Token: 0x06004735 RID: 18229 RVA: 0x00186482 File Offset: 0x00185682 + public static int GetEnd() + { + return OptionVolumeIDEnum.records.Length; + } + + // Token: 0x06004736 RID: 18230 RVA: 0x0018648B File Offset: 0x0018568B + public static int GetEnumValue(this OptionVolumeID self) + { + if (self.IsValid()) + { + return OptionVolumeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004737 RID: 18231 RVA: 0x001864A3 File Offset: 0x001856A3 + public static string GetEnumName(this OptionVolumeID self) + { + if (self.IsValid()) + { + return OptionVolumeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004738 RID: 18232 RVA: 0x001864BF File Offset: 0x001856BF + public static float GetValue(this OptionVolumeID self) + { + if (self.IsValid()) + { + return OptionVolumeIDEnum.records[(int)self].Value; + } + return 0f; + } + + // Token: 0x06004739 RID: 18233 RVA: 0x001864DB File Offset: 0x001856DB + public static string GetName(this OptionVolumeID self) + { + if (self.IsValid()) + { + return OptionVolumeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600473A RID: 18234 RVA: 0x001864F7 File Offset: 0x001856F7 + public static string GetNameEx(this OptionVolumeID self) + { + if (self.IsValid()) + { + return OptionVolumeIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x0600473B RID: 18235 RVA: 0x00186513 File Offset: 0x00185713 + public static string GetDetail(this OptionVolumeID self) + { + if (self.IsValid()) + { + return OptionVolumeIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x0600473C RID: 18236 RVA: 0x0018652F File Offset: 0x0018572F + public static string GetDetailEx(this OptionVolumeID self) + { + if (self.IsValid()) + { + return OptionVolumeIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x0600473D RID: 18237 RVA: 0x0018654B File Offset: 0x0018574B + public static string GetFilePath(this OptionVolumeID self) + { + if (self.IsValid()) + { + return OptionVolumeIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x0600473E RID: 18238 RVA: 0x00186567 File Offset: 0x00185767 + public static bool IsDefault(this OptionVolumeID self) + { + return self.IsValid() && OptionVolumeIDEnum.records[(int)self].isDefault; + } + + // Token: 0x040056D2 RID: 22226 + private static readonly OptionVolumeTableRecord[] records = new OptionVolumeTableRecord[] + { + new OptionVolumeTableRecord(0, "Mute", 0f, "关", "", "", "", "UI_OPT_E_23_01", 0), + new OptionVolumeTableRecord(1, "Vol1", 0.2f, "1", "", "", "", "UI_OPT_E_23_02", 0), + new OptionVolumeTableRecord(2, "Vol2", 0.4f, "2", "", "", "", "UI_OPT_E_23_03", 0), + new OptionVolumeTableRecord(3, "Vol3", 0.6f, "3", "", "", "", "UI_OPT_E_23_04", 0), + new OptionVolumeTableRecord(4, "Vol4", 0.8f, "4", "", "", "", "UI_OPT_E_23_05", 0), + new OptionVolumeTableRecord(5, "Vol5", 1f, "5", "", "", "", "UI_OPT_E_23_06", 1) + }; + } +} diff --git a/Assembly-CSharp/DB/OptionVolumeTableRecord.cs b/Assembly-CSharp/DB/OptionVolumeTableRecord.cs new file mode 100644 index 0000000..03b547d --- /dev/null +++ b/Assembly-CSharp/DB/OptionVolumeTableRecord.cs @@ -0,0 +1,54 @@ +using System; + +namespace DB +{ + // Token: 0x02000806 RID: 2054 + public class OptionVolumeTableRecord + { + // Token: 0x0600472E RID: 18222 RVA: 0x00003560 File Offset: 0x00002760 + public OptionVolumeTableRecord() + { + } + + // Token: 0x0600472F RID: 18223 RVA: 0x001863DC File Offset: 0x001855DC + public OptionVolumeTableRecord(int EnumValue, string EnumName, float Value, string Name, string NameEx, string Detail, string DetailEx, string FilePath, int isDefault) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Value = Value; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + this.isDefault = isDefault != 0; + } + + // Token: 0x040056C9 RID: 22217 + public int EnumValue; + + // Token: 0x040056CA RID: 22218 + public string EnumName; + + // Token: 0x040056CB RID: 22219 + public float Value; + + // Token: 0x040056CC RID: 22220 + public string Name; + + // Token: 0x040056CD RID: 22221 + public string NameEx; + + // Token: 0x040056CE RID: 22222 + public string Detail; + + // Token: 0x040056CF RID: 22223 + public string DetailEx; + + // Token: 0x040056D0 RID: 22224 + public string FilePath; + + // Token: 0x040056D1 RID: 22225 + public bool isDefault; + } +} diff --git a/Assembly-CSharp/DB/PartnerRoomTextID.cs b/Assembly-CSharp/DB/PartnerRoomTextID.cs new file mode 100644 index 0000000..a1ee0dd --- /dev/null +++ b/Assembly-CSharp/DB/PartnerRoomTextID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x02000808 RID: 2056 + public enum PartnerRoomTextID + { + // Token: 0x040056D4 RID: 22228 + PresentNumber, + // Token: 0x040056D5 RID: 22229 + Give, + // Token: 0x040056D6 RID: 22230 + UntilNextReward, + // Token: 0x040056D7 RID: 22231 + More, + // Token: 0x040056D8 RID: 22232 + Possession, + // Token: 0x040056D9 RID: 22233 + Begin = 0, + // Token: 0x040056DA RID: 22234 + End = 5, + // Token: 0x040056DB RID: 22235 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartnerRoomTextIDEnum.cs b/Assembly-CSharp/DB/PartnerRoomTextIDEnum.cs new file mode 100644 index 0000000..b34825d --- /dev/null +++ b/Assembly-CSharp/DB/PartnerRoomTextIDEnum.cs @@ -0,0 +1,99 @@ +using System; + +namespace DB +{ + // Token: 0x0200080A RID: 2058 + public static class PartnerRoomTextIDEnum + { + // Token: 0x06004742 RID: 18242 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this PartnerRoomTextID self) + { + return self >= PartnerRoomTextID.PresentNumber && self < PartnerRoomTextID.End && self > PartnerRoomTextID.PresentNumber; + } + + // Token: 0x06004743 RID: 18243 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this PartnerRoomTextID self) + { + return self >= PartnerRoomTextID.PresentNumber && self < PartnerRoomTextID.End; + } + + // Token: 0x06004744 RID: 18244 RVA: 0x001866C3 File Offset: 0x001858C3 + public static void Clamp(this PartnerRoomTextID self) + { + if (self < PartnerRoomTextID.PresentNumber) + { + self = PartnerRoomTextID.PresentNumber; + return; + } + if (self >= (PartnerRoomTextID)PartnerRoomTextIDEnum.GetEnd()) + { + self = (PartnerRoomTextID)PartnerRoomTextIDEnum.GetEnd(); + } + } + + // Token: 0x06004745 RID: 18245 RVA: 0x001866DC File Offset: 0x001858DC + public static int GetEnd(this PartnerRoomTextID self) + { + return PartnerRoomTextIDEnum.GetEnd(); + } + + // Token: 0x06004746 RID: 18246 RVA: 0x001866E4 File Offset: 0x001858E4 + public static PartnerRoomTextID FindID(string enumName) + { + for (PartnerRoomTextID partnerRoomTextID = PartnerRoomTextID.PresentNumber; partnerRoomTextID < PartnerRoomTextID.End; partnerRoomTextID++) + { + if (partnerRoomTextID.GetEnumName() == enumName) + { + return partnerRoomTextID; + } + } + return PartnerRoomTextID.Invalid; + } + + // Token: 0x06004747 RID: 18247 RVA: 0x0018670E File Offset: 0x0018590E + public static int GetEnd() + { + return PartnerRoomTextIDEnum.records.Length; + } + + // Token: 0x06004748 RID: 18248 RVA: 0x00186717 File Offset: 0x00185917 + public static int GetEnumValue(this PartnerRoomTextID self) + { + if (self.IsValid()) + { + return PartnerRoomTextIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004749 RID: 18249 RVA: 0x0018672F File Offset: 0x0018592F + public static string GetEnumName(this PartnerRoomTextID self) + { + if (self.IsValid()) + { + return PartnerRoomTextIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600474A RID: 18250 RVA: 0x0018674B File Offset: 0x0018594B + public static string GetName(this PartnerRoomTextID self) + { + if (self.IsValid()) + { + return PartnerRoomTextIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x040056DF RID: 22239 + private static readonly PartnerRoomTextTableRecord[] records = new PartnerRoomTextTableRecord[] + { + new PartnerRoomTextTableRecord(0, "PresentNumber", "个"), + new PartnerRoomTextTableRecord(1, "Give", "赠送"), + new PartnerRoomTextTableRecord(2, "UntilNextReward", "距离下一个奖励"), + new PartnerRoomTextTableRecord(3, "More", "还需"), + new PartnerRoomTextTableRecord(4, "Possession", "持有") + }; + } +} diff --git a/Assembly-CSharp/DB/PartnerRoomTextTableRecord.cs b/Assembly-CSharp/DB/PartnerRoomTextTableRecord.cs new file mode 100644 index 0000000..ca15759 --- /dev/null +++ b/Assembly-CSharp/DB/PartnerRoomTextTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000809 RID: 2057 + public class PartnerRoomTextTableRecord + { + // Token: 0x06004740 RID: 18240 RVA: 0x00003560 File Offset: 0x00002760 + public PartnerRoomTextTableRecord() + { + } + + // Token: 0x06004741 RID: 18241 RVA: 0x001866A6 File Offset: 0x001858A6 + public PartnerRoomTextTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x040056DC RID: 22236 + public int EnumValue; + + // Token: 0x040056DD RID: 22237 + public string EnumName; + + // Token: 0x040056DE RID: 22238 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/PartyAdvertiseStateID.cs b/Assembly-CSharp/DB/PartyAdvertiseStateID.cs new file mode 100644 index 0000000..6f396db --- /dev/null +++ b/Assembly-CSharp/DB/PartyAdvertiseStateID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x0200080B RID: 2059 + public enum PartyAdvertiseStateID + { + // Token: 0x040056E1 RID: 22241 + First, + // Token: 0x040056E2 RID: 22242 + Wait, + // Token: 0x040056E3 RID: 22243 + Requested, + // Token: 0x040056E4 RID: 22244 + Ready, + // Token: 0x040056E5 RID: 22245 + Go, + // Token: 0x040056E6 RID: 22246 + Begin = 0, + // Token: 0x040056E7 RID: 22247 + End = 5, + // Token: 0x040056E8 RID: 22248 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartyAdvertiseStateIDEnum.cs b/Assembly-CSharp/DB/PartyAdvertiseStateIDEnum.cs new file mode 100644 index 0000000..0897074 --- /dev/null +++ b/Assembly-CSharp/DB/PartyAdvertiseStateIDEnum.cs @@ -0,0 +1,111 @@ +using System; + +namespace DB +{ + // Token: 0x0200080D RID: 2061 + public static class PartyAdvertiseStateIDEnum + { + // Token: 0x0600474E RID: 18254 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this PartyAdvertiseStateID self) + { + return self >= PartyAdvertiseStateID.First && self < PartyAdvertiseStateID.End && self > PartyAdvertiseStateID.First; + } + + // Token: 0x0600474F RID: 18255 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this PartyAdvertiseStateID self) + { + return self >= PartyAdvertiseStateID.First && self < PartyAdvertiseStateID.End; + } + + // Token: 0x06004750 RID: 18256 RVA: 0x00186812 File Offset: 0x00185A12 + public static void Clamp(this PartyAdvertiseStateID self) + { + if (self < PartyAdvertiseStateID.First) + { + self = PartyAdvertiseStateID.First; + return; + } + if (self >= (PartyAdvertiseStateID)PartyAdvertiseStateIDEnum.GetEnd()) + { + self = (PartyAdvertiseStateID)PartyAdvertiseStateIDEnum.GetEnd(); + } + } + + // Token: 0x06004751 RID: 18257 RVA: 0x0018682B File Offset: 0x00185A2B + public static int GetEnd(this PartyAdvertiseStateID self) + { + return PartyAdvertiseStateIDEnum.GetEnd(); + } + + // Token: 0x06004752 RID: 18258 RVA: 0x00186834 File Offset: 0x00185A34 + public static PartyAdvertiseStateID FindID(string enumName) + { + for (PartyAdvertiseStateID partyAdvertiseStateID = PartyAdvertiseStateID.First; partyAdvertiseStateID < PartyAdvertiseStateID.End; partyAdvertiseStateID++) + { + if (partyAdvertiseStateID.GetEnumName() == enumName) + { + return partyAdvertiseStateID; + } + } + return PartyAdvertiseStateID.Invalid; + } + + // Token: 0x06004753 RID: 18259 RVA: 0x0018685E File Offset: 0x00185A5E + public static int GetEnd() + { + return PartyAdvertiseStateIDEnum.records.Length; + } + + // Token: 0x06004754 RID: 18260 RVA: 0x00186867 File Offset: 0x00185A67 + public static int GetEnumValue(this PartyAdvertiseStateID self) + { + if (self.IsValid()) + { + return PartyAdvertiseStateIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004755 RID: 18261 RVA: 0x0018687F File Offset: 0x00185A7F + public static string GetEnumName(this PartyAdvertiseStateID self) + { + if (self.IsValid()) + { + return PartyAdvertiseStateIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004756 RID: 18262 RVA: 0x0018689B File Offset: 0x00185A9B + public static string GetName(this PartyAdvertiseStateID self) + { + if (self.IsValid()) + { + return PartyAdvertiseStateIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004757 RID: 18263 RVA: 0x001868B7 File Offset: 0x00185AB7 + public static bool IsNormal(this PartyAdvertiseStateID self) + { + return self.IsValid() && PartyAdvertiseStateIDEnum.records[(int)self].isNormal; + } + + // Token: 0x06004758 RID: 18264 RVA: 0x001868CF File Offset: 0x00185ACF + public static bool IsGo(this PartyAdvertiseStateID self) + { + return self.IsValid() && PartyAdvertiseStateIDEnum.records[(int)self].isGo; + } + + // Token: 0x040056EE RID: 22254 + private static readonly PartyAdvertiseStateTableRecord[] records = new PartyAdvertiseStateTableRecord[] + { + new PartyAdvertiseStateTableRecord(0, "First", "First", 0, 0), + new PartyAdvertiseStateTableRecord(1, "Wait", "待機", 1, 0), + new PartyAdvertiseStateTableRecord(2, "Requested", "返答待ち", 1, 0), + new PartyAdvertiseStateTableRecord(3, "Ready", "指定時間待つ", 1, 0), + new PartyAdvertiseStateTableRecord(4, "Go", "出発", 1, 1) + }; + } +} diff --git a/Assembly-CSharp/DB/PartyAdvertiseStateTableRecord.cs b/Assembly-CSharp/DB/PartyAdvertiseStateTableRecord.cs new file mode 100644 index 0000000..25cfd81 --- /dev/null +++ b/Assembly-CSharp/DB/PartyAdvertiseStateTableRecord.cs @@ -0,0 +1,38 @@ +using System; + +namespace DB +{ + // Token: 0x0200080C RID: 2060 + public class PartyAdvertiseStateTableRecord + { + // Token: 0x0600474C RID: 18252 RVA: 0x00003560 File Offset: 0x00002760 + public PartyAdvertiseStateTableRecord() + { + } + + // Token: 0x0600474D RID: 18253 RVA: 0x001867DF File Offset: 0x001859DF + public PartyAdvertiseStateTableRecord(int EnumValue, string EnumName, string Name, int isNormal, int isGo) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.isNormal = isNormal != 0; + this.isGo = isGo != 0; + } + + // Token: 0x040056E9 RID: 22249 + public int EnumValue; + + // Token: 0x040056EA RID: 22250 + public string EnumName; + + // Token: 0x040056EB RID: 22251 + public string Name; + + // Token: 0x040056EC RID: 22252 + public bool isNormal; + + // Token: 0x040056ED RID: 22253 + public bool isGo; + } +} diff --git a/Assembly-CSharp/DB/PartyConnectStateID.cs b/Assembly-CSharp/DB/PartyConnectStateID.cs new file mode 100644 index 0000000..4f70f9a --- /dev/null +++ b/Assembly-CSharp/DB/PartyConnectStateID.cs @@ -0,0 +1,23 @@ +using System; + +namespace DB +{ + // Token: 0x0200080E RID: 2062 + public enum PartyConnectStateID + { + // Token: 0x040056F0 RID: 22256 + Close, + // Token: 0x040056F1 RID: 22257 + Connect, + // Token: 0x040056F2 RID: 22258 + Active, + // Token: 0x040056F3 RID: 22259 + Shutdown, + // Token: 0x040056F4 RID: 22260 + Begin = 0, + // Token: 0x040056F5 RID: 22261 + End = 4, + // Token: 0x040056F6 RID: 22262 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartyConnectStateIDEnum.cs b/Assembly-CSharp/DB/PartyConnectStateIDEnum.cs new file mode 100644 index 0000000..ba649a5 --- /dev/null +++ b/Assembly-CSharp/DB/PartyConnectStateIDEnum.cs @@ -0,0 +1,98 @@ +using System; + +namespace DB +{ + // Token: 0x02000810 RID: 2064 + public static class PartyConnectStateIDEnum + { + // Token: 0x0600475C RID: 18268 RVA: 0x00173DA6 File Offset: 0x00172FA6 + public static bool IsActive(this PartyConnectStateID self) + { + return self >= PartyConnectStateID.Close && self < PartyConnectStateID.End && self > PartyConnectStateID.Close; + } + + // Token: 0x0600475D RID: 18269 RVA: 0x00173DB6 File Offset: 0x00172FB6 + public static bool IsValid(this PartyConnectStateID self) + { + return self >= PartyConnectStateID.Close && self < PartyConnectStateID.End; + } + + // Token: 0x0600475E RID: 18270 RVA: 0x00186986 File Offset: 0x00185B86 + public static void Clamp(this PartyConnectStateID self) + { + if (self < PartyConnectStateID.Close) + { + self = PartyConnectStateID.Close; + return; + } + if (self >= (PartyConnectStateID)PartyConnectStateIDEnum.GetEnd()) + { + self = (PartyConnectStateID)PartyConnectStateIDEnum.GetEnd(); + } + } + + // Token: 0x0600475F RID: 18271 RVA: 0x0018699F File Offset: 0x00185B9F + public static int GetEnd(this PartyConnectStateID self) + { + return PartyConnectStateIDEnum.GetEnd(); + } + + // Token: 0x06004760 RID: 18272 RVA: 0x001869A8 File Offset: 0x00185BA8 + public static PartyConnectStateID FindID(string enumName) + { + for (PartyConnectStateID partyConnectStateID = PartyConnectStateID.Close; partyConnectStateID < PartyConnectStateID.End; partyConnectStateID++) + { + if (partyConnectStateID.GetEnumName() == enumName) + { + return partyConnectStateID; + } + } + return PartyConnectStateID.Invalid; + } + + // Token: 0x06004761 RID: 18273 RVA: 0x001869D2 File Offset: 0x00185BD2 + public static int GetEnd() + { + return PartyConnectStateIDEnum.records.Length; + } + + // Token: 0x06004762 RID: 18274 RVA: 0x001869DB File Offset: 0x00185BDB + public static int GetEnumValue(this PartyConnectStateID self) + { + if (self.IsValid()) + { + return PartyConnectStateIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004763 RID: 18275 RVA: 0x001869F3 File Offset: 0x00185BF3 + public static string GetEnumName(this PartyConnectStateID self) + { + if (self.IsValid()) + { + return PartyConnectStateIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004764 RID: 18276 RVA: 0x00186A0F File Offset: 0x00185C0F + public static string GetName(this PartyConnectStateID self) + { + if (self.IsValid()) + { + return PartyConnectStateIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x040056FA RID: 22266 + private static readonly PartyConnectStateTableRecord[] records = new PartyConnectStateTableRecord[] + { + new PartyConnectStateTableRecord(0, "Close", "閉じている"), + new PartyConnectStateTableRecord(1, "Connect", "接続中"), + new PartyConnectStateTableRecord(2, "Active", "接続完了"), + new PartyConnectStateTableRecord(3, "Shutdown", "切断中") + }; + } +} diff --git a/Assembly-CSharp/DB/PartyConnectStateTableRecord.cs b/Assembly-CSharp/DB/PartyConnectStateTableRecord.cs new file mode 100644 index 0000000..289e8f7 --- /dev/null +++ b/Assembly-CSharp/DB/PartyConnectStateTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x0200080F RID: 2063 + public class PartyConnectStateTableRecord + { + // Token: 0x0600475A RID: 18266 RVA: 0x00003560 File Offset: 0x00002760 + public PartyConnectStateTableRecord() + { + } + + // Token: 0x0600475B RID: 18267 RVA: 0x00186969 File Offset: 0x00185B69 + public PartyConnectStateTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x040056F7 RID: 22263 + public int EnumValue; + + // Token: 0x040056F8 RID: 22264 + public string EnumName; + + // Token: 0x040056F9 RID: 22265 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/PartyDeliveryCheckerErrorID.cs b/Assembly-CSharp/DB/PartyDeliveryCheckerErrorID.cs new file mode 100644 index 0000000..c39e356 --- /dev/null +++ b/Assembly-CSharp/DB/PartyDeliveryCheckerErrorID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x02000811 RID: 2065 + public enum PartyDeliveryCheckerErrorID + { + // Token: 0x040056FC RID: 22268 + None, + // Token: 0x040056FD RID: 22269 + Socket, + // Token: 0x040056FE RID: 22270 + Duplicate, + // Token: 0x040056FF RID: 22271 + Begin = 0, + // Token: 0x04005700 RID: 22272 + End = 3, + // Token: 0x04005701 RID: 22273 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartyDeliveryCheckerErrorIDEnum.cs b/Assembly-CSharp/DB/PartyDeliveryCheckerErrorIDEnum.cs new file mode 100644 index 0000000..22f7725 --- /dev/null +++ b/Assembly-CSharp/DB/PartyDeliveryCheckerErrorIDEnum.cs @@ -0,0 +1,97 @@ +using System; + +namespace DB +{ + // Token: 0x02000813 RID: 2067 + public static class PartyDeliveryCheckerErrorIDEnum + { + // Token: 0x06004768 RID: 18280 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this PartyDeliveryCheckerErrorID self) + { + return self >= PartyDeliveryCheckerErrorID.None && self < PartyDeliveryCheckerErrorID.End && self > PartyDeliveryCheckerErrorID.None; + } + + // Token: 0x06004769 RID: 18281 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this PartyDeliveryCheckerErrorID self) + { + return self >= PartyDeliveryCheckerErrorID.None && self < PartyDeliveryCheckerErrorID.End; + } + + // Token: 0x0600476A RID: 18282 RVA: 0x00186AAD File Offset: 0x00185CAD + public static void Clamp(this PartyDeliveryCheckerErrorID self) + { + if (self < PartyDeliveryCheckerErrorID.None) + { + self = PartyDeliveryCheckerErrorID.None; + return; + } + if (self >= (PartyDeliveryCheckerErrorID)PartyDeliveryCheckerErrorIDEnum.GetEnd()) + { + self = (PartyDeliveryCheckerErrorID)PartyDeliveryCheckerErrorIDEnum.GetEnd(); + } + } + + // Token: 0x0600476B RID: 18283 RVA: 0x00186AC6 File Offset: 0x00185CC6 + public static int GetEnd(this PartyDeliveryCheckerErrorID self) + { + return PartyDeliveryCheckerErrorIDEnum.GetEnd(); + } + + // Token: 0x0600476C RID: 18284 RVA: 0x00186AD0 File Offset: 0x00185CD0 + public static PartyDeliveryCheckerErrorID FindID(string enumName) + { + for (PartyDeliveryCheckerErrorID partyDeliveryCheckerErrorID = PartyDeliveryCheckerErrorID.None; partyDeliveryCheckerErrorID < PartyDeliveryCheckerErrorID.End; partyDeliveryCheckerErrorID++) + { + if (partyDeliveryCheckerErrorID.GetEnumName() == enumName) + { + return partyDeliveryCheckerErrorID; + } + } + return PartyDeliveryCheckerErrorID.Invalid; + } + + // Token: 0x0600476D RID: 18285 RVA: 0x00186AFA File Offset: 0x00185CFA + public static int GetEnd() + { + return PartyDeliveryCheckerErrorIDEnum.records.Length; + } + + // Token: 0x0600476E RID: 18286 RVA: 0x00186B03 File Offset: 0x00185D03 + public static int GetEnumValue(this PartyDeliveryCheckerErrorID self) + { + if (self.IsValid()) + { + return PartyDeliveryCheckerErrorIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600476F RID: 18287 RVA: 0x00186B1B File Offset: 0x00185D1B + public static string GetEnumName(this PartyDeliveryCheckerErrorID self) + { + if (self.IsValid()) + { + return PartyDeliveryCheckerErrorIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004770 RID: 18288 RVA: 0x00186B37 File Offset: 0x00185D37 + public static string GetName(this PartyDeliveryCheckerErrorID self) + { + if (self.IsValid()) + { + return PartyDeliveryCheckerErrorIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04005705 RID: 22277 + private static readonly PartyDeliveryCheckerErrorTableRecord[] records = new PartyDeliveryCheckerErrorTableRecord[] + { + new PartyDeliveryCheckerErrorTableRecord(0, "None", "None"), + new PartyDeliveryCheckerErrorTableRecord(1, "Socket", "Socket"), + new PartyDeliveryCheckerErrorTableRecord(2, "Duplicate", "Duplicate") + }; + } +} diff --git a/Assembly-CSharp/DB/PartyDeliveryCheckerErrorTableRecord.cs b/Assembly-CSharp/DB/PartyDeliveryCheckerErrorTableRecord.cs new file mode 100644 index 0000000..1c071bf --- /dev/null +++ b/Assembly-CSharp/DB/PartyDeliveryCheckerErrorTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000812 RID: 2066 + public class PartyDeliveryCheckerErrorTableRecord + { + // Token: 0x06004766 RID: 18278 RVA: 0x00003560 File Offset: 0x00002760 + public PartyDeliveryCheckerErrorTableRecord() + { + } + + // Token: 0x06004767 RID: 18279 RVA: 0x00186A90 File Offset: 0x00185C90 + public PartyDeliveryCheckerErrorTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005702 RID: 22274 + public int EnumValue; + + // Token: 0x04005703 RID: 22275 + public string EnumName; + + // Token: 0x04005704 RID: 22276 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/PartyDeliveryCheckerStateID.cs b/Assembly-CSharp/DB/PartyDeliveryCheckerStateID.cs new file mode 100644 index 0000000..d811227 --- /dev/null +++ b/Assembly-CSharp/DB/PartyDeliveryCheckerStateID.cs @@ -0,0 +1,29 @@ +using System; + +namespace DB +{ + // Token: 0x02000814 RID: 2068 + public enum PartyDeliveryCheckerStateID + { + // Token: 0x04005707 RID: 22279 + First, + // Token: 0x04005708 RID: 22280 + ServerCheck, + // Token: 0x04005709 RID: 22281 + ServerActive, + // Token: 0x0400570A RID: 22282 + ClientCheck, + // Token: 0x0400570B RID: 22283 + ClientActive, + // Token: 0x0400570C RID: 22284 + Error, + // Token: 0x0400570D RID: 22285 + Finish, + // Token: 0x0400570E RID: 22286 + Begin = 0, + // Token: 0x0400570F RID: 22287 + End = 7, + // Token: 0x04005710 RID: 22288 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartyDeliveryCheckerStateIDEnum.cs b/Assembly-CSharp/DB/PartyDeliveryCheckerStateIDEnum.cs new file mode 100644 index 0000000..c430558 --- /dev/null +++ b/Assembly-CSharp/DB/PartyDeliveryCheckerStateIDEnum.cs @@ -0,0 +1,101 @@ +using System; + +namespace DB +{ + // Token: 0x02000816 RID: 2070 + public static class PartyDeliveryCheckerStateIDEnum + { + // Token: 0x06004774 RID: 18292 RVA: 0x0017E20B File Offset: 0x0017D40B + public static bool IsActive(this PartyDeliveryCheckerStateID self) + { + return self >= PartyDeliveryCheckerStateID.First && self < PartyDeliveryCheckerStateID.End && self > PartyDeliveryCheckerStateID.First; + } + + // Token: 0x06004775 RID: 18293 RVA: 0x0017E21B File Offset: 0x0017D41B + public static bool IsValid(this PartyDeliveryCheckerStateID self) + { + return self >= PartyDeliveryCheckerStateID.First && self < PartyDeliveryCheckerStateID.End; + } + + // Token: 0x06004776 RID: 18294 RVA: 0x00186BC2 File Offset: 0x00185DC2 + public static void Clamp(this PartyDeliveryCheckerStateID self) + { + if (self < PartyDeliveryCheckerStateID.First) + { + self = PartyDeliveryCheckerStateID.First; + return; + } + if (self >= (PartyDeliveryCheckerStateID)PartyDeliveryCheckerStateIDEnum.GetEnd()) + { + self = (PartyDeliveryCheckerStateID)PartyDeliveryCheckerStateIDEnum.GetEnd(); + } + } + + // Token: 0x06004777 RID: 18295 RVA: 0x00186BDB File Offset: 0x00185DDB + public static int GetEnd(this PartyDeliveryCheckerStateID self) + { + return PartyDeliveryCheckerStateIDEnum.GetEnd(); + } + + // Token: 0x06004778 RID: 18296 RVA: 0x00186BE4 File Offset: 0x00185DE4 + public static PartyDeliveryCheckerStateID FindID(string enumName) + { + for (PartyDeliveryCheckerStateID partyDeliveryCheckerStateID = PartyDeliveryCheckerStateID.First; partyDeliveryCheckerStateID < PartyDeliveryCheckerStateID.End; partyDeliveryCheckerStateID++) + { + if (partyDeliveryCheckerStateID.GetEnumName() == enumName) + { + return partyDeliveryCheckerStateID; + } + } + return PartyDeliveryCheckerStateID.Invalid; + } + + // Token: 0x06004779 RID: 18297 RVA: 0x00186C0E File Offset: 0x00185E0E + public static int GetEnd() + { + return PartyDeliveryCheckerStateIDEnum.records.Length; + } + + // Token: 0x0600477A RID: 18298 RVA: 0x00186C17 File Offset: 0x00185E17 + public static int GetEnumValue(this PartyDeliveryCheckerStateID self) + { + if (self.IsValid()) + { + return PartyDeliveryCheckerStateIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600477B RID: 18299 RVA: 0x00186C2F File Offset: 0x00185E2F + public static string GetEnumName(this PartyDeliveryCheckerStateID self) + { + if (self.IsValid()) + { + return PartyDeliveryCheckerStateIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600477C RID: 18300 RVA: 0x00186C4B File Offset: 0x00185E4B + public static string GetName(this PartyDeliveryCheckerStateID self) + { + if (self.IsValid()) + { + return PartyDeliveryCheckerStateIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04005714 RID: 22292 + private static readonly PartyDeliveryCheckerStateTableRecord[] records = new PartyDeliveryCheckerStateTableRecord[] + { + new PartyDeliveryCheckerStateTableRecord(0, "First", "First"), + new PartyDeliveryCheckerStateTableRecord(1, "ServerCheck", "ServerCheck"), + new PartyDeliveryCheckerStateTableRecord(2, "ServerActive", "ServerActive"), + new PartyDeliveryCheckerStateTableRecord(3, "ClientCheck", "ClientCheck"), + new PartyDeliveryCheckerStateTableRecord(4, "ClientActive", "ClientActive"), + new PartyDeliveryCheckerStateTableRecord(5, "Error", "Error"), + new PartyDeliveryCheckerStateTableRecord(6, "Finish", "Finish") + }; + } +} diff --git a/Assembly-CSharp/DB/PartyDeliveryCheckerStateTableRecord.cs b/Assembly-CSharp/DB/PartyDeliveryCheckerStateTableRecord.cs new file mode 100644 index 0000000..df660e6 --- /dev/null +++ b/Assembly-CSharp/DB/PartyDeliveryCheckerStateTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000815 RID: 2069 + public class PartyDeliveryCheckerStateTableRecord + { + // Token: 0x06004772 RID: 18290 RVA: 0x00003560 File Offset: 0x00002760 + public PartyDeliveryCheckerStateTableRecord() + { + } + + // Token: 0x06004773 RID: 18291 RVA: 0x00186BA5 File Offset: 0x00185DA5 + public PartyDeliveryCheckerStateTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005711 RID: 22289 + public int EnumValue; + + // Token: 0x04005712 RID: 22290 + public string EnumName; + + // Token: 0x04005713 RID: 22291 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/PartyHeartBeatStateID.cs b/Assembly-CSharp/DB/PartyHeartBeatStateID.cs new file mode 100644 index 0000000..1084282 --- /dev/null +++ b/Assembly-CSharp/DB/PartyHeartBeatStateID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x02000817 RID: 2071 + public enum PartyHeartBeatStateID + { + // Token: 0x04005716 RID: 22294 + Active, + // Token: 0x04005717 RID: 22295 + Timeout, + // Token: 0x04005718 RID: 22296 + Closed, + // Token: 0x04005719 RID: 22297 + Begin = 0, + // Token: 0x0400571A RID: 22298 + End = 3, + // Token: 0x0400571B RID: 22299 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartyHeartBeatStateIDEnum.cs b/Assembly-CSharp/DB/PartyHeartBeatStateIDEnum.cs new file mode 100644 index 0000000..4305aa3 --- /dev/null +++ b/Assembly-CSharp/DB/PartyHeartBeatStateIDEnum.cs @@ -0,0 +1,97 @@ +using System; + +namespace DB +{ + // Token: 0x02000819 RID: 2073 + public static class PartyHeartBeatStateIDEnum + { + // Token: 0x06004780 RID: 18304 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this PartyHeartBeatStateID self) + { + return self >= PartyHeartBeatStateID.Active && self < PartyHeartBeatStateID.End && self > PartyHeartBeatStateID.Active; + } + + // Token: 0x06004781 RID: 18305 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this PartyHeartBeatStateID self) + { + return self >= PartyHeartBeatStateID.Active && self < PartyHeartBeatStateID.End; + } + + // Token: 0x06004782 RID: 18306 RVA: 0x00186D22 File Offset: 0x00185F22 + public static void Clamp(this PartyHeartBeatStateID self) + { + if (self < PartyHeartBeatStateID.Active) + { + self = PartyHeartBeatStateID.Active; + return; + } + if (self >= (PartyHeartBeatStateID)PartyHeartBeatStateIDEnum.GetEnd()) + { + self = (PartyHeartBeatStateID)PartyHeartBeatStateIDEnum.GetEnd(); + } + } + + // Token: 0x06004783 RID: 18307 RVA: 0x00186D3B File Offset: 0x00185F3B + public static int GetEnd(this PartyHeartBeatStateID self) + { + return PartyHeartBeatStateIDEnum.GetEnd(); + } + + // Token: 0x06004784 RID: 18308 RVA: 0x00186D44 File Offset: 0x00185F44 + public static PartyHeartBeatStateID FindID(string enumName) + { + for (PartyHeartBeatStateID partyHeartBeatStateID = PartyHeartBeatStateID.Active; partyHeartBeatStateID < PartyHeartBeatStateID.End; partyHeartBeatStateID++) + { + if (partyHeartBeatStateID.GetEnumName() == enumName) + { + return partyHeartBeatStateID; + } + } + return PartyHeartBeatStateID.Invalid; + } + + // Token: 0x06004785 RID: 18309 RVA: 0x00186D6E File Offset: 0x00185F6E + public static int GetEnd() + { + return PartyHeartBeatStateIDEnum.records.Length; + } + + // Token: 0x06004786 RID: 18310 RVA: 0x00186D77 File Offset: 0x00185F77 + public static int GetEnumValue(this PartyHeartBeatStateID self) + { + if (self.IsValid()) + { + return PartyHeartBeatStateIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004787 RID: 18311 RVA: 0x00186D8F File Offset: 0x00185F8F + public static string GetEnumName(this PartyHeartBeatStateID self) + { + if (self.IsValid()) + { + return PartyHeartBeatStateIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004788 RID: 18312 RVA: 0x00186DAB File Offset: 0x00185FAB + public static string GetName(this PartyHeartBeatStateID self) + { + if (self.IsValid()) + { + return PartyHeartBeatStateIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0400571F RID: 22303 + private static readonly PartyHeartBeatStateTableRecord[] records = new PartyHeartBeatStateTableRecord[] + { + new PartyHeartBeatStateTableRecord(0, "Active", "Active"), + new PartyHeartBeatStateTableRecord(1, "Timeout", "Timeout"), + new PartyHeartBeatStateTableRecord(2, "Closed", "Closed") + }; + } +} diff --git a/Assembly-CSharp/DB/PartyHeartBeatStateTableRecord.cs b/Assembly-CSharp/DB/PartyHeartBeatStateTableRecord.cs new file mode 100644 index 0000000..43bf98a --- /dev/null +++ b/Assembly-CSharp/DB/PartyHeartBeatStateTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000818 RID: 2072 + public class PartyHeartBeatStateTableRecord + { + // Token: 0x0600477E RID: 18302 RVA: 0x00003560 File Offset: 0x00002760 + public PartyHeartBeatStateTableRecord() + { + } + + // Token: 0x0600477F RID: 18303 RVA: 0x00186D05 File Offset: 0x00185F05 + public PartyHeartBeatStateTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x0400571C RID: 22300 + public int EnumValue; + + // Token: 0x0400571D RID: 22301 + public string EnumName; + + // Token: 0x0400571E RID: 22302 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/PartyPartyClientStateID.cs b/Assembly-CSharp/DB/PartyPartyClientStateID.cs new file mode 100644 index 0000000..e278aab --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyClientStateID.cs @@ -0,0 +1,55 @@ +using System; + +namespace DB +{ + // Token: 0x0200081A RID: 2074 + public enum PartyPartyClientStateID + { + // Token: 0x04005721 RID: 22305 + First, + // Token: 0x04005722 RID: 22306 + Setup, + // Token: 0x04005723 RID: 22307 + Wait, + // Token: 0x04005724 RID: 22308 + Connect, + // Token: 0x04005725 RID: 22309 + Request, + // Token: 0x04005726 RID: 22310 + Joined, + // Token: 0x04005727 RID: 22311 + FinishSetting, + // Token: 0x04005728 RID: 22312 + ToReady, + // Token: 0x04005729 RID: 22313 + BeginPlay, + // Token: 0x0400572A RID: 22314 + AllBeginPlay, + // Token: 0x0400572B RID: 22315 + Ready, + // Token: 0x0400572C RID: 22316 + Sync, + // Token: 0x0400572D RID: 22317 + Play, + // Token: 0x0400572E RID: 22318 + FinishPlay, + // Token: 0x0400572F RID: 22319 + News, + // Token: 0x04005730 RID: 22320 + NewsEnd, + // Token: 0x04005731 RID: 22321 + Result, + // Token: 0x04005732 RID: 22322 + Disconnected, + // Token: 0x04005733 RID: 22323 + Finish, + // Token: 0x04005734 RID: 22324 + Error, + // Token: 0x04005735 RID: 22325 + Begin = 0, + // Token: 0x04005736 RID: 22326 + End = 20, + // Token: 0x04005737 RID: 22327 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartyPartyClientStateIDEnum.cs b/Assembly-CSharp/DB/PartyPartyClientStateIDEnum.cs new file mode 100644 index 0000000..528e3a8 --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyClientStateIDEnum.cs @@ -0,0 +1,138 @@ +using System; + +namespace DB +{ + // Token: 0x0200081C RID: 2076 + public static class PartyPartyClientStateIDEnum + { + // Token: 0x0600478C RID: 18316 RVA: 0x00178B4C File Offset: 0x00177D4C + public static bool IsActive(this PartyPartyClientStateID self) + { + return self >= PartyPartyClientStateID.First && self < PartyPartyClientStateID.End && self > PartyPartyClientStateID.First; + } + + // Token: 0x0600478D RID: 18317 RVA: 0x00178B5D File Offset: 0x00177D5D + public static bool IsValid(this PartyPartyClientStateID self) + { + return self >= PartyPartyClientStateID.First && self < PartyPartyClientStateID.End; + } + + // Token: 0x0600478E RID: 18318 RVA: 0x00186E70 File Offset: 0x00186070 + public static void Clamp(this PartyPartyClientStateID self) + { + if (self < PartyPartyClientStateID.First) + { + self = PartyPartyClientStateID.First; + return; + } + if (self >= (PartyPartyClientStateID)PartyPartyClientStateIDEnum.GetEnd()) + { + self = (PartyPartyClientStateID)PartyPartyClientStateIDEnum.GetEnd(); + } + } + + // Token: 0x0600478F RID: 18319 RVA: 0x00186E89 File Offset: 0x00186089 + public static int GetEnd(this PartyPartyClientStateID self) + { + return PartyPartyClientStateIDEnum.GetEnd(); + } + + // Token: 0x06004790 RID: 18320 RVA: 0x00186E90 File Offset: 0x00186090 + public static PartyPartyClientStateID FindID(string enumName) + { + for (PartyPartyClientStateID partyPartyClientStateID = PartyPartyClientStateID.First; partyPartyClientStateID < PartyPartyClientStateID.End; partyPartyClientStateID++) + { + if (partyPartyClientStateID.GetEnumName() == enumName) + { + return partyPartyClientStateID; + } + } + return PartyPartyClientStateID.Invalid; + } + + // Token: 0x06004791 RID: 18321 RVA: 0x00186EBB File Offset: 0x001860BB + public static int GetEnd() + { + return PartyPartyClientStateIDEnum.records.Length; + } + + // Token: 0x06004792 RID: 18322 RVA: 0x00186EC4 File Offset: 0x001860C4 + public static int GetEnumValue(this PartyPartyClientStateID self) + { + if (self.IsValid()) + { + return PartyPartyClientStateIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004793 RID: 18323 RVA: 0x00186EDC File Offset: 0x001860DC + public static string GetEnumName(this PartyPartyClientStateID self) + { + if (self.IsValid()) + { + return PartyPartyClientStateIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004794 RID: 18324 RVA: 0x00186EF8 File Offset: 0x001860F8 + public static string GetName(this PartyPartyClientStateID self) + { + if (self.IsValid()) + { + return PartyPartyClientStateIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004795 RID: 18325 RVA: 0x00186F14 File Offset: 0x00186114 + public static bool IsConnect(this PartyPartyClientStateID self) + { + return self.IsValid() && PartyPartyClientStateIDEnum.records[(int)self].isConnect; + } + + // Token: 0x06004796 RID: 18326 RVA: 0x00186F2C File Offset: 0x0018612C + public static bool IsNormal(this PartyPartyClientStateID self) + { + return self.IsValid() && PartyPartyClientStateIDEnum.records[(int)self].isNormal; + } + + // Token: 0x06004797 RID: 18327 RVA: 0x00186F44 File Offset: 0x00186144 + public static bool IsRequest(this PartyPartyClientStateID self) + { + return self.IsValid() && PartyPartyClientStateIDEnum.records[(int)self].isRequest; + } + + // Token: 0x06004798 RID: 18328 RVA: 0x00186F5C File Offset: 0x0018615C + public static bool IsWaitPlay(this PartyPartyClientStateID self) + { + return self.IsValid() && PartyPartyClientStateIDEnum.records[(int)self].isWaitPlay; + } + + // Token: 0x0400573F RID: 22335 + private static readonly PartyPartyClientStateTableRecord[] records = new PartyPartyClientStateTableRecord[] + { + new PartyPartyClientStateTableRecord(0, "First", "First", 0, 0, 0, 0), + new PartyPartyClientStateTableRecord(1, "Setup", "Setup", 0, 0, 0, 0), + new PartyPartyClientStateTableRecord(2, "Wait", "Wait", 0, 1, 0, 0), + new PartyPartyClientStateTableRecord(3, "Connect", "Connect", 0, 1, 1, 0), + new PartyPartyClientStateTableRecord(4, "Request", "Request", 1, 1, 1, 0), + new PartyPartyClientStateTableRecord(5, "Joined", "Joined", 1, 1, 0, 0), + new PartyPartyClientStateTableRecord(6, "FinishSetting", "FinishSetting", 1, 1, 0, 1), + new PartyPartyClientStateTableRecord(7, "ToReady", "ToReady", 1, 1, 0, 1), + new PartyPartyClientStateTableRecord(8, "BeginPlay", "BeginPlay", 1, 1, 0, 1), + new PartyPartyClientStateTableRecord(9, "AllBeginPlay", "AllBeginPlay", 1, 1, 0, 1), + new PartyPartyClientStateTableRecord(10, "Ready", "Ready", 1, 1, 0, 1), + new PartyPartyClientStateTableRecord(11, "Sync", "Sync", 1, 1, 0, 0), + new PartyPartyClientStateTableRecord(12, "Play", "Play", 1, 1, 0, 0), + new PartyPartyClientStateTableRecord(13, "FinishPlay", "FinishPlay", 1, 1, 0, 0), + new PartyPartyClientStateTableRecord(14, "News", "News", 1, 1, 0, 0), + new PartyPartyClientStateTableRecord(15, "NewsEnd", "NewsEnd", 1, 1, 0, 0), + new PartyPartyClientStateTableRecord(16, "Result", "Result", 1, 1, 0, 0), + new PartyPartyClientStateTableRecord(17, "Disconnected", "Disconnected", 0, 1, 0, 0), + new PartyPartyClientStateTableRecord(18, "Finish", "Finish", 0, 0, 0, 0), + new PartyPartyClientStateTableRecord(19, "Error", "Error", 0, 0, 0, 0) + }; + } +} diff --git a/Assembly-CSharp/DB/PartyPartyClientStateTableRecord.cs b/Assembly-CSharp/DB/PartyPartyClientStateTableRecord.cs new file mode 100644 index 0000000..7d89993 --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyClientStateTableRecord.cs @@ -0,0 +1,46 @@ +using System; + +namespace DB +{ + // Token: 0x0200081B RID: 2075 + public class PartyPartyClientStateTableRecord + { + // Token: 0x0600478A RID: 18314 RVA: 0x00003560 File Offset: 0x00002760 + public PartyPartyClientStateTableRecord() + { + } + + // Token: 0x0600478B RID: 18315 RVA: 0x00186E1C File Offset: 0x0018601C + public PartyPartyClientStateTableRecord(int EnumValue, string EnumName, string Name, int isConnect, int isNormal, int isRequest, int isWaitPlay) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.isConnect = isConnect != 0; + this.isNormal = isNormal != 0; + this.isRequest = isRequest != 0; + this.isWaitPlay = isWaitPlay != 0; + } + + // Token: 0x04005738 RID: 22328 + public int EnumValue; + + // Token: 0x04005739 RID: 22329 + public string EnumName; + + // Token: 0x0400573A RID: 22330 + public string Name; + + // Token: 0x0400573B RID: 22331 + public bool isConnect; + + // Token: 0x0400573C RID: 22332 + public bool isNormal; + + // Token: 0x0400573D RID: 22333 + public bool isRequest; + + // Token: 0x0400573E RID: 22334 + public bool isWaitPlay; + } +} diff --git a/Assembly-CSharp/DB/PartyPartyHostStateID.cs b/Assembly-CSharp/DB/PartyPartyHostStateID.cs new file mode 100644 index 0000000..2f2210b --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyHostStateID.cs @@ -0,0 +1,43 @@ +using System; + +namespace DB +{ + // Token: 0x0200081D RID: 2077 + public enum PartyPartyHostStateID + { + // Token: 0x04005741 RID: 22337 + First, + // Token: 0x04005742 RID: 22338 + Setup, + // Token: 0x04005743 RID: 22339 + Wait, + // Token: 0x04005744 RID: 22340 + Recruit, + // Token: 0x04005745 RID: 22341 + FinishRecruit, + // Token: 0x04005746 RID: 22342 + BeginPlay, + // Token: 0x04005747 RID: 22343 + AllBeginPlay, + // Token: 0x04005748 RID: 22344 + Ready, + // Token: 0x04005749 RID: 22345 + Sync, + // Token: 0x0400574A RID: 22346 + Play, + // Token: 0x0400574B RID: 22347 + News, + // Token: 0x0400574C RID: 22348 + Result, + // Token: 0x0400574D RID: 22349 + Finish, + // Token: 0x0400574E RID: 22350 + Error, + // Token: 0x0400574F RID: 22351 + Begin = 0, + // Token: 0x04005750 RID: 22352 + End = 14, + // Token: 0x04005751 RID: 22353 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartyPartyHostStateIDEnum.cs b/Assembly-CSharp/DB/PartyPartyHostStateIDEnum.cs new file mode 100644 index 0000000..93547a7 --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyHostStateIDEnum.cs @@ -0,0 +1,132 @@ +using System; + +namespace DB +{ + // Token: 0x0200081F RID: 2079 + public static class PartyPartyHostStateIDEnum + { + // Token: 0x0600479C RID: 18332 RVA: 0x0017D30E File Offset: 0x0017C50E + public static bool IsActive(this PartyPartyHostStateID self) + { + return self >= PartyPartyHostStateID.First && self < PartyPartyHostStateID.End && self > PartyPartyHostStateID.First; + } + + // Token: 0x0600479D RID: 18333 RVA: 0x001307D1 File Offset: 0x0012F9D1 + public static bool IsValid(this PartyPartyHostStateID self) + { + return self >= PartyPartyHostStateID.First && self < PartyPartyHostStateID.End; + } + + // Token: 0x0600479E RID: 18334 RVA: 0x001871C4 File Offset: 0x001863C4 + public static void Clamp(this PartyPartyHostStateID self) + { + if (self < PartyPartyHostStateID.First) + { + self = PartyPartyHostStateID.First; + return; + } + if (self >= (PartyPartyHostStateID)PartyPartyHostStateIDEnum.GetEnd()) + { + self = (PartyPartyHostStateID)PartyPartyHostStateIDEnum.GetEnd(); + } + } + + // Token: 0x0600479F RID: 18335 RVA: 0x001871DD File Offset: 0x001863DD + public static int GetEnd(this PartyPartyHostStateID self) + { + return PartyPartyHostStateIDEnum.GetEnd(); + } + + // Token: 0x060047A0 RID: 18336 RVA: 0x001871E4 File Offset: 0x001863E4 + public static PartyPartyHostStateID FindID(string enumName) + { + for (PartyPartyHostStateID partyPartyHostStateID = PartyPartyHostStateID.First; partyPartyHostStateID < PartyPartyHostStateID.End; partyPartyHostStateID++) + { + if (partyPartyHostStateID.GetEnumName() == enumName) + { + return partyPartyHostStateID; + } + } + return PartyPartyHostStateID.Invalid; + } + + // Token: 0x060047A1 RID: 18337 RVA: 0x0018720F File Offset: 0x0018640F + public static int GetEnd() + { + return PartyPartyHostStateIDEnum.records.Length; + } + + // Token: 0x060047A2 RID: 18338 RVA: 0x00187218 File Offset: 0x00186418 + public static int GetEnumValue(this PartyPartyHostStateID self) + { + if (self.IsValid()) + { + return PartyPartyHostStateIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060047A3 RID: 18339 RVA: 0x00187230 File Offset: 0x00186430 + public static string GetEnumName(this PartyPartyHostStateID self) + { + if (self.IsValid()) + { + return PartyPartyHostStateIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060047A4 RID: 18340 RVA: 0x0018724C File Offset: 0x0018644C + public static string GetName(this PartyPartyHostStateID self) + { + if (self.IsValid()) + { + return PartyPartyHostStateIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060047A5 RID: 18341 RVA: 0x00187268 File Offset: 0x00186468 + public static bool IsNormal(this PartyPartyHostStateID self) + { + return self.IsValid() && PartyPartyHostStateIDEnum.records[(int)self].isNormal; + } + + // Token: 0x060047A6 RID: 18342 RVA: 0x00187280 File Offset: 0x00186480 + public static bool IsWorking(this PartyPartyHostStateID self) + { + return self.IsValid() && PartyPartyHostStateIDEnum.records[(int)self].isWorking; + } + + // Token: 0x060047A7 RID: 18343 RVA: 0x00187298 File Offset: 0x00186498 + public static bool IsRecruit(this PartyPartyHostStateID self) + { + return self.IsValid() && PartyPartyHostStateIDEnum.records[(int)self].isRecruit; + } + + // Token: 0x060047A8 RID: 18344 RVA: 0x001872B0 File Offset: 0x001864B0 + public static bool IsPlay(this PartyPartyHostStateID self) + { + return self.IsValid() && PartyPartyHostStateIDEnum.records[(int)self].isPlay; + } + + // Token: 0x04005759 RID: 22361 + private static readonly PartyPartyHostStateTableRecord[] records = new PartyPartyHostStateTableRecord[] + { + new PartyPartyHostStateTableRecord(0, "First", "First", 0, 0, 0, 0), + new PartyPartyHostStateTableRecord(1, "Setup", "Setup", 0, 0, 0, 0), + new PartyPartyHostStateTableRecord(2, "Wait", "Wait", 1, 0, 0, 0), + new PartyPartyHostStateTableRecord(3, "Recruit", "Recruit", 1, 1, 1, 0), + new PartyPartyHostStateTableRecord(4, "FinishRecruit", "FinishRecruit", 1, 1, 0, 0), + new PartyPartyHostStateTableRecord(5, "BeginPlay", "BeginPlay", 1, 1, 0, 0), + new PartyPartyHostStateTableRecord(6, "AllBeginPlay", "AllBeginPlay", 1, 1, 0, 0), + new PartyPartyHostStateTableRecord(7, "Ready", "Ready", 1, 1, 0, 0), + new PartyPartyHostStateTableRecord(8, "Sync", "Sync", 1, 1, 0, 0), + new PartyPartyHostStateTableRecord(9, "Play", "Play", 1, 1, 0, 1), + new PartyPartyHostStateTableRecord(10, "News", "News", 1, 1, 0, 0), + new PartyPartyHostStateTableRecord(11, "Result", "Result", 1, 1, 0, 0), + new PartyPartyHostStateTableRecord(12, "Finish", "Finish", 0, 0, 0, 0), + new PartyPartyHostStateTableRecord(13, "Error", "Error", 0, 0, 0, 0) + }; + } +} diff --git a/Assembly-CSharp/DB/PartyPartyHostStateTableRecord.cs b/Assembly-CSharp/DB/PartyPartyHostStateTableRecord.cs new file mode 100644 index 0000000..7bd4325 --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyHostStateTableRecord.cs @@ -0,0 +1,46 @@ +using System; + +namespace DB +{ + // Token: 0x0200081E RID: 2078 + public class PartyPartyHostStateTableRecord + { + // Token: 0x0600479A RID: 18330 RVA: 0x00003560 File Offset: 0x00002760 + public PartyPartyHostStateTableRecord() + { + } + + // Token: 0x0600479B RID: 18331 RVA: 0x00187170 File Offset: 0x00186370 + public PartyPartyHostStateTableRecord(int EnumValue, string EnumName, string Name, int isNormal, int isWorking, int isRecruit, int isPlay) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.isNormal = isNormal != 0; + this.isWorking = isWorking != 0; + this.isRecruit = isRecruit != 0; + this.isPlay = isPlay != 0; + } + + // Token: 0x04005752 RID: 22354 + public int EnumValue; + + // Token: 0x04005753 RID: 22355 + public string EnumName; + + // Token: 0x04005754 RID: 22356 + public string Name; + + // Token: 0x04005755 RID: 22357 + public bool isNormal; + + // Token: 0x04005756 RID: 22358 + public bool isWorking; + + // Token: 0x04005757 RID: 22359 + public bool isRecruit; + + // Token: 0x04005758 RID: 22360 + public bool isPlay; + } +} diff --git a/Assembly-CSharp/DB/PartyPartyJoinResultID.cs b/Assembly-CSharp/DB/PartyPartyJoinResultID.cs new file mode 100644 index 0000000..2d6d23b --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyJoinResultID.cs @@ -0,0 +1,33 @@ +using System; + +namespace DB +{ + // Token: 0x02000820 RID: 2080 + public enum PartyPartyJoinResultID + { + // Token: 0x0400575B RID: 22363 + None, + // Token: 0x0400575C RID: 22364 + Success, + // Token: 0x0400575D RID: 22365 + Full, + // Token: 0x0400575E RID: 22366 + NoRecruit, + // Token: 0x0400575F RID: 22367 + Disconnect, + // Token: 0x04005760 RID: 22368 + AlreadyJoined, + // Token: 0x04005761 RID: 22369 + DifferentGroup, + // Token: 0x04005762 RID: 22370 + DifferentMusic, + // Token: 0x04005763 RID: 22371 + DifferentEventMode, + // Token: 0x04005764 RID: 22372 + Begin = 0, + // Token: 0x04005765 RID: 22373 + End = 9, + // Token: 0x04005766 RID: 22374 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartyPartyJoinResultIDEnum.cs b/Assembly-CSharp/DB/PartyPartyJoinResultIDEnum.cs new file mode 100644 index 0000000..6c2dcf5 --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyJoinResultIDEnum.cs @@ -0,0 +1,103 @@ +using System; + +namespace DB +{ + // Token: 0x02000822 RID: 2082 + public static class PartyPartyJoinResultIDEnum + { + // Token: 0x060047AC RID: 18348 RVA: 0x0017E647 File Offset: 0x0017D847 + public static bool IsActive(this PartyPartyJoinResultID self) + { + return self >= PartyPartyJoinResultID.None && self < PartyPartyJoinResultID.End && self > PartyPartyJoinResultID.None; + } + + // Token: 0x060047AD RID: 18349 RVA: 0x0017E658 File Offset: 0x0017D858 + public static bool IsValid(this PartyPartyJoinResultID self) + { + return self >= PartyPartyJoinResultID.None && self < PartyPartyJoinResultID.End; + } + + // Token: 0x060047AE RID: 18350 RVA: 0x0018744A File Offset: 0x0018664A + public static void Clamp(this PartyPartyJoinResultID self) + { + if (self < PartyPartyJoinResultID.None) + { + self = PartyPartyJoinResultID.None; + return; + } + if (self >= (PartyPartyJoinResultID)PartyPartyJoinResultIDEnum.GetEnd()) + { + self = (PartyPartyJoinResultID)PartyPartyJoinResultIDEnum.GetEnd(); + } + } + + // Token: 0x060047AF RID: 18351 RVA: 0x00187463 File Offset: 0x00186663 + public static int GetEnd(this PartyPartyJoinResultID self) + { + return PartyPartyJoinResultIDEnum.GetEnd(); + } + + // Token: 0x060047B0 RID: 18352 RVA: 0x0018746C File Offset: 0x0018666C + public static PartyPartyJoinResultID FindID(string enumName) + { + for (PartyPartyJoinResultID partyPartyJoinResultID = PartyPartyJoinResultID.None; partyPartyJoinResultID < PartyPartyJoinResultID.End; partyPartyJoinResultID++) + { + if (partyPartyJoinResultID.GetEnumName() == enumName) + { + return partyPartyJoinResultID; + } + } + return PartyPartyJoinResultID.Invalid; + } + + // Token: 0x060047B1 RID: 18353 RVA: 0x00187497 File Offset: 0x00186697 + public static int GetEnd() + { + return PartyPartyJoinResultIDEnum.records.Length; + } + + // Token: 0x060047B2 RID: 18354 RVA: 0x001874A0 File Offset: 0x001866A0 + public static int GetEnumValue(this PartyPartyJoinResultID self) + { + if (self.IsValid()) + { + return PartyPartyJoinResultIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060047B3 RID: 18355 RVA: 0x001874B8 File Offset: 0x001866B8 + public static string GetEnumName(this PartyPartyJoinResultID self) + { + if (self.IsValid()) + { + return PartyPartyJoinResultIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060047B4 RID: 18356 RVA: 0x001874D4 File Offset: 0x001866D4 + public static string GetName(this PartyPartyJoinResultID self) + { + if (self.IsValid()) + { + return PartyPartyJoinResultIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0400576A RID: 22378 + private static readonly PartyPartyJoinResultTableRecord[] records = new PartyPartyJoinResultTableRecord[] + { + new PartyPartyJoinResultTableRecord(0, "None", "None"), + new PartyPartyJoinResultTableRecord(1, "Success", "Success"), + new PartyPartyJoinResultTableRecord(2, "Full", "Full"), + new PartyPartyJoinResultTableRecord(3, "NoRecruit", "NoRecruit"), + new PartyPartyJoinResultTableRecord(4, "Disconnect", "Disconnect"), + new PartyPartyJoinResultTableRecord(5, "AlreadyJoined", "AlreadyJoined"), + new PartyPartyJoinResultTableRecord(6, "DifferentGroup", "DifferentGroup"), + new PartyPartyJoinResultTableRecord(7, "DifferentMusic", "DifferentMusic"), + new PartyPartyJoinResultTableRecord(8, "DifferentEventMode", "DifferentEventMode") + }; + } +} diff --git a/Assembly-CSharp/DB/PartyPartyJoinResultTableRecord.cs b/Assembly-CSharp/DB/PartyPartyJoinResultTableRecord.cs new file mode 100644 index 0000000..7da8fa3 --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyJoinResultTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000821 RID: 2081 + public class PartyPartyJoinResultTableRecord + { + // Token: 0x060047AA RID: 18346 RVA: 0x00003560 File Offset: 0x00002760 + public PartyPartyJoinResultTableRecord() + { + } + + // Token: 0x060047AB RID: 18347 RVA: 0x0018742D File Offset: 0x0018662D + public PartyPartyJoinResultTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005767 RID: 22375 + public int EnumValue; + + // Token: 0x04005768 RID: 22376 + public string EnumName; + + // Token: 0x04005769 RID: 22377 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/PartyPartyManagerStateID.cs b/Assembly-CSharp/DB/PartyPartyManagerStateID.cs new file mode 100644 index 0000000..6d08845 --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyManagerStateID.cs @@ -0,0 +1,31 @@ +using System; + +namespace DB +{ + // Token: 0x02000823 RID: 2083 + public enum PartyPartyManagerStateID + { + // Token: 0x0400576C RID: 22380 + First, + // Token: 0x0400576D RID: 22381 + Setup, + // Token: 0x0400576E RID: 22382 + Wait, + // Token: 0x0400576F RID: 22383 + SelectMusic, + // Token: 0x04005770 RID: 22384 + Host, + // Token: 0x04005771 RID: 22385 + Client, + // Token: 0x04005772 RID: 22386 + Finish, + // Token: 0x04005773 RID: 22387 + Error, + // Token: 0x04005774 RID: 22388 + Begin = 0, + // Token: 0x04005775 RID: 22389 + End = 8, + // Token: 0x04005776 RID: 22390 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartyPartyManagerStateIDEnum.cs b/Assembly-CSharp/DB/PartyPartyManagerStateIDEnum.cs new file mode 100644 index 0000000..7762d0f --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyManagerStateIDEnum.cs @@ -0,0 +1,120 @@ +using System; + +namespace DB +{ + // Token: 0x02000825 RID: 2085 + public static class PartyPartyManagerStateIDEnum + { + // Token: 0x060047B8 RID: 18360 RVA: 0x00173EE9 File Offset: 0x001730E9 + public static bool IsActive(this PartyPartyManagerStateID self) + { + return self >= PartyPartyManagerStateID.First && self < PartyPartyManagerStateID.End && self > PartyPartyManagerStateID.First; + } + + // Token: 0x060047B9 RID: 18361 RVA: 0x00123DBF File Offset: 0x00122FBF + public static bool IsValid(this PartyPartyManagerStateID self) + { + return self >= PartyPartyManagerStateID.First && self < PartyPartyManagerStateID.End; + } + + // Token: 0x060047BA RID: 18362 RVA: 0x001875F2 File Offset: 0x001867F2 + public static void Clamp(this PartyPartyManagerStateID self) + { + if (self < PartyPartyManagerStateID.First) + { + self = PartyPartyManagerStateID.First; + return; + } + if (self >= (PartyPartyManagerStateID)PartyPartyManagerStateIDEnum.GetEnd()) + { + self = (PartyPartyManagerStateID)PartyPartyManagerStateIDEnum.GetEnd(); + } + } + + // Token: 0x060047BB RID: 18363 RVA: 0x0018760B File Offset: 0x0018680B + public static int GetEnd(this PartyPartyManagerStateID self) + { + return PartyPartyManagerStateIDEnum.GetEnd(); + } + + // Token: 0x060047BC RID: 18364 RVA: 0x00187614 File Offset: 0x00186814 + public static PartyPartyManagerStateID FindID(string enumName) + { + for (PartyPartyManagerStateID partyPartyManagerStateID = PartyPartyManagerStateID.First; partyPartyManagerStateID < PartyPartyManagerStateID.End; partyPartyManagerStateID++) + { + if (partyPartyManagerStateID.GetEnumName() == enumName) + { + return partyPartyManagerStateID; + } + } + return PartyPartyManagerStateID.Invalid; + } + + // Token: 0x060047BD RID: 18365 RVA: 0x0018763E File Offset: 0x0018683E + public static int GetEnd() + { + return PartyPartyManagerStateIDEnum.records.Length; + } + + // Token: 0x060047BE RID: 18366 RVA: 0x00187647 File Offset: 0x00186847 + public static int GetEnumValue(this PartyPartyManagerStateID self) + { + if (self.IsValid()) + { + return PartyPartyManagerStateIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060047BF RID: 18367 RVA: 0x0018765F File Offset: 0x0018685F + public static string GetEnumName(this PartyPartyManagerStateID self) + { + if (self.IsValid()) + { + return PartyPartyManagerStateIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060047C0 RID: 18368 RVA: 0x0018767B File Offset: 0x0018687B + public static string GetName(this PartyPartyManagerStateID self) + { + if (self.IsValid()) + { + return PartyPartyManagerStateIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060047C1 RID: 18369 RVA: 0x00187697 File Offset: 0x00186897 + public static bool IsNormal(this PartyPartyManagerStateID self) + { + return self.IsValid() && PartyPartyManagerStateIDEnum.records[(int)self].isNormal; + } + + // Token: 0x060047C2 RID: 18370 RVA: 0x001876AF File Offset: 0x001868AF + public static bool IsHost(this PartyPartyManagerStateID self) + { + return self.IsValid() && PartyPartyManagerStateIDEnum.records[(int)self].isHost; + } + + // Token: 0x060047C3 RID: 18371 RVA: 0x001876C7 File Offset: 0x001868C7 + public static bool IsClient(this PartyPartyManagerStateID self) + { + return self.IsValid() && PartyPartyManagerStateIDEnum.records[(int)self].isClient; + } + + // Token: 0x0400577D RID: 22397 + private static readonly PartyPartyManagerStateTableRecord[] records = new PartyPartyManagerStateTableRecord[] + { + new PartyPartyManagerStateTableRecord(0, "First", "初期値", 0, 0, 0), + new PartyPartyManagerStateTableRecord(1, "Setup", "初期化中", 0, 0, 0), + new PartyPartyManagerStateTableRecord(2, "Wait", "待機", 1, 0, 0), + new PartyPartyManagerStateTableRecord(3, "SelectMusic", "選曲", 1, 0, 0), + new PartyPartyManagerStateTableRecord(4, "Host", "ホスト", 1, 1, 0), + new PartyPartyManagerStateTableRecord(5, "Client", "クライアント", 1, 0, 1), + new PartyPartyManagerStateTableRecord(6, "Finish", "終了", 1, 0, 0), + new PartyPartyManagerStateTableRecord(7, "Error", "失敗", 0, 0, 0) + }; + } +} diff --git a/Assembly-CSharp/DB/PartyPartyManagerStateTableRecord.cs b/Assembly-CSharp/DB/PartyPartyManagerStateTableRecord.cs new file mode 100644 index 0000000..ac9c7a8 --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyManagerStateTableRecord.cs @@ -0,0 +1,42 @@ +using System; + +namespace DB +{ + // Token: 0x02000824 RID: 2084 + public class PartyPartyManagerStateTableRecord + { + // Token: 0x060047B6 RID: 18358 RVA: 0x00003560 File Offset: 0x00002760 + public PartyPartyManagerStateTableRecord() + { + } + + // Token: 0x060047B7 RID: 18359 RVA: 0x001875B4 File Offset: 0x001867B4 + public PartyPartyManagerStateTableRecord(int EnumValue, string EnumName, string Name, int isNormal, int isHost, int isClient) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.isNormal = isNormal != 0; + this.isHost = isHost != 0; + this.isClient = isClient != 0; + } + + // Token: 0x04005777 RID: 22391 + public int EnumValue; + + // Token: 0x04005778 RID: 22392 + public string EnumName; + + // Token: 0x04005779 RID: 22393 + public string Name; + + // Token: 0x0400577A RID: 22394 + public bool isNormal; + + // Token: 0x0400577B RID: 22395 + public bool isHost; + + // Token: 0x0400577C RID: 22396 + public bool isClient; + } +} diff --git a/Assembly-CSharp/DB/PartyPartyStanceID.cs b/Assembly-CSharp/DB/PartyPartyStanceID.cs new file mode 100644 index 0000000..b4e6c7f --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyStanceID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x02000826 RID: 2086 + public enum PartyPartyStanceID + { + // Token: 0x0400577F RID: 22399 + Anyone, + // Token: 0x04005780 RID: 22400 + Friends, + // Token: 0x04005781 RID: 22401 + Begin = 0, + // Token: 0x04005782 RID: 22402 + End = 2, + // Token: 0x04005783 RID: 22403 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartyPartyStanceIDEnum.cs b/Assembly-CSharp/DB/PartyPartyStanceIDEnum.cs new file mode 100644 index 0000000..801d005 --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyStanceIDEnum.cs @@ -0,0 +1,96 @@ +using System; + +namespace DB +{ + // Token: 0x02000828 RID: 2088 + public static class PartyPartyStanceIDEnum + { + // Token: 0x060047C7 RID: 18375 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this PartyPartyStanceID self) + { + return self >= PartyPartyStanceID.Anyone && self < PartyPartyStanceID.End && self > PartyPartyStanceID.Anyone; + } + + // Token: 0x060047C8 RID: 18376 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this PartyPartyStanceID self) + { + return self >= PartyPartyStanceID.Anyone && self < PartyPartyStanceID.End; + } + + // Token: 0x060047C9 RID: 18377 RVA: 0x001877C5 File Offset: 0x001869C5 + public static void Clamp(this PartyPartyStanceID self) + { + if (self < PartyPartyStanceID.Anyone) + { + self = PartyPartyStanceID.Anyone; + return; + } + if (self >= (PartyPartyStanceID)PartyPartyStanceIDEnum.GetEnd()) + { + self = (PartyPartyStanceID)PartyPartyStanceIDEnum.GetEnd(); + } + } + + // Token: 0x060047CA RID: 18378 RVA: 0x001877DE File Offset: 0x001869DE + public static int GetEnd(this PartyPartyStanceID self) + { + return PartyPartyStanceIDEnum.GetEnd(); + } + + // Token: 0x060047CB RID: 18379 RVA: 0x001877E8 File Offset: 0x001869E8 + public static PartyPartyStanceID FindID(string enumName) + { + for (PartyPartyStanceID partyPartyStanceID = PartyPartyStanceID.Anyone; partyPartyStanceID < PartyPartyStanceID.End; partyPartyStanceID++) + { + if (partyPartyStanceID.GetEnumName() == enumName) + { + return partyPartyStanceID; + } + } + return PartyPartyStanceID.Invalid; + } + + // Token: 0x060047CC RID: 18380 RVA: 0x00187812 File Offset: 0x00186A12 + public static int GetEnd() + { + return PartyPartyStanceIDEnum.records.Length; + } + + // Token: 0x060047CD RID: 18381 RVA: 0x0018781B File Offset: 0x00186A1B + public static int GetEnumValue(this PartyPartyStanceID self) + { + if (self.IsValid()) + { + return PartyPartyStanceIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060047CE RID: 18382 RVA: 0x00187833 File Offset: 0x00186A33 + public static string GetEnumName(this PartyPartyStanceID self) + { + if (self.IsValid()) + { + return PartyPartyStanceIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060047CF RID: 18383 RVA: 0x0018784F File Offset: 0x00186A4F + public static string GetName(this PartyPartyStanceID self) + { + if (self.IsValid()) + { + return PartyPartyStanceIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04005787 RID: 22407 + private static readonly PartyPartyStanceTableRecord[] records = new PartyPartyStanceTableRecord[] + { + new PartyPartyStanceTableRecord(0, "Anyone", "誰でもOK!"), + new PartyPartyStanceTableRecord(1, "Friends", "フレンドと遊ぶ") + }; + } +} diff --git a/Assembly-CSharp/DB/PartyPartyStanceTableRecord.cs b/Assembly-CSharp/DB/PartyPartyStanceTableRecord.cs new file mode 100644 index 0000000..79eed1b --- /dev/null +++ b/Assembly-CSharp/DB/PartyPartyStanceTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000827 RID: 2087 + public class PartyPartyStanceTableRecord + { + // Token: 0x060047C5 RID: 18373 RVA: 0x00003560 File Offset: 0x00002760 + public PartyPartyStanceTableRecord() + { + } + + // Token: 0x060047C6 RID: 18374 RVA: 0x001877A8 File Offset: 0x001869A8 + public PartyPartyStanceTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005784 RID: 22404 + public int EnumValue; + + // Token: 0x04005785 RID: 22405 + public string EnumName; + + // Token: 0x04005786 RID: 22406 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/PartySettingClientStateID.cs b/Assembly-CSharp/DB/PartySettingClientStateID.cs new file mode 100644 index 0000000..4faa295 --- /dev/null +++ b/Assembly-CSharp/DB/PartySettingClientStateID.cs @@ -0,0 +1,29 @@ +using System; + +namespace DB +{ + // Token: 0x02000829 RID: 2089 + public enum PartySettingClientStateID + { + // Token: 0x04005789 RID: 22409 + First, + // Token: 0x0400578A RID: 22410 + Search, + // Token: 0x0400578B RID: 22411 + Connect, + // Token: 0x0400578C RID: 22412 + Request, + // Token: 0x0400578D RID: 22413 + Idle, + // Token: 0x0400578E RID: 22414 + Error, + // Token: 0x0400578F RID: 22415 + Finish, + // Token: 0x04005790 RID: 22416 + Begin = 0, + // Token: 0x04005791 RID: 22417 + End = 7, + // Token: 0x04005792 RID: 22418 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartySettingClientStateIDEnum.cs b/Assembly-CSharp/DB/PartySettingClientStateIDEnum.cs new file mode 100644 index 0000000..1189e3f --- /dev/null +++ b/Assembly-CSharp/DB/PartySettingClientStateIDEnum.cs @@ -0,0 +1,119 @@ +using System; + +namespace DB +{ + // Token: 0x0200082B RID: 2091 + public static class PartySettingClientStateIDEnum + { + // Token: 0x060047D3 RID: 18387 RVA: 0x0017E20B File Offset: 0x0017D40B + public static bool IsActive(this PartySettingClientStateID self) + { + return self >= PartySettingClientStateID.First && self < PartySettingClientStateID.End && self > PartySettingClientStateID.First; + } + + // Token: 0x060047D4 RID: 18388 RVA: 0x0017E21B File Offset: 0x0017D41B + public static bool IsValid(this PartySettingClientStateID self) + { + return self >= PartySettingClientStateID.First && self < PartySettingClientStateID.End; + } + + // Token: 0x060047D5 RID: 18389 RVA: 0x001878DC File Offset: 0x00186ADC + public static void Clamp(this PartySettingClientStateID self) + { + if (self < PartySettingClientStateID.First) + { + self = PartySettingClientStateID.First; + return; + } + if (self >= (PartySettingClientStateID)PartySettingClientStateIDEnum.GetEnd()) + { + self = (PartySettingClientStateID)PartySettingClientStateIDEnum.GetEnd(); + } + } + + // Token: 0x060047D6 RID: 18390 RVA: 0x001878F5 File Offset: 0x00186AF5 + public static int GetEnd(this PartySettingClientStateID self) + { + return PartySettingClientStateIDEnum.GetEnd(); + } + + // Token: 0x060047D7 RID: 18391 RVA: 0x001878FC File Offset: 0x00186AFC + public static PartySettingClientStateID FindID(string enumName) + { + for (PartySettingClientStateID partySettingClientStateID = PartySettingClientStateID.First; partySettingClientStateID < PartySettingClientStateID.End; partySettingClientStateID++) + { + if (partySettingClientStateID.GetEnumName() == enumName) + { + return partySettingClientStateID; + } + } + return PartySettingClientStateID.Invalid; + } + + // Token: 0x060047D8 RID: 18392 RVA: 0x00187926 File Offset: 0x00186B26 + public static int GetEnd() + { + return PartySettingClientStateIDEnum.records.Length; + } + + // Token: 0x060047D9 RID: 18393 RVA: 0x0018792F File Offset: 0x00186B2F + public static int GetEnumValue(this PartySettingClientStateID self) + { + if (self.IsValid()) + { + return PartySettingClientStateIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060047DA RID: 18394 RVA: 0x00187947 File Offset: 0x00186B47 + public static string GetEnumName(this PartySettingClientStateID self) + { + if (self.IsValid()) + { + return PartySettingClientStateIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060047DB RID: 18395 RVA: 0x00187963 File Offset: 0x00186B63 + public static string GetName(this PartySettingClientStateID self) + { + if (self.IsValid()) + { + return PartySettingClientStateIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060047DC RID: 18396 RVA: 0x0018797F File Offset: 0x00186B7F + public static bool IsNormal(this PartySettingClientStateID self) + { + return self.IsValid() && PartySettingClientStateIDEnum.records[(int)self].isNormal; + } + + // Token: 0x060047DD RID: 18397 RVA: 0x00187997 File Offset: 0x00186B97 + public static bool IsError(this PartySettingClientStateID self) + { + return self.IsValid() && PartySettingClientStateIDEnum.records[(int)self].isError; + } + + // Token: 0x060047DE RID: 18398 RVA: 0x001879AF File Offset: 0x00186BAF + public static bool IsBusy(this PartySettingClientStateID self) + { + return self.IsValid() && PartySettingClientStateIDEnum.records[(int)self].isBusy; + } + + // Token: 0x04005799 RID: 22425 + private static readonly PartySettingClientStateTableRecord[] records = new PartySettingClientStateTableRecord[] + { + new PartySettingClientStateTableRecord(0, "First", "---", 0, 0, 0), + new PartySettingClientStateTableRecord(1, "Search", "---", 0, 0, 0), + new PartySettingClientStateTableRecord(2, "Connect", "---", 0, 0, 0), + new PartySettingClientStateTableRecord(3, "Request", "---", 0, 0, 1), + new PartySettingClientStateTableRecord(4, "Idle", "良", 1, 0, 0), + new PartySettingClientStateTableRecord(5, "Error", "坏", 0, 1, 0), + new PartySettingClientStateTableRecord(6, "Finish", "---", 0, 0, 0) + }; + } +} diff --git a/Assembly-CSharp/DB/PartySettingClientStateTableRecord.cs b/Assembly-CSharp/DB/PartySettingClientStateTableRecord.cs new file mode 100644 index 0000000..626a831 --- /dev/null +++ b/Assembly-CSharp/DB/PartySettingClientStateTableRecord.cs @@ -0,0 +1,42 @@ +using System; + +namespace DB +{ + // Token: 0x0200082A RID: 2090 + public class PartySettingClientStateTableRecord + { + // Token: 0x060047D1 RID: 18385 RVA: 0x00003560 File Offset: 0x00002760 + public PartySettingClientStateTableRecord() + { + } + + // Token: 0x060047D2 RID: 18386 RVA: 0x0018789E File Offset: 0x00186A9E + public PartySettingClientStateTableRecord(int EnumValue, string EnumName, string Name, int isNormal, int isError, int isBusy) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.isNormal = isNormal != 0; + this.isError = isError != 0; + this.isBusy = isBusy != 0; + } + + // Token: 0x04005793 RID: 22419 + public int EnumValue; + + // Token: 0x04005794 RID: 22420 + public string EnumName; + + // Token: 0x04005795 RID: 22421 + public string Name; + + // Token: 0x04005796 RID: 22422 + public bool isNormal; + + // Token: 0x04005797 RID: 22423 + public bool isError; + + // Token: 0x04005798 RID: 22424 + public bool isBusy; + } +} diff --git a/Assembly-CSharp/DB/PartySettingErrorID.cs b/Assembly-CSharp/DB/PartySettingErrorID.cs new file mode 100644 index 0000000..42bce4d --- /dev/null +++ b/Assembly-CSharp/DB/PartySettingErrorID.cs @@ -0,0 +1,27 @@ +using System; + +namespace DB +{ + // Token: 0x0200082C RID: 2092 + public enum PartySettingErrorID + { + // Token: 0x0400579B RID: 22427 + ConnectFailed, + // Token: 0x0400579C RID: 22428 + Disconnected, + // Token: 0x0400579D RID: 22429 + ForceError, + // Token: 0x0400579E RID: 22430 + GroupOff, + // Token: 0x0400579F RID: 22431 + DuplicateHost, + // Token: 0x040057A0 RID: 22432 + SocketOpenFailed, + // Token: 0x040057A1 RID: 22433 + Begin = 0, + // Token: 0x040057A2 RID: 22434 + End = 6, + // Token: 0x040057A3 RID: 22435 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartySettingErrorIDEnum.cs b/Assembly-CSharp/DB/PartySettingErrorIDEnum.cs new file mode 100644 index 0000000..0716bb6 --- /dev/null +++ b/Assembly-CSharp/DB/PartySettingErrorIDEnum.cs @@ -0,0 +1,100 @@ +using System; + +namespace DB +{ + // Token: 0x0200082E RID: 2094 + public static class PartySettingErrorIDEnum + { + // Token: 0x060047E2 RID: 18402 RVA: 0x00178314 File Offset: 0x00177514 + public static bool IsActive(this PartySettingErrorID self) + { + return self >= PartySettingErrorID.ConnectFailed && self < PartySettingErrorID.End && self > PartySettingErrorID.ConnectFailed; + } + + // Token: 0x060047E3 RID: 18403 RVA: 0x00130760 File Offset: 0x0012F960 + public static bool IsValid(this PartySettingErrorID self) + { + return self >= PartySettingErrorID.ConnectFailed && self < PartySettingErrorID.End; + } + + // Token: 0x060047E4 RID: 18404 RVA: 0x00187A97 File Offset: 0x00186C97 + public static void Clamp(this PartySettingErrorID self) + { + if (self < PartySettingErrorID.ConnectFailed) + { + self = PartySettingErrorID.ConnectFailed; + return; + } + if (self >= (PartySettingErrorID)PartySettingErrorIDEnum.GetEnd()) + { + self = (PartySettingErrorID)PartySettingErrorIDEnum.GetEnd(); + } + } + + // Token: 0x060047E5 RID: 18405 RVA: 0x00187AB0 File Offset: 0x00186CB0 + public static int GetEnd(this PartySettingErrorID self) + { + return PartySettingErrorIDEnum.GetEnd(); + } + + // Token: 0x060047E6 RID: 18406 RVA: 0x00187AB8 File Offset: 0x00186CB8 + public static PartySettingErrorID FindID(string enumName) + { + for (PartySettingErrorID partySettingErrorID = PartySettingErrorID.ConnectFailed; partySettingErrorID < PartySettingErrorID.End; partySettingErrorID++) + { + if (partySettingErrorID.GetEnumName() == enumName) + { + return partySettingErrorID; + } + } + return PartySettingErrorID.Invalid; + } + + // Token: 0x060047E7 RID: 18407 RVA: 0x00187AE2 File Offset: 0x00186CE2 + public static int GetEnd() + { + return PartySettingErrorIDEnum.records.Length; + } + + // Token: 0x060047E8 RID: 18408 RVA: 0x00187AEB File Offset: 0x00186CEB + public static int GetEnumValue(this PartySettingErrorID self) + { + if (self.IsValid()) + { + return PartySettingErrorIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060047E9 RID: 18409 RVA: 0x00187B03 File Offset: 0x00186D03 + public static string GetEnumName(this PartySettingErrorID self) + { + if (self.IsValid()) + { + return PartySettingErrorIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060047EA RID: 18410 RVA: 0x00187B1F File Offset: 0x00186D1F + public static string GetName(this PartySettingErrorID self) + { + if (self.IsValid()) + { + return PartySettingErrorIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x040057A7 RID: 22439 + private static readonly PartySettingErrorTableRecord[] records = new PartySettingErrorTableRecord[] + { + new PartySettingErrorTableRecord(0, "ConnectFailed", "接続失敗"), + new PartySettingErrorTableRecord(1, "Disconnected", "切断された"), + new PartySettingErrorTableRecord(2, "ForceError", "強制エラー"), + new PartySettingErrorTableRecord(3, "GroupOff", "グループがOFF"), + new PartySettingErrorTableRecord(4, "DuplicateHost", "ホストが重複"), + new PartySettingErrorTableRecord(5, "SocketOpenFailed", "ソケットの生成失敗") + }; + } +} diff --git a/Assembly-CSharp/DB/PartySettingErrorTableRecord.cs b/Assembly-CSharp/DB/PartySettingErrorTableRecord.cs new file mode 100644 index 0000000..a63ac81 --- /dev/null +++ b/Assembly-CSharp/DB/PartySettingErrorTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x0200082D RID: 2093 + public class PartySettingErrorTableRecord + { + // Token: 0x060047E0 RID: 18400 RVA: 0x00003560 File Offset: 0x00002760 + public PartySettingErrorTableRecord() + { + } + + // Token: 0x060047E1 RID: 18401 RVA: 0x00187A7A File Offset: 0x00186C7A + public PartySettingErrorTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x040057A4 RID: 22436 + public int EnumValue; + + // Token: 0x040057A5 RID: 22437 + public string EnumName; + + // Token: 0x040057A6 RID: 22438 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/PartySettingHostStateID.cs b/Assembly-CSharp/DB/PartySettingHostStateID.cs new file mode 100644 index 0000000..ffbcf44 --- /dev/null +++ b/Assembly-CSharp/DB/PartySettingHostStateID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x0200082F RID: 2095 + public enum PartySettingHostStateID + { + // Token: 0x040057A9 RID: 22441 + First, + // Token: 0x040057AA RID: 22442 + Setup, + // Token: 0x040057AB RID: 22443 + Active, + // Token: 0x040057AC RID: 22444 + Error, + // Token: 0x040057AD RID: 22445 + Finish, + // Token: 0x040057AE RID: 22446 + Begin = 0, + // Token: 0x040057AF RID: 22447 + End = 5, + // Token: 0x040057B0 RID: 22448 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PartySettingHostStateIDEnum.cs b/Assembly-CSharp/DB/PartySettingHostStateIDEnum.cs new file mode 100644 index 0000000..10d3db1 --- /dev/null +++ b/Assembly-CSharp/DB/PartySettingHostStateIDEnum.cs @@ -0,0 +1,111 @@ +using System; + +namespace DB +{ + // Token: 0x02000831 RID: 2097 + public static class PartySettingHostStateIDEnum + { + // Token: 0x060047EE RID: 18414 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this PartySettingHostStateID self) + { + return self >= PartySettingHostStateID.First && self < PartySettingHostStateID.End && self > PartySettingHostStateID.First; + } + + // Token: 0x060047EF RID: 18415 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this PartySettingHostStateID self) + { + return self >= PartySettingHostStateID.First && self < PartySettingHostStateID.End; + } + + // Token: 0x060047F0 RID: 18416 RVA: 0x00187BF9 File Offset: 0x00186DF9 + public static void Clamp(this PartySettingHostStateID self) + { + if (self < PartySettingHostStateID.First) + { + self = PartySettingHostStateID.First; + return; + } + if (self >= (PartySettingHostStateID)PartySettingHostStateIDEnum.GetEnd()) + { + self = (PartySettingHostStateID)PartySettingHostStateIDEnum.GetEnd(); + } + } + + // Token: 0x060047F1 RID: 18417 RVA: 0x00187C12 File Offset: 0x00186E12 + public static int GetEnd(this PartySettingHostStateID self) + { + return PartySettingHostStateIDEnum.GetEnd(); + } + + // Token: 0x060047F2 RID: 18418 RVA: 0x00187C1C File Offset: 0x00186E1C + public static PartySettingHostStateID FindID(string enumName) + { + for (PartySettingHostStateID partySettingHostStateID = PartySettingHostStateID.First; partySettingHostStateID < PartySettingHostStateID.End; partySettingHostStateID++) + { + if (partySettingHostStateID.GetEnumName() == enumName) + { + return partySettingHostStateID; + } + } + return PartySettingHostStateID.Invalid; + } + + // Token: 0x060047F3 RID: 18419 RVA: 0x00187C46 File Offset: 0x00186E46 + public static int GetEnd() + { + return PartySettingHostStateIDEnum.records.Length; + } + + // Token: 0x060047F4 RID: 18420 RVA: 0x00187C4F File Offset: 0x00186E4F + public static int GetEnumValue(this PartySettingHostStateID self) + { + if (self.IsValid()) + { + return PartySettingHostStateIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060047F5 RID: 18421 RVA: 0x00187C67 File Offset: 0x00186E67 + public static string GetEnumName(this PartySettingHostStateID self) + { + if (self.IsValid()) + { + return PartySettingHostStateIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060047F6 RID: 18422 RVA: 0x00187C83 File Offset: 0x00186E83 + public static string GetName(this PartySettingHostStateID self) + { + if (self.IsValid()) + { + return PartySettingHostStateIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060047F7 RID: 18423 RVA: 0x00187C9F File Offset: 0x00186E9F + public static bool IsNormal(this PartySettingHostStateID self) + { + return self.IsValid() && PartySettingHostStateIDEnum.records[(int)self].isNormal; + } + + // Token: 0x060047F8 RID: 18424 RVA: 0x00187CB7 File Offset: 0x00186EB7 + public static bool IsError(this PartySettingHostStateID self) + { + return self.IsValid() && PartySettingHostStateIDEnum.records[(int)self].isError; + } + + // Token: 0x040057B6 RID: 22454 + private static readonly PartySettingHostStateTableRecord[] records = new PartySettingHostStateTableRecord[] + { + new PartySettingHostStateTableRecord(0, "First", "---", 0, 0), + new PartySettingHostStateTableRecord(1, "Setup", "---", 0, 0), + new PartySettingHostStateTableRecord(2, "Active", "良", 1, 0), + new PartySettingHostStateTableRecord(3, "Error", "坏", 0, 1), + new PartySettingHostStateTableRecord(4, "Finish", "---", 0, 0) + }; + } +} diff --git a/Assembly-CSharp/DB/PartySettingHostStateTableRecord.cs b/Assembly-CSharp/DB/PartySettingHostStateTableRecord.cs new file mode 100644 index 0000000..349f4d9 --- /dev/null +++ b/Assembly-CSharp/DB/PartySettingHostStateTableRecord.cs @@ -0,0 +1,38 @@ +using System; + +namespace DB +{ + // Token: 0x02000830 RID: 2096 + public class PartySettingHostStateTableRecord + { + // Token: 0x060047EC RID: 18412 RVA: 0x00003560 File Offset: 0x00002760 + public PartySettingHostStateTableRecord() + { + } + + // Token: 0x060047ED RID: 18413 RVA: 0x00187BC6 File Offset: 0x00186DC6 + public PartySettingHostStateTableRecord(int EnumValue, string EnumName, string Name, int isNormal, int isError) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.isNormal = isNormal != 0; + this.isError = isError != 0; + } + + // Token: 0x040057B1 RID: 22449 + public int EnumValue; + + // Token: 0x040057B2 RID: 22450 + public string EnumName; + + // Token: 0x040057B3 RID: 22451 + public string Name; + + // Token: 0x040057B4 RID: 22452 + public bool isNormal; + + // Token: 0x040057B5 RID: 22453 + public bool isError; + } +} diff --git a/Assembly-CSharp/DB/PhotoeditDateID.cs b/Assembly-CSharp/DB/PhotoeditDateID.cs new file mode 100644 index 0000000..1dd8c0c --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditDateID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x02000832 RID: 2098 + public enum PhotoeditDateID + { + // Token: 0x040057B8 RID: 22456 + On, + // Token: 0x040057B9 RID: 22457 + Off, + // Token: 0x040057BA RID: 22458 + Begin = 0, + // Token: 0x040057BB RID: 22459 + End = 2, + // Token: 0x040057BC RID: 22460 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PhotoeditDateIDEnum.cs b/Assembly-CSharp/DB/PhotoeditDateIDEnum.cs new file mode 100644 index 0000000..2fa3aeb --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditDateIDEnum.cs @@ -0,0 +1,106 @@ +using System; + +namespace DB +{ + // Token: 0x02000834 RID: 2100 + public static class PhotoeditDateIDEnum + { + // Token: 0x060047FC RID: 18428 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this PhotoeditDateID self) + { + return self >= PhotoeditDateID.On && self < PhotoeditDateID.End && self > PhotoeditDateID.On; + } + + // Token: 0x060047FD RID: 18429 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this PhotoeditDateID self) + { + return self >= PhotoeditDateID.On && self < PhotoeditDateID.End; + } + + // Token: 0x060047FE RID: 18430 RVA: 0x00187D76 File Offset: 0x00186F76 + public static void Clamp(this PhotoeditDateID self) + { + if (self < PhotoeditDateID.On) + { + self = PhotoeditDateID.On; + return; + } + if (self >= (PhotoeditDateID)PhotoeditDateIDEnum.GetEnd()) + { + self = (PhotoeditDateID)PhotoeditDateIDEnum.GetEnd(); + } + } + + // Token: 0x060047FF RID: 18431 RVA: 0x00187D8F File Offset: 0x00186F8F + public static int GetEnd(this PhotoeditDateID self) + { + return PhotoeditDateIDEnum.GetEnd(); + } + + // Token: 0x06004800 RID: 18432 RVA: 0x00187D98 File Offset: 0x00186F98 + public static PhotoeditDateID FindID(string enumName) + { + for (PhotoeditDateID photoeditDateID = PhotoeditDateID.On; photoeditDateID < PhotoeditDateID.End; photoeditDateID++) + { + if (photoeditDateID.GetEnumName() == enumName) + { + return photoeditDateID; + } + } + return PhotoeditDateID.Invalid; + } + + // Token: 0x06004801 RID: 18433 RVA: 0x00187DC2 File Offset: 0x00186FC2 + public static int GetEnd() + { + return PhotoeditDateIDEnum.records.Length; + } + + // Token: 0x06004802 RID: 18434 RVA: 0x00187DCB File Offset: 0x00186FCB + public static int GetEnumValue(this PhotoeditDateID self) + { + if (self.IsValid()) + { + return PhotoeditDateIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004803 RID: 18435 RVA: 0x00187DE3 File Offset: 0x00186FE3 + public static string GetEnumName(this PhotoeditDateID self) + { + if (self.IsValid()) + { + return PhotoeditDateIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004804 RID: 18436 RVA: 0x00187DFF File Offset: 0x00186FFF + public static string GetName(this PhotoeditDateID self) + { + if (self.IsValid()) + { + return PhotoeditDateIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004805 RID: 18437 RVA: 0x00187E1B File Offset: 0x0018701B + public static string GetNameEx(this PhotoeditDateID self) + { + if (self.IsValid()) + { + return PhotoeditDateIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x040057C1 RID: 22465 + private static readonly PhotoeditDateTableRecord[] records = new PhotoeditDateTableRecord[] + { + new PhotoeditDateTableRecord(0, "On", "开", ""), + new PhotoeditDateTableRecord(1, "Off", "关", "") + }; + } +} diff --git a/Assembly-CSharp/DB/PhotoeditDateTableRecord.cs b/Assembly-CSharp/DB/PhotoeditDateTableRecord.cs new file mode 100644 index 0000000..a9ccfdf --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditDateTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000833 RID: 2099 + public class PhotoeditDateTableRecord + { + // Token: 0x060047FA RID: 18426 RVA: 0x00003560 File Offset: 0x00002760 + public PhotoeditDateTableRecord() + { + } + + // Token: 0x060047FB RID: 18427 RVA: 0x00187D51 File Offset: 0x00186F51 + public PhotoeditDateTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x040057BD RID: 22461 + public int EnumValue; + + // Token: 0x040057BE RID: 22462 + public string EnumName; + + // Token: 0x040057BF RID: 22463 + public string Name; + + // Token: 0x040057C0 RID: 22464 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/PhotoeditLayoutID.cs b/Assembly-CSharp/DB/PhotoeditLayoutID.cs new file mode 100644 index 0000000..0db0620 --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditLayoutID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x02000835 RID: 2101 + public enum PhotoeditLayoutID + { + // Token: 0x040057C3 RID: 22467 + Normal, + // Token: 0x040057C4 RID: 22468 + Character, + // Token: 0x040057C5 RID: 22469 + AllPhoto, + // Token: 0x040057C6 RID: 22470 + Begin = 0, + // Token: 0x040057C7 RID: 22471 + End = 3, + // Token: 0x040057C8 RID: 22472 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PhotoeditLayoutIDEnum.cs b/Assembly-CSharp/DB/PhotoeditLayoutIDEnum.cs new file mode 100644 index 0000000..937d26d --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditLayoutIDEnum.cs @@ -0,0 +1,107 @@ +using System; + +namespace DB +{ + // Token: 0x02000837 RID: 2103 + public static class PhotoeditLayoutIDEnum + { + // Token: 0x06004809 RID: 18441 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this PhotoeditLayoutID self) + { + return self >= PhotoeditLayoutID.Normal && self < PhotoeditLayoutID.End && self > PhotoeditLayoutID.Normal; + } + + // Token: 0x0600480A RID: 18442 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this PhotoeditLayoutID self) + { + return self >= PhotoeditLayoutID.Normal && self < PhotoeditLayoutID.End; + } + + // Token: 0x0600480B RID: 18443 RVA: 0x00187E99 File Offset: 0x00187099 + public static void Clamp(this PhotoeditLayoutID self) + { + if (self < PhotoeditLayoutID.Normal) + { + self = PhotoeditLayoutID.Normal; + return; + } + if (self >= (PhotoeditLayoutID)PhotoeditLayoutIDEnum.GetEnd()) + { + self = (PhotoeditLayoutID)PhotoeditLayoutIDEnum.GetEnd(); + } + } + + // Token: 0x0600480C RID: 18444 RVA: 0x00187EB2 File Offset: 0x001870B2 + public static int GetEnd(this PhotoeditLayoutID self) + { + return PhotoeditLayoutIDEnum.GetEnd(); + } + + // Token: 0x0600480D RID: 18445 RVA: 0x00187EBC File Offset: 0x001870BC + public static PhotoeditLayoutID FindID(string enumName) + { + for (PhotoeditLayoutID photoeditLayoutID = PhotoeditLayoutID.Normal; photoeditLayoutID < PhotoeditLayoutID.End; photoeditLayoutID++) + { + if (photoeditLayoutID.GetEnumName() == enumName) + { + return photoeditLayoutID; + } + } + return PhotoeditLayoutID.Invalid; + } + + // Token: 0x0600480E RID: 18446 RVA: 0x00187EE6 File Offset: 0x001870E6 + public static int GetEnd() + { + return PhotoeditLayoutIDEnum.records.Length; + } + + // Token: 0x0600480F RID: 18447 RVA: 0x00187EEF File Offset: 0x001870EF + public static int GetEnumValue(this PhotoeditLayoutID self) + { + if (self.IsValid()) + { + return PhotoeditLayoutIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004810 RID: 18448 RVA: 0x00187F07 File Offset: 0x00187107 + public static string GetEnumName(this PhotoeditLayoutID self) + { + if (self.IsValid()) + { + return PhotoeditLayoutIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004811 RID: 18449 RVA: 0x00187F23 File Offset: 0x00187123 + public static string GetName(this PhotoeditLayoutID self) + { + if (self.IsValid()) + { + return PhotoeditLayoutIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004812 RID: 18450 RVA: 0x00187F3F File Offset: 0x0018713F + public static string GetNameEx(this PhotoeditLayoutID self) + { + if (self.IsValid()) + { + return PhotoeditLayoutIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x040057CD RID: 22477 + private static readonly PhotoeditLayoutTableRecord[] records = new PhotoeditLayoutTableRecord[] + { + new PhotoeditLayoutTableRecord(0, "Normal", "标准", ""), + new PhotoeditLayoutTableRecord(1, "Character", "角色", ""), + new PhotoeditLayoutTableRecord(2, "AllPhoto", "照片整体", "") + }; + } +} diff --git a/Assembly-CSharp/DB/PhotoeditLayoutTableRecord.cs b/Assembly-CSharp/DB/PhotoeditLayoutTableRecord.cs new file mode 100644 index 0000000..2d9cfde --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditLayoutTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000836 RID: 2102 + public class PhotoeditLayoutTableRecord + { + // Token: 0x06004807 RID: 18439 RVA: 0x00003560 File Offset: 0x00002760 + public PhotoeditLayoutTableRecord() + { + } + + // Token: 0x06004808 RID: 18440 RVA: 0x00187E74 File Offset: 0x00187074 + public PhotoeditLayoutTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x040057C9 RID: 22473 + public int EnumValue; + + // Token: 0x040057CA RID: 22474 + public string EnumName; + + // Token: 0x040057CB RID: 22475 + public string Name; + + // Token: 0x040057CC RID: 22476 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/PhotoeditPlayerinfoID.cs b/Assembly-CSharp/DB/PhotoeditPlayerinfoID.cs new file mode 100644 index 0000000..ce7d5e6 --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditPlayerinfoID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x02000838 RID: 2104 + public enum PhotoeditPlayerinfoID + { + // Token: 0x040057CF RID: 22479 + On, + // Token: 0x040057D0 RID: 22480 + Off, + // Token: 0x040057D1 RID: 22481 + Begin = 0, + // Token: 0x040057D2 RID: 22482 + End = 2, + // Token: 0x040057D3 RID: 22483 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PhotoeditPlayerinfoIDEnum.cs b/Assembly-CSharp/DB/PhotoeditPlayerinfoIDEnum.cs new file mode 100644 index 0000000..dd19164 --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditPlayerinfoIDEnum.cs @@ -0,0 +1,106 @@ +using System; + +namespace DB +{ + // Token: 0x0200083A RID: 2106 + public static class PhotoeditPlayerinfoIDEnum + { + // Token: 0x06004816 RID: 18454 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this PhotoeditPlayerinfoID self) + { + return self >= PhotoeditPlayerinfoID.On && self < PhotoeditPlayerinfoID.End && self > PhotoeditPlayerinfoID.On; + } + + // Token: 0x06004817 RID: 18455 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this PhotoeditPlayerinfoID self) + { + return self >= PhotoeditPlayerinfoID.On && self < PhotoeditPlayerinfoID.End; + } + + // Token: 0x06004818 RID: 18456 RVA: 0x00187FE1 File Offset: 0x001871E1 + public static void Clamp(this PhotoeditPlayerinfoID self) + { + if (self < PhotoeditPlayerinfoID.On) + { + self = PhotoeditPlayerinfoID.On; + return; + } + if (self >= (PhotoeditPlayerinfoID)PhotoeditPlayerinfoIDEnum.GetEnd()) + { + self = (PhotoeditPlayerinfoID)PhotoeditPlayerinfoIDEnum.GetEnd(); + } + } + + // Token: 0x06004819 RID: 18457 RVA: 0x00187FFA File Offset: 0x001871FA + public static int GetEnd(this PhotoeditPlayerinfoID self) + { + return PhotoeditPlayerinfoIDEnum.GetEnd(); + } + + // Token: 0x0600481A RID: 18458 RVA: 0x00188004 File Offset: 0x00187204 + public static PhotoeditPlayerinfoID FindID(string enumName) + { + for (PhotoeditPlayerinfoID photoeditPlayerinfoID = PhotoeditPlayerinfoID.On; photoeditPlayerinfoID < PhotoeditPlayerinfoID.End; photoeditPlayerinfoID++) + { + if (photoeditPlayerinfoID.GetEnumName() == enumName) + { + return photoeditPlayerinfoID; + } + } + return PhotoeditPlayerinfoID.Invalid; + } + + // Token: 0x0600481B RID: 18459 RVA: 0x0018802E File Offset: 0x0018722E + public static int GetEnd() + { + return PhotoeditPlayerinfoIDEnum.records.Length; + } + + // Token: 0x0600481C RID: 18460 RVA: 0x00188037 File Offset: 0x00187237 + public static int GetEnumValue(this PhotoeditPlayerinfoID self) + { + if (self.IsValid()) + { + return PhotoeditPlayerinfoIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600481D RID: 18461 RVA: 0x0018804F File Offset: 0x0018724F + public static string GetEnumName(this PhotoeditPlayerinfoID self) + { + if (self.IsValid()) + { + return PhotoeditPlayerinfoIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600481E RID: 18462 RVA: 0x0018806B File Offset: 0x0018726B + public static string GetName(this PhotoeditPlayerinfoID self) + { + if (self.IsValid()) + { + return PhotoeditPlayerinfoIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600481F RID: 18463 RVA: 0x00188087 File Offset: 0x00187287 + public static string GetNameEx(this PhotoeditPlayerinfoID self) + { + if (self.IsValid()) + { + return PhotoeditPlayerinfoIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x040057D8 RID: 22488 + private static readonly PhotoeditPlayerinfoTableRecord[] records = new PhotoeditPlayerinfoTableRecord[] + { + new PhotoeditPlayerinfoTableRecord(0, "On", "开", ""), + new PhotoeditPlayerinfoTableRecord(1, "Off", "关", "") + }; + } +} diff --git a/Assembly-CSharp/DB/PhotoeditPlayerinfoTableRecord.cs b/Assembly-CSharp/DB/PhotoeditPlayerinfoTableRecord.cs new file mode 100644 index 0000000..1222a85 --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditPlayerinfoTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000839 RID: 2105 + public class PhotoeditPlayerinfoTableRecord + { + // Token: 0x06004814 RID: 18452 RVA: 0x00003560 File Offset: 0x00002760 + public PhotoeditPlayerinfoTableRecord() + { + } + + // Token: 0x06004815 RID: 18453 RVA: 0x00187FBC File Offset: 0x001871BC + public PhotoeditPlayerinfoTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x040057D4 RID: 22484 + public int EnumValue; + + // Token: 0x040057D5 RID: 22485 + public string EnumName; + + // Token: 0x040057D6 RID: 22486 + public string Name; + + // Token: 0x040057D7 RID: 22487 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/PhotoeditSettingID.cs b/Assembly-CSharp/DB/PhotoeditSettingID.cs new file mode 100644 index 0000000..30862e1 --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditSettingID.cs @@ -0,0 +1,23 @@ +using System; + +namespace DB +{ + // Token: 0x0200083B RID: 2107 + public enum PhotoeditSettingID + { + // Token: 0x040057DA RID: 22490 + Layout, + // Token: 0x040057DB RID: 22491 + Stamp, + // Token: 0x040057DC RID: 22492 + PlayerInfo, + // Token: 0x040057DD RID: 22493 + Date, + // Token: 0x040057DE RID: 22494 + Begin = 0, + // Token: 0x040057DF RID: 22495 + End = 4, + // Token: 0x040057E0 RID: 22496 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PhotoeditSettingIDEnum.cs b/Assembly-CSharp/DB/PhotoeditSettingIDEnum.cs new file mode 100644 index 0000000..d808467 --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditSettingIDEnum.cs @@ -0,0 +1,108 @@ +using System; + +namespace DB +{ + // Token: 0x0200083D RID: 2109 + public static class PhotoeditSettingIDEnum + { + // Token: 0x06004823 RID: 18467 RVA: 0x00173DA6 File Offset: 0x00172FA6 + public static bool IsActive(this PhotoeditSettingID self) + { + return self >= PhotoeditSettingID.Layout && self < PhotoeditSettingID.End && self > PhotoeditSettingID.Layout; + } + + // Token: 0x06004824 RID: 18468 RVA: 0x00173DB6 File Offset: 0x00172FB6 + public static bool IsValid(this PhotoeditSettingID self) + { + return self >= PhotoeditSettingID.Layout && self < PhotoeditSettingID.End; + } + + // Token: 0x06004825 RID: 18469 RVA: 0x00188105 File Offset: 0x00187305 + public static void Clamp(this PhotoeditSettingID self) + { + if (self < PhotoeditSettingID.Layout) + { + self = PhotoeditSettingID.Layout; + return; + } + if (self >= (PhotoeditSettingID)PhotoeditSettingIDEnum.GetEnd()) + { + self = (PhotoeditSettingID)PhotoeditSettingIDEnum.GetEnd(); + } + } + + // Token: 0x06004826 RID: 18470 RVA: 0x0018811E File Offset: 0x0018731E + public static int GetEnd(this PhotoeditSettingID self) + { + return PhotoeditSettingIDEnum.GetEnd(); + } + + // Token: 0x06004827 RID: 18471 RVA: 0x00188128 File Offset: 0x00187328 + public static PhotoeditSettingID FindID(string enumName) + { + for (PhotoeditSettingID photoeditSettingID = PhotoeditSettingID.Layout; photoeditSettingID < PhotoeditSettingID.End; photoeditSettingID++) + { + if (photoeditSettingID.GetEnumName() == enumName) + { + return photoeditSettingID; + } + } + return PhotoeditSettingID.Invalid; + } + + // Token: 0x06004828 RID: 18472 RVA: 0x00188152 File Offset: 0x00187352 + public static int GetEnd() + { + return PhotoeditSettingIDEnum.records.Length; + } + + // Token: 0x06004829 RID: 18473 RVA: 0x0018815B File Offset: 0x0018735B + public static int GetEnumValue(this PhotoeditSettingID self) + { + if (self.IsValid()) + { + return PhotoeditSettingIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600482A RID: 18474 RVA: 0x00188173 File Offset: 0x00187373 + public static string GetEnumName(this PhotoeditSettingID self) + { + if (self.IsValid()) + { + return PhotoeditSettingIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600482B RID: 18475 RVA: 0x0018818F File Offset: 0x0018738F + public static string GetName(this PhotoeditSettingID self) + { + if (self.IsValid()) + { + return PhotoeditSettingIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600482C RID: 18476 RVA: 0x001881AB File Offset: 0x001873AB + public static string GetNameEx(this PhotoeditSettingID self) + { + if (self.IsValid()) + { + return PhotoeditSettingIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x040057E5 RID: 22501 + private static readonly PhotoeditSettingTableRecord[] records = new PhotoeditSettingTableRecord[] + { + new PhotoeditSettingTableRecord(0, "Layout", "排版", ""), + new PhotoeditSettingTableRecord(1, "Stamp", "图章", ""), + new PhotoeditSettingTableRecord(2, "PlayerInfo", "玩家信息", ""), + new PhotoeditSettingTableRecord(3, "Date", "游戏日期", "") + }; + } +} diff --git a/Assembly-CSharp/DB/PhotoeditSettingTableRecord.cs b/Assembly-CSharp/DB/PhotoeditSettingTableRecord.cs new file mode 100644 index 0000000..fc649af --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditSettingTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x0200083C RID: 2108 + public class PhotoeditSettingTableRecord + { + // Token: 0x06004821 RID: 18465 RVA: 0x00003560 File Offset: 0x00002760 + public PhotoeditSettingTableRecord() + { + } + + // Token: 0x06004822 RID: 18466 RVA: 0x001880E0 File Offset: 0x001872E0 + public PhotoeditSettingTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x040057E1 RID: 22497 + public int EnumValue; + + // Token: 0x040057E2 RID: 22498 + public string EnumName; + + // Token: 0x040057E3 RID: 22499 + public string Name; + + // Token: 0x040057E4 RID: 22500 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/PhotoeditShopnameID.cs b/Assembly-CSharp/DB/PhotoeditShopnameID.cs new file mode 100644 index 0000000..d28605f --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditShopnameID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x0200083E RID: 2110 + public enum PhotoeditShopnameID + { + // Token: 0x040057E7 RID: 22503 + On, + // Token: 0x040057E8 RID: 22504 + Off, + // Token: 0x040057E9 RID: 22505 + Begin = 0, + // Token: 0x040057EA RID: 22506 + End = 2, + // Token: 0x040057EB RID: 22507 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PhotoeditShopnameIDEnum.cs b/Assembly-CSharp/DB/PhotoeditShopnameIDEnum.cs new file mode 100644 index 0000000..cd604f4 --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditShopnameIDEnum.cs @@ -0,0 +1,106 @@ +using System; + +namespace DB +{ + // Token: 0x02000840 RID: 2112 + public static class PhotoeditShopnameIDEnum + { + // Token: 0x06004830 RID: 18480 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this PhotoeditShopnameID self) + { + return self >= PhotoeditShopnameID.On && self < PhotoeditShopnameID.End && self > PhotoeditShopnameID.On; + } + + // Token: 0x06004831 RID: 18481 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this PhotoeditShopnameID self) + { + return self >= PhotoeditShopnameID.On && self < PhotoeditShopnameID.End; + } + + // Token: 0x06004832 RID: 18482 RVA: 0x00188265 File Offset: 0x00187465 + public static void Clamp(this PhotoeditShopnameID self) + { + if (self < PhotoeditShopnameID.On) + { + self = PhotoeditShopnameID.On; + return; + } + if (self >= (PhotoeditShopnameID)PhotoeditShopnameIDEnum.GetEnd()) + { + self = (PhotoeditShopnameID)PhotoeditShopnameIDEnum.GetEnd(); + } + } + + // Token: 0x06004833 RID: 18483 RVA: 0x0018827E File Offset: 0x0018747E + public static int GetEnd(this PhotoeditShopnameID self) + { + return PhotoeditShopnameIDEnum.GetEnd(); + } + + // Token: 0x06004834 RID: 18484 RVA: 0x00188288 File Offset: 0x00187488 + public static PhotoeditShopnameID FindID(string enumName) + { + for (PhotoeditShopnameID photoeditShopnameID = PhotoeditShopnameID.On; photoeditShopnameID < PhotoeditShopnameID.End; photoeditShopnameID++) + { + if (photoeditShopnameID.GetEnumName() == enumName) + { + return photoeditShopnameID; + } + } + return PhotoeditShopnameID.Invalid; + } + + // Token: 0x06004835 RID: 18485 RVA: 0x001882B2 File Offset: 0x001874B2 + public static int GetEnd() + { + return PhotoeditShopnameIDEnum.records.Length; + } + + // Token: 0x06004836 RID: 18486 RVA: 0x001882BB File Offset: 0x001874BB + public static int GetEnumValue(this PhotoeditShopnameID self) + { + if (self.IsValid()) + { + return PhotoeditShopnameIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004837 RID: 18487 RVA: 0x001882D3 File Offset: 0x001874D3 + public static string GetEnumName(this PhotoeditShopnameID self) + { + if (self.IsValid()) + { + return PhotoeditShopnameIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004838 RID: 18488 RVA: 0x001882EF File Offset: 0x001874EF + public static string GetName(this PhotoeditShopnameID self) + { + if (self.IsValid()) + { + return PhotoeditShopnameIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004839 RID: 18489 RVA: 0x0018830B File Offset: 0x0018750B + public static string GetNameEx(this PhotoeditShopnameID self) + { + if (self.IsValid()) + { + return PhotoeditShopnameIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x040057F0 RID: 22512 + private static readonly PhotoeditShopnameTableRecord[] records = new PhotoeditShopnameTableRecord[] + { + new PhotoeditShopnameTableRecord(0, "On", "开", ""), + new PhotoeditShopnameTableRecord(1, "Off", "关", "") + }; + } +} diff --git a/Assembly-CSharp/DB/PhotoeditShopnameTableRecord.cs b/Assembly-CSharp/DB/PhotoeditShopnameTableRecord.cs new file mode 100644 index 0000000..9095772 --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditShopnameTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x0200083F RID: 2111 + public class PhotoeditShopnameTableRecord + { + // Token: 0x0600482E RID: 18478 RVA: 0x00003560 File Offset: 0x00002760 + public PhotoeditShopnameTableRecord() + { + } + + // Token: 0x0600482F RID: 18479 RVA: 0x00188240 File Offset: 0x00187440 + public PhotoeditShopnameTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x040057EC RID: 22508 + public int EnumValue; + + // Token: 0x040057ED RID: 22509 + public string EnumName; + + // Token: 0x040057EE RID: 22510 + public string Name; + + // Token: 0x040057EF RID: 22511 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/PhotoeditStampID.cs b/Assembly-CSharp/DB/PhotoeditStampID.cs new file mode 100644 index 0000000..8b2dfc2 --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditStampID.cs @@ -0,0 +1,41 @@ +using System; + +namespace DB +{ + // Token: 0x02000841 RID: 2113 + public enum PhotoeditStampID + { + // Token: 0x040057F2 RID: 22514 + Stamp00, + // Token: 0x040057F3 RID: 22515 + Stamp01, + // Token: 0x040057F4 RID: 22516 + Stamp02, + // Token: 0x040057F5 RID: 22517 + Stamp03, + // Token: 0x040057F6 RID: 22518 + Stamp04, + // Token: 0x040057F7 RID: 22519 + Stamp05, + // Token: 0x040057F8 RID: 22520 + Stamp06, + // Token: 0x040057F9 RID: 22521 + Stamp07, + // Token: 0x040057FA RID: 22522 + Stamp08, + // Token: 0x040057FB RID: 22523 + Stamp09, + // Token: 0x040057FC RID: 22524 + Stamp10, + // Token: 0x040057FD RID: 22525 + Stamp11, + // Token: 0x040057FE RID: 22526 + Stamp12, + // Token: 0x040057FF RID: 22527 + Begin = 0, + // Token: 0x04005800 RID: 22528 + End = 13, + // Token: 0x04005801 RID: 22529 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PhotoeditStampIDEnum.cs b/Assembly-CSharp/DB/PhotoeditStampIDEnum.cs new file mode 100644 index 0000000..0f9956e --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditStampIDEnum.cs @@ -0,0 +1,117 @@ +using System; + +namespace DB +{ + // Token: 0x02000843 RID: 2115 + public static class PhotoeditStampIDEnum + { + // Token: 0x0600483D RID: 18493 RVA: 0x00188389 File Offset: 0x00187589 + public static bool IsActive(this PhotoeditStampID self) + { + return self >= PhotoeditStampID.Stamp00 && self < PhotoeditStampID.End && self > PhotoeditStampID.Stamp00; + } + + // Token: 0x0600483E RID: 18494 RVA: 0x0018839A File Offset: 0x0018759A + public static bool IsValid(this PhotoeditStampID self) + { + return self >= PhotoeditStampID.Stamp00 && self < PhotoeditStampID.End; + } + + // Token: 0x0600483F RID: 18495 RVA: 0x001883A7 File Offset: 0x001875A7 + public static void Clamp(this PhotoeditStampID self) + { + if (self < PhotoeditStampID.Stamp00) + { + self = PhotoeditStampID.Stamp00; + return; + } + if (self >= (PhotoeditStampID)PhotoeditStampIDEnum.GetEnd()) + { + self = (PhotoeditStampID)PhotoeditStampIDEnum.GetEnd(); + } + } + + // Token: 0x06004840 RID: 18496 RVA: 0x001883C0 File Offset: 0x001875C0 + public static int GetEnd(this PhotoeditStampID self) + { + return PhotoeditStampIDEnum.GetEnd(); + } + + // Token: 0x06004841 RID: 18497 RVA: 0x001883C8 File Offset: 0x001875C8 + public static PhotoeditStampID FindID(string enumName) + { + for (PhotoeditStampID photoeditStampID = PhotoeditStampID.Stamp00; photoeditStampID < PhotoeditStampID.End; photoeditStampID++) + { + if (photoeditStampID.GetEnumName() == enumName) + { + return photoeditStampID; + } + } + return PhotoeditStampID.Invalid; + } + + // Token: 0x06004842 RID: 18498 RVA: 0x001883F3 File Offset: 0x001875F3 + public static int GetEnd() + { + return PhotoeditStampIDEnum.records.Length; + } + + // Token: 0x06004843 RID: 18499 RVA: 0x001883FC File Offset: 0x001875FC + public static int GetEnumValue(this PhotoeditStampID self) + { + if (self.IsValid()) + { + return PhotoeditStampIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004844 RID: 18500 RVA: 0x00188414 File Offset: 0x00187614 + public static string GetEnumName(this PhotoeditStampID self) + { + if (self.IsValid()) + { + return PhotoeditStampIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004845 RID: 18501 RVA: 0x00188430 File Offset: 0x00187630 + public static string GetName(this PhotoeditStampID self) + { + if (self.IsValid()) + { + return PhotoeditStampIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004846 RID: 18502 RVA: 0x0018844C File Offset: 0x0018764C + public static string GetNameEx(this PhotoeditStampID self) + { + if (self.IsValid()) + { + return PhotoeditStampIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005806 RID: 22534 + private static readonly PhotoeditStampTableRecord[] records = new PhotoeditStampTableRecord[] + { + new PhotoeditStampTableRecord(0, "Stamp00", "关", ""), + new PhotoeditStampTableRecord(1, "Stamp01", "真的挺不错哟!", ""), + new PhotoeditStampTableRecord(2, "Stamp02", "真的好开心哟!", ""), + new PhotoeditStampTableRecord(3, "Stamp03", "今天的舞萌!", ""), + new PhotoeditStampTableRecord(4, "Stamp04", "太棒啦!!", ""), + new PhotoeditStampTableRecord(5, "Stamp05", "只差一点点…", ""), + new PhotoeditStampTableRecord(6, "Stamp06", "有点失落…", ""), + new PhotoeditStampTableRecord(7, "Stamp07", "搞不定", ""), + new PhotoeditStampTableRecord(8, "Stamp08", "原来如此", ""), + new PhotoeditStampTableRecord(9, "Stamp09", "一起玩得好开心~♪", ""), + new PhotoeditStampTableRecord(10, "Stamp10", "尽情享受游戏时光♪", ""), + new PhotoeditStampTableRecord(11, "Stamp11", "大家一起来舞萌♪", ""), + new PhotoeditStampTableRecord(12, "Stamp12", "SYNC同步率挑战!", "") + }; + } +} diff --git a/Assembly-CSharp/DB/PhotoeditStampTableRecord.cs b/Assembly-CSharp/DB/PhotoeditStampTableRecord.cs new file mode 100644 index 0000000..4b35294 --- /dev/null +++ b/Assembly-CSharp/DB/PhotoeditStampTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000842 RID: 2114 + public class PhotoeditStampTableRecord + { + // Token: 0x0600483B RID: 18491 RVA: 0x00003560 File Offset: 0x00002760 + public PhotoeditStampTableRecord() + { + } + + // Token: 0x0600483C RID: 18492 RVA: 0x00188364 File Offset: 0x00187564 + public PhotoeditStampTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005802 RID: 22530 + public int EnumValue; + + // Token: 0x04005803 RID: 22531 + public string EnumName; + + // Token: 0x04005804 RID: 22532 + public string Name; + + // Token: 0x04005805 RID: 22533 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/PlayComboflagID.cs b/Assembly-CSharp/DB/PlayComboflagID.cs new file mode 100644 index 0000000..278b337 --- /dev/null +++ b/Assembly-CSharp/DB/PlayComboflagID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x02000844 RID: 2116 + public enum PlayComboflagID + { + // Token: 0x04005808 RID: 22536 + None, + // Token: 0x04005809 RID: 22537 + Silver, + // Token: 0x0400580A RID: 22538 + Gold, + // Token: 0x0400580B RID: 22539 + AllPerfect, + // Token: 0x0400580C RID: 22540 + AllPerfectPlus, + // Token: 0x0400580D RID: 22541 + Begin = 0, + // Token: 0x0400580E RID: 22542 + End = 5, + // Token: 0x0400580F RID: 22543 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PlayComboflagIDEnum.cs b/Assembly-CSharp/DB/PlayComboflagIDEnum.cs new file mode 100644 index 0000000..3dd09b7 --- /dev/null +++ b/Assembly-CSharp/DB/PlayComboflagIDEnum.cs @@ -0,0 +1,99 @@ +using System; + +namespace DB +{ + // Token: 0x02000846 RID: 2118 + public static class PlayComboflagIDEnum + { + // Token: 0x0600484A RID: 18506 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this PlayComboflagID self) + { + return self >= PlayComboflagID.None && self < PlayComboflagID.End && self > PlayComboflagID.None; + } + + // Token: 0x0600484B RID: 18507 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this PlayComboflagID self) + { + return self >= PlayComboflagID.None && self < PlayComboflagID.End; + } + + // Token: 0x0600484C RID: 18508 RVA: 0x001885DE File Offset: 0x001877DE + public static void Clamp(this PlayComboflagID self) + { + if (self < PlayComboflagID.None) + { + self = PlayComboflagID.None; + return; + } + if (self >= (PlayComboflagID)PlayComboflagIDEnum.GetEnd()) + { + self = (PlayComboflagID)PlayComboflagIDEnum.GetEnd(); + } + } + + // Token: 0x0600484D RID: 18509 RVA: 0x001885F7 File Offset: 0x001877F7 + public static int GetEnd(this PlayComboflagID self) + { + return PlayComboflagIDEnum.GetEnd(); + } + + // Token: 0x0600484E RID: 18510 RVA: 0x00188600 File Offset: 0x00187800 + public static PlayComboflagID FindID(string enumName) + { + for (PlayComboflagID playComboflagID = PlayComboflagID.None; playComboflagID < PlayComboflagID.End; playComboflagID++) + { + if (playComboflagID.GetEnumName() == enumName) + { + return playComboflagID; + } + } + return PlayComboflagID.Invalid; + } + + // Token: 0x0600484F RID: 18511 RVA: 0x0018862A File Offset: 0x0018782A + public static int GetEnd() + { + return PlayComboflagIDEnum.records.Length; + } + + // Token: 0x06004850 RID: 18512 RVA: 0x00188633 File Offset: 0x00187833 + public static int GetEnumValue(this PlayComboflagID self) + { + if (self.IsValid()) + { + return PlayComboflagIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004851 RID: 18513 RVA: 0x0018864B File Offset: 0x0018784B + public static string GetEnumName(this PlayComboflagID self) + { + if (self.IsValid()) + { + return PlayComboflagIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004852 RID: 18514 RVA: 0x00188667 File Offset: 0x00187867 + public static string GetName(this PlayComboflagID self) + { + if (self.IsValid()) + { + return PlayComboflagIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04005813 RID: 22547 + private static readonly PlayComboflagTableRecord[] records = new PlayComboflagTableRecord[] + { + new PlayComboflagTableRecord(0, "None", "なし"), + new PlayComboflagTableRecord(1, "Silver", "銀フルコンボ"), + new PlayComboflagTableRecord(2, "Gold", "金フルコンボ"), + new PlayComboflagTableRecord(3, "AllPerfect", "AllPerfect"), + new PlayComboflagTableRecord(4, "AllPerfectPlus", "AllPerfect+") + }; + } +} diff --git a/Assembly-CSharp/DB/PlayComboflagTableRecord.cs b/Assembly-CSharp/DB/PlayComboflagTableRecord.cs new file mode 100644 index 0000000..e852991 --- /dev/null +++ b/Assembly-CSharp/DB/PlayComboflagTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000845 RID: 2117 + public class PlayComboflagTableRecord + { + // Token: 0x06004848 RID: 18504 RVA: 0x00003560 File Offset: 0x00002760 + public PlayComboflagTableRecord() + { + } + + // Token: 0x06004849 RID: 18505 RVA: 0x001885C1 File Offset: 0x001877C1 + public PlayComboflagTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005810 RID: 22544 + public int EnumValue; + + // Token: 0x04005811 RID: 22545 + public string EnumName; + + // Token: 0x04005812 RID: 22546 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/PlaySyncflagID.cs b/Assembly-CSharp/DB/PlaySyncflagID.cs new file mode 100644 index 0000000..6144247 --- /dev/null +++ b/Assembly-CSharp/DB/PlaySyncflagID.cs @@ -0,0 +1,27 @@ +using System; + +namespace DB +{ + // Token: 0x0200084A RID: 2122 + public enum PlaySyncflagID + { + // Token: 0x04005827 RID: 22567 + None, + // Token: 0x04005828 RID: 22568 + ChainLow, + // Token: 0x04005829 RID: 22569 + ChainHi, + // Token: 0x0400582A RID: 22570 + SyncLow, + // Token: 0x0400582B RID: 22571 + SyncHi, + // Token: 0x0400582C RID: 22572 + SyncPlay, + // Token: 0x0400582D RID: 22573 + Begin = 0, + // Token: 0x0400582E RID: 22574 + End = 6, + // Token: 0x0400582F RID: 22575 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PlaySyncflagIDEnum.cs b/Assembly-CSharp/DB/PlaySyncflagIDEnum.cs new file mode 100644 index 0000000..c0f73f2 --- /dev/null +++ b/Assembly-CSharp/DB/PlaySyncflagIDEnum.cs @@ -0,0 +1,110 @@ +using System; + +namespace DB +{ + // Token: 0x0200084C RID: 2124 + public static class PlaySyncflagIDEnum + { + // Token: 0x06004866 RID: 18534 RVA: 0x00178314 File Offset: 0x00177514 + public static bool IsActive(this PlaySyncflagID self) + { + return self >= PlaySyncflagID.None && self < PlaySyncflagID.End && self > PlaySyncflagID.None; + } + + // Token: 0x06004867 RID: 18535 RVA: 0x00130760 File Offset: 0x0012F960 + public static bool IsValid(this PlaySyncflagID self) + { + return self >= PlaySyncflagID.None && self < PlaySyncflagID.End; + } + + // Token: 0x06004868 RID: 18536 RVA: 0x00188973 File Offset: 0x00187B73 + public static void Clamp(this PlaySyncflagID self) + { + if (self < PlaySyncflagID.None) + { + self = PlaySyncflagID.None; + return; + } + if (self >= (PlaySyncflagID)PlaySyncflagIDEnum.GetEnd()) + { + self = (PlaySyncflagID)PlaySyncflagIDEnum.GetEnd(); + } + } + + // Token: 0x06004869 RID: 18537 RVA: 0x0018898C File Offset: 0x00187B8C + public static int GetEnd(this PlaySyncflagID self) + { + return PlaySyncflagIDEnum.GetEnd(); + } + + // Token: 0x0600486A RID: 18538 RVA: 0x00188994 File Offset: 0x00187B94 + public static PlaySyncflagID FindID(string enumName) + { + for (PlaySyncflagID playSyncflagID = PlaySyncflagID.None; playSyncflagID < PlaySyncflagID.End; playSyncflagID++) + { + if (playSyncflagID.GetEnumName() == enumName) + { + return playSyncflagID; + } + } + return PlaySyncflagID.Invalid; + } + + // Token: 0x0600486B RID: 18539 RVA: 0x001889BE File Offset: 0x00187BBE + public static int GetEnd() + { + return PlaySyncflagIDEnum.records.Length; + } + + // Token: 0x0600486C RID: 18540 RVA: 0x001889C7 File Offset: 0x00187BC7 + public static int GetEnumValue(this PlaySyncflagID self) + { + if (self.IsValid()) + { + return PlaySyncflagIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600486D RID: 18541 RVA: 0x001889DF File Offset: 0x00187BDF + public static string GetEnumName(this PlaySyncflagID self) + { + if (self.IsValid()) + { + return PlaySyncflagIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600486E RID: 18542 RVA: 0x001889FB File Offset: 0x00187BFB + public static string GetName(this PlaySyncflagID self) + { + if (self.IsValid()) + { + return PlaySyncflagIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600486F RID: 18543 RVA: 0x00188A17 File Offset: 0x00187C17 + public static int GetPoint(this PlaySyncflagID self) + { + if (self.IsValid()) + { + return PlaySyncflagIDEnum.records[(int)self].Point; + } + return 0; + } + + // Token: 0x04005834 RID: 22580 + private static readonly PlaySyncflagTableRecord[] records = new PlaySyncflagTableRecord[] + { + new PlaySyncflagTableRecord(0, "None", "なし", 0), + new PlaySyncflagTableRecord(1, "ChainLow", "FullChain下位", 2), + new PlaySyncflagTableRecord(2, "ChainHi", "FullChain上位", 5), + new PlaySyncflagTableRecord(3, "SyncLow", "FullSync下位", 10), + new PlaySyncflagTableRecord(4, "SyncHi", "FullSync上位", 12), + new PlaySyncflagTableRecord(5, "SyncPlay", "SyncPlay", 1) + }; + } +} diff --git a/Assembly-CSharp/DB/PlaySyncflagTableRecord.cs b/Assembly-CSharp/DB/PlaySyncflagTableRecord.cs new file mode 100644 index 0000000..085d5f2 --- /dev/null +++ b/Assembly-CSharp/DB/PlaySyncflagTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x0200084B RID: 2123 + public class PlaySyncflagTableRecord + { + // Token: 0x06004864 RID: 18532 RVA: 0x00003560 File Offset: 0x00002760 + public PlaySyncflagTableRecord() + { + } + + // Token: 0x06004865 RID: 18533 RVA: 0x0018894E File Offset: 0x00187B4E + public PlaySyncflagTableRecord(int EnumValue, string EnumName, string Name, int Point) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.Point = Point; + } + + // Token: 0x04005830 RID: 22576 + public int EnumValue; + + // Token: 0x04005831 RID: 22577 + public string EnumName; + + // Token: 0x04005832 RID: 22578 + public string Name; + + // Token: 0x04005833 RID: 22579 + public int Point; + } +} diff --git a/Assembly-CSharp/DB/PlaystatusTabID.cs b/Assembly-CSharp/DB/PlaystatusTabID.cs new file mode 100644 index 0000000..20e8783 --- /dev/null +++ b/Assembly-CSharp/DB/PlaystatusTabID.cs @@ -0,0 +1,27 @@ +using System; + +namespace DB +{ + // Token: 0x02000847 RID: 2119 + public enum PlaystatusTabID + { + // Token: 0x04005815 RID: 22549 + ClearNum, + // Token: 0x04005816 RID: 22550 + Average, + // Token: 0x04005817 RID: 22551 + ClearRank, + // Token: 0x04005818 RID: 22552 + FcAp, + // Token: 0x04005819 RID: 22553 + Sync, + // Token: 0x0400581A RID: 22554 + DxScore, + // Token: 0x0400581B RID: 22555 + Begin = 0, + // Token: 0x0400581C RID: 22556 + End = 6, + // Token: 0x0400581D RID: 22557 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/PlaystatusTabIDEnum.cs b/Assembly-CSharp/DB/PlaystatusTabIDEnum.cs new file mode 100644 index 0000000..14c8ae9 --- /dev/null +++ b/Assembly-CSharp/DB/PlaystatusTabIDEnum.cs @@ -0,0 +1,140 @@ +using System; + +namespace DB +{ + // Token: 0x02000849 RID: 2121 + public static class PlaystatusTabIDEnum + { + // Token: 0x06004856 RID: 18518 RVA: 0x00178314 File Offset: 0x00177514 + public static bool IsActive(this PlaystatusTabID self) + { + return self >= PlaystatusTabID.ClearNum && self < PlaystatusTabID.End && self > PlaystatusTabID.ClearNum; + } + + // Token: 0x06004857 RID: 18519 RVA: 0x00130760 File Offset: 0x0012F960 + public static bool IsValid(this PlaystatusTabID self) + { + return self >= PlaystatusTabID.ClearNum && self < PlaystatusTabID.End; + } + + // Token: 0x06004858 RID: 18520 RVA: 0x00188738 File Offset: 0x00187938 + public static void Clamp(this PlaystatusTabID self) + { + if (self < PlaystatusTabID.ClearNum) + { + self = PlaystatusTabID.ClearNum; + return; + } + if (self >= (PlaystatusTabID)PlaystatusTabIDEnum.GetEnd()) + { + self = (PlaystatusTabID)PlaystatusTabIDEnum.GetEnd(); + } + } + + // Token: 0x06004859 RID: 18521 RVA: 0x00188751 File Offset: 0x00187951 + public static int GetEnd(this PlaystatusTabID self) + { + return PlaystatusTabIDEnum.GetEnd(); + } + + // Token: 0x0600485A RID: 18522 RVA: 0x00188758 File Offset: 0x00187958 + public static PlaystatusTabID FindID(string enumName) + { + for (PlaystatusTabID playstatusTabID = PlaystatusTabID.ClearNum; playstatusTabID < PlaystatusTabID.End; playstatusTabID++) + { + if (playstatusTabID.GetEnumName() == enumName) + { + return playstatusTabID; + } + } + return PlaystatusTabID.Invalid; + } + + // Token: 0x0600485B RID: 18523 RVA: 0x00188782 File Offset: 0x00187982 + public static int GetEnd() + { + return PlaystatusTabIDEnum.records.Length; + } + + // Token: 0x0600485C RID: 18524 RVA: 0x0018878B File Offset: 0x0018798B + public static int GetEnumValue(this PlaystatusTabID self) + { + if (self.IsValid()) + { + return PlaystatusTabIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600485D RID: 18525 RVA: 0x001887A3 File Offset: 0x001879A3 + public static string GetEnumName(this PlaystatusTabID self) + { + if (self.IsValid()) + { + return PlaystatusTabIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600485E RID: 18526 RVA: 0x001887BF File Offset: 0x001879BF + public static string GetName(this PlaystatusTabID self) + { + if (self.IsValid()) + { + return PlaystatusTabIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600485F RID: 18527 RVA: 0x001887DB File Offset: 0x001879DB + public static string GetNameEx(this PlaystatusTabID self) + { + if (self.IsValid()) + { + return PlaystatusTabIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004860 RID: 18528 RVA: 0x001887F7 File Offset: 0x001879F7 + public static string GetDetail(this PlaystatusTabID self) + { + if (self.IsValid()) + { + return PlaystatusTabIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x06004861 RID: 18529 RVA: 0x00188813 File Offset: 0x00187A13 + public static string GetDetailEx(this PlaystatusTabID self) + { + if (self.IsValid()) + { + return PlaystatusTabIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x06004862 RID: 18530 RVA: 0x0018882F File Offset: 0x00187A2F + public static string GetFilePath(this PlaystatusTabID self) + { + if (self.IsValid()) + { + return PlaystatusTabIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x04005825 RID: 22565 + private static readonly PlaystatusTabTableRecord[] records = new PlaystatusTabTableRecord[] + { + new PlaystatusTabTableRecord(0, "ClearNum", "通关的曲数", "", "", "", "UI_MSS_SortStatusimag_01_01"), + new PlaystatusTabTableRecord(1, "Average", "平均达成率", "", "", "", "UI_MSS_SortStatusimag_01_02"), + new PlaystatusTabTableRecord(2, "ClearRank", "通关评价", "", "", "", "UI_MSS_SortStatusimag_01_03"), + new PlaystatusTabTableRecord(3, "FcAp", "FC / AP", "", "", "", "UI_MSS_SortStatusimag_01_04"), + new PlaystatusTabTableRecord(4, "Sync", "同步", "", "", "", "UI_MSS_SortStatusimag_01_05"), + new PlaystatusTabTableRecord(5, "DxScore", "DX分数", "", "", "", "UI_MSS_SortStatusimag_01_06") + }; + } +} diff --git a/Assembly-CSharp/DB/PlaystatusTabTableRecord.cs b/Assembly-CSharp/DB/PlaystatusTabTableRecord.cs new file mode 100644 index 0000000..b26ea5a --- /dev/null +++ b/Assembly-CSharp/DB/PlaystatusTabTableRecord.cs @@ -0,0 +1,46 @@ +using System; + +namespace DB +{ + // Token: 0x02000848 RID: 2120 + public class PlaystatusTabTableRecord + { + // Token: 0x06004854 RID: 18516 RVA: 0x00003560 File Offset: 0x00002760 + public PlaystatusTabTableRecord() + { + } + + // Token: 0x06004855 RID: 18517 RVA: 0x001886FB File Offset: 0x001878FB + public PlaystatusTabTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + } + + // Token: 0x0400581E RID: 22558 + public int EnumValue; + + // Token: 0x0400581F RID: 22559 + public string EnumName; + + // Token: 0x04005820 RID: 22560 + public string Name; + + // Token: 0x04005821 RID: 22561 + public string NameEx; + + // Token: 0x04005822 RID: 22562 + public string Detail; + + // Token: 0x04005823 RID: 22563 + public string DetailEx; + + // Token: 0x04005824 RID: 22564 + public string FilePath; + } +} diff --git a/Assembly-CSharp/DB/RateColorID.cs b/Assembly-CSharp/DB/RateColorID.cs new file mode 100644 index 0000000..77564c5 --- /dev/null +++ b/Assembly-CSharp/DB/RateColorID.cs @@ -0,0 +1,37 @@ +using System; + +namespace DB +{ + // Token: 0x0200084D RID: 2125 + public enum RateColorID + { + // Token: 0x04005836 RID: 22582 + White1, + // Token: 0x04005837 RID: 22583 + Blue1, + // Token: 0x04005838 RID: 22584 + Green1, + // Token: 0x04005839 RID: 22585 + Yellow1, + // Token: 0x0400583A RID: 22586 + Red1, + // Token: 0x0400583B RID: 22587 + Purple1, + // Token: 0x0400583C RID: 22588 + Copper1, + // Token: 0x0400583D RID: 22589 + Silver1, + // Token: 0x0400583E RID: 22590 + Gold1, + // Token: 0x0400583F RID: 22591 + Platinum1, + // Token: 0x04005840 RID: 22592 + Rainbow1, + // Token: 0x04005841 RID: 22593 + Begin = 0, + // Token: 0x04005842 RID: 22594 + End = 11, + // Token: 0x04005843 RID: 22595 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/RateColorIDEnum.cs b/Assembly-CSharp/DB/RateColorIDEnum.cs new file mode 100644 index 0000000..6ccfce6 --- /dev/null +++ b/Assembly-CSharp/DB/RateColorIDEnum.cs @@ -0,0 +1,115 @@ +using System; + +namespace DB +{ + // Token: 0x0200084F RID: 2127 + public static class RateColorIDEnum + { + // Token: 0x06004873 RID: 18547 RVA: 0x00186068 File Offset: 0x00185268 + public static bool IsActive(this RateColorID self) + { + return self >= RateColorID.White1 && self < RateColorID.End && self > RateColorID.White1; + } + + // Token: 0x06004874 RID: 18548 RVA: 0x00186079 File Offset: 0x00185279 + public static bool IsValid(this RateColorID self) + { + return self >= RateColorID.White1 && self < RateColorID.End; + } + + // Token: 0x06004875 RID: 18549 RVA: 0x00188AE7 File Offset: 0x00187CE7 + public static void Clamp(this RateColorID self) + { + if (self < RateColorID.White1) + { + self = RateColorID.White1; + return; + } + if (self >= (RateColorID)RateColorIDEnum.GetEnd()) + { + self = (RateColorID)RateColorIDEnum.GetEnd(); + } + } + + // Token: 0x06004876 RID: 18550 RVA: 0x00188B00 File Offset: 0x00187D00 + public static int GetEnd(this RateColorID self) + { + return RateColorIDEnum.GetEnd(); + } + + // Token: 0x06004877 RID: 18551 RVA: 0x00188B08 File Offset: 0x00187D08 + public static RateColorID FindID(string enumName) + { + for (RateColorID rateColorID = RateColorID.White1; rateColorID < RateColorID.End; rateColorID++) + { + if (rateColorID.GetEnumName() == enumName) + { + return rateColorID; + } + } + return RateColorID.Invalid; + } + + // Token: 0x06004878 RID: 18552 RVA: 0x00188B33 File Offset: 0x00187D33 + public static int GetEnd() + { + return RateColorIDEnum.records.Length; + } + + // Token: 0x06004879 RID: 18553 RVA: 0x00188B3C File Offset: 0x00187D3C + public static int GetEnumValue(this RateColorID self) + { + if (self.IsValid()) + { + return RateColorIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600487A RID: 18554 RVA: 0x00188B54 File Offset: 0x00187D54 + public static string GetEnumName(this RateColorID self) + { + if (self.IsValid()) + { + return RateColorIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600487B RID: 18555 RVA: 0x00188B70 File Offset: 0x00187D70 + public static string GetName(this RateColorID self) + { + if (self.IsValid()) + { + return RateColorIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600487C RID: 18556 RVA: 0x00188B8C File Offset: 0x00187D8C + public static int GetRate(this RateColorID self) + { + if (self.IsValid()) + { + return RateColorIDEnum.records[(int)self].Rate; + } + return 0; + } + + // Token: 0x04005848 RID: 22600 + private static readonly RateColorTableRecord[] records = new RateColorTableRecord[] + { + new RateColorTableRecord(0, "White1", "白", 0), + new RateColorTableRecord(1, "Blue1", "青", 1000), + new RateColorTableRecord(2, "Green1", "緑", 2000), + new RateColorTableRecord(3, "Yellow1", "黄色", 4000), + new RateColorTableRecord(4, "Red1", "赤", 7000), + new RateColorTableRecord(5, "Purple1", "紫", 10000), + new RateColorTableRecord(6, "Copper1", "銅", 12000), + new RateColorTableRecord(7, "Silver1", "銀", 13000), + new RateColorTableRecord(8, "Gold1", "金", 14000), + new RateColorTableRecord(9, "Platinum1", "白金", 14500), + new RateColorTableRecord(10, "Rainbow1", "虹", 15000) + }; + } +} diff --git a/Assembly-CSharp/DB/RateColorTableRecord.cs b/Assembly-CSharp/DB/RateColorTableRecord.cs new file mode 100644 index 0000000..32b1ad2 --- /dev/null +++ b/Assembly-CSharp/DB/RateColorTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x0200084E RID: 2126 + public class RateColorTableRecord + { + // Token: 0x06004871 RID: 18545 RVA: 0x00003560 File Offset: 0x00002760 + public RateColorTableRecord() + { + } + + // Token: 0x06004872 RID: 18546 RVA: 0x00188AC2 File Offset: 0x00187CC2 + public RateColorTableRecord(int EnumValue, string EnumName, string Name, int Rate) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.Rate = Rate; + } + + // Token: 0x04005844 RID: 22596 + public int EnumValue; + + // Token: 0x04005845 RID: 22597 + public string EnumName; + + // Token: 0x04005846 RID: 22598 + public string Name; + + // Token: 0x04005847 RID: 22599 + public int Rate; + } +} diff --git a/Assembly-CSharp/DB/RatingTableID.cs b/Assembly-CSharp/DB/RatingTableID.cs new file mode 100644 index 0000000..da5def3 --- /dev/null +++ b/Assembly-CSharp/DB/RatingTableID.cs @@ -0,0 +1,61 @@ +using System; + +namespace DB +{ + // Token: 0x02000850 RID: 2128 + public enum RatingTableID + { + // Token: 0x0400584A RID: 22602 + Rate_00, + // Token: 0x0400584B RID: 22603 + Rate_01, + // Token: 0x0400584C RID: 22604 + Rate_02, + // Token: 0x0400584D RID: 22605 + Rate_03, + // Token: 0x0400584E RID: 22606 + Rate_04, + // Token: 0x0400584F RID: 22607 + Rate_05, + // Token: 0x04005850 RID: 22608 + Rate_06, + // Token: 0x04005851 RID: 22609 + Rate_07, + // Token: 0x04005852 RID: 22610 + Rate_08, + // Token: 0x04005853 RID: 22611 + Rate_09, + // Token: 0x04005854 RID: 22612 + Rate_10, + // Token: 0x04005855 RID: 22613 + Rate_11, + // Token: 0x04005856 RID: 22614 + Rate_12, + // Token: 0x04005857 RID: 22615 + Rate_13, + // Token: 0x04005858 RID: 22616 + Rate_14, + // Token: 0x04005859 RID: 22617 + Rate_15, + // Token: 0x0400585A RID: 22618 + Rate_16, + // Token: 0x0400585B RID: 22619 + Rate_17, + // Token: 0x0400585C RID: 22620 + Rate_18, + // Token: 0x0400585D RID: 22621 + Rate_19, + // Token: 0x0400585E RID: 22622 + Rate_20, + // Token: 0x0400585F RID: 22623 + Rate_21, + // Token: 0x04005860 RID: 22624 + Rate_22, + // Token: 0x04005861 RID: 22625 + Begin = 0, + // Token: 0x04005862 RID: 22626 + End = 23, + // Token: 0x04005863 RID: 22627 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/RatingTableIDEnum.cs b/Assembly-CSharp/DB/RatingTableIDEnum.cs new file mode 100644 index 0000000..ff4b679 --- /dev/null +++ b/Assembly-CSharp/DB/RatingTableIDEnum.cs @@ -0,0 +1,137 @@ +using System; + +namespace DB +{ + // Token: 0x02000852 RID: 2130 + public static class RatingTableIDEnum + { + // Token: 0x06004880 RID: 18560 RVA: 0x00188CF2 File Offset: 0x00187EF2 + public static bool IsActive(this RatingTableID self) + { + return self >= RatingTableID.Rate_00 && self < RatingTableID.End && self > RatingTableID.Rate_00; + } + + // Token: 0x06004881 RID: 18561 RVA: 0x00188D03 File Offset: 0x00187F03 + public static bool IsValid(this RatingTableID self) + { + return self >= RatingTableID.Rate_00 && self < RatingTableID.End; + } + + // Token: 0x06004882 RID: 18562 RVA: 0x00188D10 File Offset: 0x00187F10 + public static void Clamp(this RatingTableID self) + { + if (self < RatingTableID.Rate_00) + { + self = RatingTableID.Rate_00; + return; + } + if (self >= (RatingTableID)RatingTableIDEnum.GetEnd()) + { + self = (RatingTableID)RatingTableIDEnum.GetEnd(); + } + } + + // Token: 0x06004883 RID: 18563 RVA: 0x00188D29 File Offset: 0x00187F29 + public static int GetEnd(this RatingTableID self) + { + return RatingTableIDEnum.GetEnd(); + } + + // Token: 0x06004884 RID: 18564 RVA: 0x00188D30 File Offset: 0x00187F30 + public static RatingTableID FindID(string enumName) + { + for (RatingTableID ratingTableID = RatingTableID.Rate_00; ratingTableID < RatingTableID.End; ratingTableID++) + { + if (ratingTableID.GetEnumName() == enumName) + { + return ratingTableID; + } + } + return RatingTableID.Invalid; + } + + // Token: 0x06004885 RID: 18565 RVA: 0x00188D5B File Offset: 0x00187F5B + public static int GetEnd() + { + return RatingTableIDEnum.records.Length; + } + + // Token: 0x06004886 RID: 18566 RVA: 0x00188D64 File Offset: 0x00187F64 + public static int GetEnumValue(this RatingTableID self) + { + if (self.IsValid()) + { + return RatingTableIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004887 RID: 18567 RVA: 0x00188D7C File Offset: 0x00187F7C + public static string GetEnumName(this RatingTableID self) + { + if (self.IsValid()) + { + return RatingTableIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004888 RID: 18568 RVA: 0x00188D98 File Offset: 0x00187F98 + public static string GetName(this RatingTableID self) + { + if (self.IsValid()) + { + return RatingTableIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004889 RID: 18569 RVA: 0x00188DB4 File Offset: 0x00187FB4 + public static int GetAchive(this RatingTableID self) + { + if (self.IsValid()) + { + return RatingTableIDEnum.records[(int)self].Achive; + } + return 0; + } + + // Token: 0x0600488A RID: 18570 RVA: 0x00188DCC File Offset: 0x00187FCC + public static int GetOffset(this RatingTableID self) + { + if (self.IsValid()) + { + return RatingTableIDEnum.records[(int)self].Offset; + } + return 0; + } + + // Token: 0x04005869 RID: 22633 + private static readonly RatingTableTableRecord[] records = new RatingTableTableRecord[] + { + new RatingTableTableRecord(0, "Rate_00", "D", 0, 0), + new RatingTableTableRecord(1, "Rate_01", "D", 100000, 16), + new RatingTableTableRecord(2, "Rate_02", "D", 200000, 32), + new RatingTableTableRecord(3, "Rate_03", "D", 300000, 48), + new RatingTableTableRecord(4, "Rate_04", "D", 400000, 64), + new RatingTableTableRecord(5, "Rate_05", "C", 500000, 80), + new RatingTableTableRecord(6, "Rate_06", "B", 600000, 96), + new RatingTableTableRecord(7, "Rate_07", "BB", 700000, 112), + new RatingTableTableRecord(8, "Rate_08", "BBB", 750000, 120), + new RatingTableTableRecord(9, "Rate_09", "BBB", 799999, 128), + new RatingTableTableRecord(10, "Rate_10", "A", 800000, 136), + new RatingTableTableRecord(11, "Rate_11", "AA", 900000, 152), + new RatingTableTableRecord(12, "Rate_12", "AAA", 940000, 168), + new RatingTableTableRecord(13, "Rate_13", "AAA", 969999, 176), + new RatingTableTableRecord(14, "Rate_14", "S", 970000, 200), + new RatingTableTableRecord(15, "Rate_15", "S+", 980000, 203), + new RatingTableTableRecord(16, "Rate_16", "S+", 989999, 206), + new RatingTableTableRecord(17, "Rate_17", "SS", 990000, 208), + new RatingTableTableRecord(18, "Rate_18", "SS+", 995000, 211), + new RatingTableTableRecord(19, "Rate_19", "SS+", 999999, 214), + new RatingTableTableRecord(20, "Rate_20", "SSS", 1000000, 216), + new RatingTableTableRecord(21, "Rate_21", "SSS", 1004999, 222), + new RatingTableTableRecord(22, "Rate_22", "SSS+", 1005000, 224) + }; + } +} diff --git a/Assembly-CSharp/DB/RatingTableTableRecord.cs b/Assembly-CSharp/DB/RatingTableTableRecord.cs new file mode 100644 index 0000000..ec9c6b6 --- /dev/null +++ b/Assembly-CSharp/DB/RatingTableTableRecord.cs @@ -0,0 +1,38 @@ +using System; + +namespace DB +{ + // Token: 0x02000851 RID: 2129 + public class RatingTableTableRecord + { + // Token: 0x0600487E RID: 18558 RVA: 0x00003560 File Offset: 0x00002760 + public RatingTableTableRecord() + { + } + + // Token: 0x0600487F RID: 18559 RVA: 0x00188CC5 File Offset: 0x00187EC5 + public RatingTableTableRecord(int EnumValue, string EnumName, string Name, int Achive, int Offset) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.Achive = Achive; + this.Offset = Offset; + } + + // Token: 0x04005864 RID: 22628 + public int EnumValue; + + // Token: 0x04005865 RID: 22629 + public string EnumName; + + // Token: 0x04005866 RID: 22630 + public string Name; + + // Token: 0x04005867 RID: 22631 + public int Achive; + + // Token: 0x04005868 RID: 22632 + public int Offset; + } +} diff --git a/Assembly-CSharp/DB/ShopTextID.cs b/Assembly-CSharp/DB/ShopTextID.cs new file mode 100644 index 0000000..b58ca5f --- /dev/null +++ b/Assembly-CSharp/DB/ShopTextID.cs @@ -0,0 +1,23 @@ +using System; + +namespace DB +{ + // Token: 0x02000853 RID: 2131 + public enum ShopTextID + { + // Token: 0x0400586B RID: 22635 + ShopCaption, + // Token: 0x0400586C RID: 22636 + ShopCaptionMini, + // Token: 0x0400586D RID: 22637 + MaiMaile, + // Token: 0x0400586E RID: 22638 + Possession, + // Token: 0x0400586F RID: 22639 + Begin = 0, + // Token: 0x04005870 RID: 22640 + End = 4, + // Token: 0x04005871 RID: 22641 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/ShopTextIDEnum.cs b/Assembly-CSharp/DB/ShopTextIDEnum.cs new file mode 100644 index 0000000..896147c --- /dev/null +++ b/Assembly-CSharp/DB/ShopTextIDEnum.cs @@ -0,0 +1,98 @@ +using System; + +namespace DB +{ + // Token: 0x02000855 RID: 2133 + public static class ShopTextIDEnum + { + // Token: 0x0600488E RID: 18574 RVA: 0x00173DA6 File Offset: 0x00172FA6 + public static bool IsActive(this ShopTextID self) + { + return self >= ShopTextID.ShopCaption && self < ShopTextID.End && self > ShopTextID.ShopCaption; + } + + // Token: 0x0600488F RID: 18575 RVA: 0x00173DB6 File Offset: 0x00172FB6 + public static bool IsValid(this ShopTextID self) + { + return self >= ShopTextID.ShopCaption && self < ShopTextID.End; + } + + // Token: 0x06004890 RID: 18576 RVA: 0x001890B1 File Offset: 0x001882B1 + public static void Clamp(this ShopTextID self) + { + if (self < ShopTextID.ShopCaption) + { + self = ShopTextID.ShopCaption; + return; + } + if (self >= (ShopTextID)ShopTextIDEnum.GetEnd()) + { + self = (ShopTextID)ShopTextIDEnum.GetEnd(); + } + } + + // Token: 0x06004891 RID: 18577 RVA: 0x001890CA File Offset: 0x001882CA + public static int GetEnd(this ShopTextID self) + { + return ShopTextIDEnum.GetEnd(); + } + + // Token: 0x06004892 RID: 18578 RVA: 0x001890D4 File Offset: 0x001882D4 + public static ShopTextID FindID(string enumName) + { + for (ShopTextID shopTextID = ShopTextID.ShopCaption; shopTextID < ShopTextID.End; shopTextID++) + { + if (shopTextID.GetEnumName() == enumName) + { + return shopTextID; + } + } + return ShopTextID.Invalid; + } + + // Token: 0x06004893 RID: 18579 RVA: 0x001890FE File Offset: 0x001882FE + public static int GetEnd() + { + return ShopTextIDEnum.records.Length; + } + + // Token: 0x06004894 RID: 18580 RVA: 0x00189107 File Offset: 0x00188307 + public static int GetEnumValue(this ShopTextID self) + { + if (self.IsValid()) + { + return ShopTextIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004895 RID: 18581 RVA: 0x0018911F File Offset: 0x0018831F + public static string GetEnumName(this ShopTextID self) + { + if (self.IsValid()) + { + return ShopTextIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004896 RID: 18582 RVA: 0x0018913B File Offset: 0x0018833B + public static string GetName(this ShopTextID self) + { + if (self.IsValid()) + { + return ShopTextIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04005875 RID: 22645 + private static readonly ShopTextTableRecord[] records = new ShopTextTableRecord[] + { + new ShopTextTableRecord(0, "ShopCaption", "收集舞里程并交换物品吧"), + new ShopTextTableRecord(1, "ShopCaptionMini", "来交换物品吧"), + new ShopTextTableRecord(2, "MaiMaile", "舞里程"), + new ShopTextTableRecord(3, "Possession", "持有数量:") + }; + } +} diff --git a/Assembly-CSharp/DB/ShopTextTableRecord.cs b/Assembly-CSharp/DB/ShopTextTableRecord.cs new file mode 100644 index 0000000..d4e4566 --- /dev/null +++ b/Assembly-CSharp/DB/ShopTextTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000854 RID: 2132 + public class ShopTextTableRecord + { + // Token: 0x0600488C RID: 18572 RVA: 0x00003560 File Offset: 0x00002760 + public ShopTextTableRecord() + { + } + + // Token: 0x0600488D RID: 18573 RVA: 0x00189094 File Offset: 0x00188294 + public ShopTextTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005872 RID: 22642 + public int EnumValue; + + // Token: 0x04005873 RID: 22643 + public string EnumName; + + // Token: 0x04005874 RID: 22644 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/SortMusicID.cs b/Assembly-CSharp/DB/SortMusicID.cs new file mode 100644 index 0000000..262643b --- /dev/null +++ b/Assembly-CSharp/DB/SortMusicID.cs @@ -0,0 +1,33 @@ +using System; + +namespace DB +{ + // Token: 0x02000856 RID: 2134 + public enum SortMusicID + { + // Token: 0x04005877 RID: 22647 + ID, + // Token: 0x04005878 RID: 22648 + Name, + // Token: 0x04005879 RID: 22649 + Level, + // Token: 0x0400587A RID: 22650 + Release, + // Token: 0x0400587B RID: 22651 + BPM, + // Token: 0x0400587C RID: 22652 + Rank, + // Token: 0x0400587D RID: 22653 + ApFc, + // Token: 0x0400587E RID: 22654 + Sync, + // Token: 0x0400587F RID: 22655 + DxScore, + // Token: 0x04005880 RID: 22656 + Begin = 0, + // Token: 0x04005881 RID: 22657 + End = 9, + // Token: 0x04005882 RID: 22658 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/SortMusicIDEnum.cs b/Assembly-CSharp/DB/SortMusicIDEnum.cs new file mode 100644 index 0000000..c47485e --- /dev/null +++ b/Assembly-CSharp/DB/SortMusicIDEnum.cs @@ -0,0 +1,143 @@ +using System; + +namespace DB +{ + // Token: 0x02000858 RID: 2136 + public static class SortMusicIDEnum + { + // Token: 0x0600489A RID: 18586 RVA: 0x0017E647 File Offset: 0x0017D847 + public static bool IsActive(this SortMusicID self) + { + return self >= SortMusicID.ID && self < SortMusicID.End && self > SortMusicID.ID; + } + + // Token: 0x0600489B RID: 18587 RVA: 0x0017E658 File Offset: 0x0017D858 + public static bool IsValid(this SortMusicID self) + { + return self >= SortMusicID.ID && self < SortMusicID.End; + } + + // Token: 0x0600489C RID: 18588 RVA: 0x001891F9 File Offset: 0x001883F9 + public static void Clamp(this SortMusicID self) + { + if (self < SortMusicID.ID) + { + self = SortMusicID.ID; + return; + } + if (self >= (SortMusicID)SortMusicIDEnum.GetEnd()) + { + self = (SortMusicID)SortMusicIDEnum.GetEnd(); + } + } + + // Token: 0x0600489D RID: 18589 RVA: 0x00189212 File Offset: 0x00188412 + public static int GetEnd(this SortMusicID self) + { + return SortMusicIDEnum.GetEnd(); + } + + // Token: 0x0600489E RID: 18590 RVA: 0x0018921C File Offset: 0x0018841C + public static SortMusicID FindID(string enumName) + { + for (SortMusicID sortMusicID = SortMusicID.ID; sortMusicID < SortMusicID.End; sortMusicID++) + { + if (sortMusicID.GetEnumName() == enumName) + { + return sortMusicID; + } + } + return SortMusicID.Invalid; + } + + // Token: 0x0600489F RID: 18591 RVA: 0x00189247 File Offset: 0x00188447 + public static int GetEnd() + { + return SortMusicIDEnum.records.Length; + } + + // Token: 0x060048A0 RID: 18592 RVA: 0x00189250 File Offset: 0x00188450 + public static int GetEnumValue(this SortMusicID self) + { + if (self.IsValid()) + { + return SortMusicIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060048A1 RID: 18593 RVA: 0x00189268 File Offset: 0x00188468 + public static string GetEnumName(this SortMusicID self) + { + if (self.IsValid()) + { + return SortMusicIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060048A2 RID: 18594 RVA: 0x00189284 File Offset: 0x00188484 + public static string GetName(this SortMusicID self) + { + if (self.IsValid()) + { + return SortMusicIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060048A3 RID: 18595 RVA: 0x001892A0 File Offset: 0x001884A0 + public static string GetNameEx(this SortMusicID self) + { + if (self.IsValid()) + { + return SortMusicIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060048A4 RID: 18596 RVA: 0x001892BC File Offset: 0x001884BC + public static string GetDetail(this SortMusicID self) + { + if (self.IsValid()) + { + return SortMusicIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060048A5 RID: 18597 RVA: 0x001892D8 File Offset: 0x001884D8 + public static string GetDetailEx(this SortMusicID self) + { + if (self.IsValid()) + { + return SortMusicIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060048A6 RID: 18598 RVA: 0x001892F4 File Offset: 0x001884F4 + public static string GetFilePath(this SortMusicID self) + { + if (self.IsValid()) + { + return SortMusicIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x0400588A RID: 22666 + private static readonly SortMusicTableRecord[] records = new SortMusicTableRecord[] + { + new SortMusicTableRecord(0, "ID", "按推荐度排序", "", "按对应种类的推荐度排序", "", "UI_MSS_Sortimage_01_01"), + new SortMusicTableRecord(1, "Name", "按乐曲名排序", "", "按日语→英语→数字→符号的顺序排序", "", "UI_MSS_Sortimage_01_06"), + new SortMusicTableRecord(2, "Level", "按等级排序", "", "按等级从低到高排序", "", "UI_MSS_Sortimage_01_04"), + new SortMusicTableRecord(3, "Release", "按添加日期排序", "", "按日语→英语→数字→符号的顺序排序", "", "UI_MSS_Sortimage_01_09"), + new SortMusicTableRecord(4, "BPM", "按BPM顺序", "", "BPMの低い順に並びます", "", "UI_MSS_Sortimage_01_08"), + new SortMusicTableRecord(5, "Rank", "按评价排序", "", "按评价从低到高排序", "", "UI_MSS_Sortimage_01_02"), + new SortMusicTableRecord(6, "ApFc", "按AP/FC图标排序", "", "按无→FC→GFC→AP→AP+的顺序排序", "", "UI_MSS_Sortimage_01_05"), + new SortMusicTableRecord(7, "Sync", "按同步率排序", "", "按无→多种游戏成绩→99%→100%的顺序排序", "", "UI_MSS_Sortimage_01_03"), + new SortMusicTableRecord(8, "DxScore", "按DX分数顺序", "", "星の数が少ない順で並びます", "", "UI_MSS_Sortimage_01_07") + }; + } +} diff --git a/Assembly-CSharp/DB/SortMusicTableRecord.cs b/Assembly-CSharp/DB/SortMusicTableRecord.cs new file mode 100644 index 0000000..970de12 --- /dev/null +++ b/Assembly-CSharp/DB/SortMusicTableRecord.cs @@ -0,0 +1,46 @@ +using System; + +namespace DB +{ + // Token: 0x02000857 RID: 2135 + public class SortMusicTableRecord + { + // Token: 0x06004898 RID: 18584 RVA: 0x00003560 File Offset: 0x00002760 + public SortMusicTableRecord() + { + } + + // Token: 0x06004899 RID: 18585 RVA: 0x001891BC File Offset: 0x001883BC + public SortMusicTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + } + + // Token: 0x04005883 RID: 22659 + public int EnumValue; + + // Token: 0x04005884 RID: 22660 + public string EnumName; + + // Token: 0x04005885 RID: 22661 + public string Name; + + // Token: 0x04005886 RID: 22662 + public string NameEx; + + // Token: 0x04005887 RID: 22663 + public string Detail; + + // Token: 0x04005888 RID: 22664 + public string DetailEx; + + // Token: 0x04005889 RID: 22665 + public string FilePath; + } +} diff --git a/Assembly-CSharp/DB/SortRootID.cs b/Assembly-CSharp/DB/SortRootID.cs new file mode 100644 index 0000000..a1069e6 --- /dev/null +++ b/Assembly-CSharp/DB/SortRootID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x02000859 RID: 2137 + public enum SortRootID + { + // Token: 0x0400588C RID: 22668 + Tab, + // Token: 0x0400588D RID: 22669 + Music, + // Token: 0x0400588E RID: 22670 + PlayStatus, + // Token: 0x0400588F RID: 22671 + Begin = 0, + // Token: 0x04005890 RID: 22672 + End = 3, + // Token: 0x04005891 RID: 22673 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/SortRootIDEnum.cs b/Assembly-CSharp/DB/SortRootIDEnum.cs new file mode 100644 index 0000000..0e0fcef --- /dev/null +++ b/Assembly-CSharp/DB/SortRootIDEnum.cs @@ -0,0 +1,107 @@ +using System; + +namespace DB +{ + // Token: 0x0200085B RID: 2139 + public static class SortRootIDEnum + { + // Token: 0x060048AA RID: 18602 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this SortRootID self) + { + return self >= SortRootID.Tab && self < SortRootID.End && self > SortRootID.Tab; + } + + // Token: 0x060048AB RID: 18603 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this SortRootID self) + { + return self >= SortRootID.Tab && self < SortRootID.End; + } + + // Token: 0x060048AC RID: 18604 RVA: 0x001894AD File Offset: 0x001886AD + public static void Clamp(this SortRootID self) + { + if (self < SortRootID.Tab) + { + self = SortRootID.Tab; + return; + } + if (self >= (SortRootID)SortRootIDEnum.GetEnd()) + { + self = (SortRootID)SortRootIDEnum.GetEnd(); + } + } + + // Token: 0x060048AD RID: 18605 RVA: 0x001894C6 File Offset: 0x001886C6 + public static int GetEnd(this SortRootID self) + { + return SortRootIDEnum.GetEnd(); + } + + // Token: 0x060048AE RID: 18606 RVA: 0x001894D0 File Offset: 0x001886D0 + public static SortRootID FindID(string enumName) + { + for (SortRootID sortRootID = SortRootID.Tab; sortRootID < SortRootID.End; sortRootID++) + { + if (sortRootID.GetEnumName() == enumName) + { + return sortRootID; + } + } + return SortRootID.Invalid; + } + + // Token: 0x060048AF RID: 18607 RVA: 0x001894FA File Offset: 0x001886FA + public static int GetEnd() + { + return SortRootIDEnum.records.Length; + } + + // Token: 0x060048B0 RID: 18608 RVA: 0x00189503 File Offset: 0x00188703 + public static int GetEnumValue(this SortRootID self) + { + if (self.IsValid()) + { + return SortRootIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060048B1 RID: 18609 RVA: 0x0018951B File Offset: 0x0018871B + public static string GetEnumName(this SortRootID self) + { + if (self.IsValid()) + { + return SortRootIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060048B2 RID: 18610 RVA: 0x00189537 File Offset: 0x00188737 + public static string GetName(this SortRootID self) + { + if (self.IsValid()) + { + return SortRootIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060048B3 RID: 18611 RVA: 0x00189553 File Offset: 0x00188753 + public static string GetNameEx(this SortRootID self) + { + if (self.IsValid()) + { + return SortRootIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005896 RID: 22678 + private static readonly SortRootTableRecord[] records = new SortRootTableRecord[] + { + new SortRootTableRecord(0, "Tab", "种类设置", ""), + new SortRootTableRecord(1, "Music", "排序设置", ""), + new SortRootTableRecord(2, "PlayStatus", "游戏统计设置", "") + }; + } +} diff --git a/Assembly-CSharp/DB/SortRootTableRecord.cs b/Assembly-CSharp/DB/SortRootTableRecord.cs new file mode 100644 index 0000000..707432f --- /dev/null +++ b/Assembly-CSharp/DB/SortRootTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x0200085A RID: 2138 + public class SortRootTableRecord + { + // Token: 0x060048A8 RID: 18600 RVA: 0x00003560 File Offset: 0x00002760 + public SortRootTableRecord() + { + } + + // Token: 0x060048A9 RID: 18601 RVA: 0x00189488 File Offset: 0x00188688 + public SortRootTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005892 RID: 22674 + public int EnumValue; + + // Token: 0x04005893 RID: 22675 + public string EnumName; + + // Token: 0x04005894 RID: 22676 + public string Name; + + // Token: 0x04005895 RID: 22677 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/SortTabID.cs b/Assembly-CSharp/DB/SortTabID.cs new file mode 100644 index 0000000..f10387b --- /dev/null +++ b/Assembly-CSharp/DB/SortTabID.cs @@ -0,0 +1,27 @@ +using System; + +namespace DB +{ + // Token: 0x0200085C RID: 2140 + public enum SortTabID + { + // Token: 0x04005898 RID: 22680 + Genre, + // Token: 0x04005899 RID: 22681 + Name, + // Token: 0x0400589A RID: 22682 + Level, + // Token: 0x0400589B RID: 22683 + Version, + // Token: 0x0400589C RID: 22684 + Rank, + // Token: 0x0400589D RID: 22685 + All, + // Token: 0x0400589E RID: 22686 + Begin = 0, + // Token: 0x0400589F RID: 22687 + End = 6, + // Token: 0x040058A0 RID: 22688 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/SortTabIDEnum.cs b/Assembly-CSharp/DB/SortTabIDEnum.cs new file mode 100644 index 0000000..85e3bcd --- /dev/null +++ b/Assembly-CSharp/DB/SortTabIDEnum.cs @@ -0,0 +1,140 @@ +using System; + +namespace DB +{ + // Token: 0x0200085E RID: 2142 + public static class SortTabIDEnum + { + // Token: 0x060048B7 RID: 18615 RVA: 0x00178314 File Offset: 0x00177514 + public static bool IsActive(this SortTabID self) + { + return self >= SortTabID.Genre && self < SortTabID.End && self > SortTabID.Genre; + } + + // Token: 0x060048B8 RID: 18616 RVA: 0x00130760 File Offset: 0x0012F960 + public static bool IsValid(this SortTabID self) + { + return self >= SortTabID.Genre && self < SortTabID.End; + } + + // Token: 0x060048B9 RID: 18617 RVA: 0x0018960D File Offset: 0x0018880D + public static void Clamp(this SortTabID self) + { + if (self < SortTabID.Genre) + { + self = SortTabID.Genre; + return; + } + if (self >= (SortTabID)SortTabIDEnum.GetEnd()) + { + self = (SortTabID)SortTabIDEnum.GetEnd(); + } + } + + // Token: 0x060048BA RID: 18618 RVA: 0x00189626 File Offset: 0x00188826 + public static int GetEnd(this SortTabID self) + { + return SortTabIDEnum.GetEnd(); + } + + // Token: 0x060048BB RID: 18619 RVA: 0x00189630 File Offset: 0x00188830 + public static SortTabID FindID(string enumName) + { + for (SortTabID sortTabID = SortTabID.Genre; sortTabID < SortTabID.End; sortTabID++) + { + if (sortTabID.GetEnumName() == enumName) + { + return sortTabID; + } + } + return SortTabID.Invalid; + } + + // Token: 0x060048BC RID: 18620 RVA: 0x0018965A File Offset: 0x0018885A + public static int GetEnd() + { + return SortTabIDEnum.records.Length; + } + + // Token: 0x060048BD RID: 18621 RVA: 0x00189663 File Offset: 0x00188863 + public static int GetEnumValue(this SortTabID self) + { + if (self.IsValid()) + { + return SortTabIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060048BE RID: 18622 RVA: 0x0018967B File Offset: 0x0018887B + public static string GetEnumName(this SortTabID self) + { + if (self.IsValid()) + { + return SortTabIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060048BF RID: 18623 RVA: 0x00189697 File Offset: 0x00188897 + public static string GetName(this SortTabID self) + { + if (self.IsValid()) + { + return SortTabIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060048C0 RID: 18624 RVA: 0x001896B3 File Offset: 0x001888B3 + public static string GetNameEx(this SortTabID self) + { + if (self.IsValid()) + { + return SortTabIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x060048C1 RID: 18625 RVA: 0x001896CF File Offset: 0x001888CF + public static string GetDetail(this SortTabID self) + { + if (self.IsValid()) + { + return SortTabIDEnum.records[(int)self].Detail; + } + return ""; + } + + // Token: 0x060048C2 RID: 18626 RVA: 0x001896EB File Offset: 0x001888EB + public static string GetDetailEx(this SortTabID self) + { + if (self.IsValid()) + { + return SortTabIDEnum.records[(int)self].DetailEx; + } + return ""; + } + + // Token: 0x060048C3 RID: 18627 RVA: 0x00189707 File Offset: 0x00188907 + public static string GetFilePath(this SortTabID self) + { + if (self.IsValid()) + { + return SortTabIDEnum.records[(int)self].FilePath; + } + return ""; + } + + // Token: 0x040058A8 RID: 22696 + private static readonly SortTabTableRecord[] records = new SortTabTableRecord[] + { + new SortTabTableRecord(0, "Genre", "流派", "", "按乐曲的流派进行标签分类", "", "UI_MSS_Tabimage_01_01"), + new SortTabTableRecord(1, "Name", "乐曲名", "", "按日语、英语、数字、符号进行标签分类", "", "UI_MSS_Tabimage_01_04"), + new SortTabTableRecord(2, "Level", "等级", "", "按等级进行标签分类", "", "UI_MSS_Tabimage_01_03"), + new SortTabTableRecord(3, "Version", "版本", "", "按版本进行标签分类", "", "UI_MSS_Tabimage_01_05"), + new SortTabTableRecord(4, "Rank", "评价", "", "ランクごとにタブ分けされます", "", "UI_MSS_Tabimage_01_06"), + new SortTabTableRecord(5, "All", "所有乐曲", "", "把所有乐曲集中在一个标签里", "", "UI_MSS_Tabimage_01_02") + }; + } +} diff --git a/Assembly-CSharp/DB/SortTabTableRecord.cs b/Assembly-CSharp/DB/SortTabTableRecord.cs new file mode 100644 index 0000000..d396f71 --- /dev/null +++ b/Assembly-CSharp/DB/SortTabTableRecord.cs @@ -0,0 +1,46 @@ +using System; + +namespace DB +{ + // Token: 0x0200085D RID: 2141 + public class SortTabTableRecord + { + // Token: 0x060048B5 RID: 18613 RVA: 0x00003560 File Offset: 0x00002760 + public SortTabTableRecord() + { + } + + // Token: 0x060048B6 RID: 18614 RVA: 0x001895D0 File Offset: 0x001887D0 + public SortTabTableRecord(int EnumValue, string EnumName, string Name, string NameEx, string Detail, string DetailEx, string FilePath) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + this.Detail = Detail; + this.DetailEx = DetailEx; + this.FilePath = FilePath; + } + + // Token: 0x040058A1 RID: 22689 + public int EnumValue; + + // Token: 0x040058A2 RID: 22690 + public string EnumName; + + // Token: 0x040058A3 RID: 22691 + public string Name; + + // Token: 0x040058A4 RID: 22692 + public string NameEx; + + // Token: 0x040058A5 RID: 22693 + public string Detail; + + // Token: 0x040058A6 RID: 22694 + public string DetailEx; + + // Token: 0x040058A7 RID: 22695 + public string FilePath; + } +} diff --git a/Assembly-CSharp/DB/SystemInitializeTextID.cs b/Assembly-CSharp/DB/SystemInitializeTextID.cs new file mode 100644 index 0000000..da64f9a --- /dev/null +++ b/Assembly-CSharp/DB/SystemInitializeTextID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x0200085F RID: 2143 + public enum SystemInitializeTextID + { + // Token: 0x040058AA RID: 22698 + SystemCheck, + // Token: 0x040058AB RID: 22699 + SystemWait, + // Token: 0x040058AC RID: 22700 + DataCheck, + // Token: 0x040058AD RID: 22701 + DataWait, + // Token: 0x040058AE RID: 22702 + AimeReader, + // Token: 0x040058AF RID: 22703 + Begin = 0, + // Token: 0x040058B0 RID: 22704 + End = 5, + // Token: 0x040058B1 RID: 22705 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/SystemInitializeTextIDEnum.cs b/Assembly-CSharp/DB/SystemInitializeTextIDEnum.cs new file mode 100644 index 0000000..bf7537f --- /dev/null +++ b/Assembly-CSharp/DB/SystemInitializeTextIDEnum.cs @@ -0,0 +1,99 @@ +using System; + +namespace DB +{ + // Token: 0x02000861 RID: 2145 + public static class SystemInitializeTextIDEnum + { + // Token: 0x060048C7 RID: 18631 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this SystemInitializeTextID self) + { + return self >= SystemInitializeTextID.SystemCheck && self < SystemInitializeTextID.End && self > SystemInitializeTextID.SystemCheck; + } + + // Token: 0x060048C8 RID: 18632 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this SystemInitializeTextID self) + { + return self >= SystemInitializeTextID.SystemCheck && self < SystemInitializeTextID.End; + } + + // Token: 0x060048C9 RID: 18633 RVA: 0x00189843 File Offset: 0x00188A43 + public static void Clamp(this SystemInitializeTextID self) + { + if (self < SystemInitializeTextID.SystemCheck) + { + self = SystemInitializeTextID.SystemCheck; + return; + } + if (self >= (SystemInitializeTextID)SystemInitializeTextIDEnum.GetEnd()) + { + self = (SystemInitializeTextID)SystemInitializeTextIDEnum.GetEnd(); + } + } + + // Token: 0x060048CA RID: 18634 RVA: 0x0018985C File Offset: 0x00188A5C + public static int GetEnd(this SystemInitializeTextID self) + { + return SystemInitializeTextIDEnum.GetEnd(); + } + + // Token: 0x060048CB RID: 18635 RVA: 0x00189864 File Offset: 0x00188A64 + public static SystemInitializeTextID FindID(string enumName) + { + for (SystemInitializeTextID systemInitializeTextID = SystemInitializeTextID.SystemCheck; systemInitializeTextID < SystemInitializeTextID.End; systemInitializeTextID++) + { + if (systemInitializeTextID.GetEnumName() == enumName) + { + return systemInitializeTextID; + } + } + return SystemInitializeTextID.Invalid; + } + + // Token: 0x060048CC RID: 18636 RVA: 0x0018988E File Offset: 0x00188A8E + public static int GetEnd() + { + return SystemInitializeTextIDEnum.records.Length; + } + + // Token: 0x060048CD RID: 18637 RVA: 0x00189897 File Offset: 0x00188A97 + public static int GetEnumValue(this SystemInitializeTextID self) + { + if (self.IsValid()) + { + return SystemInitializeTextIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060048CE RID: 18638 RVA: 0x001898AF File Offset: 0x00188AAF + public static string GetEnumName(this SystemInitializeTextID self) + { + if (self.IsValid()) + { + return SystemInitializeTextIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060048CF RID: 18639 RVA: 0x001898CB File Offset: 0x00188ACB + public static string GetName(this SystemInitializeTextID self) + { + if (self.IsValid()) + { + return SystemInitializeTextIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x040058B5 RID: 22709 + private static readonly SystemInitializeTextTableRecord[] records = new SystemInitializeTextTableRecord[] + { + new SystemInitializeTextTableRecord(0, "SystemCheck", "系统启动中"), + new SystemInitializeTextTableRecord(1, "SystemWait", "启动中"), + new SystemInitializeTextTableRecord(2, "DataCheck", "游戏数据"), + new SystemInitializeTextTableRecord(3, "DataWait", "初始化中"), + new SystemInitializeTextTableRecord(4, "AimeReader", "Aimeリーダー") + }; + } +} diff --git a/Assembly-CSharp/DB/SystemInitializeTextTableRecord.cs b/Assembly-CSharp/DB/SystemInitializeTextTableRecord.cs new file mode 100644 index 0000000..387527c --- /dev/null +++ b/Assembly-CSharp/DB/SystemInitializeTextTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000860 RID: 2144 + public class SystemInitializeTextTableRecord + { + // Token: 0x060048C5 RID: 18629 RVA: 0x00003560 File Offset: 0x00002760 + public SystemInitializeTextTableRecord() + { + } + + // Token: 0x060048C6 RID: 18630 RVA: 0x00189826 File Offset: 0x00188A26 + public SystemInitializeTextTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x040058B2 RID: 22706 + public int EnumValue; + + // Token: 0x040058B3 RID: 22707 + public string EnumName; + + // Token: 0x040058B4 RID: 22708 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/TestmodeAccountingID.cs b/Assembly-CSharp/DB/TestmodeAccountingID.cs new file mode 100644 index 0000000..b833d75 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeAccountingID.cs @@ -0,0 +1,41 @@ +using System; + +namespace DB +{ + // Token: 0x02000862 RID: 2146 + public enum TestmodeAccountingID + { + // Token: 0x040058B7 RID: 22711 + Title0, + // Token: 0x040058B8 RID: 22712 + Label00, + // Token: 0x040058B9 RID: 22713 + Label01, + // Token: 0x040058BA RID: 22714 + Label02, + // Token: 0x040058BB RID: 22715 + Label03, + // Token: 0x040058BC RID: 22716 + Label04, + // Token: 0x040058BD RID: 22717 + Label05, + // Token: 0x040058BE RID: 22718 + Label06, + // Token: 0x040058BF RID: 22719 + Label07, + // Token: 0x040058C0 RID: 22720 + Label08, + // Token: 0x040058C1 RID: 22721 + Label09, + // Token: 0x040058C2 RID: 22722 + Label10, + // Token: 0x040058C3 RID: 22723 + Label11, + // Token: 0x040058C4 RID: 22724 + Begin = 0, + // Token: 0x040058C5 RID: 22725 + End = 13, + // Token: 0x040058C6 RID: 22726 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeAccountingIDEnum.cs b/Assembly-CSharp/DB/TestmodeAccountingIDEnum.cs new file mode 100644 index 0000000..2df25dc --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeAccountingIDEnum.cs @@ -0,0 +1,117 @@ +using System; + +namespace DB +{ + // Token: 0x02000864 RID: 2148 + public static class TestmodeAccountingIDEnum + { + // Token: 0x060048D3 RID: 18643 RVA: 0x00188389 File Offset: 0x00187589 + public static bool IsActive(this TestmodeAccountingID self) + { + return self >= TestmodeAccountingID.Title0 && self < TestmodeAccountingID.End && self > TestmodeAccountingID.Title0; + } + + // Token: 0x060048D4 RID: 18644 RVA: 0x0018839A File Offset: 0x0018759A + public static bool IsValid(this TestmodeAccountingID self) + { + return self >= TestmodeAccountingID.Title0 && self < TestmodeAccountingID.End; + } + + // Token: 0x060048D5 RID: 18645 RVA: 0x00189984 File Offset: 0x00188B84 + public static void Clamp(this TestmodeAccountingID self) + { + if (self < TestmodeAccountingID.Title0) + { + self = TestmodeAccountingID.Title0; + return; + } + if (self >= (TestmodeAccountingID)TestmodeAccountingIDEnum.GetEnd()) + { + self = (TestmodeAccountingID)TestmodeAccountingIDEnum.GetEnd(); + } + } + + // Token: 0x060048D6 RID: 18646 RVA: 0x0018999D File Offset: 0x00188B9D + public static int GetEnd(this TestmodeAccountingID self) + { + return TestmodeAccountingIDEnum.GetEnd(); + } + + // Token: 0x060048D7 RID: 18647 RVA: 0x001899A4 File Offset: 0x00188BA4 + public static TestmodeAccountingID FindID(string enumName) + { + for (TestmodeAccountingID testmodeAccountingID = TestmodeAccountingID.Title0; testmodeAccountingID < TestmodeAccountingID.End; testmodeAccountingID++) + { + if (testmodeAccountingID.GetEnumName() == enumName) + { + return testmodeAccountingID; + } + } + return TestmodeAccountingID.Invalid; + } + + // Token: 0x060048D8 RID: 18648 RVA: 0x001899CF File Offset: 0x00188BCF + public static int GetEnd() + { + return TestmodeAccountingIDEnum.records.Length; + } + + // Token: 0x060048D9 RID: 18649 RVA: 0x001899D8 File Offset: 0x00188BD8 + public static int GetEnumValue(this TestmodeAccountingID self) + { + if (self.IsValid()) + { + return TestmodeAccountingIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060048DA RID: 18650 RVA: 0x001899F0 File Offset: 0x00188BF0 + public static string GetEnumName(this TestmodeAccountingID self) + { + if (self.IsValid()) + { + return TestmodeAccountingIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060048DB RID: 18651 RVA: 0x00189A0C File Offset: 0x00188C0C + public static string GetName(this TestmodeAccountingID self) + { + if (self.IsValid()) + { + return TestmodeAccountingIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060048DC RID: 18652 RVA: 0x00189A28 File Offset: 0x00188C28 + public static string GetNameEx(this TestmodeAccountingID self) + { + if (self.IsValid()) + { + return TestmodeAccountingIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x040058CB RID: 22731 + private static readonly TestmodeAccountingTableRecord[] records = new TestmodeAccountingTableRecord[] + { + new TestmodeAccountingTableRecord(0, "Title0", "Net充值记录", ""), + new TestmodeAccountingTableRecord(1, "Label00", "账号类型", ""), + new TestmodeAccountingTableRecord(2, "Label01", "账号状态", ""), + new TestmodeAccountingTableRecord(3, "Label02", "历史游戏记录", ""), + new TestmodeAccountingTableRecord(4, "Label03", "----/--", ""), + new TestmodeAccountingTableRecord(5, "Label04", "----/--", ""), + new TestmodeAccountingTableRecord(6, "Label05", "----/--", ""), + new TestmodeAccountingTableRecord(7, "Label06", "退款信息", ""), + new TestmodeAccountingTableRecord(8, "Label07", "退款信息1", ""), + new TestmodeAccountingTableRecord(9, "Label08", "退款信息2", ""), + new TestmodeAccountingTableRecord(10, "Label09", "", ""), + new TestmodeAccountingTableRecord(11, "Label10", "Net系统警告显示", ""), + new TestmodeAccountingTableRecord(12, "Label11", "离开", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeAccountingTableRecord.cs b/Assembly-CSharp/DB/TestmodeAccountingTableRecord.cs new file mode 100644 index 0000000..9480077 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeAccountingTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000863 RID: 2147 + public class TestmodeAccountingTableRecord + { + // Token: 0x060048D1 RID: 18641 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeAccountingTableRecord() + { + } + + // Token: 0x060048D2 RID: 18642 RVA: 0x0018995F File Offset: 0x00188B5F + public TestmodeAccountingTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x040058C7 RID: 22727 + public int EnumValue; + + // Token: 0x040058C8 RID: 22728 + public string EnumName; + + // Token: 0x040058C9 RID: 22729 + public string Name; + + // Token: 0x040058CA RID: 22730 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeAimeReadID.cs b/Assembly-CSharp/DB/TestmodeAimeReadID.cs new file mode 100644 index 0000000..dfde26d --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeAimeReadID.cs @@ -0,0 +1,57 @@ +using System; + +namespace DB +{ + // Token: 0x02000865 RID: 2149 + public enum TestmodeAimeReadID + { + // Token: 0x040058CD RID: 22733 + Title0, + // Token: 0x040058CE RID: 22734 + Label00, + // Token: 0x040058CF RID: 22735 + Label01, + // Token: 0x040058D0 RID: 22736 + Label02, + // Token: 0x040058D1 RID: 22737 + Label03, + // Token: 0x040058D2 RID: 22738 + Label04, + // Token: 0x040058D3 RID: 22739 + Label05, + // Token: 0x040058D4 RID: 22740 + Label06, + // Token: 0x040058D5 RID: 22741 + Label07, + // Token: 0x040058D6 RID: 22742 + Label08, + // Token: 0x040058D7 RID: 22743 + Label02_00, + // Token: 0x040058D8 RID: 22744 + Label02_01, + // Token: 0x040058D9 RID: 22745 + Label02_02, + // Token: 0x040058DA RID: 22746 + Label05_00, + // Token: 0x040058DB RID: 22747 + Label05_01, + // Token: 0x040058DC RID: 22748 + Label05_02, + // Token: 0x040058DD RID: 22749 + Label05_03, + // Token: 0x040058DE RID: 22750 + Label05_04, + // Token: 0x040058DF RID: 22751 + Label05_05, + // Token: 0x040058E0 RID: 22752 + Label06_00, + // Token: 0x040058E1 RID: 22753 + Label06_01, + // Token: 0x040058E2 RID: 22754 + Begin = 0, + // Token: 0x040058E3 RID: 22755 + End = 21, + // Token: 0x040058E4 RID: 22756 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeAimeReadIDEnum.cs b/Assembly-CSharp/DB/TestmodeAimeReadIDEnum.cs new file mode 100644 index 0000000..ff1bc5a --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeAimeReadIDEnum.cs @@ -0,0 +1,125 @@ +using System; + +namespace DB +{ + // Token: 0x02000867 RID: 2151 + public static class TestmodeAimeReadIDEnum + { + // Token: 0x060048E0 RID: 18656 RVA: 0x00183F23 File Offset: 0x00183123 + public static bool IsActive(this TestmodeAimeReadID self) + { + return self >= TestmodeAimeReadID.Title0 && self < TestmodeAimeReadID.End && self > TestmodeAimeReadID.Title0; + } + + // Token: 0x060048E1 RID: 18657 RVA: 0x00183F34 File Offset: 0x00183134 + public static bool IsValid(this TestmodeAimeReadID self) + { + return self >= TestmodeAimeReadID.Title0 && self < TestmodeAimeReadID.End; + } + + // Token: 0x060048E2 RID: 18658 RVA: 0x00189BC2 File Offset: 0x00188DC2 + public static void Clamp(this TestmodeAimeReadID self) + { + if (self < TestmodeAimeReadID.Title0) + { + self = TestmodeAimeReadID.Title0; + return; + } + if (self >= (TestmodeAimeReadID)TestmodeAimeReadIDEnum.GetEnd()) + { + self = (TestmodeAimeReadID)TestmodeAimeReadIDEnum.GetEnd(); + } + } + + // Token: 0x060048E3 RID: 18659 RVA: 0x00189BDB File Offset: 0x00188DDB + public static int GetEnd(this TestmodeAimeReadID self) + { + return TestmodeAimeReadIDEnum.GetEnd(); + } + + // Token: 0x060048E4 RID: 18660 RVA: 0x00189BE4 File Offset: 0x00188DE4 + public static TestmodeAimeReadID FindID(string enumName) + { + for (TestmodeAimeReadID testmodeAimeReadID = TestmodeAimeReadID.Title0; testmodeAimeReadID < TestmodeAimeReadID.End; testmodeAimeReadID++) + { + if (testmodeAimeReadID.GetEnumName() == enumName) + { + return testmodeAimeReadID; + } + } + return TestmodeAimeReadID.Invalid; + } + + // Token: 0x060048E5 RID: 18661 RVA: 0x00189C0F File Offset: 0x00188E0F + public static int GetEnd() + { + return TestmodeAimeReadIDEnum.records.Length; + } + + // Token: 0x060048E6 RID: 18662 RVA: 0x00189C18 File Offset: 0x00188E18 + public static int GetEnumValue(this TestmodeAimeReadID self) + { + if (self.IsValid()) + { + return TestmodeAimeReadIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060048E7 RID: 18663 RVA: 0x00189C30 File Offset: 0x00188E30 + public static string GetEnumName(this TestmodeAimeReadID self) + { + if (self.IsValid()) + { + return TestmodeAimeReadIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060048E8 RID: 18664 RVA: 0x00189C4C File Offset: 0x00188E4C + public static string GetName(this TestmodeAimeReadID self) + { + if (self.IsValid()) + { + return TestmodeAimeReadIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060048E9 RID: 18665 RVA: 0x00189C68 File Offset: 0x00188E68 + public static string GetNameEx(this TestmodeAimeReadID self) + { + if (self.IsValid()) + { + return TestmodeAimeReadIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x040058E9 RID: 22761 + private static readonly TestmodeAimeReadTableRecord[] records = new TestmodeAimeReadTableRecord[] + { + new TestmodeAimeReadTableRecord(0, "Title0", "Aimeカードリーダーテスト", ""), + new TestmodeAimeReadTableRecord(1, "Label00", "ハードウェアバージョン", ""), + new TestmodeAimeReadTableRecord(2, "Label01", "ファームウェアバージョン", ""), + new TestmodeAimeReadTableRecord(3, "Label02", "カードリーダー状態", ""), + new TestmodeAimeReadTableRecord(4, "Label03", "読み取り結果", ""), + new TestmodeAimeReadTableRecord(5, "Label04", "所要時間", ""), + new TestmodeAimeReadTableRecord(6, "Label05", "LED状態", ""), + new TestmodeAimeReadTableRecord(7, "Label06", "読み取り開始", ""), + new TestmodeAimeReadTableRecord(8, "Label07", "LEDチェック", ""), + new TestmodeAimeReadTableRecord(9, "Label08", "离开", ""), + new TestmodeAimeReadTableRecord(10, "Label02_00", "待機中", ""), + new TestmodeAimeReadTableRecord(11, "Label02_01", "読み取り中…", ""), + new TestmodeAimeReadTableRecord(12, "Label02_02", "読み取り終了", ""), + new TestmodeAimeReadTableRecord(13, "Label05_00", "OFF", ""), + new TestmodeAimeReadTableRecord(14, "Label05_01", "ON(RED)", ""), + new TestmodeAimeReadTableRecord(15, "Label05_02", "ON(GREEN)", ""), + new TestmodeAimeReadTableRecord(16, "Label05_03", "ON(BLUE)", ""), + new TestmodeAimeReadTableRecord(17, "Label05_04", "ON(WHITE)", ""), + new TestmodeAimeReadTableRecord(18, "Label05_05", "----", ""), + new TestmodeAimeReadTableRecord(19, "Label06_00", "読み取り開始", ""), + new TestmodeAimeReadTableRecord(20, "Label06_01", "読み取り停止", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeAimeReadTableRecord.cs b/Assembly-CSharp/DB/TestmodeAimeReadTableRecord.cs new file mode 100644 index 0000000..7a5b81c --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeAimeReadTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000866 RID: 2150 + public class TestmodeAimeReadTableRecord + { + // Token: 0x060048DE RID: 18654 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeAimeReadTableRecord() + { + } + + // Token: 0x060048DF RID: 18655 RVA: 0x00189B9D File Offset: 0x00188D9D + public TestmodeAimeReadTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x040058E5 RID: 22757 + public int EnumValue; + + // Token: 0x040058E6 RID: 22758 + public string EnumName; + + // Token: 0x040058E7 RID: 22759 + public string Name; + + // Token: 0x040058E8 RID: 22760 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeBackupclearConfirmID.cs b/Assembly-CSharp/DB/TestmodeBackupclearConfirmID.cs new file mode 100644 index 0000000..c6fa73a --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBackupclearConfirmID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x02000868 RID: 2152 + public enum TestmodeBackupclearConfirmID + { + // Token: 0x040058EB RID: 22763 + Title0, + // Token: 0x040058EC RID: 22764 + Title1, + // Token: 0x040058ED RID: 22765 + Title2, + // Token: 0x040058EE RID: 22766 + Label00, + // Token: 0x040058EF RID: 22767 + Label01, + // Token: 0x040058F0 RID: 22768 + Begin = 0, + // Token: 0x040058F1 RID: 22769 + End = 5, + // Token: 0x040058F2 RID: 22770 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeBackupclearConfirmIDEnum.cs b/Assembly-CSharp/DB/TestmodeBackupclearConfirmIDEnum.cs new file mode 100644 index 0000000..d9e9a83 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBackupclearConfirmIDEnum.cs @@ -0,0 +1,109 @@ +using System; + +namespace DB +{ + // Token: 0x0200086A RID: 2154 + public static class TestmodeBackupclearConfirmIDEnum + { + // Token: 0x060048ED RID: 18669 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this TestmodeBackupclearConfirmID self) + { + return self >= TestmodeBackupclearConfirmID.Title0 && self < TestmodeBackupclearConfirmID.End && self > TestmodeBackupclearConfirmID.Title0; + } + + // Token: 0x060048EE RID: 18670 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this TestmodeBackupclearConfirmID self) + { + return self >= TestmodeBackupclearConfirmID.Title0 && self < TestmodeBackupclearConfirmID.End; + } + + // Token: 0x060048EF RID: 18671 RVA: 0x00189ED2 File Offset: 0x001890D2 + public static void Clamp(this TestmodeBackupclearConfirmID self) + { + if (self < TestmodeBackupclearConfirmID.Title0) + { + self = TestmodeBackupclearConfirmID.Title0; + return; + } + if (self >= (TestmodeBackupclearConfirmID)TestmodeBackupclearConfirmIDEnum.GetEnd()) + { + self = (TestmodeBackupclearConfirmID)TestmodeBackupclearConfirmIDEnum.GetEnd(); + } + } + + // Token: 0x060048F0 RID: 18672 RVA: 0x00189EEB File Offset: 0x001890EB + public static int GetEnd(this TestmodeBackupclearConfirmID self) + { + return TestmodeBackupclearConfirmIDEnum.GetEnd(); + } + + // Token: 0x060048F1 RID: 18673 RVA: 0x00189EF4 File Offset: 0x001890F4 + public static TestmodeBackupclearConfirmID FindID(string enumName) + { + for (TestmodeBackupclearConfirmID testmodeBackupclearConfirmID = TestmodeBackupclearConfirmID.Title0; testmodeBackupclearConfirmID < TestmodeBackupclearConfirmID.End; testmodeBackupclearConfirmID++) + { + if (testmodeBackupclearConfirmID.GetEnumName() == enumName) + { + return testmodeBackupclearConfirmID; + } + } + return TestmodeBackupclearConfirmID.Invalid; + } + + // Token: 0x060048F2 RID: 18674 RVA: 0x00189F1E File Offset: 0x0018911E + public static int GetEnd() + { + return TestmodeBackupclearConfirmIDEnum.records.Length; + } + + // Token: 0x060048F3 RID: 18675 RVA: 0x00189F27 File Offset: 0x00189127 + public static int GetEnumValue(this TestmodeBackupclearConfirmID self) + { + if (self.IsValid()) + { + return TestmodeBackupclearConfirmIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060048F4 RID: 18676 RVA: 0x00189F3F File Offset: 0x0018913F + public static string GetEnumName(this TestmodeBackupclearConfirmID self) + { + if (self.IsValid()) + { + return TestmodeBackupclearConfirmIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060048F5 RID: 18677 RVA: 0x00189F5B File Offset: 0x0018915B + public static string GetName(this TestmodeBackupclearConfirmID self) + { + if (self.IsValid()) + { + return TestmodeBackupclearConfirmIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060048F6 RID: 18678 RVA: 0x00189F77 File Offset: 0x00189177 + public static string GetNameEx(this TestmodeBackupclearConfirmID self) + { + if (self.IsValid()) + { + return TestmodeBackupclearConfirmIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x040058F7 RID: 22775 + private static readonly TestmodeBackupclearConfirmTableRecord[] records = new TestmodeBackupclearConfirmTableRecord[] + { + new TestmodeBackupclearConfirmTableRecord(0, "Title0", "确定要清空备份数据吗?", ""), + new TestmodeBackupclearConfirmTableRecord(1, "Title1", "", ""), + new TestmodeBackupclearConfirmTableRecord(2, "Title2", "【最终确认】", ""), + new TestmodeBackupclearConfirmTableRecord(3, "Label00", "是(清空)", ""), + new TestmodeBackupclearConfirmTableRecord(4, "Label01", "否(取消)", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeBackupclearConfirmTableRecord.cs b/Assembly-CSharp/DB/TestmodeBackupclearConfirmTableRecord.cs new file mode 100644 index 0000000..216f666 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBackupclearConfirmTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000869 RID: 2153 + public class TestmodeBackupclearConfirmTableRecord + { + // Token: 0x060048EB RID: 18667 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeBackupclearConfirmTableRecord() + { + } + + // Token: 0x060048EC RID: 18668 RVA: 0x00189EAD File Offset: 0x001890AD + public TestmodeBackupclearConfirmTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x040058F3 RID: 22771 + public int EnumValue; + + // Token: 0x040058F4 RID: 22772 + public string EnumName; + + // Token: 0x040058F5 RID: 22773 + public string Name; + + // Token: 0x040058F6 RID: 22774 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeBackupclearDoneID.cs b/Assembly-CSharp/DB/TestmodeBackupclearDoneID.cs new file mode 100644 index 0000000..fca4698 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBackupclearDoneID.cs @@ -0,0 +1,17 @@ +using System; + +namespace DB +{ + // Token: 0x0200086B RID: 2155 + public enum TestmodeBackupclearDoneID + { + // Token: 0x040058F9 RID: 22777 + Title0, + // Token: 0x040058FA RID: 22778 + Begin = 0, + // Token: 0x040058FB RID: 22779 + End, + // Token: 0x040058FC RID: 22780 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeBackupclearDoneIDEnum.cs b/Assembly-CSharp/DB/TestmodeBackupclearDoneIDEnum.cs new file mode 100644 index 0000000..d0fc2ab --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBackupclearDoneIDEnum.cs @@ -0,0 +1,105 @@ +using System; + +namespace DB +{ + // Token: 0x0200086D RID: 2157 + public static class TestmodeBackupclearDoneIDEnum + { + // Token: 0x060048FA RID: 18682 RVA: 0x00173C7D File Offset: 0x00172E7D + public static bool IsActive(this TestmodeBackupclearDoneID self) + { + return self >= TestmodeBackupclearDoneID.Title0 && self < TestmodeBackupclearDoneID.End && self > TestmodeBackupclearDoneID.Title0; + } + + // Token: 0x060048FB RID: 18683 RVA: 0x00173C8D File Offset: 0x00172E8D + public static bool IsValid(this TestmodeBackupclearDoneID self) + { + return self >= TestmodeBackupclearDoneID.Title0 && self < TestmodeBackupclearDoneID.End; + } + + // Token: 0x060048FC RID: 18684 RVA: 0x0018A049 File Offset: 0x00189249 + public static void Clamp(this TestmodeBackupclearDoneID self) + { + if (self < TestmodeBackupclearDoneID.Title0) + { + self = TestmodeBackupclearDoneID.Title0; + return; + } + if (self >= (TestmodeBackupclearDoneID)TestmodeBackupclearDoneIDEnum.GetEnd()) + { + self = (TestmodeBackupclearDoneID)TestmodeBackupclearDoneIDEnum.GetEnd(); + } + } + + // Token: 0x060048FD RID: 18685 RVA: 0x0018A062 File Offset: 0x00189262 + public static int GetEnd(this TestmodeBackupclearDoneID self) + { + return TestmodeBackupclearDoneIDEnum.GetEnd(); + } + + // Token: 0x060048FE RID: 18686 RVA: 0x0018A06C File Offset: 0x0018926C + public static TestmodeBackupclearDoneID FindID(string enumName) + { + for (TestmodeBackupclearDoneID testmodeBackupclearDoneID = TestmodeBackupclearDoneID.Title0; testmodeBackupclearDoneID < TestmodeBackupclearDoneID.End; testmodeBackupclearDoneID++) + { + if (testmodeBackupclearDoneID.GetEnumName() == enumName) + { + return testmodeBackupclearDoneID; + } + } + return TestmodeBackupclearDoneID.Invalid; + } + + // Token: 0x060048FF RID: 18687 RVA: 0x0018A096 File Offset: 0x00189296 + public static int GetEnd() + { + return TestmodeBackupclearDoneIDEnum.records.Length; + } + + // Token: 0x06004900 RID: 18688 RVA: 0x0018A09F File Offset: 0x0018929F + public static int GetEnumValue(this TestmodeBackupclearDoneID self) + { + if (self.IsValid()) + { + return TestmodeBackupclearDoneIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004901 RID: 18689 RVA: 0x0018A0B7 File Offset: 0x001892B7 + public static string GetEnumName(this TestmodeBackupclearDoneID self) + { + if (self.IsValid()) + { + return TestmodeBackupclearDoneIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004902 RID: 18690 RVA: 0x0018A0D3 File Offset: 0x001892D3 + public static string GetName(this TestmodeBackupclearDoneID self) + { + if (self.IsValid()) + { + return TestmodeBackupclearDoneIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004903 RID: 18691 RVA: 0x0018A0EF File Offset: 0x001892EF + public static string GetNameEx(this TestmodeBackupclearDoneID self) + { + if (self.IsValid()) + { + return TestmodeBackupclearDoneIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005901 RID: 22785 + private static readonly TestmodeBackupclearDoneTableRecord[] records = new TestmodeBackupclearDoneTableRecord[] + { + new TestmodeBackupclearDoneTableRecord(0, "Title0", "备份数据已清空", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeBackupclearDoneTableRecord.cs b/Assembly-CSharp/DB/TestmodeBackupclearDoneTableRecord.cs new file mode 100644 index 0000000..cc9f1e3 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBackupclearDoneTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x0200086C RID: 2156 + public class TestmodeBackupclearDoneTableRecord + { + // Token: 0x060048F8 RID: 18680 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeBackupclearDoneTableRecord() + { + } + + // Token: 0x060048F9 RID: 18681 RVA: 0x0018A024 File Offset: 0x00189224 + public TestmodeBackupclearDoneTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x040058FD RID: 22781 + public int EnumValue; + + // Token: 0x040058FE RID: 22782 + public string EnumName; + + // Token: 0x040058FF RID: 22783 + public string Name; + + // Token: 0x04005900 RID: 22784 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeBackupclearID.cs b/Assembly-CSharp/DB/TestmodeBackupclearID.cs new file mode 100644 index 0000000..8cafc34 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBackupclearID.cs @@ -0,0 +1,27 @@ +using System; + +namespace DB +{ + // Token: 0x0200086E RID: 2158 + public enum TestmodeBackupclearID + { + // Token: 0x04005903 RID: 22787 + Title0, + // Token: 0x04005904 RID: 22788 + Title1, + // Token: 0x04005905 RID: 22789 + Title2, + // Token: 0x04005906 RID: 22790 + Title3, + // Token: 0x04005907 RID: 22791 + Label00, + // Token: 0x04005908 RID: 22792 + Label01, + // Token: 0x04005909 RID: 22793 + Begin = 0, + // Token: 0x0400590A RID: 22794 + End = 6, + // Token: 0x0400590B RID: 22795 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeBackupclearIDEnum.cs b/Assembly-CSharp/DB/TestmodeBackupclearIDEnum.cs new file mode 100644 index 0000000..3762102 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBackupclearIDEnum.cs @@ -0,0 +1,110 @@ +using System; + +namespace DB +{ + // Token: 0x02000870 RID: 2160 + public static class TestmodeBackupclearIDEnum + { + // Token: 0x06004907 RID: 18695 RVA: 0x00178314 File Offset: 0x00177514 + public static bool IsActive(this TestmodeBackupclearID self) + { + return self >= TestmodeBackupclearID.Title0 && self < TestmodeBackupclearID.End && self > TestmodeBackupclearID.Title0; + } + + // Token: 0x06004908 RID: 18696 RVA: 0x00130760 File Offset: 0x0012F960 + public static bool IsValid(this TestmodeBackupclearID self) + { + return self >= TestmodeBackupclearID.Title0 && self < TestmodeBackupclearID.End; + } + + // Token: 0x06004909 RID: 18697 RVA: 0x0018A155 File Offset: 0x00189355 + public static void Clamp(this TestmodeBackupclearID self) + { + if (self < TestmodeBackupclearID.Title0) + { + self = TestmodeBackupclearID.Title0; + return; + } + if (self >= (TestmodeBackupclearID)TestmodeBackupclearIDEnum.GetEnd()) + { + self = (TestmodeBackupclearID)TestmodeBackupclearIDEnum.GetEnd(); + } + } + + // Token: 0x0600490A RID: 18698 RVA: 0x0018A16E File Offset: 0x0018936E + public static int GetEnd(this TestmodeBackupclearID self) + { + return TestmodeBackupclearIDEnum.GetEnd(); + } + + // Token: 0x0600490B RID: 18699 RVA: 0x0018A178 File Offset: 0x00189378 + public static TestmodeBackupclearID FindID(string enumName) + { + for (TestmodeBackupclearID testmodeBackupclearID = TestmodeBackupclearID.Title0; testmodeBackupclearID < TestmodeBackupclearID.End; testmodeBackupclearID++) + { + if (testmodeBackupclearID.GetEnumName() == enumName) + { + return testmodeBackupclearID; + } + } + return TestmodeBackupclearID.Invalid; + } + + // Token: 0x0600490C RID: 18700 RVA: 0x0018A1A2 File Offset: 0x001893A2 + public static int GetEnd() + { + return TestmodeBackupclearIDEnum.records.Length; + } + + // Token: 0x0600490D RID: 18701 RVA: 0x0018A1AB File Offset: 0x001893AB + public static int GetEnumValue(this TestmodeBackupclearID self) + { + if (self.IsValid()) + { + return TestmodeBackupclearIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600490E RID: 18702 RVA: 0x0018A1C3 File Offset: 0x001893C3 + public static string GetEnumName(this TestmodeBackupclearID self) + { + if (self.IsValid()) + { + return TestmodeBackupclearIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600490F RID: 18703 RVA: 0x0018A1DF File Offset: 0x001893DF + public static string GetName(this TestmodeBackupclearID self) + { + if (self.IsValid()) + { + return TestmodeBackupclearIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004910 RID: 18704 RVA: 0x0018A1FB File Offset: 0x001893FB + public static string GetNameEx(this TestmodeBackupclearID self) + { + if (self.IsValid()) + { + return TestmodeBackupclearIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005910 RID: 22800 + private static readonly TestmodeBackupclearTableRecord[] records = new TestmodeBackupclearTableRecord[] + { + new TestmodeBackupclearTableRecord(0, "Title0", "要清空备份数据吗?", ""), + new TestmodeBackupclearTableRecord(1, "Title1", "", ""), + new TestmodeBackupclearTableRecord(2, "Title2", "选择“清空”的话", ""), + new TestmodeBackupclearTableRecord(3, "Title3", "会删除簿记和可用点数数据", ""), + new TestmodeBackupclearTableRecord(4, "Label00", "是(清空)", ""), + new TestmodeBackupclearTableRecord(5, "Label01", "否(取消)", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeBackupclearTableRecord.cs b/Assembly-CSharp/DB/TestmodeBackupclearTableRecord.cs new file mode 100644 index 0000000..6fffef3 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBackupclearTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x0200086F RID: 2159 + public class TestmodeBackupclearTableRecord + { + // Token: 0x06004905 RID: 18693 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeBackupclearTableRecord() + { + } + + // Token: 0x06004906 RID: 18694 RVA: 0x0018A130 File Offset: 0x00189330 + public TestmodeBackupclearTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x0400590C RID: 22796 + public int EnumValue; + + // Token: 0x0400590D RID: 22797 + public string EnumName; + + // Token: 0x0400590E RID: 22798 + public string Name; + + // Token: 0x0400590F RID: 22799 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeBookkeep1ID.cs b/Assembly-CSharp/DB/TestmodeBookkeep1ID.cs new file mode 100644 index 0000000..70d72a2 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBookkeep1ID.cs @@ -0,0 +1,29 @@ +using System; + +namespace DB +{ + // Token: 0x02000871 RID: 2161 + public enum TestmodeBookkeep1ID + { + // Token: 0x04005912 RID: 22802 + Title0, + // Token: 0x04005913 RID: 22803 + Label00, + // Token: 0x04005914 RID: 22804 + Label01, + // Token: 0x04005915 RID: 22805 + Label02, + // Token: 0x04005916 RID: 22806 + Label03, + // Token: 0x04005917 RID: 22807 + Label04, + // Token: 0x04005918 RID: 22808 + Label05, + // Token: 0x04005919 RID: 22809 + Begin = 0, + // Token: 0x0400591A RID: 22810 + End = 7, + // Token: 0x0400591B RID: 22811 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeBookkeep1IDEnum.cs b/Assembly-CSharp/DB/TestmodeBookkeep1IDEnum.cs new file mode 100644 index 0000000..3804c75 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBookkeep1IDEnum.cs @@ -0,0 +1,111 @@ +using System; + +namespace DB +{ + // Token: 0x02000873 RID: 2163 + public static class TestmodeBookkeep1IDEnum + { + // Token: 0x06004914 RID: 18708 RVA: 0x0017E20B File Offset: 0x0017D40B + public static bool IsActive(this TestmodeBookkeep1ID self) + { + return self >= TestmodeBookkeep1ID.Title0 && self < TestmodeBookkeep1ID.End && self > TestmodeBookkeep1ID.Title0; + } + + // Token: 0x06004915 RID: 18709 RVA: 0x0017E21B File Offset: 0x0017D41B + public static bool IsValid(this TestmodeBookkeep1ID self) + { + return self >= TestmodeBookkeep1ID.Title0 && self < TestmodeBookkeep1ID.End; + } + + // Token: 0x06004916 RID: 18710 RVA: 0x0018A2E5 File Offset: 0x001894E5 + public static void Clamp(this TestmodeBookkeep1ID self) + { + if (self < TestmodeBookkeep1ID.Title0) + { + self = TestmodeBookkeep1ID.Title0; + return; + } + if (self >= (TestmodeBookkeep1ID)TestmodeBookkeep1IDEnum.GetEnd()) + { + self = (TestmodeBookkeep1ID)TestmodeBookkeep1IDEnum.GetEnd(); + } + } + + // Token: 0x06004917 RID: 18711 RVA: 0x0018A2FE File Offset: 0x001894FE + public static int GetEnd(this TestmodeBookkeep1ID self) + { + return TestmodeBookkeep1IDEnum.GetEnd(); + } + + // Token: 0x06004918 RID: 18712 RVA: 0x0018A308 File Offset: 0x00189508 + public static TestmodeBookkeep1ID FindID(string enumName) + { + for (TestmodeBookkeep1ID testmodeBookkeep1ID = TestmodeBookkeep1ID.Title0; testmodeBookkeep1ID < TestmodeBookkeep1ID.End; testmodeBookkeep1ID++) + { + if (testmodeBookkeep1ID.GetEnumName() == enumName) + { + return testmodeBookkeep1ID; + } + } + return TestmodeBookkeep1ID.Invalid; + } + + // Token: 0x06004919 RID: 18713 RVA: 0x0018A332 File Offset: 0x00189532 + public static int GetEnd() + { + return TestmodeBookkeep1IDEnum.records.Length; + } + + // Token: 0x0600491A RID: 18714 RVA: 0x0018A33B File Offset: 0x0018953B + public static int GetEnumValue(this TestmodeBookkeep1ID self) + { + if (self.IsValid()) + { + return TestmodeBookkeep1IDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600491B RID: 18715 RVA: 0x0018A353 File Offset: 0x00189553 + public static string GetEnumName(this TestmodeBookkeep1ID self) + { + if (self.IsValid()) + { + return TestmodeBookkeep1IDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600491C RID: 18716 RVA: 0x0018A36F File Offset: 0x0018956F + public static string GetName(this TestmodeBookkeep1ID self) + { + if (self.IsValid()) + { + return TestmodeBookkeep1IDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600491D RID: 18717 RVA: 0x0018A38B File Offset: 0x0018958B + public static string GetNameEx(this TestmodeBookkeep1ID self) + { + if (self.IsValid()) + { + return TestmodeBookkeep1IDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005920 RID: 22816 + private static readonly TestmodeBookkeep1TableRecord[] records = new TestmodeBookkeep1TableRecord[] + { + new TestmodeBookkeep1TableRecord(0, "Title0", "簿记(1/3)", ""), + new TestmodeBookkeep1TableRecord(1, "Label00", "投币1", ""), + new TestmodeBookkeep1TableRecord(2, "Label01", "投币2", ""), + new TestmodeBookkeep1TableRecord(3, "Label02", "总投币数", ""), + new TestmodeBookkeep1TableRecord(4, "Label03", "投币可用点数", ""), + new TestmodeBookkeep1TableRecord(5, "Label04", "服务可用点数", ""), + new TestmodeBookkeep1TableRecord(6, "Label05", "总可用点数", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeBookkeep1TableRecord.cs b/Assembly-CSharp/DB/TestmodeBookkeep1TableRecord.cs new file mode 100644 index 0000000..d43a1b2 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBookkeep1TableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000872 RID: 2162 + public class TestmodeBookkeep1TableRecord + { + // Token: 0x06004912 RID: 18706 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeBookkeep1TableRecord() + { + } + + // Token: 0x06004913 RID: 18707 RVA: 0x0018A2C0 File Offset: 0x001894C0 + public TestmodeBookkeep1TableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x0400591C RID: 22812 + public int EnumValue; + + // Token: 0x0400591D RID: 22813 + public string EnumName; + + // Token: 0x0400591E RID: 22814 + public string Name; + + // Token: 0x0400591F RID: 22815 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeBookkeep2ID.cs b/Assembly-CSharp/DB/TestmodeBookkeep2ID.cs new file mode 100644 index 0000000..eef7ced --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBookkeep2ID.cs @@ -0,0 +1,35 @@ +using System; + +namespace DB +{ + // Token: 0x02000874 RID: 2164 + public enum TestmodeBookkeep2ID + { + // Token: 0x04005922 RID: 22818 + Title0, + // Token: 0x04005923 RID: 22819 + Label00, + // Token: 0x04005924 RID: 22820 + Label01, + // Token: 0x04005925 RID: 22821 + Label02, + // Token: 0x04005926 RID: 22822 + Label03, + // Token: 0x04005927 RID: 22823 + Label04, + // Token: 0x04005928 RID: 22824 + Label05, + // Token: 0x04005929 RID: 22825 + Label06, + // Token: 0x0400592A RID: 22826 + Label07, + // Token: 0x0400592B RID: 22827 + Label08, + // Token: 0x0400592C RID: 22828 + Begin = 0, + // Token: 0x0400592D RID: 22829 + End = 10, + // Token: 0x0400592E RID: 22830 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeBookkeep2IDEnum.cs b/Assembly-CSharp/DB/TestmodeBookkeep2IDEnum.cs new file mode 100644 index 0000000..ab438af --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBookkeep2IDEnum.cs @@ -0,0 +1,114 @@ +using System; + +namespace DB +{ + // Token: 0x02000876 RID: 2166 + public static class TestmodeBookkeep2IDEnum + { + // Token: 0x06004921 RID: 18721 RVA: 0x001784B0 File Offset: 0x001776B0 + public static bool IsActive(this TestmodeBookkeep2ID self) + { + return self >= TestmodeBookkeep2ID.Title0 && self < TestmodeBookkeep2ID.End && self > TestmodeBookkeep2ID.Title0; + } + + // Token: 0x06004922 RID: 18722 RVA: 0x001784C1 File Offset: 0x001776C1 + public static bool IsValid(this TestmodeBookkeep2ID self) + { + return self >= TestmodeBookkeep2ID.Title0 && self < TestmodeBookkeep2ID.End; + } + + // Token: 0x06004923 RID: 18723 RVA: 0x0018A48D File Offset: 0x0018968D + public static void Clamp(this TestmodeBookkeep2ID self) + { + if (self < TestmodeBookkeep2ID.Title0) + { + self = TestmodeBookkeep2ID.Title0; + return; + } + if (self >= (TestmodeBookkeep2ID)TestmodeBookkeep2IDEnum.GetEnd()) + { + self = (TestmodeBookkeep2ID)TestmodeBookkeep2IDEnum.GetEnd(); + } + } + + // Token: 0x06004924 RID: 18724 RVA: 0x0018A4A6 File Offset: 0x001896A6 + public static int GetEnd(this TestmodeBookkeep2ID self) + { + return TestmodeBookkeep2IDEnum.GetEnd(); + } + + // Token: 0x06004925 RID: 18725 RVA: 0x0018A4B0 File Offset: 0x001896B0 + public static TestmodeBookkeep2ID FindID(string enumName) + { + for (TestmodeBookkeep2ID testmodeBookkeep2ID = TestmodeBookkeep2ID.Title0; testmodeBookkeep2ID < TestmodeBookkeep2ID.End; testmodeBookkeep2ID++) + { + if (testmodeBookkeep2ID.GetEnumName() == enumName) + { + return testmodeBookkeep2ID; + } + } + return TestmodeBookkeep2ID.Invalid; + } + + // Token: 0x06004926 RID: 18726 RVA: 0x0018A4DB File Offset: 0x001896DB + public static int GetEnd() + { + return TestmodeBookkeep2IDEnum.records.Length; + } + + // Token: 0x06004927 RID: 18727 RVA: 0x0018A4E4 File Offset: 0x001896E4 + public static int GetEnumValue(this TestmodeBookkeep2ID self) + { + if (self.IsValid()) + { + return TestmodeBookkeep2IDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004928 RID: 18728 RVA: 0x0018A4FC File Offset: 0x001896FC + public static string GetEnumName(this TestmodeBookkeep2ID self) + { + if (self.IsValid()) + { + return TestmodeBookkeep2IDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004929 RID: 18729 RVA: 0x0018A518 File Offset: 0x00189718 + public static string GetName(this TestmodeBookkeep2ID self) + { + if (self.IsValid()) + { + return TestmodeBookkeep2IDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600492A RID: 18730 RVA: 0x0018A534 File Offset: 0x00189734 + public static string GetNameEx(this TestmodeBookkeep2ID self) + { + if (self.IsValid()) + { + return TestmodeBookkeep2IDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005933 RID: 22835 + private static readonly TestmodeBookkeep2TableRecord[] records = new TestmodeBookkeep2TableRecord[] + { + new TestmodeBookkeep2TableRecord(0, "Title0", "簿记(2/3)", ""), + new TestmodeBookkeep2TableRecord(1, "Label00", "开始游戏需要点数(单人游戏)", ""), + new TestmodeBookkeep2TableRecord(2, "Label01", "开始游戏需要点数(双人游戏)", ""), + new TestmodeBookkeep2TableRecord(3, "Label02", "开始游戏需要点数(功能票)", ""), + new TestmodeBookkeep2TableRecord(4, "Label03", "总游戏次数", ""), + new TestmodeBookkeep2TableRecord(5, "Label04", "\u3000会员游玩次数", ""), + new TestmodeBookkeep2TableRecord(6, "Label05", "\u3000游客游玩次数", ""), + new TestmodeBookkeep2TableRecord(7, "Label06", "单人游戏次数", ""), + new TestmodeBookkeep2TableRecord(8, "Label07", "双人游戏次数", ""), + new TestmodeBookkeep2TableRecord(9, "Label08", "初次免费游戏次数", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeBookkeep2TableRecord.cs b/Assembly-CSharp/DB/TestmodeBookkeep2TableRecord.cs new file mode 100644 index 0000000..d4a38a3 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBookkeep2TableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000875 RID: 2165 + public class TestmodeBookkeep2TableRecord + { + // Token: 0x0600491F RID: 18719 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeBookkeep2TableRecord() + { + } + + // Token: 0x06004920 RID: 18720 RVA: 0x0018A468 File Offset: 0x00189668 + public TestmodeBookkeep2TableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x0400592F RID: 22831 + public int EnumValue; + + // Token: 0x04005930 RID: 22832 + public string EnumName; + + // Token: 0x04005931 RID: 22833 + public string Name; + + // Token: 0x04005932 RID: 22834 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeBookkeep3ID.cs b/Assembly-CSharp/DB/TestmodeBookkeep3ID.cs new file mode 100644 index 0000000..ecb24e1 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBookkeep3ID.cs @@ -0,0 +1,27 @@ +using System; + +namespace DB +{ + // Token: 0x02000877 RID: 2167 + public enum TestmodeBookkeep3ID + { + // Token: 0x04005935 RID: 22837 + Title0, + // Token: 0x04005936 RID: 22838 + Label00, + // Token: 0x04005937 RID: 22839 + Label01, + // Token: 0x04005938 RID: 22840 + Label02, + // Token: 0x04005939 RID: 22841 + TimeStr, + // Token: 0x0400593A RID: 22842 + DateTimeStr, + // Token: 0x0400593B RID: 22843 + Begin = 0, + // Token: 0x0400593C RID: 22844 + End = 6, + // Token: 0x0400593D RID: 22845 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeBookkeep3IDEnum.cs b/Assembly-CSharp/DB/TestmodeBookkeep3IDEnum.cs new file mode 100644 index 0000000..79f4a71 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBookkeep3IDEnum.cs @@ -0,0 +1,110 @@ +using System; + +namespace DB +{ + // Token: 0x02000879 RID: 2169 + public static class TestmodeBookkeep3IDEnum + { + // Token: 0x0600492E RID: 18734 RVA: 0x00178314 File Offset: 0x00177514 + public static bool IsActive(this TestmodeBookkeep3ID self) + { + return self >= TestmodeBookkeep3ID.Title0 && self < TestmodeBookkeep3ID.End && self > TestmodeBookkeep3ID.Title0; + } + + // Token: 0x0600492F RID: 18735 RVA: 0x00130760 File Offset: 0x0012F960 + public static bool IsValid(this TestmodeBookkeep3ID self) + { + return self >= TestmodeBookkeep3ID.Title0 && self < TestmodeBookkeep3ID.End; + } + + // Token: 0x06004930 RID: 18736 RVA: 0x0018A680 File Offset: 0x00189880 + public static void Clamp(this TestmodeBookkeep3ID self) + { + if (self < TestmodeBookkeep3ID.Title0) + { + self = TestmodeBookkeep3ID.Title0; + return; + } + if (self >= (TestmodeBookkeep3ID)TestmodeBookkeep3IDEnum.GetEnd()) + { + self = (TestmodeBookkeep3ID)TestmodeBookkeep3IDEnum.GetEnd(); + } + } + + // Token: 0x06004931 RID: 18737 RVA: 0x0018A699 File Offset: 0x00189899 + public static int GetEnd(this TestmodeBookkeep3ID self) + { + return TestmodeBookkeep3IDEnum.GetEnd(); + } + + // Token: 0x06004932 RID: 18738 RVA: 0x0018A6A0 File Offset: 0x001898A0 + public static TestmodeBookkeep3ID FindID(string enumName) + { + for (TestmodeBookkeep3ID testmodeBookkeep3ID = TestmodeBookkeep3ID.Title0; testmodeBookkeep3ID < TestmodeBookkeep3ID.End; testmodeBookkeep3ID++) + { + if (testmodeBookkeep3ID.GetEnumName() == enumName) + { + return testmodeBookkeep3ID; + } + } + return TestmodeBookkeep3ID.Invalid; + } + + // Token: 0x06004933 RID: 18739 RVA: 0x0018A6CA File Offset: 0x001898CA + public static int GetEnd() + { + return TestmodeBookkeep3IDEnum.records.Length; + } + + // Token: 0x06004934 RID: 18740 RVA: 0x0018A6D3 File Offset: 0x001898D3 + public static int GetEnumValue(this TestmodeBookkeep3ID self) + { + if (self.IsValid()) + { + return TestmodeBookkeep3IDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004935 RID: 18741 RVA: 0x0018A6EB File Offset: 0x001898EB + public static string GetEnumName(this TestmodeBookkeep3ID self) + { + if (self.IsValid()) + { + return TestmodeBookkeep3IDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004936 RID: 18742 RVA: 0x0018A707 File Offset: 0x00189907 + public static string GetName(this TestmodeBookkeep3ID self) + { + if (self.IsValid()) + { + return TestmodeBookkeep3IDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004937 RID: 18743 RVA: 0x0018A723 File Offset: 0x00189923 + public static string GetNameEx(this TestmodeBookkeep3ID self) + { + if (self.IsValid()) + { + return TestmodeBookkeep3IDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005942 RID: 22850 + private static readonly TestmodeBookkeep3TableRecord[] records = new TestmodeBookkeep3TableRecord[] + { + new TestmodeBookkeep3TableRecord(0, "Title0", "簿记(3/3)", ""), + new TestmodeBookkeep3TableRecord(1, "Label00", "总时间", ""), + new TestmodeBookkeep3TableRecord(2, "Label01", "总游戏时间", ""), + new TestmodeBookkeep3TableRecord(3, "Label02", "平均游戏时间", ""), + new TestmodeBookkeep3TableRecord(4, "TimeStr", "{0,2}小时{1,2}分{2,2}秒", ""), + new TestmodeBookkeep3TableRecord(5, "DateTimeStr", "{0}天{1,2}小时{2,2}分{3,2}秒", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeBookkeep3TableRecord.cs b/Assembly-CSharp/DB/TestmodeBookkeep3TableRecord.cs new file mode 100644 index 0000000..f0b45ca --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeBookkeep3TableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000878 RID: 2168 + public class TestmodeBookkeep3TableRecord + { + // Token: 0x0600492C RID: 18732 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeBookkeep3TableRecord() + { + } + + // Token: 0x0600492D RID: 18733 RVA: 0x0018A65B File Offset: 0x0018985B + public TestmodeBookkeep3TableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x0400593E RID: 22846 + public int EnumValue; + + // Token: 0x0400593F RID: 22847 + public string EnumName; + + // Token: 0x04005940 RID: 22848 + public string Name; + + // Token: 0x04005941 RID: 22849 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeCameraID.cs b/Assembly-CSharp/DB/TestmodeCameraID.cs new file mode 100644 index 0000000..ba82559 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeCameraID.cs @@ -0,0 +1,35 @@ +using System; + +namespace DB +{ + // Token: 0x0200087A RID: 2170 + public enum TestmodeCameraID + { + // Token: 0x04005944 RID: 22852 + Title0, + // Token: 0x04005945 RID: 22853 + SubTitle, + // Token: 0x04005946 RID: 22854 + ListLabel00, + // Token: 0x04005947 RID: 22855 + ListLabel01, + // Token: 0x04005948 RID: 22856 + ListLabel02, + // Token: 0x04005949 RID: 22857 + ListLabel03, + // Token: 0x0400594A RID: 22858 + CameraInit, + // Token: 0x0400594B RID: 22859 + LeftCamera, + // Token: 0x0400594C RID: 22860 + RightCamera, + // Token: 0x0400594D RID: 22861 + PhotoCamera, + // Token: 0x0400594E RID: 22862 + Begin = 0, + // Token: 0x0400594F RID: 22863 + End = 10, + // Token: 0x04005950 RID: 22864 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeCameraIDEnum.cs b/Assembly-CSharp/DB/TestmodeCameraIDEnum.cs new file mode 100644 index 0000000..07dcf71 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeCameraIDEnum.cs @@ -0,0 +1,114 @@ +using System; + +namespace DB +{ + // Token: 0x0200087C RID: 2172 + public static class TestmodeCameraIDEnum + { + // Token: 0x0600493B RID: 18747 RVA: 0x001784B0 File Offset: 0x001776B0 + public static bool IsActive(this TestmodeCameraID self) + { + return self >= TestmodeCameraID.Title0 && self < TestmodeCameraID.End && self > TestmodeCameraID.Title0; + } + + // Token: 0x0600493C RID: 18748 RVA: 0x001784C1 File Offset: 0x001776C1 + public static bool IsValid(this TestmodeCameraID self) + { + return self >= TestmodeCameraID.Title0 && self < TestmodeCameraID.End; + } + + // Token: 0x0600493D RID: 18749 RVA: 0x0018A80D File Offset: 0x00189A0D + public static void Clamp(this TestmodeCameraID self) + { + if (self < TestmodeCameraID.Title0) + { + self = TestmodeCameraID.Title0; + return; + } + if (self >= (TestmodeCameraID)TestmodeCameraIDEnum.GetEnd()) + { + self = (TestmodeCameraID)TestmodeCameraIDEnum.GetEnd(); + } + } + + // Token: 0x0600493E RID: 18750 RVA: 0x0018A826 File Offset: 0x00189A26 + public static int GetEnd(this TestmodeCameraID self) + { + return TestmodeCameraIDEnum.GetEnd(); + } + + // Token: 0x0600493F RID: 18751 RVA: 0x0018A830 File Offset: 0x00189A30 + public static TestmodeCameraID FindID(string enumName) + { + for (TestmodeCameraID testmodeCameraID = TestmodeCameraID.Title0; testmodeCameraID < TestmodeCameraID.End; testmodeCameraID++) + { + if (testmodeCameraID.GetEnumName() == enumName) + { + return testmodeCameraID; + } + } + return TestmodeCameraID.Invalid; + } + + // Token: 0x06004940 RID: 18752 RVA: 0x0018A85B File Offset: 0x00189A5B + public static int GetEnd() + { + return TestmodeCameraIDEnum.records.Length; + } + + // Token: 0x06004941 RID: 18753 RVA: 0x0018A864 File Offset: 0x00189A64 + public static int GetEnumValue(this TestmodeCameraID self) + { + if (self.IsValid()) + { + return TestmodeCameraIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004942 RID: 18754 RVA: 0x0018A87C File Offset: 0x00189A7C + public static string GetEnumName(this TestmodeCameraID self) + { + if (self.IsValid()) + { + return TestmodeCameraIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004943 RID: 18755 RVA: 0x0018A898 File Offset: 0x00189A98 + public static string GetName(this TestmodeCameraID self) + { + if (self.IsValid()) + { + return TestmodeCameraIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004944 RID: 18756 RVA: 0x0018A8B4 File Offset: 0x00189AB4 + public static string GetNameEx(this TestmodeCameraID self) + { + if (self.IsValid()) + { + return TestmodeCameraIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005955 RID: 22869 + private static readonly TestmodeCameraTableRecord[] records = new TestmodeCameraTableRecord[] + { + new TestmodeCameraTableRecord(0, "Title0", "摄像机测试", ""), + new TestmodeCameraTableRecord(1, "SubTitle", "摄像机视图", ""), + new TestmodeCameraTableRecord(2, "ListLabel00", "摄像机状态", ""), + new TestmodeCameraTableRecord(3, "ListLabel01", "类型", ""), + new TestmodeCameraTableRecord(4, "ListLabel02", "认证卡", ""), + new TestmodeCameraTableRecord(5, "ListLabel03", "检测", ""), + new TestmodeCameraTableRecord(6, "CameraInit", "摄像机正在初始化", ""), + new TestmodeCameraTableRecord(7, "LeftCamera", "二维码扫描", ""), + new TestmodeCameraTableRecord(8, "RightCamera", "コードリーダー(2P)", ""), + new TestmodeCameraTableRecord(9, "PhotoCamera", "玩家摄像机", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeCameraTableRecord.cs b/Assembly-CSharp/DB/TestmodeCameraTableRecord.cs new file mode 100644 index 0000000..494eb03 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeCameraTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x0200087B RID: 2171 + public class TestmodeCameraTableRecord + { + // Token: 0x06004939 RID: 18745 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeCameraTableRecord() + { + } + + // Token: 0x0600493A RID: 18746 RVA: 0x0018A7E8 File Offset: 0x001899E8 + public TestmodeCameraTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005951 RID: 22865 + public int EnumValue; + + // Token: 0x04005952 RID: 22866 + public string EnumName; + + // Token: 0x04005953 RID: 22867 + public string Name; + + // Token: 0x04005954 RID: 22868 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeCloseChangedID.cs b/Assembly-CSharp/DB/TestmodeCloseChangedID.cs new file mode 100644 index 0000000..4a9d88a --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeCloseChangedID.cs @@ -0,0 +1,17 @@ +using System; + +namespace DB +{ + // Token: 0x0200087D RID: 2173 + public enum TestmodeCloseChangedID + { + // Token: 0x04005957 RID: 22871 + Title0, + // Token: 0x04005958 RID: 22872 + Begin = 0, + // Token: 0x04005959 RID: 22873 + End, + // Token: 0x0400595A RID: 22874 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeCloseChangedIDEnum.cs b/Assembly-CSharp/DB/TestmodeCloseChangedIDEnum.cs new file mode 100644 index 0000000..d1309c3 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeCloseChangedIDEnum.cs @@ -0,0 +1,105 @@ +using System; + +namespace DB +{ + // Token: 0x0200087F RID: 2175 + public static class TestmodeCloseChangedIDEnum + { + // Token: 0x06004948 RID: 18760 RVA: 0x00173C7D File Offset: 0x00172E7D + public static bool IsActive(this TestmodeCloseChangedID self) + { + return self >= TestmodeCloseChangedID.Title0 && self < TestmodeCloseChangedID.End && self > TestmodeCloseChangedID.Title0; + } + + // Token: 0x06004949 RID: 18761 RVA: 0x00173C8D File Offset: 0x00172E8D + public static bool IsValid(this TestmodeCloseChangedID self) + { + return self >= TestmodeCloseChangedID.Title0 && self < TestmodeCloseChangedID.End; + } + + // Token: 0x0600494A RID: 18762 RVA: 0x0018AA00 File Offset: 0x00189C00 + public static void Clamp(this TestmodeCloseChangedID self) + { + if (self < TestmodeCloseChangedID.Title0) + { + self = TestmodeCloseChangedID.Title0; + return; + } + if (self >= (TestmodeCloseChangedID)TestmodeCloseChangedIDEnum.GetEnd()) + { + self = (TestmodeCloseChangedID)TestmodeCloseChangedIDEnum.GetEnd(); + } + } + + // Token: 0x0600494B RID: 18763 RVA: 0x0018AA19 File Offset: 0x00189C19 + public static int GetEnd(this TestmodeCloseChangedID self) + { + return TestmodeCloseChangedIDEnum.GetEnd(); + } + + // Token: 0x0600494C RID: 18764 RVA: 0x0018AA20 File Offset: 0x00189C20 + public static TestmodeCloseChangedID FindID(string enumName) + { + for (TestmodeCloseChangedID testmodeCloseChangedID = TestmodeCloseChangedID.Title0; testmodeCloseChangedID < TestmodeCloseChangedID.End; testmodeCloseChangedID++) + { + if (testmodeCloseChangedID.GetEnumName() == enumName) + { + return testmodeCloseChangedID; + } + } + return TestmodeCloseChangedID.Invalid; + } + + // Token: 0x0600494D RID: 18765 RVA: 0x0018AA4A File Offset: 0x00189C4A + public static int GetEnd() + { + return TestmodeCloseChangedIDEnum.records.Length; + } + + // Token: 0x0600494E RID: 18766 RVA: 0x0018AA53 File Offset: 0x00189C53 + public static int GetEnumValue(this TestmodeCloseChangedID self) + { + if (self.IsValid()) + { + return TestmodeCloseChangedIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600494F RID: 18767 RVA: 0x0018AA6B File Offset: 0x00189C6B + public static string GetEnumName(this TestmodeCloseChangedID self) + { + if (self.IsValid()) + { + return TestmodeCloseChangedIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004950 RID: 18768 RVA: 0x0018AA87 File Offset: 0x00189C87 + public static string GetName(this TestmodeCloseChangedID self) + { + if (self.IsValid()) + { + return TestmodeCloseChangedIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004951 RID: 18769 RVA: 0x0018AAA3 File Offset: 0x00189CA3 + public static string GetNameEx(this TestmodeCloseChangedID self) + { + if (self.IsValid()) + { + return TestmodeCloseChangedIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x0400595F RID: 22879 + private static readonly TestmodeCloseChangedTableRecord[] records = new TestmodeCloseChangedTableRecord[] + { + new TestmodeCloseChangedTableRecord(0, "Title0", "已恢复到出厂设置", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeCloseChangedTableRecord.cs b/Assembly-CSharp/DB/TestmodeCloseChangedTableRecord.cs new file mode 100644 index 0000000..f144573 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeCloseChangedTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x0200087E RID: 2174 + public class TestmodeCloseChangedTableRecord + { + // Token: 0x06004946 RID: 18758 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeCloseChangedTableRecord() + { + } + + // Token: 0x06004947 RID: 18759 RVA: 0x0018A9DB File Offset: 0x00189BDB + public TestmodeCloseChangedTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x0400595B RID: 22875 + public int EnumValue; + + // Token: 0x0400595C RID: 22876 + public string EnumName; + + // Token: 0x0400595D RID: 22877 + public string Name; + + // Token: 0x0400595E RID: 22878 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeCloseConfirmID.cs b/Assembly-CSharp/DB/TestmodeCloseConfirmID.cs new file mode 100644 index 0000000..8ba6cee --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeCloseConfirmID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x02000880 RID: 2176 + public enum TestmodeCloseConfirmID + { + // Token: 0x04005961 RID: 22881 + Title0, + // Token: 0x04005962 RID: 22882 + Label00, + // Token: 0x04005963 RID: 22883 + Label01, + // Token: 0x04005964 RID: 22884 + Begin = 0, + // Token: 0x04005965 RID: 22885 + End = 3, + // Token: 0x04005966 RID: 22886 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeCloseConfirmIDEnum.cs b/Assembly-CSharp/DB/TestmodeCloseConfirmIDEnum.cs new file mode 100644 index 0000000..adb0675 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeCloseConfirmIDEnum.cs @@ -0,0 +1,107 @@ +using System; + +namespace DB +{ + // Token: 0x02000882 RID: 2178 + public static class TestmodeCloseConfirmIDEnum + { + // Token: 0x06004955 RID: 18773 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this TestmodeCloseConfirmID self) + { + return self >= TestmodeCloseConfirmID.Title0 && self < TestmodeCloseConfirmID.End && self > TestmodeCloseConfirmID.Title0; + } + + // Token: 0x06004956 RID: 18774 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this TestmodeCloseConfirmID self) + { + return self >= TestmodeCloseConfirmID.Title0 && self < TestmodeCloseConfirmID.End; + } + + // Token: 0x06004957 RID: 18775 RVA: 0x0018AB09 File Offset: 0x00189D09 + public static void Clamp(this TestmodeCloseConfirmID self) + { + if (self < TestmodeCloseConfirmID.Title0) + { + self = TestmodeCloseConfirmID.Title0; + return; + } + if (self >= (TestmodeCloseConfirmID)TestmodeCloseConfirmIDEnum.GetEnd()) + { + self = (TestmodeCloseConfirmID)TestmodeCloseConfirmIDEnum.GetEnd(); + } + } + + // Token: 0x06004958 RID: 18776 RVA: 0x0018AB22 File Offset: 0x00189D22 + public static int GetEnd(this TestmodeCloseConfirmID self) + { + return TestmodeCloseConfirmIDEnum.GetEnd(); + } + + // Token: 0x06004959 RID: 18777 RVA: 0x0018AB2C File Offset: 0x00189D2C + public static TestmodeCloseConfirmID FindID(string enumName) + { + for (TestmodeCloseConfirmID testmodeCloseConfirmID = TestmodeCloseConfirmID.Title0; testmodeCloseConfirmID < TestmodeCloseConfirmID.End; testmodeCloseConfirmID++) + { + if (testmodeCloseConfirmID.GetEnumName() == enumName) + { + return testmodeCloseConfirmID; + } + } + return TestmodeCloseConfirmID.Invalid; + } + + // Token: 0x0600495A RID: 18778 RVA: 0x0018AB56 File Offset: 0x00189D56 + public static int GetEnd() + { + return TestmodeCloseConfirmIDEnum.records.Length; + } + + // Token: 0x0600495B RID: 18779 RVA: 0x0018AB5F File Offset: 0x00189D5F + public static int GetEnumValue(this TestmodeCloseConfirmID self) + { + if (self.IsValid()) + { + return TestmodeCloseConfirmIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600495C RID: 18780 RVA: 0x0018AB77 File Offset: 0x00189D77 + public static string GetEnumName(this TestmodeCloseConfirmID self) + { + if (self.IsValid()) + { + return TestmodeCloseConfirmIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600495D RID: 18781 RVA: 0x0018AB93 File Offset: 0x00189D93 + public static string GetName(this TestmodeCloseConfirmID self) + { + if (self.IsValid()) + { + return TestmodeCloseConfirmIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600495E RID: 18782 RVA: 0x0018ABAF File Offset: 0x00189DAF + public static string GetNameEx(this TestmodeCloseConfirmID self) + { + if (self.IsValid()) + { + return TestmodeCloseConfirmIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x0400596B RID: 22891 + private static readonly TestmodeCloseConfirmTableRecord[] records = new TestmodeCloseConfirmTableRecord[] + { + new TestmodeCloseConfirmTableRecord(0, "Title0", "恢复到出厂设置,可以吗?", ""), + new TestmodeCloseConfirmTableRecord(1, "Label00", "是", ""), + new TestmodeCloseConfirmTableRecord(2, "Label01", "否", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeCloseConfirmTableRecord.cs b/Assembly-CSharp/DB/TestmodeCloseConfirmTableRecord.cs new file mode 100644 index 0000000..3d4a97a --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeCloseConfirmTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000881 RID: 2177 + public class TestmodeCloseConfirmTableRecord + { + // Token: 0x06004953 RID: 18771 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeCloseConfirmTableRecord() + { + } + + // Token: 0x06004954 RID: 18772 RVA: 0x0018AAE4 File Offset: 0x00189CE4 + public TestmodeCloseConfirmTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005967 RID: 22887 + public int EnumValue; + + // Token: 0x04005968 RID: 22888 + public string EnumName; + + // Token: 0x04005969 RID: 22889 + public string Name; + + // Token: 0x0400596A RID: 22890 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeCloseID.cs b/Assembly-CSharp/DB/TestmodeCloseID.cs new file mode 100644 index 0000000..c21c7cb --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeCloseID.cs @@ -0,0 +1,61 @@ +using System; + +namespace DB +{ + // Token: 0x02000883 RID: 2179 + public enum TestmodeCloseID + { + // Token: 0x0400596D RID: 22893 + Title0, + // Token: 0x0400596E RID: 22894 + Label00, + // Token: 0x0400596F RID: 22895 + Label01, + // Token: 0x04005970 RID: 22896 + Label02, + // Token: 0x04005971 RID: 22897 + Label03, + // Token: 0x04005972 RID: 22898 + Label04, + // Token: 0x04005973 RID: 22899 + Label05, + // Token: 0x04005974 RID: 22900 + Label06, + // Token: 0x04005975 RID: 22901 + Label07, + // Token: 0x04005976 RID: 22902 + Label08, + // Token: 0x04005977 RID: 22903 + Label09, + // Token: 0x04005978 RID: 22904 + Label10, + // Token: 0x04005979 RID: 22905 + Label11, + // Token: 0x0400597A RID: 22906 + Label12, + // Token: 0x0400597B RID: 22907 + Label13, + // Token: 0x0400597C RID: 22908 + Label14, + // Token: 0x0400597D RID: 22909 + Label15, + // Token: 0x0400597E RID: 22910 + Label16, + // Token: 0x0400597F RID: 22911 + Label17, + // Token: 0x04005980 RID: 22912 + Label18, + // Token: 0x04005981 RID: 22913 + Label00_00, + // Token: 0x04005982 RID: 22914 + Label00_01, + // Token: 0x04005983 RID: 22915 + AllTime, + // Token: 0x04005984 RID: 22916 + Begin = 0, + // Token: 0x04005985 RID: 22917 + End = 23, + // Token: 0x04005986 RID: 22918 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeCloseIDEnum.cs b/Assembly-CSharp/DB/TestmodeCloseIDEnum.cs new file mode 100644 index 0000000..28335cc --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeCloseIDEnum.cs @@ -0,0 +1,127 @@ +using System; + +namespace DB +{ + // Token: 0x02000885 RID: 2181 + public static class TestmodeCloseIDEnum + { + // Token: 0x06004962 RID: 18786 RVA: 0x00188CF2 File Offset: 0x00187EF2 + public static bool IsActive(this TestmodeCloseID self) + { + return self >= TestmodeCloseID.Title0 && self < TestmodeCloseID.End && self > TestmodeCloseID.Title0; + } + + // Token: 0x06004963 RID: 18787 RVA: 0x00188D03 File Offset: 0x00187F03 + public static bool IsValid(this TestmodeCloseID self) + { + return self >= TestmodeCloseID.Title0 && self < TestmodeCloseID.End; + } + + // Token: 0x06004964 RID: 18788 RVA: 0x0018AC51 File Offset: 0x00189E51 + public static void Clamp(this TestmodeCloseID self) + { + if (self < TestmodeCloseID.Title0) + { + self = TestmodeCloseID.Title0; + return; + } + if (self >= (TestmodeCloseID)TestmodeCloseIDEnum.GetEnd()) + { + self = (TestmodeCloseID)TestmodeCloseIDEnum.GetEnd(); + } + } + + // Token: 0x06004965 RID: 18789 RVA: 0x0018AC6A File Offset: 0x00189E6A + public static int GetEnd(this TestmodeCloseID self) + { + return TestmodeCloseIDEnum.GetEnd(); + } + + // Token: 0x06004966 RID: 18790 RVA: 0x0018AC74 File Offset: 0x00189E74 + public static TestmodeCloseID FindID(string enumName) + { + for (TestmodeCloseID testmodeCloseID = TestmodeCloseID.Title0; testmodeCloseID < TestmodeCloseID.End; testmodeCloseID++) + { + if (testmodeCloseID.GetEnumName() == enumName) + { + return testmodeCloseID; + } + } + return TestmodeCloseID.Invalid; + } + + // Token: 0x06004967 RID: 18791 RVA: 0x0018AC9F File Offset: 0x00189E9F + public static int GetEnd() + { + return TestmodeCloseIDEnum.records.Length; + } + + // Token: 0x06004968 RID: 18792 RVA: 0x0018ACA8 File Offset: 0x00189EA8 + public static int GetEnumValue(this TestmodeCloseID self) + { + if (self.IsValid()) + { + return TestmodeCloseIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004969 RID: 18793 RVA: 0x0018ACC0 File Offset: 0x00189EC0 + public static string GetEnumName(this TestmodeCloseID self) + { + if (self.IsValid()) + { + return TestmodeCloseIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600496A RID: 18794 RVA: 0x0018ACDC File Offset: 0x00189EDC + public static string GetName(this TestmodeCloseID self) + { + if (self.IsValid()) + { + return TestmodeCloseIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600496B RID: 18795 RVA: 0x0018ACF8 File Offset: 0x00189EF8 + public static string GetNameEx(this TestmodeCloseID self) + { + if (self.IsValid()) + { + return TestmodeCloseIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x0400598B RID: 22923 + private static readonly TestmodeCloseTableRecord[] records = new TestmodeCloseTableRecord[] + { + new TestmodeCloseTableRecord(0, "Title0", "关店设置", ""), + new TestmodeCloseTableRecord(1, "Label00", "日程类型", ""), + new TestmodeCloseTableRecord(2, "Label01", "点", ""), + new TestmodeCloseTableRecord(3, "Label02", "分", ""), + new TestmodeCloseTableRecord(4, "Label03", "(星期天)点", ""), + new TestmodeCloseTableRecord(5, "Label04", "\u3000\u3000\u3000\u3000\u3000分", ""), + new TestmodeCloseTableRecord(6, "Label05", "(星期一)点", ""), + new TestmodeCloseTableRecord(7, "Label06", "\u3000\u3000\u3000\u3000\u3000分", ""), + new TestmodeCloseTableRecord(8, "Label07", "(星期二)点", ""), + new TestmodeCloseTableRecord(9, "Label08", "\u3000\u3000\u3000\u3000\u3000分", ""), + new TestmodeCloseTableRecord(10, "Label09", "(星期三)点", ""), + new TestmodeCloseTableRecord(11, "Label10", "\u3000\u3000\u3000\u3000\u3000分", ""), + new TestmodeCloseTableRecord(12, "Label11", "(星期四)点", ""), + new TestmodeCloseTableRecord(13, "Label12", "\u3000\u3000\u3000\u3000\u3000分", ""), + new TestmodeCloseTableRecord(14, "Label13", "(星期五)点", ""), + new TestmodeCloseTableRecord(15, "Label14", "\u3000\u3000\u3000\u3000\u3000分", ""), + new TestmodeCloseTableRecord(16, "Label15", "(星期六)点", ""), + new TestmodeCloseTableRecord(17, "Label16", "\u3000\u3000\u3000\u3000\u3000分", ""), + new TestmodeCloseTableRecord(18, "Label17", "恢复出厂设置", ""), + new TestmodeCloseTableRecord(19, "Label18", "离开", ""), + new TestmodeCloseTableRecord(20, "Label00_00", "天", ""), + new TestmodeCloseTableRecord(21, "Label00_01", "周", ""), + new TestmodeCloseTableRecord(22, "AllTime", "总时长", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeCloseTableRecord.cs b/Assembly-CSharp/DB/TestmodeCloseTableRecord.cs new file mode 100644 index 0000000..86900c6 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeCloseTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000884 RID: 2180 + public class TestmodeCloseTableRecord + { + // Token: 0x06004960 RID: 18784 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeCloseTableRecord() + { + } + + // Token: 0x06004961 RID: 18785 RVA: 0x0018AC2C File Offset: 0x00189E2C + public TestmodeCloseTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005987 RID: 22919 + public int EnumValue; + + // Token: 0x04005988 RID: 22920 + public string EnumName; + + // Token: 0x04005989 RID: 22921 + public string Name; + + // Token: 0x0400598A RID: 22922 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeDebugEventsetID.cs b/Assembly-CSharp/DB/TestmodeDebugEventsetID.cs new file mode 100644 index 0000000..cf6af74 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDebugEventsetID.cs @@ -0,0 +1,61 @@ +using System; + +namespace DB +{ + // Token: 0x02000886 RID: 2182 + public enum TestmodeDebugEventsetID + { + // Token: 0x0400598D RID: 22925 + Title0, + // Token: 0x0400598E RID: 22926 + Title1, + // Token: 0x0400598F RID: 22927 + Label00, + // Token: 0x04005990 RID: 22928 + Label01, + // Token: 0x04005991 RID: 22929 + Label02, + // Token: 0x04005992 RID: 22930 + Label03, + // Token: 0x04005993 RID: 22931 + Label04, + // Token: 0x04005994 RID: 22932 + Label05, + // Token: 0x04005995 RID: 22933 + Label06, + // Token: 0x04005996 RID: 22934 + Label07, + // Token: 0x04005997 RID: 22935 + Label08, + // Token: 0x04005998 RID: 22936 + Label09, + // Token: 0x04005999 RID: 22937 + Label10, + // Token: 0x0400599A RID: 22938 + Label11, + // Token: 0x0400599B RID: 22939 + Label12, + // Token: 0x0400599C RID: 22940 + Label13, + // Token: 0x0400599D RID: 22941 + Label14, + // Token: 0x0400599E RID: 22942 + Label15, + // Token: 0x0400599F RID: 22943 + Label16, + // Token: 0x040059A0 RID: 22944 + Label17, + // Token: 0x040059A1 RID: 22945 + Label18, + // Token: 0x040059A2 RID: 22946 + Label19, + // Token: 0x040059A3 RID: 22947 + Label20, + // Token: 0x040059A4 RID: 22948 + Begin = 0, + // Token: 0x040059A5 RID: 22949 + End = 23, + // Token: 0x040059A6 RID: 22950 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeDebugEventsetIDEnum.cs b/Assembly-CSharp/DB/TestmodeDebugEventsetIDEnum.cs new file mode 100644 index 0000000..577f45c --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDebugEventsetIDEnum.cs @@ -0,0 +1,117 @@ +using System; + +namespace DB +{ + // Token: 0x02000888 RID: 2184 + public static class TestmodeDebugEventsetIDEnum + { + // Token: 0x0600496F RID: 18799 RVA: 0x00188CF2 File Offset: 0x00187EF2 + public static bool IsActive(this TestmodeDebugEventsetID self) + { + return self >= TestmodeDebugEventsetID.Title0 && self < TestmodeDebugEventsetID.End && self > TestmodeDebugEventsetID.Title0; + } + + // Token: 0x06004970 RID: 18800 RVA: 0x00188D03 File Offset: 0x00187F03 + public static bool IsValid(this TestmodeDebugEventsetID self) + { + return self >= TestmodeDebugEventsetID.Title0 && self < TestmodeDebugEventsetID.End; + } + + // Token: 0x06004971 RID: 18801 RVA: 0x0018AF8E File Offset: 0x0018A18E + public static void Clamp(this TestmodeDebugEventsetID self) + { + if (self < TestmodeDebugEventsetID.Title0) + { + self = TestmodeDebugEventsetID.Title0; + return; + } + if (self >= (TestmodeDebugEventsetID)TestmodeDebugEventsetIDEnum.GetEnd()) + { + self = (TestmodeDebugEventsetID)TestmodeDebugEventsetIDEnum.GetEnd(); + } + } + + // Token: 0x06004972 RID: 18802 RVA: 0x0018AFA7 File Offset: 0x0018A1A7 + public static int GetEnd(this TestmodeDebugEventsetID self) + { + return TestmodeDebugEventsetIDEnum.GetEnd(); + } + + // Token: 0x06004973 RID: 18803 RVA: 0x0018AFB0 File Offset: 0x0018A1B0 + public static TestmodeDebugEventsetID FindID(string enumName) + { + for (TestmodeDebugEventsetID testmodeDebugEventsetID = TestmodeDebugEventsetID.Title0; testmodeDebugEventsetID < TestmodeDebugEventsetID.End; testmodeDebugEventsetID++) + { + if (testmodeDebugEventsetID.GetEnumName() == enumName) + { + return testmodeDebugEventsetID; + } + } + return TestmodeDebugEventsetID.Invalid; + } + + // Token: 0x06004974 RID: 18804 RVA: 0x0018AFDB File Offset: 0x0018A1DB + public static int GetEnd() + { + return TestmodeDebugEventsetIDEnum.records.Length; + } + + // Token: 0x06004975 RID: 18805 RVA: 0x0018AFE4 File Offset: 0x0018A1E4 + public static int GetEnumValue(this TestmodeDebugEventsetID self) + { + if (self.IsValid()) + { + return TestmodeDebugEventsetIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004976 RID: 18806 RVA: 0x0018AFFC File Offset: 0x0018A1FC + public static string GetEnumName(this TestmodeDebugEventsetID self) + { + if (self.IsValid()) + { + return TestmodeDebugEventsetIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004977 RID: 18807 RVA: 0x0018B018 File Offset: 0x0018A218 + public static string GetName(this TestmodeDebugEventsetID self) + { + if (self.IsValid()) + { + return TestmodeDebugEventsetIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x040059AA RID: 22954 + private static readonly TestmodeDebugEventsetTableRecord[] records = new TestmodeDebugEventsetTableRecord[] + { + new TestmodeDebugEventsetTableRecord(0, "Title0", "デバッグ:イベント設定"), + new TestmodeDebugEventsetTableRecord(1, "Title1", "イベント一覧"), + new TestmodeDebugEventsetTableRecord(2, "Label00", ""), + new TestmodeDebugEventsetTableRecord(3, "Label01", ""), + new TestmodeDebugEventsetTableRecord(4, "Label02", ""), + new TestmodeDebugEventsetTableRecord(5, "Label03", ""), + new TestmodeDebugEventsetTableRecord(6, "Label04", ""), + new TestmodeDebugEventsetTableRecord(7, "Label05", ""), + new TestmodeDebugEventsetTableRecord(8, "Label06", ""), + new TestmodeDebugEventsetTableRecord(9, "Label07", ""), + new TestmodeDebugEventsetTableRecord(10, "Label08", ""), + new TestmodeDebugEventsetTableRecord(11, "Label09", ""), + new TestmodeDebugEventsetTableRecord(12, "Label10", ""), + new TestmodeDebugEventsetTableRecord(13, "Label11", ""), + new TestmodeDebugEventsetTableRecord(14, "Label12", ""), + new TestmodeDebugEventsetTableRecord(15, "Label13", ""), + new TestmodeDebugEventsetTableRecord(16, "Label14", ""), + new TestmodeDebugEventsetTableRecord(17, "Label15", ""), + new TestmodeDebugEventsetTableRecord(18, "Label16", ""), + new TestmodeDebugEventsetTableRecord(19, "Label17", ""), + new TestmodeDebugEventsetTableRecord(20, "Label18", ""), + new TestmodeDebugEventsetTableRecord(21, "Label19", ""), + new TestmodeDebugEventsetTableRecord(22, "Label20", "終了") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeDebugEventsetTableRecord.cs b/Assembly-CSharp/DB/TestmodeDebugEventsetTableRecord.cs new file mode 100644 index 0000000..4c3e214 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDebugEventsetTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000887 RID: 2183 + public class TestmodeDebugEventsetTableRecord + { + // Token: 0x0600496D RID: 18797 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeDebugEventsetTableRecord() + { + } + + // Token: 0x0600496E RID: 18798 RVA: 0x0018AF71 File Offset: 0x0018A171 + public TestmodeDebugEventsetTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x040059A7 RID: 22951 + public int EnumValue; + + // Token: 0x040059A8 RID: 22952 + public string EnumName; + + // Token: 0x040059A9 RID: 22953 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/TestmodeDebugInisetID.cs b/Assembly-CSharp/DB/TestmodeDebugInisetID.cs new file mode 100644 index 0000000..f151801 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDebugInisetID.cs @@ -0,0 +1,59 @@ +using System; + +namespace DB +{ + // Token: 0x02000889 RID: 2185 + public enum TestmodeDebugInisetID + { + // Token: 0x040059AC RID: 22956 + Title0, + // Token: 0x040059AD RID: 22957 + Label00, + // Token: 0x040059AE RID: 22958 + Label01, + // Token: 0x040059AF RID: 22959 + Label02, + // Token: 0x040059B0 RID: 22960 + Label03, + // Token: 0x040059B1 RID: 22961 + Label04, + // Token: 0x040059B2 RID: 22962 + Label05, + // Token: 0x040059B3 RID: 22963 + Label06, + // Token: 0x040059B4 RID: 22964 + Label07, + // Token: 0x040059B5 RID: 22965 + Label08, + // Token: 0x040059B6 RID: 22966 + Label09, + // Token: 0x040059B7 RID: 22967 + Label10, + // Token: 0x040059B8 RID: 22968 + Label11, + // Token: 0x040059B9 RID: 22969 + Label12, + // Token: 0x040059BA RID: 22970 + Label13, + // Token: 0x040059BB RID: 22971 + Label14, + // Token: 0x040059BC RID: 22972 + Label15, + // Token: 0x040059BD RID: 22973 + Label16, + // Token: 0x040059BE RID: 22974 + Label17, + // Token: 0x040059BF RID: 22975 + Label18, + // Token: 0x040059C0 RID: 22976 + Label19, + // Token: 0x040059C1 RID: 22977 + Label20, + // Token: 0x040059C2 RID: 22978 + Begin = 0, + // Token: 0x040059C3 RID: 22979 + End = 22, + // Token: 0x040059C4 RID: 22980 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeDebugInisetIDEnum.cs b/Assembly-CSharp/DB/TestmodeDebugInisetIDEnum.cs new file mode 100644 index 0000000..8b52c5f --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDebugInisetIDEnum.cs @@ -0,0 +1,116 @@ +using System; + +namespace DB +{ + // Token: 0x0200088B RID: 2187 + public static class TestmodeDebugInisetIDEnum + { + // Token: 0x0600497B RID: 18811 RVA: 0x0018B23B File Offset: 0x0018A43B + public static bool IsActive(this TestmodeDebugInisetID self) + { + return self >= TestmodeDebugInisetID.Title0 && self < TestmodeDebugInisetID.End && self > TestmodeDebugInisetID.Title0; + } + + // Token: 0x0600497C RID: 18812 RVA: 0x0018B24C File Offset: 0x0018A44C + public static bool IsValid(this TestmodeDebugInisetID self) + { + return self >= TestmodeDebugInisetID.Title0 && self < TestmodeDebugInisetID.End; + } + + // Token: 0x0600497D RID: 18813 RVA: 0x0018B259 File Offset: 0x0018A459 + public static void Clamp(this TestmodeDebugInisetID self) + { + if (self < TestmodeDebugInisetID.Title0) + { + self = TestmodeDebugInisetID.Title0; + return; + } + if (self >= (TestmodeDebugInisetID)TestmodeDebugInisetIDEnum.GetEnd()) + { + self = (TestmodeDebugInisetID)TestmodeDebugInisetIDEnum.GetEnd(); + } + } + + // Token: 0x0600497E RID: 18814 RVA: 0x0018B272 File Offset: 0x0018A472 + public static int GetEnd(this TestmodeDebugInisetID self) + { + return TestmodeDebugInisetIDEnum.GetEnd(); + } + + // Token: 0x0600497F RID: 18815 RVA: 0x0018B27C File Offset: 0x0018A47C + public static TestmodeDebugInisetID FindID(string enumName) + { + for (TestmodeDebugInisetID testmodeDebugInisetID = TestmodeDebugInisetID.Title0; testmodeDebugInisetID < TestmodeDebugInisetID.End; testmodeDebugInisetID++) + { + if (testmodeDebugInisetID.GetEnumName() == enumName) + { + return testmodeDebugInisetID; + } + } + return TestmodeDebugInisetID.Invalid; + } + + // Token: 0x06004980 RID: 18816 RVA: 0x0018B2A7 File Offset: 0x0018A4A7 + public static int GetEnd() + { + return TestmodeDebugInisetIDEnum.records.Length; + } + + // Token: 0x06004981 RID: 18817 RVA: 0x0018B2B0 File Offset: 0x0018A4B0 + public static int GetEnumValue(this TestmodeDebugInisetID self) + { + if (self.IsValid()) + { + return TestmodeDebugInisetIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004982 RID: 18818 RVA: 0x0018B2C8 File Offset: 0x0018A4C8 + public static string GetEnumName(this TestmodeDebugInisetID self) + { + if (self.IsValid()) + { + return TestmodeDebugInisetIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004983 RID: 18819 RVA: 0x0018B2E4 File Offset: 0x0018A4E4 + public static string GetName(this TestmodeDebugInisetID self) + { + if (self.IsValid()) + { + return TestmodeDebugInisetIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x040059C8 RID: 22984 + private static readonly TestmodeDebugInisetTableRecord[] records = new TestmodeDebugInisetTableRecord[] + { + new TestmodeDebugInisetTableRecord(0, "Title0", "デバッグ:Ini編集"), + new TestmodeDebugInisetTableRecord(1, "Label00", "デバッグ表示"), + new TestmodeDebugInisetTableRecord(2, "Label01", "全曲全譜面解放"), + new TestmodeDebugInisetTableRecord(3, "Label02", "全コレクション獲得"), + new TestmodeDebugInisetTableRecord(4, "Label03", "全キャラ獲得"), + new TestmodeDebugInisetTableRecord(5, "Label04", "最大トラック数(0~4=>0なら無効)"), + new TestmodeDebugInisetTableRecord(6, "Label05", "譜面チェックモード"), + new TestmodeDebugInisetTableRecord(7, "Label06", "イベント開催上書き"), + new TestmodeDebugInisetTableRecord(8, "Label07", "マップ進行距離(0なら無効)"), + new TestmodeDebugInisetTableRecord(9, "Label08", "全マップ完走"), + new TestmodeDebugInisetTableRecord(10, "Label09", "ゴーストの達成率(0なら無効)"), + new TestmodeDebugInisetTableRecord(11, "Label10", "ゴーストの腕前(0なら無効)"), + new TestmodeDebugInisetTableRecord(12, "Label11", "強制Dxスコア(T)"), + new TestmodeDebugInisetTableRecord(13, "Label12", "強制Dxスコア(Y)"), + new TestmodeDebugInisetTableRecord(14, "Label13", "強制Dxスコア(U)"), + new TestmodeDebugInisetTableRecord(15, "Label14", "強制Dxスコア(I)"), + new TestmodeDebugInisetTableRecord(16, "Label15", "強制達成率(T)"), + new TestmodeDebugInisetTableRecord(17, "Label16", "強制達成率(Y)"), + new TestmodeDebugInisetTableRecord(18, "Label17", "強制達成率(U)"), + new TestmodeDebugInisetTableRecord(19, "Label18", "強制達成率(I)"), + new TestmodeDebugInisetTableRecord(20, "Label19", "キャラ合計覚醒数"), + new TestmodeDebugInisetTableRecord(21, "Label20", "終了") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeDebugInisetTableRecord.cs b/Assembly-CSharp/DB/TestmodeDebugInisetTableRecord.cs new file mode 100644 index 0000000..ed5fe20 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDebugInisetTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x0200088A RID: 2186 + public class TestmodeDebugInisetTableRecord + { + // Token: 0x06004979 RID: 18809 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeDebugInisetTableRecord() + { + } + + // Token: 0x0600497A RID: 18810 RVA: 0x0018B21E File Offset: 0x0018A41E + public TestmodeDebugInisetTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x040059C5 RID: 22981 + public int EnumValue; + + // Token: 0x040059C6 RID: 22982 + public string EnumName; + + // Token: 0x040059C7 RID: 22983 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/TestmodeDebugLedID.cs b/Assembly-CSharp/DB/TestmodeDebugLedID.cs new file mode 100644 index 0000000..c381b68 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDebugLedID.cs @@ -0,0 +1,41 @@ +using System; + +namespace DB +{ + // Token: 0x0200088C RID: 2188 + public enum TestmodeDebugLedID + { + // Token: 0x040059CA RID: 22986 + Title0, + // Token: 0x040059CB RID: 22987 + Label00, + // Token: 0x040059CC RID: 22988 + Label01, + // Token: 0x040059CD RID: 22989 + Label02, + // Token: 0x040059CE RID: 22990 + Label03, + // Token: 0x040059CF RID: 22991 + Label04, + // Token: 0x040059D0 RID: 22992 + Label05, + // Token: 0x040059D1 RID: 22993 + Label06, + // Token: 0x040059D2 RID: 22994 + Label07, + // Token: 0x040059D3 RID: 22995 + Label08, + // Token: 0x040059D4 RID: 22996 + Label09, + // Token: 0x040059D5 RID: 22997 + Label10, + // Token: 0x040059D6 RID: 22998 + Label11, + // Token: 0x040059D7 RID: 22999 + Begin = 0, + // Token: 0x040059D8 RID: 23000 + End = 13, + // Token: 0x040059D9 RID: 23001 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeDebugLedIDEnum.cs b/Assembly-CSharp/DB/TestmodeDebugLedIDEnum.cs new file mode 100644 index 0000000..8d57d69 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDebugLedIDEnum.cs @@ -0,0 +1,107 @@ +using System; + +namespace DB +{ + // Token: 0x0200088E RID: 2190 + public static class TestmodeDebugLedIDEnum + { + // Token: 0x06004987 RID: 18823 RVA: 0x00188389 File Offset: 0x00187589 + public static bool IsActive(this TestmodeDebugLedID self) + { + return self >= TestmodeDebugLedID.Title0 && self < TestmodeDebugLedID.End && self > TestmodeDebugLedID.Title0; + } + + // Token: 0x06004988 RID: 18824 RVA: 0x0018839A File Offset: 0x0018759A + public static bool IsValid(this TestmodeDebugLedID self) + { + return self >= TestmodeDebugLedID.Title0 && self < TestmodeDebugLedID.End; + } + + // Token: 0x06004989 RID: 18825 RVA: 0x0018B4F2 File Offset: 0x0018A6F2 + public static void Clamp(this TestmodeDebugLedID self) + { + if (self < TestmodeDebugLedID.Title0) + { + self = TestmodeDebugLedID.Title0; + return; + } + if (self >= (TestmodeDebugLedID)TestmodeDebugLedIDEnum.GetEnd()) + { + self = (TestmodeDebugLedID)TestmodeDebugLedIDEnum.GetEnd(); + } + } + + // Token: 0x0600498A RID: 18826 RVA: 0x0018B50B File Offset: 0x0018A70B + public static int GetEnd(this TestmodeDebugLedID self) + { + return TestmodeDebugLedIDEnum.GetEnd(); + } + + // Token: 0x0600498B RID: 18827 RVA: 0x0018B514 File Offset: 0x0018A714 + public static TestmodeDebugLedID FindID(string enumName) + { + for (TestmodeDebugLedID testmodeDebugLedID = TestmodeDebugLedID.Title0; testmodeDebugLedID < TestmodeDebugLedID.End; testmodeDebugLedID++) + { + if (testmodeDebugLedID.GetEnumName() == enumName) + { + return testmodeDebugLedID; + } + } + return TestmodeDebugLedID.Invalid; + } + + // Token: 0x0600498C RID: 18828 RVA: 0x0018B53F File Offset: 0x0018A73F + public static int GetEnd() + { + return TestmodeDebugLedIDEnum.records.Length; + } + + // Token: 0x0600498D RID: 18829 RVA: 0x0018B548 File Offset: 0x0018A748 + public static int GetEnumValue(this TestmodeDebugLedID self) + { + if (self.IsValid()) + { + return TestmodeDebugLedIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600498E RID: 18830 RVA: 0x0018B560 File Offset: 0x0018A760 + public static string GetEnumName(this TestmodeDebugLedID self) + { + if (self.IsValid()) + { + return TestmodeDebugLedIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600498F RID: 18831 RVA: 0x0018B57C File Offset: 0x0018A77C + public static string GetName(this TestmodeDebugLedID self) + { + if (self.IsValid()) + { + return TestmodeDebugLedIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x040059DD RID: 23005 + private static readonly TestmodeDebugLedTableRecord[] records = new TestmodeDebugLedTableRecord[] + { + new TestmodeDebugLedTableRecord(0, "Title0", "デバッグ:LED調光"), + new TestmodeDebugLedTableRecord(1, "Label00", "帽子のLED色"), + new TestmodeDebugLedTableRecord(2, "Label01", "\u3000R"), + new TestmodeDebugLedTableRecord(3, "Label02", "\u3000G"), + new TestmodeDebugLedTableRecord(4, "Label03", "\u3000B"), + new TestmodeDebugLedTableRecord(5, "Label04", "ボタンのLED色"), + new TestmodeDebugLedTableRecord(6, "Label05", "\u3000R"), + new TestmodeDebugLedTableRecord(7, "Label06", "\u3000G"), + new TestmodeDebugLedTableRecord(8, "Label07", "\u3000B"), + new TestmodeDebugLedTableRecord(9, "Label08", "ボディの明るさ"), + new TestmodeDebugLedTableRecord(10, "Label09", "\u3000明るさ"), + new TestmodeDebugLedTableRecord(11, "Label10", "加算される値"), + new TestmodeDebugLedTableRecord(12, "Label11", "\u3000終了") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeDebugLedTableRecord.cs b/Assembly-CSharp/DB/TestmodeDebugLedTableRecord.cs new file mode 100644 index 0000000..5dcd163 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDebugLedTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x0200088D RID: 2189 + public class TestmodeDebugLedTableRecord + { + // Token: 0x06004985 RID: 18821 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeDebugLedTableRecord() + { + } + + // Token: 0x06004986 RID: 18822 RVA: 0x0018B4D5 File Offset: 0x0018A6D5 + public TestmodeDebugLedTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x040059DA RID: 23002 + public int EnumValue; + + // Token: 0x040059DB RID: 23003 + public string EnumName; + + // Token: 0x040059DC RID: 23004 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/TestmodeDebugSoundtestID.cs b/Assembly-CSharp/DB/TestmodeDebugSoundtestID.cs new file mode 100644 index 0000000..3c559f8 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDebugSoundtestID.cs @@ -0,0 +1,59 @@ +using System; + +namespace DB +{ + // Token: 0x0200088F RID: 2191 + public enum TestmodeDebugSoundtestID + { + // Token: 0x040059DF RID: 23007 + Title0, + // Token: 0x040059E0 RID: 23008 + Label00, + // Token: 0x040059E1 RID: 23009 + Label01, + // Token: 0x040059E2 RID: 23010 + Label02, + // Token: 0x040059E3 RID: 23011 + Label03, + // Token: 0x040059E4 RID: 23012 + Label04, + // Token: 0x040059E5 RID: 23013 + Label05, + // Token: 0x040059E6 RID: 23014 + Label06, + // Token: 0x040059E7 RID: 23015 + Label07, + // Token: 0x040059E8 RID: 23016 + Label08, + // Token: 0x040059E9 RID: 23017 + Label09, + // Token: 0x040059EA RID: 23018 + Label10, + // Token: 0x040059EB RID: 23019 + Label11, + // Token: 0x040059EC RID: 23020 + Label12, + // Token: 0x040059ED RID: 23021 + Label13, + // Token: 0x040059EE RID: 23022 + Label14, + // Token: 0x040059EF RID: 23023 + Label15, + // Token: 0x040059F0 RID: 23024 + Label16, + // Token: 0x040059F1 RID: 23025 + Label17, + // Token: 0x040059F2 RID: 23026 + Label18, + // Token: 0x040059F3 RID: 23027 + Label19, + // Token: 0x040059F4 RID: 23028 + Label20, + // Token: 0x040059F5 RID: 23029 + Begin = 0, + // Token: 0x040059F6 RID: 23030 + End = 22, + // Token: 0x040059F7 RID: 23031 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeDebugSoundtestIDEnum.cs b/Assembly-CSharp/DB/TestmodeDebugSoundtestIDEnum.cs new file mode 100644 index 0000000..67c7ba4 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDebugSoundtestIDEnum.cs @@ -0,0 +1,126 @@ +using System; + +namespace DB +{ + // Token: 0x02000891 RID: 2193 + public static class TestmodeDebugSoundtestIDEnum + { + // Token: 0x06004993 RID: 18835 RVA: 0x0018B23B File Offset: 0x0018A43B + public static bool IsActive(this TestmodeDebugSoundtestID self) + { + return self >= TestmodeDebugSoundtestID.Title0 && self < TestmodeDebugSoundtestID.End && self > TestmodeDebugSoundtestID.Title0; + } + + // Token: 0x06004994 RID: 18836 RVA: 0x0018B24C File Offset: 0x0018A44C + public static bool IsValid(this TestmodeDebugSoundtestID self) + { + return self >= TestmodeDebugSoundtestID.Title0 && self < TestmodeDebugSoundtestID.End; + } + + // Token: 0x06004995 RID: 18837 RVA: 0x0018B6D5 File Offset: 0x0018A8D5 + public static void Clamp(this TestmodeDebugSoundtestID self) + { + if (self < TestmodeDebugSoundtestID.Title0) + { + self = TestmodeDebugSoundtestID.Title0; + return; + } + if (self >= (TestmodeDebugSoundtestID)TestmodeDebugSoundtestIDEnum.GetEnd()) + { + self = (TestmodeDebugSoundtestID)TestmodeDebugSoundtestIDEnum.GetEnd(); + } + } + + // Token: 0x06004996 RID: 18838 RVA: 0x0018B6EE File Offset: 0x0018A8EE + public static int GetEnd(this TestmodeDebugSoundtestID self) + { + return TestmodeDebugSoundtestIDEnum.GetEnd(); + } + + // Token: 0x06004997 RID: 18839 RVA: 0x0018B6F8 File Offset: 0x0018A8F8 + public static TestmodeDebugSoundtestID FindID(string enumName) + { + for (TestmodeDebugSoundtestID testmodeDebugSoundtestID = TestmodeDebugSoundtestID.Title0; testmodeDebugSoundtestID < TestmodeDebugSoundtestID.End; testmodeDebugSoundtestID++) + { + if (testmodeDebugSoundtestID.GetEnumName() == enumName) + { + return testmodeDebugSoundtestID; + } + } + return TestmodeDebugSoundtestID.Invalid; + } + + // Token: 0x06004998 RID: 18840 RVA: 0x0018B723 File Offset: 0x0018A923 + public static int GetEnd() + { + return TestmodeDebugSoundtestIDEnum.records.Length; + } + + // Token: 0x06004999 RID: 18841 RVA: 0x0018B72C File Offset: 0x0018A92C + public static int GetEnumValue(this TestmodeDebugSoundtestID self) + { + if (self.IsValid()) + { + return TestmodeDebugSoundtestIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x0600499A RID: 18842 RVA: 0x0018B744 File Offset: 0x0018A944 + public static string GetEnumName(this TestmodeDebugSoundtestID self) + { + if (self.IsValid()) + { + return TestmodeDebugSoundtestIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x0600499B RID: 18843 RVA: 0x0018B760 File Offset: 0x0018A960 + public static string GetName(this TestmodeDebugSoundtestID self) + { + if (self.IsValid()) + { + return TestmodeDebugSoundtestIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x0600499C RID: 18844 RVA: 0x0018B77C File Offset: 0x0018A97C + public static string GetNameEx(this TestmodeDebugSoundtestID self) + { + if (self.IsValid()) + { + return TestmodeDebugSoundtestIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x040059FC RID: 23036 + private static readonly TestmodeDebugSoundtestTableRecord[] records = new TestmodeDebugSoundtestTableRecord[] + { + new TestmodeDebugSoundtestTableRecord(0, "Title0", "デバッグ:サウンドテスト", ""), + new TestmodeDebugSoundtestTableRecord(1, "Label00", "SE", ""), + new TestmodeDebugSoundtestTableRecord(2, "Label01", "戻る", ""), + new TestmodeDebugSoundtestTableRecord(3, "Label02", "進む", ""), + new TestmodeDebugSoundtestTableRecord(4, "Label03", "再生", ""), + new TestmodeDebugSoundtestTableRecord(5, "Label04", "停止", ""), + new TestmodeDebugSoundtestTableRecord(6, "Label05", "VOICE", ""), + new TestmodeDebugSoundtestTableRecord(7, "Label06", "戻る", ""), + new TestmodeDebugSoundtestTableRecord(8, "Label07", "進む", ""), + new TestmodeDebugSoundtestTableRecord(9, "Label08", "再生", ""), + new TestmodeDebugSoundtestTableRecord(10, "Label09", "P_VOICE", ""), + new TestmodeDebugSoundtestTableRecord(11, "Label10", "戻る", ""), + new TestmodeDebugSoundtestTableRecord(12, "Label11", "進む", ""), + new TestmodeDebugSoundtestTableRecord(13, "Label12", "再生", ""), + new TestmodeDebugSoundtestTableRecord(14, "Label13", "パートナー", ""), + new TestmodeDebugSoundtestTableRecord(15, "Label14", "戻る", ""), + new TestmodeDebugSoundtestTableRecord(16, "Label15", "進む", ""), + new TestmodeDebugSoundtestTableRecord(17, "Label16", "楽曲", ""), + new TestmodeDebugSoundtestTableRecord(18, "Label17", "戻る", ""), + new TestmodeDebugSoundtestTableRecord(19, "Label18", "進む", ""), + new TestmodeDebugSoundtestTableRecord(20, "Label19", "再生", ""), + new TestmodeDebugSoundtestTableRecord(21, "Label20", "終了", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeDebugSoundtestTableRecord.cs b/Assembly-CSharp/DB/TestmodeDebugSoundtestTableRecord.cs new file mode 100644 index 0000000..30d20cf --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDebugSoundtestTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000890 RID: 2192 + public class TestmodeDebugSoundtestTableRecord + { + // Token: 0x06004991 RID: 18833 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeDebugSoundtestTableRecord() + { + } + + // Token: 0x06004992 RID: 18834 RVA: 0x0018B6B0 File Offset: 0x0018A8B0 + public TestmodeDebugSoundtestTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x040059F8 RID: 23032 + public int EnumValue; + + // Token: 0x040059F9 RID: 23033 + public string EnumName; + + // Token: 0x040059FA RID: 23034 + public string Name; + + // Token: 0x040059FB RID: 23035 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeDownloadID.cs b/Assembly-CSharp/DB/TestmodeDownloadID.cs new file mode 100644 index 0000000..4d59a34 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDownloadID.cs @@ -0,0 +1,41 @@ +using System; + +namespace DB +{ + // Token: 0x02000892 RID: 2194 + public enum TestmodeDownloadID + { + // Token: 0x040059FE RID: 23038 + Title0, + // Token: 0x040059FF RID: 23039 + Label00, + // Token: 0x04005A00 RID: 23040 + Label01, + // Token: 0x04005A01 RID: 23041 + Label02, + // Token: 0x04005A02 RID: 23042 + Label03, + // Token: 0x04005A03 RID: 23043 + Label04, + // Token: 0x04005A04 RID: 23044 + Label05, + // Token: 0x04005A05 RID: 23045 + Label06, + // Token: 0x04005A06 RID: 23046 + Label07, + // Token: 0x04005A07 RID: 23047 + Label08, + // Token: 0x04005A08 RID: 23048 + Label09, + // Token: 0x04005A09 RID: 23049 + Label10, + // Token: 0x04005A0A RID: 23050 + Label11, + // Token: 0x04005A0B RID: 23051 + Begin = 0, + // Token: 0x04005A0C RID: 23052 + End = 13, + // Token: 0x04005A0D RID: 23053 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeDownloadIDEnum.cs b/Assembly-CSharp/DB/TestmodeDownloadIDEnum.cs new file mode 100644 index 0000000..bef938d --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDownloadIDEnum.cs @@ -0,0 +1,117 @@ +using System; + +namespace DB +{ + // Token: 0x02000894 RID: 2196 + public static class TestmodeDownloadIDEnum + { + // Token: 0x060049A0 RID: 18848 RVA: 0x00188389 File Offset: 0x00187589 + public static bool IsActive(this TestmodeDownloadID self) + { + return self >= TestmodeDownloadID.Title0 && self < TestmodeDownloadID.End && self > TestmodeDownloadID.Title0; + } + + // Token: 0x060049A1 RID: 18849 RVA: 0x0018839A File Offset: 0x0018759A + public static bool IsValid(this TestmodeDownloadID self) + { + return self >= TestmodeDownloadID.Title0 && self < TestmodeDownloadID.End; + } + + // Token: 0x060049A2 RID: 18850 RVA: 0x0018BA00 File Offset: 0x0018AC00 + public static void Clamp(this TestmodeDownloadID self) + { + if (self < TestmodeDownloadID.Title0) + { + self = TestmodeDownloadID.Title0; + return; + } + if (self >= (TestmodeDownloadID)TestmodeDownloadIDEnum.GetEnd()) + { + self = (TestmodeDownloadID)TestmodeDownloadIDEnum.GetEnd(); + } + } + + // Token: 0x060049A3 RID: 18851 RVA: 0x0018BA19 File Offset: 0x0018AC19 + public static int GetEnd(this TestmodeDownloadID self) + { + return TestmodeDownloadIDEnum.GetEnd(); + } + + // Token: 0x060049A4 RID: 18852 RVA: 0x0018BA20 File Offset: 0x0018AC20 + public static TestmodeDownloadID FindID(string enumName) + { + for (TestmodeDownloadID testmodeDownloadID = TestmodeDownloadID.Title0; testmodeDownloadID < TestmodeDownloadID.End; testmodeDownloadID++) + { + if (testmodeDownloadID.GetEnumName() == enumName) + { + return testmodeDownloadID; + } + } + return TestmodeDownloadID.Invalid; + } + + // Token: 0x060049A5 RID: 18853 RVA: 0x0018BA4B File Offset: 0x0018AC4B + public static int GetEnd() + { + return TestmodeDownloadIDEnum.records.Length; + } + + // Token: 0x060049A6 RID: 18854 RVA: 0x0018BA54 File Offset: 0x0018AC54 + public static int GetEnumValue(this TestmodeDownloadID self) + { + if (self.IsValid()) + { + return TestmodeDownloadIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060049A7 RID: 18855 RVA: 0x0018BA6C File Offset: 0x0018AC6C + public static string GetEnumName(this TestmodeDownloadID self) + { + if (self.IsValid()) + { + return TestmodeDownloadIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060049A8 RID: 18856 RVA: 0x0018BA88 File Offset: 0x0018AC88 + public static string GetName(this TestmodeDownloadID self) + { + if (self.IsValid()) + { + return TestmodeDownloadIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060049A9 RID: 18857 RVA: 0x0018BAA4 File Offset: 0x0018ACA4 + public static string GetNameEx(this TestmodeDownloadID self) + { + if (self.IsValid()) + { + return TestmodeDownloadIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005A12 RID: 23058 + private static readonly TestmodeDownloadTableRecord[] records = new TestmodeDownloadTableRecord[] + { + new TestmodeDownloadTableRecord(0, "Title0", "Net下载情况", ""), + new TestmodeDownloadTableRecord(1, "Label00", "Net认证状态", ""), + new TestmodeDownloadTableRecord(2, "Label01", "当前的软件版本", ""), + new TestmodeDownloadTableRecord(3, "Label02", "软件程序下载情况", ""), + new TestmodeDownloadTableRecord(4, "Label03", "下载中的软件版本", ""), + new TestmodeDownloadTableRecord(5, "Label04", "下载进度", ""), + new TestmodeDownloadTableRecord(6, "Label05", "下载开始日期", ""), + new TestmodeDownloadTableRecord(7, "Label06", "发布日期", ""), + new TestmodeDownloadTableRecord(8, "Label07", "数据下载情况", ""), + new TestmodeDownloadTableRecord(9, "Label08", "下载进度", ""), + new TestmodeDownloadTableRecord(10, "Label09", "下载开始日期", ""), + new TestmodeDownloadTableRecord(11, "Label10", "发布日期", ""), + new TestmodeDownloadTableRecord(12, "Label11", "服务器时间", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeDownloadTableRecord.cs b/Assembly-CSharp/DB/TestmodeDownloadTableRecord.cs new file mode 100644 index 0000000..56f0b05 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeDownloadTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000893 RID: 2195 + public class TestmodeDownloadTableRecord + { + // Token: 0x0600499E RID: 18846 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeDownloadTableRecord() + { + } + + // Token: 0x0600499F RID: 18847 RVA: 0x0018B9DB File Offset: 0x0018ABDB + public TestmodeDownloadTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005A0E RID: 23054 + public int EnumValue; + + // Token: 0x04005A0F RID: 23055 + public string EnumName; + + // Token: 0x04005A10 RID: 23056 + public string Name; + + // Token: 0x04005A11 RID: 23057 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeEmoneyAuthID.cs b/Assembly-CSharp/DB/TestmodeEmoneyAuthID.cs new file mode 100644 index 0000000..6eb6cc7 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeEmoneyAuthID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x02000895 RID: 2197 + public enum TestmodeEmoneyAuthID + { + // Token: 0x04005A14 RID: 23060 + Title0, + // Token: 0x04005A15 RID: 23061 + Title1, + // Token: 0x04005A16 RID: 23062 + Title2, + // Token: 0x04005A17 RID: 23063 + Label00, + // Token: 0x04005A18 RID: 23064 + Label01, + // Token: 0x04005A19 RID: 23065 + Begin = 0, + // Token: 0x04005A1A RID: 23066 + End = 5, + // Token: 0x04005A1B RID: 23067 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeEmoneyAuthIDEnum.cs b/Assembly-CSharp/DB/TestmodeEmoneyAuthIDEnum.cs new file mode 100644 index 0000000..508bde9 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeEmoneyAuthIDEnum.cs @@ -0,0 +1,99 @@ +using System; + +namespace DB +{ + // Token: 0x02000897 RID: 2199 + public static class TestmodeEmoneyAuthIDEnum + { + // Token: 0x060049AD RID: 18861 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this TestmodeEmoneyAuthID self) + { + return self >= TestmodeEmoneyAuthID.Title0 && self < TestmodeEmoneyAuthID.End && self > TestmodeEmoneyAuthID.Title0; + } + + // Token: 0x060049AE RID: 18862 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this TestmodeEmoneyAuthID self) + { + return self >= TestmodeEmoneyAuthID.Title0 && self < TestmodeEmoneyAuthID.End; + } + + // Token: 0x060049AF RID: 18863 RVA: 0x0018BC36 File Offset: 0x0018AE36 + public static void Clamp(this TestmodeEmoneyAuthID self) + { + if (self < TestmodeEmoneyAuthID.Title0) + { + self = TestmodeEmoneyAuthID.Title0; + return; + } + if (self >= (TestmodeEmoneyAuthID)TestmodeEmoneyAuthIDEnum.GetEnd()) + { + self = (TestmodeEmoneyAuthID)TestmodeEmoneyAuthIDEnum.GetEnd(); + } + } + + // Token: 0x060049B0 RID: 18864 RVA: 0x0018BC4F File Offset: 0x0018AE4F + public static int GetEnd(this TestmodeEmoneyAuthID self) + { + return TestmodeEmoneyAuthIDEnum.GetEnd(); + } + + // Token: 0x060049B1 RID: 18865 RVA: 0x0018BC58 File Offset: 0x0018AE58 + public static TestmodeEmoneyAuthID FindID(string enumName) + { + for (TestmodeEmoneyAuthID testmodeEmoneyAuthID = TestmodeEmoneyAuthID.Title0; testmodeEmoneyAuthID < TestmodeEmoneyAuthID.End; testmodeEmoneyAuthID++) + { + if (testmodeEmoneyAuthID.GetEnumName() == enumName) + { + return testmodeEmoneyAuthID; + } + } + return TestmodeEmoneyAuthID.Invalid; + } + + // Token: 0x060049B2 RID: 18866 RVA: 0x0018BC82 File Offset: 0x0018AE82 + public static int GetEnd() + { + return TestmodeEmoneyAuthIDEnum.records.Length; + } + + // Token: 0x060049B3 RID: 18867 RVA: 0x0018BC8B File Offset: 0x0018AE8B + public static int GetEnumValue(this TestmodeEmoneyAuthID self) + { + if (self.IsValid()) + { + return TestmodeEmoneyAuthIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060049B4 RID: 18868 RVA: 0x0018BCA3 File Offset: 0x0018AEA3 + public static string GetEnumName(this TestmodeEmoneyAuthID self) + { + if (self.IsValid()) + { + return TestmodeEmoneyAuthIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060049B5 RID: 18869 RVA: 0x0018BCBF File Offset: 0x0018AEBF + public static string GetName(this TestmodeEmoneyAuthID self) + { + if (self.IsValid()) + { + return TestmodeEmoneyAuthIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04005A1F RID: 23071 + private static readonly TestmodeEmoneyAuthTableRecord[] records = new TestmodeEmoneyAuthTableRecord[] + { + new TestmodeEmoneyAuthTableRecord(0, "Title0", "電子決済端末認証"), + new TestmodeEmoneyAuthTableRecord(1, "Title1", ""), + new TestmodeEmoneyAuthTableRecord(2, "Title2", "「認証する」を選ぶと、認証を開始します"), + new TestmodeEmoneyAuthTableRecord(3, "Label00", "認証する"), + new TestmodeEmoneyAuthTableRecord(4, "Label01", "認証しない") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeEmoneyAuthTableRecord.cs b/Assembly-CSharp/DB/TestmodeEmoneyAuthTableRecord.cs new file mode 100644 index 0000000..f8eeb85 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeEmoneyAuthTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x02000896 RID: 2198 + public class TestmodeEmoneyAuthTableRecord + { + // Token: 0x060049AB RID: 18859 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeEmoneyAuthTableRecord() + { + } + + // Token: 0x060049AC RID: 18860 RVA: 0x0018BC19 File Offset: 0x0018AE19 + public TestmodeEmoneyAuthTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005A1C RID: 23068 + public int EnumValue; + + // Token: 0x04005A1D RID: 23069 + public string EnumName; + + // Token: 0x04005A1E RID: 23070 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/TestmodeEmoneyID.cs b/Assembly-CSharp/DB/TestmodeEmoneyID.cs new file mode 100644 index 0000000..b117ff9 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeEmoneyID.cs @@ -0,0 +1,41 @@ +using System; + +namespace DB +{ + // Token: 0x02000898 RID: 2200 + public enum TestmodeEmoneyID + { + // Token: 0x04005A21 RID: 23073 + Title0, + // Token: 0x04005A22 RID: 23074 + Label00, + // Token: 0x04005A23 RID: 23075 + Label01, + // Token: 0x04005A24 RID: 23076 + Label02, + // Token: 0x04005A25 RID: 23077 + Label03, + // Token: 0x04005A26 RID: 23078 + Label04, + // Token: 0x04005A27 RID: 23079 + Label05, + // Token: 0x04005A28 RID: 23080 + Label06, + // Token: 0x04005A29 RID: 23081 + Label07, + // Token: 0x04005A2A RID: 23082 + Label08, + // Token: 0x04005A2B RID: 23083 + Label09, + // Token: 0x04005A2C RID: 23084 + Label10, + // Token: 0x04005A2D RID: 23085 + Label11, + // Token: 0x04005A2E RID: 23086 + Begin = 0, + // Token: 0x04005A2F RID: 23087 + End = 13, + // Token: 0x04005A30 RID: 23088 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeEmoneyIDEnum.cs b/Assembly-CSharp/DB/TestmodeEmoneyIDEnum.cs new file mode 100644 index 0000000..7103bbd --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeEmoneyIDEnum.cs @@ -0,0 +1,117 @@ +using System; + +namespace DB +{ + // Token: 0x0200089A RID: 2202 + public static class TestmodeEmoneyIDEnum + { + // Token: 0x060049B9 RID: 18873 RVA: 0x00188389 File Offset: 0x00187589 + public static bool IsActive(this TestmodeEmoneyID self) + { + return self >= TestmodeEmoneyID.Title0 && self < TestmodeEmoneyID.End && self > TestmodeEmoneyID.Title0; + } + + // Token: 0x060049BA RID: 18874 RVA: 0x0018839A File Offset: 0x0018759A + public static bool IsValid(this TestmodeEmoneyID self) + { + return self >= TestmodeEmoneyID.Title0 && self < TestmodeEmoneyID.End; + } + + // Token: 0x060049BB RID: 18875 RVA: 0x0018BD78 File Offset: 0x0018AF78 + public static void Clamp(this TestmodeEmoneyID self) + { + if (self < TestmodeEmoneyID.Title0) + { + self = TestmodeEmoneyID.Title0; + return; + } + if (self >= (TestmodeEmoneyID)TestmodeEmoneyIDEnum.GetEnd()) + { + self = (TestmodeEmoneyID)TestmodeEmoneyIDEnum.GetEnd(); + } + } + + // Token: 0x060049BC RID: 18876 RVA: 0x0018BD91 File Offset: 0x0018AF91 + public static int GetEnd(this TestmodeEmoneyID self) + { + return TestmodeEmoneyIDEnum.GetEnd(); + } + + // Token: 0x060049BD RID: 18877 RVA: 0x0018BD98 File Offset: 0x0018AF98 + public static TestmodeEmoneyID FindID(string enumName) + { + for (TestmodeEmoneyID testmodeEmoneyID = TestmodeEmoneyID.Title0; testmodeEmoneyID < TestmodeEmoneyID.End; testmodeEmoneyID++) + { + if (testmodeEmoneyID.GetEnumName() == enumName) + { + return testmodeEmoneyID; + } + } + return TestmodeEmoneyID.Invalid; + } + + // Token: 0x060049BE RID: 18878 RVA: 0x0018BDC3 File Offset: 0x0018AFC3 + public static int GetEnd() + { + return TestmodeEmoneyIDEnum.records.Length; + } + + // Token: 0x060049BF RID: 18879 RVA: 0x0018BDCC File Offset: 0x0018AFCC + public static int GetEnumValue(this TestmodeEmoneyID self) + { + if (self.IsValid()) + { + return TestmodeEmoneyIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060049C0 RID: 18880 RVA: 0x0018BDE4 File Offset: 0x0018AFE4 + public static string GetEnumName(this TestmodeEmoneyID self) + { + if (self.IsValid()) + { + return TestmodeEmoneyIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060049C1 RID: 18881 RVA: 0x0018BE00 File Offset: 0x0018B000 + public static string GetName(this TestmodeEmoneyID self) + { + if (self.IsValid()) + { + return TestmodeEmoneyIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060049C2 RID: 18882 RVA: 0x0018BE1C File Offset: 0x0018B01C + public static string GetNameEx(this TestmodeEmoneyID self) + { + if (self.IsValid()) + { + return TestmodeEmoneyIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005A35 RID: 23093 + private static readonly TestmodeEmoneyTableRecord[] records = new TestmodeEmoneyTableRecord[] + { + new TestmodeEmoneyTableRecord(0, "Title0", "電子決済情報", ""), + new TestmodeEmoneyTableRecord(1, "Label00", "端末認証", ""), + new TestmodeEmoneyTableRecord(2, "Label01", "端末撤去", ""), + new TestmodeEmoneyTableRecord(3, "Label02", "終了", ""), + new TestmodeEmoneyTableRecord(4, "Label03", "端末ID", ""), + new TestmodeEmoneyTableRecord(5, "Label04", "ブランド", ""), + new TestmodeEmoneyTableRecord(6, "Label05", "取引履歴", ""), + new TestmodeEmoneyTableRecord(7, "Label06", "", ""), + new TestmodeEmoneyTableRecord(8, "Label07", "", ""), + new TestmodeEmoneyTableRecord(9, "Label08", "", ""), + new TestmodeEmoneyTableRecord(10, "Label09", "", ""), + new TestmodeEmoneyTableRecord(11, "Label10", "", ""), + new TestmodeEmoneyTableRecord(12, "Label11", "", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeEmoneyRemoveID.cs b/Assembly-CSharp/DB/TestmodeEmoneyRemoveID.cs new file mode 100644 index 0000000..7e2646e --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeEmoneyRemoveID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x0200089B RID: 2203 + public enum TestmodeEmoneyRemoveID + { + // Token: 0x04005A37 RID: 23095 + Title0, + // Token: 0x04005A38 RID: 23096 + Title1, + // Token: 0x04005A39 RID: 23097 + Title2, + // Token: 0x04005A3A RID: 23098 + Label00, + // Token: 0x04005A3B RID: 23099 + Label01, + // Token: 0x04005A3C RID: 23100 + Begin = 0, + // Token: 0x04005A3D RID: 23101 + End = 5, + // Token: 0x04005A3E RID: 23102 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeEmoneyRemoveIDEnum.cs b/Assembly-CSharp/DB/TestmodeEmoneyRemoveIDEnum.cs new file mode 100644 index 0000000..f54a0fc --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeEmoneyRemoveIDEnum.cs @@ -0,0 +1,99 @@ +using System; + +namespace DB +{ + // Token: 0x0200089D RID: 2205 + public static class TestmodeEmoneyRemoveIDEnum + { + // Token: 0x060049C6 RID: 18886 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this TestmodeEmoneyRemoveID self) + { + return self >= TestmodeEmoneyRemoveID.Title0 && self < TestmodeEmoneyRemoveID.End && self > TestmodeEmoneyRemoveID.Title0; + } + + // Token: 0x060049C7 RID: 18887 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this TestmodeEmoneyRemoveID self) + { + return self >= TestmodeEmoneyRemoveID.Title0 && self < TestmodeEmoneyRemoveID.End; + } + + // Token: 0x060049C8 RID: 18888 RVA: 0x0018BFAE File Offset: 0x0018B1AE + public static void Clamp(this TestmodeEmoneyRemoveID self) + { + if (self < TestmodeEmoneyRemoveID.Title0) + { + self = TestmodeEmoneyRemoveID.Title0; + return; + } + if (self >= (TestmodeEmoneyRemoveID)TestmodeEmoneyRemoveIDEnum.GetEnd()) + { + self = (TestmodeEmoneyRemoveID)TestmodeEmoneyRemoveIDEnum.GetEnd(); + } + } + + // Token: 0x060049C9 RID: 18889 RVA: 0x0018BFC7 File Offset: 0x0018B1C7 + public static int GetEnd(this TestmodeEmoneyRemoveID self) + { + return TestmodeEmoneyRemoveIDEnum.GetEnd(); + } + + // Token: 0x060049CA RID: 18890 RVA: 0x0018BFD0 File Offset: 0x0018B1D0 + public static TestmodeEmoneyRemoveID FindID(string enumName) + { + for (TestmodeEmoneyRemoveID testmodeEmoneyRemoveID = TestmodeEmoneyRemoveID.Title0; testmodeEmoneyRemoveID < TestmodeEmoneyRemoveID.End; testmodeEmoneyRemoveID++) + { + if (testmodeEmoneyRemoveID.GetEnumName() == enumName) + { + return testmodeEmoneyRemoveID; + } + } + return TestmodeEmoneyRemoveID.Invalid; + } + + // Token: 0x060049CB RID: 18891 RVA: 0x0018BFFA File Offset: 0x0018B1FA + public static int GetEnd() + { + return TestmodeEmoneyRemoveIDEnum.records.Length; + } + + // Token: 0x060049CC RID: 18892 RVA: 0x0018C003 File Offset: 0x0018B203 + public static int GetEnumValue(this TestmodeEmoneyRemoveID self) + { + if (self.IsValid()) + { + return TestmodeEmoneyRemoveIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060049CD RID: 18893 RVA: 0x0018C01B File Offset: 0x0018B21B + public static string GetEnumName(this TestmodeEmoneyRemoveID self) + { + if (self.IsValid()) + { + return TestmodeEmoneyRemoveIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060049CE RID: 18894 RVA: 0x0018C037 File Offset: 0x0018B237 + public static string GetName(this TestmodeEmoneyRemoveID self) + { + if (self.IsValid()) + { + return TestmodeEmoneyRemoveIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04005A42 RID: 23106 + private static readonly TestmodeEmoneyRemoveTableRecord[] records = new TestmodeEmoneyRemoveTableRecord[] + { + new TestmodeEmoneyRemoveTableRecord(0, "Title0", "電子決済端末撤去"), + new TestmodeEmoneyRemoveTableRecord(1, "Title1", ""), + new TestmodeEmoneyRemoveTableRecord(2, "Title2", "「撤去する」を選ぶと、端末撤去を開始します"), + new TestmodeEmoneyRemoveTableRecord(3, "Label00", "撤去する"), + new TestmodeEmoneyRemoveTableRecord(4, "Label01", "撤去しない") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeEmoneyRemoveTableRecord.cs b/Assembly-CSharp/DB/TestmodeEmoneyRemoveTableRecord.cs new file mode 100644 index 0000000..2bbc051 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeEmoneyRemoveTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x0200089C RID: 2204 + public class TestmodeEmoneyRemoveTableRecord + { + // Token: 0x060049C4 RID: 18884 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeEmoneyRemoveTableRecord() + { + } + + // Token: 0x060049C5 RID: 18885 RVA: 0x0018BF91 File Offset: 0x0018B191 + public TestmodeEmoneyRemoveTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005A3F RID: 23103 + public int EnumValue; + + // Token: 0x04005A40 RID: 23104 + public string EnumName; + + // Token: 0x04005A41 RID: 23105 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/TestmodeEmoneyTableRecord.cs b/Assembly-CSharp/DB/TestmodeEmoneyTableRecord.cs new file mode 100644 index 0000000..76b5950 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeEmoneyTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x02000899 RID: 2201 + public class TestmodeEmoneyTableRecord + { + // Token: 0x060049B7 RID: 18871 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeEmoneyTableRecord() + { + } + + // Token: 0x060049B8 RID: 18872 RVA: 0x0018BD53 File Offset: 0x0018AF53 + public TestmodeEmoneyTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005A31 RID: 23089 + public int EnumValue; + + // Token: 0x04005A32 RID: 23090 + public string EnumName; + + // Token: 0x04005A33 RID: 23091 + public string Name; + + // Token: 0x04005A34 RID: 23092 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeGamesettingID.cs b/Assembly-CSharp/DB/TestmodeGamesettingID.cs new file mode 100644 index 0000000..57eb847 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeGamesettingID.cs @@ -0,0 +1,35 @@ +using System; + +namespace DB +{ + // Token: 0x0200089E RID: 2206 + public enum TestmodeGamesettingID + { + // Token: 0x04005A44 RID: 23108 + Title0, + // Token: 0x04005A45 RID: 23109 + Label00, + // Token: 0x04005A46 RID: 23110 + Label01, + // Token: 0x04005A47 RID: 23111 + Label02, + // Token: 0x04005A48 RID: 23112 + Label03, + // Token: 0x04005A49 RID: 23113 + Label04, + // Token: 0x04005A4A RID: 23114 + Label05, + // Token: 0x04005A4B RID: 23115 + Label06, + // Token: 0x04005A4C RID: 23116 + Label00_00, + // Token: 0x04005A4D RID: 23117 + Label00_01, + // Token: 0x04005A4E RID: 23118 + Begin = 0, + // Token: 0x04005A4F RID: 23119 + End = 10, + // Token: 0x04005A50 RID: 23120 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeGamesettingIDEnum.cs b/Assembly-CSharp/DB/TestmodeGamesettingIDEnum.cs new file mode 100644 index 0000000..a4b953b --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeGamesettingIDEnum.cs @@ -0,0 +1,114 @@ +using System; + +namespace DB +{ + // Token: 0x020008A0 RID: 2208 + public static class TestmodeGamesettingIDEnum + { + // Token: 0x060049D2 RID: 18898 RVA: 0x001784B0 File Offset: 0x001776B0 + public static bool IsActive(this TestmodeGamesettingID self) + { + return self >= TestmodeGamesettingID.Title0 && self < TestmodeGamesettingID.End && self > TestmodeGamesettingID.Title0; + } + + // Token: 0x060049D3 RID: 18899 RVA: 0x001784C1 File Offset: 0x001776C1 + public static bool IsValid(this TestmodeGamesettingID self) + { + return self >= TestmodeGamesettingID.Title0 && self < TestmodeGamesettingID.End; + } + + // Token: 0x060049D4 RID: 18900 RVA: 0x0018C0F0 File Offset: 0x0018B2F0 + public static void Clamp(this TestmodeGamesettingID self) + { + if (self < TestmodeGamesettingID.Title0) + { + self = TestmodeGamesettingID.Title0; + return; + } + if (self >= (TestmodeGamesettingID)TestmodeGamesettingIDEnum.GetEnd()) + { + self = (TestmodeGamesettingID)TestmodeGamesettingIDEnum.GetEnd(); + } + } + + // Token: 0x060049D5 RID: 18901 RVA: 0x0018C109 File Offset: 0x0018B309 + public static int GetEnd(this TestmodeGamesettingID self) + { + return TestmodeGamesettingIDEnum.GetEnd(); + } + + // Token: 0x060049D6 RID: 18902 RVA: 0x0018C110 File Offset: 0x0018B310 + public static TestmodeGamesettingID FindID(string enumName) + { + for (TestmodeGamesettingID testmodeGamesettingID = TestmodeGamesettingID.Title0; testmodeGamesettingID < TestmodeGamesettingID.End; testmodeGamesettingID++) + { + if (testmodeGamesettingID.GetEnumName() == enumName) + { + return testmodeGamesettingID; + } + } + return TestmodeGamesettingID.Invalid; + } + + // Token: 0x060049D7 RID: 18903 RVA: 0x0018C13B File Offset: 0x0018B33B + public static int GetEnd() + { + return TestmodeGamesettingIDEnum.records.Length; + } + + // Token: 0x060049D8 RID: 18904 RVA: 0x0018C144 File Offset: 0x0018B344 + public static int GetEnumValue(this TestmodeGamesettingID self) + { + if (self.IsValid()) + { + return TestmodeGamesettingIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060049D9 RID: 18905 RVA: 0x0018C15C File Offset: 0x0018B35C + public static string GetEnumName(this TestmodeGamesettingID self) + { + if (self.IsValid()) + { + return TestmodeGamesettingIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060049DA RID: 18906 RVA: 0x0018C178 File Offset: 0x0018B378 + public static string GetName(this TestmodeGamesettingID self) + { + if (self.IsValid()) + { + return TestmodeGamesettingIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060049DB RID: 18907 RVA: 0x0018C194 File Offset: 0x0018B394 + public static string GetNameEx(this TestmodeGamesettingID self) + { + if (self.IsValid()) + { + return TestmodeGamesettingIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005A55 RID: 23125 + private static readonly TestmodeGamesettingTableRecord[] records = new TestmodeGamesettingTableRecord[] + { + new TestmodeGamesettingTableRecord(0, "Title0", "游戏设置", ""), + new TestmodeGamesettingTableRecord(1, "Label00", "店内招募设置", ""), + new TestmodeGamesettingTableRecord(2, "Label01", "设定群组内的标准机", ""), + new TestmodeGamesettingTableRecord(3, "Label02", "大会模式", ""), + new TestmodeGamesettingTableRecord(4, "Label03", "大会模式乐曲数", ""), + new TestmodeGamesettingTableRecord(5, "Label04", "续关设置", ""), + new TestmodeGamesettingTableRecord(6, "Label05", "片头音量设置", ""), + new TestmodeGamesettingTableRecord(7, "Label06", "离开", ""), + new TestmodeGamesettingTableRecord(8, "Label00_00", "标准设定机", ""), + new TestmodeGamesettingTableRecord(9, "Label00_01", "依照标准设定机", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeGamesettingTableRecord.cs b/Assembly-CSharp/DB/TestmodeGamesettingTableRecord.cs new file mode 100644 index 0000000..926b808 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeGamesettingTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x0200089F RID: 2207 + public class TestmodeGamesettingTableRecord + { + // Token: 0x060049D0 RID: 18896 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeGamesettingTableRecord() + { + } + + // Token: 0x060049D1 RID: 18897 RVA: 0x0018C0CB File Offset: 0x0018B2CB + public TestmodeGamesettingTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005A51 RID: 23121 + public int EnumValue; + + // Token: 0x04005A52 RID: 23122 + public string EnumName; + + // Token: 0x04005A53 RID: 23123 + public string Name; + + // Token: 0x04005A54 RID: 23124 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeGenericID.cs b/Assembly-CSharp/DB/TestmodeGenericID.cs new file mode 100644 index 0000000..27e06d2 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeGenericID.cs @@ -0,0 +1,25 @@ +using System; + +namespace DB +{ + // Token: 0x020008A1 RID: 2209 + public enum TestmodeGenericID + { + // Token: 0x04005A57 RID: 23127 + OpTypeSelect, + // Token: 0x04005A58 RID: 23128 + OpTypeTextExit, + // Token: 0x04005A59 RID: 23129 + OpTypeTestServiceExit, + // Token: 0x04005A5A RID: 23130 + OpTypeTextContinue, + // Token: 0x04005A5B RID: 23131 + OpTypeServiceAbort, + // Token: 0x04005A5C RID: 23132 + Begin = 0, + // Token: 0x04005A5D RID: 23133 + End = 5, + // Token: 0x04005A5E RID: 23134 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeGenericIDEnum.cs b/Assembly-CSharp/DB/TestmodeGenericIDEnum.cs new file mode 100644 index 0000000..960978b --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeGenericIDEnum.cs @@ -0,0 +1,109 @@ +using System; + +namespace DB +{ + // Token: 0x020008A3 RID: 2211 + public static class TestmodeGenericIDEnum + { + // Token: 0x060049DF RID: 18911 RVA: 0x00173AF6 File Offset: 0x00172CF6 + public static bool IsActive(this TestmodeGenericID self) + { + return self >= TestmodeGenericID.OpTypeSelect && self < TestmodeGenericID.End && self > TestmodeGenericID.OpTypeSelect; + } + + // Token: 0x060049E0 RID: 18912 RVA: 0x00173B06 File Offset: 0x00172D06 + public static bool IsValid(this TestmodeGenericID self) + { + return self >= TestmodeGenericID.OpTypeSelect && self < TestmodeGenericID.End; + } + + // Token: 0x060049E1 RID: 18913 RVA: 0x0018C2E0 File Offset: 0x0018B4E0 + public static void Clamp(this TestmodeGenericID self) + { + if (self < TestmodeGenericID.OpTypeSelect) + { + self = TestmodeGenericID.OpTypeSelect; + return; + } + if (self >= (TestmodeGenericID)TestmodeGenericIDEnum.GetEnd()) + { + self = (TestmodeGenericID)TestmodeGenericIDEnum.GetEnd(); + } + } + + // Token: 0x060049E2 RID: 18914 RVA: 0x0018C2F9 File Offset: 0x0018B4F9 + public static int GetEnd(this TestmodeGenericID self) + { + return TestmodeGenericIDEnum.GetEnd(); + } + + // Token: 0x060049E3 RID: 18915 RVA: 0x0018C300 File Offset: 0x0018B500 + public static TestmodeGenericID FindID(string enumName) + { + for (TestmodeGenericID testmodeGenericID = TestmodeGenericID.OpTypeSelect; testmodeGenericID < TestmodeGenericID.End; testmodeGenericID++) + { + if (testmodeGenericID.GetEnumName() == enumName) + { + return testmodeGenericID; + } + } + return TestmodeGenericID.Invalid; + } + + // Token: 0x060049E4 RID: 18916 RVA: 0x0018C32A File Offset: 0x0018B52A + public static int GetEnd() + { + return TestmodeGenericIDEnum.records.Length; + } + + // Token: 0x060049E5 RID: 18917 RVA: 0x0018C333 File Offset: 0x0018B533 + public static int GetEnumValue(this TestmodeGenericID self) + { + if (self.IsValid()) + { + return TestmodeGenericIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060049E6 RID: 18918 RVA: 0x0018C34B File Offset: 0x0018B54B + public static string GetEnumName(this TestmodeGenericID self) + { + if (self.IsValid()) + { + return TestmodeGenericIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060049E7 RID: 18919 RVA: 0x0018C367 File Offset: 0x0018B567 + public static string GetName(this TestmodeGenericID self) + { + if (self.IsValid()) + { + return TestmodeGenericIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060049E8 RID: 18920 RVA: 0x0018C383 File Offset: 0x0018B583 + public static string GetNameEx(this TestmodeGenericID self) + { + if (self.IsValid()) + { + return TestmodeGenericIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005A63 RID: 23139 + private static readonly TestmodeGenericTableRecord[] records = new TestmodeGenericTableRecord[] + { + new TestmodeGenericTableRecord(0, "OpTypeSelect", "按服务键选择后 按测试键确定", "SELECT WITH SERVICE BUTTON, \nAND PRESS TEST BUTTON"), + new TestmodeGenericTableRecord(1, "OpTypeTextExit", "按测试键离开", "PRESS TEST BUTTON TO EXIT"), + new TestmodeGenericTableRecord(2, "OpTypeTestServiceExit", "同时按测试键和服务键离开", "PRESS TEST AND SERVICE BUTTON TO EXIT"), + new TestmodeGenericTableRecord(3, "OpTypeTextContinue", "请按测试键继续", "PRESS TEST BUTTON TO CONTINUE"), + new TestmodeGenericTableRecord(4, "OpTypeServiceAbort", "同时按测试键和服务键中断", "PRESS TEST AND SERVICE BUTTON TO ABORT") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeGenericTableRecord.cs b/Assembly-CSharp/DB/TestmodeGenericTableRecord.cs new file mode 100644 index 0000000..00a0d25 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeGenericTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x020008A2 RID: 2210 + public class TestmodeGenericTableRecord + { + // Token: 0x060049DD RID: 18909 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeGenericTableRecord() + { + } + + // Token: 0x060049DE RID: 18910 RVA: 0x0018C2BB File Offset: 0x0018B4BB + public TestmodeGenericTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005A5F RID: 23135 + public int EnumValue; + + // Token: 0x04005A60 RID: 23136 + public string EnumName; + + // Token: 0x04005A61 RID: 23137 + public string Name; + + // Token: 0x04005A62 RID: 23138 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeInputID.cs b/Assembly-CSharp/DB/TestmodeInputID.cs new file mode 100644 index 0000000..cd7b779 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeInputID.cs @@ -0,0 +1,57 @@ +using System; + +namespace DB +{ + // Token: 0x020008A4 RID: 2212 + public enum TestmodeInputID + { + // Token: 0x04005A65 RID: 23141 + Title0, + // Token: 0x04005A66 RID: 23142 + Label00, + // Token: 0x04005A67 RID: 23143 + Label01, + // Token: 0x04005A68 RID: 23144 + Label02, + // Token: 0x04005A69 RID: 23145 + Label03, + // Token: 0x04005A6A RID: 23146 + Label04, + // Token: 0x04005A6B RID: 23147 + Label05, + // Token: 0x04005A6C RID: 23148 + Label06, + // Token: 0x04005A6D RID: 23149 + Label07, + // Token: 0x04005A6E RID: 23150 + Label08, + // Token: 0x04005A6F RID: 23151 + Label09, + // Token: 0x04005A70 RID: 23152 + Label10, + // Token: 0x04005A71 RID: 23153 + Label11, + // Token: 0x04005A72 RID: 23154 + Label12, + // Token: 0x04005A73 RID: 23155 + Label13, + // Token: 0x04005A74 RID: 23156 + Label14, + // Token: 0x04005A75 RID: 23157 + Label15, + // Token: 0x04005A76 RID: 23158 + Label16, + // Token: 0x04005A77 RID: 23159 + Label17, + // Token: 0x04005A78 RID: 23160 + Label18, + // Token: 0x04005A79 RID: 23161 + Label19, + // Token: 0x04005A7A RID: 23162 + Begin = 0, + // Token: 0x04005A7B RID: 23163 + End = 21, + // Token: 0x04005A7C RID: 23164 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeInputIDEnum.cs b/Assembly-CSharp/DB/TestmodeInputIDEnum.cs new file mode 100644 index 0000000..e0869fe --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeInputIDEnum.cs @@ -0,0 +1,125 @@ +using System; + +namespace DB +{ + // Token: 0x020008A6 RID: 2214 + public static class TestmodeInputIDEnum + { + // Token: 0x060049EC RID: 18924 RVA: 0x00183F23 File Offset: 0x00183123 + public static bool IsActive(this TestmodeInputID self) + { + return self >= TestmodeInputID.Title0 && self < TestmodeInputID.End && self > TestmodeInputID.Title0; + } + + // Token: 0x060049ED RID: 18925 RVA: 0x00183F34 File Offset: 0x00183134 + public static bool IsValid(this TestmodeInputID self) + { + return self >= TestmodeInputID.Title0 && self < TestmodeInputID.End; + } + + // Token: 0x060049EE RID: 18926 RVA: 0x0018C455 File Offset: 0x0018B655 + public static void Clamp(this TestmodeInputID self) + { + if (self < TestmodeInputID.Title0) + { + self = TestmodeInputID.Title0; + return; + } + if (self >= (TestmodeInputID)TestmodeInputIDEnum.GetEnd()) + { + self = (TestmodeInputID)TestmodeInputIDEnum.GetEnd(); + } + } + + // Token: 0x060049EF RID: 18927 RVA: 0x0018C46E File Offset: 0x0018B66E + public static int GetEnd(this TestmodeInputID self) + { + return TestmodeInputIDEnum.GetEnd(); + } + + // Token: 0x060049F0 RID: 18928 RVA: 0x0018C478 File Offset: 0x0018B678 + public static TestmodeInputID FindID(string enumName) + { + for (TestmodeInputID testmodeInputID = TestmodeInputID.Title0; testmodeInputID < TestmodeInputID.End; testmodeInputID++) + { + if (testmodeInputID.GetEnumName() == enumName) + { + return testmodeInputID; + } + } + return TestmodeInputID.Invalid; + } + + // Token: 0x060049F1 RID: 18929 RVA: 0x0018C4A3 File Offset: 0x0018B6A3 + public static int GetEnd() + { + return TestmodeInputIDEnum.records.Length; + } + + // Token: 0x060049F2 RID: 18930 RVA: 0x0018C4AC File Offset: 0x0018B6AC + public static int GetEnumValue(this TestmodeInputID self) + { + if (self.IsValid()) + { + return TestmodeInputIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x060049F3 RID: 18931 RVA: 0x0018C4C4 File Offset: 0x0018B6C4 + public static string GetEnumName(this TestmodeInputID self) + { + if (self.IsValid()) + { + return TestmodeInputIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x060049F4 RID: 18932 RVA: 0x0018C4E0 File Offset: 0x0018B6E0 + public static string GetName(this TestmodeInputID self) + { + if (self.IsValid()) + { + return TestmodeInputIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x060049F5 RID: 18933 RVA: 0x0018C4FC File Offset: 0x0018B6FC + public static string GetNameEx(this TestmodeInputID self) + { + if (self.IsValid()) + { + return TestmodeInputIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005A81 RID: 23169 + private static readonly TestmodeInputTableRecord[] records = new TestmodeInputTableRecord[] + { + new TestmodeInputTableRecord(0, "Title0", "输入测试", ""), + new TestmodeInputTableRecord(1, "Label00", "键1(1P)", ""), + new TestmodeInputTableRecord(2, "Label01", "键2(1P)", ""), + new TestmodeInputTableRecord(3, "Label02", "键3(1P)", ""), + new TestmodeInputTableRecord(4, "Label03", "键4(1P)", ""), + new TestmodeInputTableRecord(5, "Label04", "键5(1P)", ""), + new TestmodeInputTableRecord(6, "Label05", "键6(1P)", ""), + new TestmodeInputTableRecord(7, "Label06", "键7(1P)", ""), + new TestmodeInputTableRecord(8, "Label07", "键8(1P)", ""), + new TestmodeInputTableRecord(9, "Label08", "选择键(1P)", ""), + new TestmodeInputTableRecord(10, "Label09", "键1(2P)", ""), + new TestmodeInputTableRecord(11, "Label10", "键2(2P)", ""), + new TestmodeInputTableRecord(12, "Label11", "键3(2P)", ""), + new TestmodeInputTableRecord(13, "Label12", "键4(2P)", ""), + new TestmodeInputTableRecord(14, "Label13", "键5(2P)", ""), + new TestmodeInputTableRecord(15, "Label14", "键6(2P)", ""), + new TestmodeInputTableRecord(16, "Label15", "键7(2P)", ""), + new TestmodeInputTableRecord(17, "Label16", "键8(2P)", ""), + new TestmodeInputTableRecord(18, "Label17", "选择键(2P)", ""), + new TestmodeInputTableRecord(19, "Label18", "服务键", ""), + new TestmodeInputTableRecord(20, "Label19", "测试键", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeInputTableRecord.cs b/Assembly-CSharp/DB/TestmodeInputTableRecord.cs new file mode 100644 index 0000000..706835d --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeInputTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x020008A5 RID: 2213 + public class TestmodeInputTableRecord + { + // Token: 0x060049EA RID: 18922 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeInputTableRecord() + { + } + + // Token: 0x060049EB RID: 18923 RVA: 0x0018C430 File Offset: 0x0018B630 + public TestmodeInputTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005A7D RID: 23165 + public int EnumValue; + + // Token: 0x04005A7E RID: 23166 + public string EnumName; + + // Token: 0x04005A7F RID: 23167 + public string Name; + + // Token: 0x04005A80 RID: 23168 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeMonitorID.cs b/Assembly-CSharp/DB/TestmodeMonitorID.cs new file mode 100644 index 0000000..ad688f4 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeMonitorID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x020008A7 RID: 2215 + public enum TestmodeMonitorID + { + // Token: 0x04005A83 RID: 23171 + Title0, + // Token: 0x04005A84 RID: 23172 + Label00, + // Token: 0x04005A85 RID: 23173 + Begin = 0, + // Token: 0x04005A86 RID: 23174 + End = 2, + // Token: 0x04005A87 RID: 23175 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeMonitorIDEnum.cs b/Assembly-CSharp/DB/TestmodeMonitorIDEnum.cs new file mode 100644 index 0000000..326a365 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeMonitorIDEnum.cs @@ -0,0 +1,106 @@ +using System; + +namespace DB +{ + // Token: 0x020008A9 RID: 2217 + public static class TestmodeMonitorIDEnum + { + // Token: 0x060049F9 RID: 18937 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this TestmodeMonitorID self) + { + return self >= TestmodeMonitorID.Title0 && self < TestmodeMonitorID.End && self > TestmodeMonitorID.Title0; + } + + // Token: 0x060049FA RID: 18938 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this TestmodeMonitorID self) + { + return self >= TestmodeMonitorID.Title0 && self < TestmodeMonitorID.End; + } + + // Token: 0x060049FB RID: 18939 RVA: 0x0018C766 File Offset: 0x0018B966 + public static void Clamp(this TestmodeMonitorID self) + { + if (self < TestmodeMonitorID.Title0) + { + self = TestmodeMonitorID.Title0; + return; + } + if (self >= (TestmodeMonitorID)TestmodeMonitorIDEnum.GetEnd()) + { + self = (TestmodeMonitorID)TestmodeMonitorIDEnum.GetEnd(); + } + } + + // Token: 0x060049FC RID: 18940 RVA: 0x0018C77F File Offset: 0x0018B97F + public static int GetEnd(this TestmodeMonitorID self) + { + return TestmodeMonitorIDEnum.GetEnd(); + } + + // Token: 0x060049FD RID: 18941 RVA: 0x0018C788 File Offset: 0x0018B988 + public static TestmodeMonitorID FindID(string enumName) + { + for (TestmodeMonitorID testmodeMonitorID = TestmodeMonitorID.Title0; testmodeMonitorID < TestmodeMonitorID.End; testmodeMonitorID++) + { + if (testmodeMonitorID.GetEnumName() == enumName) + { + return testmodeMonitorID; + } + } + return TestmodeMonitorID.Invalid; + } + + // Token: 0x060049FE RID: 18942 RVA: 0x0018C7B2 File Offset: 0x0018B9B2 + public static int GetEnd() + { + return TestmodeMonitorIDEnum.records.Length; + } + + // Token: 0x060049FF RID: 18943 RVA: 0x0018C7BB File Offset: 0x0018B9BB + public static int GetEnumValue(this TestmodeMonitorID self) + { + if (self.IsValid()) + { + return TestmodeMonitorIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004A00 RID: 18944 RVA: 0x0018C7D3 File Offset: 0x0018B9D3 + public static string GetEnumName(this TestmodeMonitorID self) + { + if (self.IsValid()) + { + return TestmodeMonitorIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004A01 RID: 18945 RVA: 0x0018C7EF File Offset: 0x0018B9EF + public static string GetName(this TestmodeMonitorID self) + { + if (self.IsValid()) + { + return TestmodeMonitorIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004A02 RID: 18946 RVA: 0x0018C80B File Offset: 0x0018BA0B + public static string GetNameEx(this TestmodeMonitorID self) + { + if (self.IsValid()) + { + return TestmodeMonitorIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005A8C RID: 23180 + private static readonly TestmodeMonitorTableRecord[] records = new TestmodeMonitorTableRecord[] + { + new TestmodeMonitorTableRecord(0, "Title0", "显示器测试", ""), + new TestmodeMonitorTableRecord(1, "Label00", "", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeMonitorTableRecord.cs b/Assembly-CSharp/DB/TestmodeMonitorTableRecord.cs new file mode 100644 index 0000000..1d45cd5 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeMonitorTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x020008A8 RID: 2216 + public class TestmodeMonitorTableRecord + { + // Token: 0x060049F7 RID: 18935 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeMonitorTableRecord() + { + } + + // Token: 0x060049F8 RID: 18936 RVA: 0x0018C741 File Offset: 0x0018B941 + public TestmodeMonitorTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005A88 RID: 23176 + public int EnumValue; + + // Token: 0x04005A89 RID: 23177 + public string EnumName; + + // Token: 0x04005A8A RID: 23178 + public string Name; + + // Token: 0x04005A8B RID: 23179 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeNetworkID.cs b/Assembly-CSharp/DB/TestmodeNetworkID.cs new file mode 100644 index 0000000..28dd072 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeNetworkID.cs @@ -0,0 +1,33 @@ +using System; + +namespace DB +{ + // Token: 0x020008AA RID: 2218 + public enum TestmodeNetworkID + { + // Token: 0x04005A8E RID: 23182 + Title0, + // Token: 0x04005A8F RID: 23183 + Label00, + // Token: 0x04005A90 RID: 23184 + Label01, + // Token: 0x04005A91 RID: 23185 + Label02, + // Token: 0x04005A92 RID: 23186 + Label03, + // Token: 0x04005A93 RID: 23187 + Label04, + // Token: 0x04005A94 RID: 23188 + Label05, + // Token: 0x04005A95 RID: 23189 + Label06, + // Token: 0x04005A96 RID: 23190 + Label07, + // Token: 0x04005A97 RID: 23191 + Begin = 0, + // Token: 0x04005A98 RID: 23192 + End = 9, + // Token: 0x04005A99 RID: 23193 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeNetworkIDEnum.cs b/Assembly-CSharp/DB/TestmodeNetworkIDEnum.cs new file mode 100644 index 0000000..a2dd006 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeNetworkIDEnum.cs @@ -0,0 +1,113 @@ +using System; + +namespace DB +{ + // Token: 0x020008AC RID: 2220 + public static class TestmodeNetworkIDEnum + { + // Token: 0x06004A06 RID: 18950 RVA: 0x0017E647 File Offset: 0x0017D847 + public static bool IsActive(this TestmodeNetworkID self) + { + return self >= TestmodeNetworkID.Title0 && self < TestmodeNetworkID.End && self > TestmodeNetworkID.Title0; + } + + // Token: 0x06004A07 RID: 18951 RVA: 0x0017E658 File Offset: 0x0017D858 + public static bool IsValid(this TestmodeNetworkID self) + { + return self >= TestmodeNetworkID.Title0 && self < TestmodeNetworkID.End; + } + + // Token: 0x06004A08 RID: 18952 RVA: 0x0018C889 File Offset: 0x0018BA89 + public static void Clamp(this TestmodeNetworkID self) + { + if (self < TestmodeNetworkID.Title0) + { + self = TestmodeNetworkID.Title0; + return; + } + if (self >= (TestmodeNetworkID)TestmodeNetworkIDEnum.GetEnd()) + { + self = (TestmodeNetworkID)TestmodeNetworkIDEnum.GetEnd(); + } + } + + // Token: 0x06004A09 RID: 18953 RVA: 0x0018C8A2 File Offset: 0x0018BAA2 + public static int GetEnd(this TestmodeNetworkID self) + { + return TestmodeNetworkIDEnum.GetEnd(); + } + + // Token: 0x06004A0A RID: 18954 RVA: 0x0018C8AC File Offset: 0x0018BAAC + public static TestmodeNetworkID FindID(string enumName) + { + for (TestmodeNetworkID testmodeNetworkID = TestmodeNetworkID.Title0; testmodeNetworkID < TestmodeNetworkID.End; testmodeNetworkID++) + { + if (testmodeNetworkID.GetEnumName() == enumName) + { + return testmodeNetworkID; + } + } + return TestmodeNetworkID.Invalid; + } + + // Token: 0x06004A0B RID: 18955 RVA: 0x0018C8D7 File Offset: 0x0018BAD7 + public static int GetEnd() + { + return TestmodeNetworkIDEnum.records.Length; + } + + // Token: 0x06004A0C RID: 18956 RVA: 0x0018C8E0 File Offset: 0x0018BAE0 + public static int GetEnumValue(this TestmodeNetworkID self) + { + if (self.IsValid()) + { + return TestmodeNetworkIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004A0D RID: 18957 RVA: 0x0018C8F8 File Offset: 0x0018BAF8 + public static string GetEnumName(this TestmodeNetworkID self) + { + if (self.IsValid()) + { + return TestmodeNetworkIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004A0E RID: 18958 RVA: 0x0018C914 File Offset: 0x0018BB14 + public static string GetName(this TestmodeNetworkID self) + { + if (self.IsValid()) + { + return TestmodeNetworkIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004A0F RID: 18959 RVA: 0x0018C930 File Offset: 0x0018BB30 + public static string GetNameEx(this TestmodeNetworkID self) + { + if (self.IsValid()) + { + return TestmodeNetworkIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005A9E RID: 23198 + private static readonly TestmodeNetworkTableRecord[] records = new TestmodeNetworkTableRecord[] + { + new TestmodeNetworkTableRecord(0, "Title0", "网络测试", ""), + new TestmodeNetworkTableRecord(1, "Label00", "IP ADDRESS", ""), + new TestmodeNetworkTableRecord(2, "Label01", "GATEWAY", ""), + new TestmodeNetworkTableRecord(3, "Label02", "DNS(LAN)", ""), + new TestmodeNetworkTableRecord(4, "Label03", "HOPS", ""), + new TestmodeNetworkTableRecord(5, "Label04", "LINE TYPE", ""), + new TestmodeNetworkTableRecord(6, "Label05", "Net认证", ""), + new TestmodeNetworkTableRecord(7, "Label06", "会员服务器", ""), + new TestmodeNetworkTableRecord(8, "Label07", "标题服务器", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeNetworkTableRecord.cs b/Assembly-CSharp/DB/TestmodeNetworkTableRecord.cs new file mode 100644 index 0000000..58f9cad --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeNetworkTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x020008AB RID: 2219 + public class TestmodeNetworkTableRecord + { + // Token: 0x06004A04 RID: 18948 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeNetworkTableRecord() + { + } + + // Token: 0x06004A05 RID: 18949 RVA: 0x0018C864 File Offset: 0x0018BA64 + public TestmodeNetworkTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005A9A RID: 23194 + public int EnumValue; + + // Token: 0x04005A9B RID: 23195 + public string EnumName; + + // Token: 0x04005A9C RID: 23196 + public string Name; + + // Token: 0x04005A9D RID: 23197 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeOutputID.cs b/Assembly-CSharp/DB/TestmodeOutputID.cs new file mode 100644 index 0000000..ef7444f --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeOutputID.cs @@ -0,0 +1,49 @@ +using System; + +namespace DB +{ + // Token: 0x020008AD RID: 2221 + public enum TestmodeOutputID + { + // Token: 0x04005AA0 RID: 23200 + Title0, + // Token: 0x04005AA1 RID: 23201 + Label00, + // Token: 0x04005AA2 RID: 23202 + Label01, + // Token: 0x04005AA3 RID: 23203 + Label02, + // Token: 0x04005AA4 RID: 23204 + Label03, + // Token: 0x04005AA5 RID: 23205 + Label04, + // Token: 0x04005AA6 RID: 23206 + Label05, + // Token: 0x04005AA7 RID: 23207 + Label06, + // Token: 0x04005AA8 RID: 23208 + Label07, + // Token: 0x04005AA9 RID: 23209 + Label08, + // Token: 0x04005AAA RID: 23210 + Label09, + // Token: 0x04005AAB RID: 23211 + Label10, + // Token: 0x04005AAC RID: 23212 + Label11, + // Token: 0x04005AAD RID: 23213 + Label12, + // Token: 0x04005AAE RID: 23214 + Label13, + // Token: 0x04005AAF RID: 23215 + BlockerOn, + // Token: 0x04005AB0 RID: 23216 + BlockerOff, + // Token: 0x04005AB1 RID: 23217 + Begin = 0, + // Token: 0x04005AB2 RID: 23218 + End = 17, + // Token: 0x04005AB3 RID: 23219 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeOutputIDEnum.cs b/Assembly-CSharp/DB/TestmodeOutputIDEnum.cs new file mode 100644 index 0000000..2c5bfcf --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeOutputIDEnum.cs @@ -0,0 +1,121 @@ +using System; + +namespace DB +{ + // Token: 0x020008AF RID: 2223 + public static class TestmodeOutputIDEnum + { + // Token: 0x06004A13 RID: 18963 RVA: 0x00180857 File Offset: 0x0017FA57 + public static bool IsActive(this TestmodeOutputID self) + { + return self >= TestmodeOutputID.Title0 && self < TestmodeOutputID.End && self > TestmodeOutputID.Title0; + } + + // Token: 0x06004A14 RID: 18964 RVA: 0x00180868 File Offset: 0x0017FA68 + public static bool IsValid(this TestmodeOutputID self) + { + return self >= TestmodeOutputID.Title0 && self < TestmodeOutputID.End; + } + + // Token: 0x06004A15 RID: 18965 RVA: 0x0018CA62 File Offset: 0x0018BC62 + public static void Clamp(this TestmodeOutputID self) + { + if (self < TestmodeOutputID.Title0) + { + self = TestmodeOutputID.Title0; + return; + } + if (self >= (TestmodeOutputID)TestmodeOutputIDEnum.GetEnd()) + { + self = (TestmodeOutputID)TestmodeOutputIDEnum.GetEnd(); + } + } + + // Token: 0x06004A16 RID: 18966 RVA: 0x0018CA7B File Offset: 0x0018BC7B + public static int GetEnd(this TestmodeOutputID self) + { + return TestmodeOutputIDEnum.GetEnd(); + } + + // Token: 0x06004A17 RID: 18967 RVA: 0x0018CA84 File Offset: 0x0018BC84 + public static TestmodeOutputID FindID(string enumName) + { + for (TestmodeOutputID testmodeOutputID = TestmodeOutputID.Title0; testmodeOutputID < TestmodeOutputID.End; testmodeOutputID++) + { + if (testmodeOutputID.GetEnumName() == enumName) + { + return testmodeOutputID; + } + } + return TestmodeOutputID.Invalid; + } + + // Token: 0x06004A18 RID: 18968 RVA: 0x0018CAAF File Offset: 0x0018BCAF + public static int GetEnd() + { + return TestmodeOutputIDEnum.records.Length; + } + + // Token: 0x06004A19 RID: 18969 RVA: 0x0018CAB8 File Offset: 0x0018BCB8 + public static int GetEnumValue(this TestmodeOutputID self) + { + if (self.IsValid()) + { + return TestmodeOutputIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004A1A RID: 18970 RVA: 0x0018CAD0 File Offset: 0x0018BCD0 + public static string GetEnumName(this TestmodeOutputID self) + { + if (self.IsValid()) + { + return TestmodeOutputIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004A1B RID: 18971 RVA: 0x0018CAEC File Offset: 0x0018BCEC + public static string GetName(this TestmodeOutputID self) + { + if (self.IsValid()) + { + return TestmodeOutputIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004A1C RID: 18972 RVA: 0x0018CB08 File Offset: 0x0018BD08 + public static string GetNameEx(this TestmodeOutputID self) + { + if (self.IsValid()) + { + return TestmodeOutputIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005AB8 RID: 23224 + private static readonly TestmodeOutputTableRecord[] records = new TestmodeOutputTableRecord[] + { + new TestmodeOutputTableRecord(0, "Title0", "输出测试", ""), + new TestmodeOutputTableRecord(1, "Label00", "按键灯光(1P)", ""), + new TestmodeOutputTableRecord(2, "Label01", "框体机身灯光(1P)", ""), + new TestmodeOutputTableRecord(3, "Label02", "画面外圈灯光(1P)", ""), + new TestmodeOutputTableRecord(4, "Label03", "侧盖灯光(1P)", ""), + new TestmodeOutputTableRecord(5, "Label04", "广告牌灯光(1P)", ""), + new TestmodeOutputTableRecord(6, "Label05", "按键灯光(2P)", ""), + new TestmodeOutputTableRecord(7, "Label06", "框体机身灯光(2P)", ""), + new TestmodeOutputTableRecord(8, "Label07", "画面外圈灯光(2P)", ""), + new TestmodeOutputTableRecord(9, "Label08", "侧盖灯光(2P)", ""), + new TestmodeOutputTableRecord(10, "Label09", "广告牌灯光(2P)", ""), + new TestmodeOutputTableRecord(11, "Label10", "摄像机RING LED", ""), + new TestmodeOutputTableRecord(12, "Label11", "摄像机REC LED", ""), + new TestmodeOutputTableRecord(13, "Label12", "禁止投币", ""), + new TestmodeOutputTableRecord(14, "Label13", "离开", ""), + new TestmodeOutputTableRecord(15, "BlockerOn", "ON(不可投币)", ""), + new TestmodeOutputTableRecord(16, "BlockerOff", "OFF(可投币)", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeOutputTableRecord.cs b/Assembly-CSharp/DB/TestmodeOutputTableRecord.cs new file mode 100644 index 0000000..dfcf66a --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeOutputTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x020008AE RID: 2222 + public class TestmodeOutputTableRecord + { + // Token: 0x06004A11 RID: 18961 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeOutputTableRecord() + { + } + + // Token: 0x06004A12 RID: 18962 RVA: 0x0018CA3D File Offset: 0x0018BC3D + public TestmodeOutputTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005AB4 RID: 23220 + public int EnumValue; + + // Token: 0x04005AB5 RID: 23221 + public string EnumName; + + // Token: 0x04005AB6 RID: 23222 + public string Name; + + // Token: 0x04005AB7 RID: 23223 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeRootID.cs b/Assembly-CSharp/DB/TestmodeRootID.cs new file mode 100644 index 0000000..6643466 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeRootID.cs @@ -0,0 +1,61 @@ +using System; + +namespace DB +{ + // Token: 0x020008B0 RID: 2224 + public enum TestmodeRootID + { + // Token: 0x04005ABA RID: 23226 + Title0, + // Token: 0x04005ABB RID: 23227 + Label00, + // Token: 0x04005ABC RID: 23228 + Label01, + // Token: 0x04005ABD RID: 23229 + Label02, + // Token: 0x04005ABE RID: 23230 + Label03, + // Token: 0x04005ABF RID: 23231 + Label04, + // Token: 0x04005AC0 RID: 23232 + Label05, + // Token: 0x04005AC1 RID: 23233 + Label06, + // Token: 0x04005AC2 RID: 23234 + Label07, + // Token: 0x04005AC3 RID: 23235 + Label08, + // Token: 0x04005AC4 RID: 23236 + Label09, + // Token: 0x04005AC5 RID: 23237 + Label10, + // Token: 0x04005AC6 RID: 23238 + Label11, + // Token: 0x04005AC7 RID: 23239 + Label12, + // Token: 0x04005AC8 RID: 23240 + Label13, + // Token: 0x04005AC9 RID: 23241 + Label14, + // Token: 0x04005ACA RID: 23242 + Label15, + // Token: 0x04005ACB RID: 23243 + Label16, + // Token: 0x04005ACC RID: 23244 + Label17, + // Token: 0x04005ACD RID: 23245 + Label18, + // Token: 0x04005ACE RID: 23246 + Label19, + // Token: 0x04005ACF RID: 23247 + Deliver00, + // Token: 0x04005AD0 RID: 23248 + Deliver01, + // Token: 0x04005AD1 RID: 23249 + Begin = 0, + // Token: 0x04005AD2 RID: 23250 + End = 23, + // Token: 0x04005AD3 RID: 23251 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeRootIDEnum.cs b/Assembly-CSharp/DB/TestmodeRootIDEnum.cs new file mode 100644 index 0000000..393035f --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeRootIDEnum.cs @@ -0,0 +1,127 @@ +using System; + +namespace DB +{ + // Token: 0x020008B2 RID: 2226 + public static class TestmodeRootIDEnum + { + // Token: 0x06004A20 RID: 18976 RVA: 0x00188CF2 File Offset: 0x00187EF2 + public static bool IsActive(this TestmodeRootID self) + { + return self >= TestmodeRootID.Title0 && self < TestmodeRootID.End && self > TestmodeRootID.Title0; + } + + // Token: 0x06004A21 RID: 18977 RVA: 0x00188D03 File Offset: 0x00187F03 + public static bool IsValid(this TestmodeRootID self) + { + return self >= TestmodeRootID.Title0 && self < TestmodeRootID.End; + } + + // Token: 0x06004A22 RID: 18978 RVA: 0x0018CD0A File Offset: 0x0018BF0A + public static void Clamp(this TestmodeRootID self) + { + if (self < TestmodeRootID.Title0) + { + self = TestmodeRootID.Title0; + return; + } + if (self >= (TestmodeRootID)TestmodeRootIDEnum.GetEnd()) + { + self = (TestmodeRootID)TestmodeRootIDEnum.GetEnd(); + } + } + + // Token: 0x06004A23 RID: 18979 RVA: 0x0018CD23 File Offset: 0x0018BF23 + public static int GetEnd(this TestmodeRootID self) + { + return TestmodeRootIDEnum.GetEnd(); + } + + // Token: 0x06004A24 RID: 18980 RVA: 0x0018CD2C File Offset: 0x0018BF2C + public static TestmodeRootID FindID(string enumName) + { + for (TestmodeRootID testmodeRootID = TestmodeRootID.Title0; testmodeRootID < TestmodeRootID.End; testmodeRootID++) + { + if (testmodeRootID.GetEnumName() == enumName) + { + return testmodeRootID; + } + } + return TestmodeRootID.Invalid; + } + + // Token: 0x06004A25 RID: 18981 RVA: 0x0018CD57 File Offset: 0x0018BF57 + public static int GetEnd() + { + return TestmodeRootIDEnum.records.Length; + } + + // Token: 0x06004A26 RID: 18982 RVA: 0x0018CD60 File Offset: 0x0018BF60 + public static int GetEnumValue(this TestmodeRootID self) + { + if (self.IsValid()) + { + return TestmodeRootIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004A27 RID: 18983 RVA: 0x0018CD78 File Offset: 0x0018BF78 + public static string GetEnumName(this TestmodeRootID self) + { + if (self.IsValid()) + { + return TestmodeRootIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004A28 RID: 18984 RVA: 0x0018CD94 File Offset: 0x0018BF94 + public static string GetName(this TestmodeRootID self) + { + if (self.IsValid()) + { + return TestmodeRootIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004A29 RID: 18985 RVA: 0x0018CDB0 File Offset: 0x0018BFB0 + public static string GetNameEx(this TestmodeRootID self) + { + if (self.IsValid()) + { + return TestmodeRootIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005AD8 RID: 23256 + private static readonly TestmodeRootTableRecord[] records = new TestmodeRootTableRecord[] + { + new TestmodeRootTableRecord(0, "Title0", "游戏测试模式", ""), + new TestmodeRootTableRecord(1, "Label00", "簿记", ""), + new TestmodeRootTableRecord(2, "Label01", "输入测试", ""), + new TestmodeRootTableRecord(3, "Label02", "输出测试", ""), + new TestmodeRootTableRecord(4, "Label03", "显示器测试", ""), + new TestmodeRootTableRecord(5, "Label04", "触摸感应器测试", ""), + new TestmodeRootTableRecord(6, "Label05", "摄像机测试", ""), + new TestmodeRootTableRecord(7, "Label06", "游戏设置", ""), + new TestmodeRootTableRecord(8, "Label07", "游戏系统信息", ""), + new TestmodeRootTableRecord(9, "Label08", "关店设置", ""), + new TestmodeRootTableRecord(10, "Label09", "网络测试", ""), + new TestmodeRootTableRecord(11, "Label10", "Net充值记录", ""), + new TestmodeRootTableRecord(12, "Label11", "Net下载情况", ""), + new TestmodeRootTableRecord(13, "Label12", "备份数据清空", ""), + new TestmodeRootTableRecord(14, "Label13", "系统测试", ""), + new TestmodeRootTableRecord(15, "Label14", "\u3000服务器设置", ""), + new TestmodeRootTableRecord(16, "Label15", "デバッグ:サウンドテスト", ""), + new TestmodeRootTableRecord(17, "Label16", "デバッグ:Ini編集", ""), + new TestmodeRootTableRecord(18, "Label17", "デバッグ:イベント設定", ""), + new TestmodeRootTableRecord(19, "Label18", "デバッグ:LED調光", ""), + new TestmodeRootTableRecord(20, "Label19", "离开", ""), + new TestmodeRootTableRecord(21, "Deliver00", "服务器", ""), + new TestmodeRootTableRecord(22, "Deliver01", "客户端", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeRootTableRecord.cs b/Assembly-CSharp/DB/TestmodeRootTableRecord.cs new file mode 100644 index 0000000..f10397a --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeRootTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x020008B1 RID: 2225 + public class TestmodeRootTableRecord + { + // Token: 0x06004A1E RID: 18974 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeRootTableRecord() + { + } + + // Token: 0x06004A1F RID: 18975 RVA: 0x0018CCE5 File Offset: 0x0018BEE5 + public TestmodeRootTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005AD4 RID: 23252 + public int EnumValue; + + // Token: 0x04005AD5 RID: 23253 + public string EnumName; + + // Token: 0x04005AD6 RID: 23254 + public string Name; + + // Token: 0x04005AD7 RID: 23255 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeSystemInfo1ID.cs b/Assembly-CSharp/DB/TestmodeSystemInfo1ID.cs new file mode 100644 index 0000000..a88f62a --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeSystemInfo1ID.cs @@ -0,0 +1,35 @@ +using System; + +namespace DB +{ + // Token: 0x020008B3 RID: 2227 + public enum TestmodeSystemInfo1ID + { + // Token: 0x04005ADA RID: 23258 + Title0, + // Token: 0x04005ADB RID: 23259 + Label00, + // Token: 0x04005ADC RID: 23260 + Label01, + // Token: 0x04005ADD RID: 23261 + Label02, + // Token: 0x04005ADE RID: 23262 + Label03, + // Token: 0x04005ADF RID: 23263 + Label04, + // Token: 0x04005AE0 RID: 23264 + Label05, + // Token: 0x04005AE1 RID: 23265 + Label06, + // Token: 0x04005AE2 RID: 23266 + Label07, + // Token: 0x04005AE3 RID: 23267 + Label08, + // Token: 0x04005AE4 RID: 23268 + Begin = 0, + // Token: 0x04005AE5 RID: 23269 + End = 10, + // Token: 0x04005AE6 RID: 23270 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeSystemInfo1IDEnum.cs b/Assembly-CSharp/DB/TestmodeSystemInfo1IDEnum.cs new file mode 100644 index 0000000..222a83a --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeSystemInfo1IDEnum.cs @@ -0,0 +1,114 @@ +using System; + +namespace DB +{ + // Token: 0x020008B5 RID: 2229 + public static class TestmodeSystemInfo1IDEnum + { + // Token: 0x06004A2D RID: 18989 RVA: 0x001784B0 File Offset: 0x001776B0 + public static bool IsActive(this TestmodeSystemInfo1ID self) + { + return self >= TestmodeSystemInfo1ID.Title0 && self < TestmodeSystemInfo1ID.End && self > TestmodeSystemInfo1ID.Title0; + } + + // Token: 0x06004A2E RID: 18990 RVA: 0x001784C1 File Offset: 0x001776C1 + public static bool IsValid(this TestmodeSystemInfo1ID self) + { + return self >= TestmodeSystemInfo1ID.Title0 && self < TestmodeSystemInfo1ID.End; + } + + // Token: 0x06004A2F RID: 18991 RVA: 0x0018D04E File Offset: 0x0018C24E + public static void Clamp(this TestmodeSystemInfo1ID self) + { + if (self < TestmodeSystemInfo1ID.Title0) + { + self = TestmodeSystemInfo1ID.Title0; + return; + } + if (self >= (TestmodeSystemInfo1ID)TestmodeSystemInfo1IDEnum.GetEnd()) + { + self = (TestmodeSystemInfo1ID)TestmodeSystemInfo1IDEnum.GetEnd(); + } + } + + // Token: 0x06004A30 RID: 18992 RVA: 0x0018D067 File Offset: 0x0018C267 + public static int GetEnd(this TestmodeSystemInfo1ID self) + { + return TestmodeSystemInfo1IDEnum.GetEnd(); + } + + // Token: 0x06004A31 RID: 18993 RVA: 0x0018D070 File Offset: 0x0018C270 + public static TestmodeSystemInfo1ID FindID(string enumName) + { + for (TestmodeSystemInfo1ID testmodeSystemInfo1ID = TestmodeSystemInfo1ID.Title0; testmodeSystemInfo1ID < TestmodeSystemInfo1ID.End; testmodeSystemInfo1ID++) + { + if (testmodeSystemInfo1ID.GetEnumName() == enumName) + { + return testmodeSystemInfo1ID; + } + } + return TestmodeSystemInfo1ID.Invalid; + } + + // Token: 0x06004A32 RID: 18994 RVA: 0x0018D09B File Offset: 0x0018C29B + public static int GetEnd() + { + return TestmodeSystemInfo1IDEnum.records.Length; + } + + // Token: 0x06004A33 RID: 18995 RVA: 0x0018D0A4 File Offset: 0x0018C2A4 + public static int GetEnumValue(this TestmodeSystemInfo1ID self) + { + if (self.IsValid()) + { + return TestmodeSystemInfo1IDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004A34 RID: 18996 RVA: 0x0018D0BC File Offset: 0x0018C2BC + public static string GetEnumName(this TestmodeSystemInfo1ID self) + { + if (self.IsValid()) + { + return TestmodeSystemInfo1IDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004A35 RID: 18997 RVA: 0x0018D0D8 File Offset: 0x0018C2D8 + public static string GetName(this TestmodeSystemInfo1ID self) + { + if (self.IsValid()) + { + return TestmodeSystemInfo1IDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004A36 RID: 18998 RVA: 0x0018D0F4 File Offset: 0x0018C2F4 + public static string GetNameEx(this TestmodeSystemInfo1ID self) + { + if (self.IsValid()) + { + return TestmodeSystemInfo1IDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005AEB RID: 23275 + private static readonly TestmodeSystemInfo1TableRecord[] records = new TestmodeSystemInfo1TableRecord[] + { + new TestmodeSystemInfo1TableRecord(0, "Title0", "游戏系统信息", ""), + new TestmodeSystemInfo1TableRecord(1, "Label00", "软件版本", ""), + new TestmodeSystemInfo1TableRecord(2, "Label01", "关键芯片", ""), + new TestmodeSystemInfo1TableRecord(3, "Label02", "主账号", ""), + new TestmodeSystemInfo1TableRecord(4, "Label03", "LED控制板(1P)", ""), + new TestmodeSystemInfo1TableRecord(5, "Label04", "基板号", ""), + new TestmodeSystemInfo1TableRecord(6, "Label05", "固件", ""), + new TestmodeSystemInfo1TableRecord(7, "Label06", "LED控制板(2P)", ""), + new TestmodeSystemInfo1TableRecord(8, "Label07", "基板号", ""), + new TestmodeSystemInfo1TableRecord(9, "Label08", "固件", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeSystemInfo1TableRecord.cs b/Assembly-CSharp/DB/TestmodeSystemInfo1TableRecord.cs new file mode 100644 index 0000000..ce096e1 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeSystemInfo1TableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x020008B4 RID: 2228 + public class TestmodeSystemInfo1TableRecord + { + // Token: 0x06004A2B RID: 18987 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeSystemInfo1TableRecord() + { + } + + // Token: 0x06004A2C RID: 18988 RVA: 0x0018D029 File Offset: 0x0018C229 + public TestmodeSystemInfo1TableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005AE7 RID: 23271 + public int EnumValue; + + // Token: 0x04005AE8 RID: 23272 + public string EnumName; + + // Token: 0x04005AE9 RID: 23273 + public string Name; + + // Token: 0x04005AEA RID: 23274 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeSystemInfo2ID.cs b/Assembly-CSharp/DB/TestmodeSystemInfo2ID.cs new file mode 100644 index 0000000..fa5b5a5 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeSystemInfo2ID.cs @@ -0,0 +1,53 @@ +using System; + +namespace DB +{ + // Token: 0x020008B6 RID: 2230 + public enum TestmodeSystemInfo2ID + { + // Token: 0x04005AED RID: 23277 + Title0, + // Token: 0x04005AEE RID: 23278 + Title1, + // Token: 0x04005AEF RID: 23279 + Label00, + // Token: 0x04005AF0 RID: 23280 + Label01, + // Token: 0x04005AF1 RID: 23281 + Label02, + // Token: 0x04005AF2 RID: 23282 + Label03, + // Token: 0x04005AF3 RID: 23283 + Label04, + // Token: 0x04005AF4 RID: 23284 + Label05, + // Token: 0x04005AF5 RID: 23285 + Label06, + // Token: 0x04005AF6 RID: 23286 + Label07, + // Token: 0x04005AF7 RID: 23287 + Label08, + // Token: 0x04005AF8 RID: 23288 + Label09, + // Token: 0x04005AF9 RID: 23289 + Label10, + // Token: 0x04005AFA RID: 23290 + Label11, + // Token: 0x04005AFB RID: 23291 + Label12, + // Token: 0x04005AFC RID: 23292 + Label13, + // Token: 0x04005AFD RID: 23293 + Label14, + // Token: 0x04005AFE RID: 23294 + Label15, + // Token: 0x04005AFF RID: 23295 + Label00_1, + // Token: 0x04005B00 RID: 23296 + Begin = 0, + // Token: 0x04005B01 RID: 23297 + End = 19, + // Token: 0x04005B02 RID: 23298 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeSystemInfo2IDEnum.cs b/Assembly-CSharp/DB/TestmodeSystemInfo2IDEnum.cs new file mode 100644 index 0000000..7943bd5 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeSystemInfo2IDEnum.cs @@ -0,0 +1,123 @@ +using System; + +namespace DB +{ + // Token: 0x020008B8 RID: 2232 + public static class TestmodeSystemInfo2IDEnum + { + // Token: 0x06004A3A RID: 19002 RVA: 0x0018D240 File Offset: 0x0018C440 + public static bool IsActive(this TestmodeSystemInfo2ID self) + { + return self >= TestmodeSystemInfo2ID.Title0 && self < TestmodeSystemInfo2ID.End && self > TestmodeSystemInfo2ID.Title0; + } + + // Token: 0x06004A3B RID: 19003 RVA: 0x0018D251 File Offset: 0x0018C451 + public static bool IsValid(this TestmodeSystemInfo2ID self) + { + return self >= TestmodeSystemInfo2ID.Title0 && self < TestmodeSystemInfo2ID.End; + } + + // Token: 0x06004A3C RID: 19004 RVA: 0x0018D25E File Offset: 0x0018C45E + public static void Clamp(this TestmodeSystemInfo2ID self) + { + if (self < TestmodeSystemInfo2ID.Title0) + { + self = TestmodeSystemInfo2ID.Title0; + return; + } + if (self >= (TestmodeSystemInfo2ID)TestmodeSystemInfo2IDEnum.GetEnd()) + { + self = (TestmodeSystemInfo2ID)TestmodeSystemInfo2IDEnum.GetEnd(); + } + } + + // Token: 0x06004A3D RID: 19005 RVA: 0x0018D277 File Offset: 0x0018C477 + public static int GetEnd(this TestmodeSystemInfo2ID self) + { + return TestmodeSystemInfo2IDEnum.GetEnd(); + } + + // Token: 0x06004A3E RID: 19006 RVA: 0x0018D280 File Offset: 0x0018C480 + public static TestmodeSystemInfo2ID FindID(string enumName) + { + for (TestmodeSystemInfo2ID testmodeSystemInfo2ID = TestmodeSystemInfo2ID.Title0; testmodeSystemInfo2ID < TestmodeSystemInfo2ID.End; testmodeSystemInfo2ID++) + { + if (testmodeSystemInfo2ID.GetEnumName() == enumName) + { + return testmodeSystemInfo2ID; + } + } + return TestmodeSystemInfo2ID.Invalid; + } + + // Token: 0x06004A3F RID: 19007 RVA: 0x0018D2AB File Offset: 0x0018C4AB + public static int GetEnd() + { + return TestmodeSystemInfo2IDEnum.records.Length; + } + + // Token: 0x06004A40 RID: 19008 RVA: 0x0018D2B4 File Offset: 0x0018C4B4 + public static int GetEnumValue(this TestmodeSystemInfo2ID self) + { + if (self.IsValid()) + { + return TestmodeSystemInfo2IDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004A41 RID: 19009 RVA: 0x0018D2CC File Offset: 0x0018C4CC + public static string GetEnumName(this TestmodeSystemInfo2ID self) + { + if (self.IsValid()) + { + return TestmodeSystemInfo2IDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004A42 RID: 19010 RVA: 0x0018D2E8 File Offset: 0x0018C4E8 + public static string GetName(this TestmodeSystemInfo2ID self) + { + if (self.IsValid()) + { + return TestmodeSystemInfo2IDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004A43 RID: 19011 RVA: 0x0018D304 File Offset: 0x0018C504 + public static string GetNameEx(this TestmodeSystemInfo2ID self) + { + if (self.IsValid()) + { + return TestmodeSystemInfo2IDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005B07 RID: 23303 + private static readonly TestmodeSystemInfo2TableRecord[] records = new TestmodeSystemInfo2TableRecord[] + { + new TestmodeSystemInfo2TableRecord(0, "Title0", "游戏系统信息", ""), + new TestmodeSystemInfo2TableRecord(1, "Title1", "追加数据一览", ""), + new TestmodeSystemInfo2TableRecord(2, "Label00", "数据名", ""), + new TestmodeSystemInfo2TableRecord(3, "Label01", "", ""), + new TestmodeSystemInfo2TableRecord(4, "Label02", "", ""), + new TestmodeSystemInfo2TableRecord(5, "Label03", "", ""), + new TestmodeSystemInfo2TableRecord(6, "Label04", "", ""), + new TestmodeSystemInfo2TableRecord(7, "Label05", "", ""), + new TestmodeSystemInfo2TableRecord(8, "Label06", "", ""), + new TestmodeSystemInfo2TableRecord(9, "Label07", "", ""), + new TestmodeSystemInfo2TableRecord(10, "Label08", "", ""), + new TestmodeSystemInfo2TableRecord(11, "Label09", "", ""), + new TestmodeSystemInfo2TableRecord(12, "Label10", "", ""), + new TestmodeSystemInfo2TableRecord(13, "Label11", "", ""), + new TestmodeSystemInfo2TableRecord(14, "Label12", "", ""), + new TestmodeSystemInfo2TableRecord(15, "Label13", "", ""), + new TestmodeSystemInfo2TableRecord(16, "Label14", "", ""), + new TestmodeSystemInfo2TableRecord(17, "Label15", "", ""), + new TestmodeSystemInfo2TableRecord(18, "Label00_1", "日期", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeSystemInfo2TableRecord.cs b/Assembly-CSharp/DB/TestmodeSystemInfo2TableRecord.cs new file mode 100644 index 0000000..899bfd0 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeSystemInfo2TableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x020008B7 RID: 2231 + public class TestmodeSystemInfo2TableRecord + { + // Token: 0x06004A38 RID: 19000 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeSystemInfo2TableRecord() + { + } + + // Token: 0x06004A39 RID: 19001 RVA: 0x0018D21B File Offset: 0x0018C41B + public TestmodeSystemInfo2TableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005B03 RID: 23299 + public int EnumValue; + + // Token: 0x04005B04 RID: 23300 + public string EnumName; + + // Token: 0x04005B05 RID: 23301 + public string Name; + + // Token: 0x04005B06 RID: 23302 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeSystemtestID.cs b/Assembly-CSharp/DB/TestmodeSystemtestID.cs new file mode 100644 index 0000000..2d6124a --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeSystemtestID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x020008B9 RID: 2233 + public enum TestmodeSystemtestID + { + // Token: 0x04005B09 RID: 23305 + Title0, + // Token: 0x04005B0A RID: 23306 + Label00, + // Token: 0x04005B0B RID: 23307 + Label01, + // Token: 0x04005B0C RID: 23308 + Begin = 0, + // Token: 0x04005B0D RID: 23309 + End = 3, + // Token: 0x04005B0E RID: 23310 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeSystemtestIDEnum.cs b/Assembly-CSharp/DB/TestmodeSystemtestIDEnum.cs new file mode 100644 index 0000000..11eef70 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeSystemtestIDEnum.cs @@ -0,0 +1,107 @@ +using System; + +namespace DB +{ + // Token: 0x020008BB RID: 2235 + public static class TestmodeSystemtestIDEnum + { + // Token: 0x06004A47 RID: 19015 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this TestmodeSystemtestID self) + { + return self >= TestmodeSystemtestID.Title0 && self < TestmodeSystemtestID.End && self > TestmodeSystemtestID.Title0; + } + + // Token: 0x06004A48 RID: 19016 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this TestmodeSystemtestID self) + { + return self >= TestmodeSystemtestID.Title0 && self < TestmodeSystemtestID.End; + } + + // Token: 0x06004A49 RID: 19017 RVA: 0x0018D53A File Offset: 0x0018C73A + public static void Clamp(this TestmodeSystemtestID self) + { + if (self < TestmodeSystemtestID.Title0) + { + self = TestmodeSystemtestID.Title0; + return; + } + if (self >= (TestmodeSystemtestID)TestmodeSystemtestIDEnum.GetEnd()) + { + self = (TestmodeSystemtestID)TestmodeSystemtestIDEnum.GetEnd(); + } + } + + // Token: 0x06004A4A RID: 19018 RVA: 0x0018D553 File Offset: 0x0018C753 + public static int GetEnd(this TestmodeSystemtestID self) + { + return TestmodeSystemtestIDEnum.GetEnd(); + } + + // Token: 0x06004A4B RID: 19019 RVA: 0x0018D55C File Offset: 0x0018C75C + public static TestmodeSystemtestID FindID(string enumName) + { + for (TestmodeSystemtestID testmodeSystemtestID = TestmodeSystemtestID.Title0; testmodeSystemtestID < TestmodeSystemtestID.End; testmodeSystemtestID++) + { + if (testmodeSystemtestID.GetEnumName() == enumName) + { + return testmodeSystemtestID; + } + } + return TestmodeSystemtestID.Invalid; + } + + // Token: 0x06004A4C RID: 19020 RVA: 0x0018D586 File Offset: 0x0018C786 + public static int GetEnd() + { + return TestmodeSystemtestIDEnum.records.Length; + } + + // Token: 0x06004A4D RID: 19021 RVA: 0x0018D58F File Offset: 0x0018C78F + public static int GetEnumValue(this TestmodeSystemtestID self) + { + if (self.IsValid()) + { + return TestmodeSystemtestIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004A4E RID: 19022 RVA: 0x0018D5A7 File Offset: 0x0018C7A7 + public static string GetEnumName(this TestmodeSystemtestID self) + { + if (self.IsValid()) + { + return TestmodeSystemtestIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004A4F RID: 19023 RVA: 0x0018D5C3 File Offset: 0x0018C7C3 + public static string GetName(this TestmodeSystemtestID self) + { + if (self.IsValid()) + { + return TestmodeSystemtestIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004A50 RID: 19024 RVA: 0x0018D5DF File Offset: 0x0018C7DF + public static string GetNameEx(this TestmodeSystemtestID self) + { + if (self.IsValid()) + { + return TestmodeSystemtestIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005B13 RID: 23315 + private static readonly TestmodeSystemtestTableRecord[] records = new TestmodeSystemtestTableRecord[] + { + new TestmodeSystemtestTableRecord(0, "Title0", "要切换到系统测试模式吗?", ""), + new TestmodeSystemtestTableRecord(1, "Label00", "切换", ""), + new TestmodeSystemtestTableRecord(2, "Label01", "不切换", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeSystemtestTableRecord.cs b/Assembly-CSharp/DB/TestmodeSystemtestTableRecord.cs new file mode 100644 index 0000000..30bb614 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeSystemtestTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x020008BA RID: 2234 + public class TestmodeSystemtestTableRecord + { + // Token: 0x06004A45 RID: 19013 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeSystemtestTableRecord() + { + } + + // Token: 0x06004A46 RID: 19014 RVA: 0x0018D515 File Offset: 0x0018C715 + public TestmodeSystemtestTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005B0F RID: 23311 + public int EnumValue; + + // Token: 0x04005B10 RID: 23312 + public string EnumName; + + // Token: 0x04005B11 RID: 23313 + public string Name; + + // Token: 0x04005B12 RID: 23314 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeTouchpanel1pID.cs b/Assembly-CSharp/DB/TestmodeTouchpanel1pID.cs new file mode 100644 index 0000000..a23527a --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeTouchpanel1pID.cs @@ -0,0 +1,39 @@ +using System; + +namespace DB +{ + // Token: 0x020008BC RID: 2236 + public enum TestmodeTouchpanel1pID + { + // Token: 0x04005B15 RID: 23317 + Title0, + // Token: 0x04005B16 RID: 23318 + Label00, + // Token: 0x04005B17 RID: 23319 + Label01, + // Token: 0x04005B18 RID: 23320 + Label02, + // Token: 0x04005B19 RID: 23321 + Label03, + // Token: 0x04005B1A RID: 23322 + Label04, + // Token: 0x04005B1B RID: 23323 + Label05, + // Token: 0x04005B1C RID: 23324 + Status0, + // Token: 0x04005B1D RID: 23325 + Status1, + // Token: 0x04005B1E RID: 23326 + Status2, + // Token: 0x04005B1F RID: 23327 + Error0, + // Token: 0x04005B20 RID: 23328 + Error1, + // Token: 0x04005B21 RID: 23329 + Begin = 0, + // Token: 0x04005B22 RID: 23330 + End = 12, + // Token: 0x04005B23 RID: 23331 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeTouchpanel1pIDEnum.cs b/Assembly-CSharp/DB/TestmodeTouchpanel1pIDEnum.cs new file mode 100644 index 0000000..8bec5d0 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeTouchpanel1pIDEnum.cs @@ -0,0 +1,116 @@ +using System; + +namespace DB +{ + // Token: 0x020008BE RID: 2238 + public static class TestmodeTouchpanel1pIDEnum + { + // Token: 0x06004A54 RID: 19028 RVA: 0x001748BD File Offset: 0x00173ABD + public static bool IsActive(this TestmodeTouchpanel1pID self) + { + return self >= TestmodeTouchpanel1pID.Title0 && self < TestmodeTouchpanel1pID.End && self > TestmodeTouchpanel1pID.Title0; + } + + // Token: 0x06004A55 RID: 19029 RVA: 0x001748CE File Offset: 0x00173ACE + public static bool IsValid(this TestmodeTouchpanel1pID self) + { + return self >= TestmodeTouchpanel1pID.Title0 && self < TestmodeTouchpanel1pID.End; + } + + // Token: 0x06004A56 RID: 19030 RVA: 0x0018D681 File Offset: 0x0018C881 + public static void Clamp(this TestmodeTouchpanel1pID self) + { + if (self < TestmodeTouchpanel1pID.Title0) + { + self = TestmodeTouchpanel1pID.Title0; + return; + } + if (self >= (TestmodeTouchpanel1pID)TestmodeTouchpanel1pIDEnum.GetEnd()) + { + self = (TestmodeTouchpanel1pID)TestmodeTouchpanel1pIDEnum.GetEnd(); + } + } + + // Token: 0x06004A57 RID: 19031 RVA: 0x0018D69A File Offset: 0x0018C89A + public static int GetEnd(this TestmodeTouchpanel1pID self) + { + return TestmodeTouchpanel1pIDEnum.GetEnd(); + } + + // Token: 0x06004A58 RID: 19032 RVA: 0x0018D6A4 File Offset: 0x0018C8A4 + public static TestmodeTouchpanel1pID FindID(string enumName) + { + for (TestmodeTouchpanel1pID testmodeTouchpanel1pID = TestmodeTouchpanel1pID.Title0; testmodeTouchpanel1pID < TestmodeTouchpanel1pID.End; testmodeTouchpanel1pID++) + { + if (testmodeTouchpanel1pID.GetEnumName() == enumName) + { + return testmodeTouchpanel1pID; + } + } + return TestmodeTouchpanel1pID.Invalid; + } + + // Token: 0x06004A59 RID: 19033 RVA: 0x0018D6CF File Offset: 0x0018C8CF + public static int GetEnd() + { + return TestmodeTouchpanel1pIDEnum.records.Length; + } + + // Token: 0x06004A5A RID: 19034 RVA: 0x0018D6D8 File Offset: 0x0018C8D8 + public static int GetEnumValue(this TestmodeTouchpanel1pID self) + { + if (self.IsValid()) + { + return TestmodeTouchpanel1pIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004A5B RID: 19035 RVA: 0x0018D6F0 File Offset: 0x0018C8F0 + public static string GetEnumName(this TestmodeTouchpanel1pID self) + { + if (self.IsValid()) + { + return TestmodeTouchpanel1pIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004A5C RID: 19036 RVA: 0x0018D70C File Offset: 0x0018C90C + public static string GetName(this TestmodeTouchpanel1pID self) + { + if (self.IsValid()) + { + return TestmodeTouchpanel1pIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004A5D RID: 19037 RVA: 0x0018D728 File Offset: 0x0018C928 + public static string GetNameEx(this TestmodeTouchpanel1pID self) + { + if (self.IsValid()) + { + return TestmodeTouchpanel1pIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005B28 RID: 23336 + private static readonly TestmodeTouchpanel1pTableRecord[] records = new TestmodeTouchpanel1pTableRecord[] + { + new TestmodeTouchpanel1pTableRecord(0, "Title0", "1P\u3000触摸感应器", ""), + new TestmodeTouchpanel1pTableRecord(1, "Label00", "当前灵敏度", ""), + new TestmodeTouchpanel1pTableRecord(2, "Label01", "状态", ""), + new TestmodeTouchpanel1pTableRecord(3, "Label02", "灵敏度+", ""), + new TestmodeTouchpanel1pTableRecord(4, "Label03", "灵敏度-", ""), + new TestmodeTouchpanel1pTableRecord(5, "Label04", "改变设置", ""), + new TestmodeTouchpanel1pTableRecord(6, "Label05", "离开", ""), + new TestmodeTouchpanel1pTableRecord(7, "Status0", "正在初始化", ""), + new TestmodeTouchpanel1pTableRecord(8, "Status1", "运行中", ""), + new TestmodeTouchpanel1pTableRecord(9, "Status2", "正在设置", ""), + new TestmodeTouchpanel1pTableRecord(10, "Error0", "无法连接(超时)", ""), + new TestmodeTouchpanel1pTableRecord(11, "Error1", "初始化失败", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeTouchpanel1pTableRecord.cs b/Assembly-CSharp/DB/TestmodeTouchpanel1pTableRecord.cs new file mode 100644 index 0000000..d29db5b --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeTouchpanel1pTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x020008BD RID: 2237 + public class TestmodeTouchpanel1pTableRecord + { + // Token: 0x06004A52 RID: 19026 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeTouchpanel1pTableRecord() + { + } + + // Token: 0x06004A53 RID: 19027 RVA: 0x0018D65C File Offset: 0x0018C85C + public TestmodeTouchpanel1pTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005B24 RID: 23332 + public int EnumValue; + + // Token: 0x04005B25 RID: 23333 + public string EnumName; + + // Token: 0x04005B26 RID: 23334 + public string Name; + + // Token: 0x04005B27 RID: 23335 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeTouchpanel2pID.cs b/Assembly-CSharp/DB/TestmodeTouchpanel2pID.cs new file mode 100644 index 0000000..70dc3fa --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeTouchpanel2pID.cs @@ -0,0 +1,39 @@ +using System; + +namespace DB +{ + // Token: 0x020008BF RID: 2239 + public enum TestmodeTouchpanel2pID + { + // Token: 0x04005B2A RID: 23338 + Title0, + // Token: 0x04005B2B RID: 23339 + Label00, + // Token: 0x04005B2C RID: 23340 + Label01, + // Token: 0x04005B2D RID: 23341 + Label02, + // Token: 0x04005B2E RID: 23342 + Label03, + // Token: 0x04005B2F RID: 23343 + Label04, + // Token: 0x04005B30 RID: 23344 + Label05, + // Token: 0x04005B31 RID: 23345 + Status0, + // Token: 0x04005B32 RID: 23346 + Status1, + // Token: 0x04005B33 RID: 23347 + Status2, + // Token: 0x04005B34 RID: 23348 + Error0, + // Token: 0x04005B35 RID: 23349 + Error1, + // Token: 0x04005B36 RID: 23350 + Begin = 0, + // Token: 0x04005B37 RID: 23351 + End = 12, + // Token: 0x04005B38 RID: 23352 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeTouchpanel2pIDEnum.cs b/Assembly-CSharp/DB/TestmodeTouchpanel2pIDEnum.cs new file mode 100644 index 0000000..bac47de --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeTouchpanel2pIDEnum.cs @@ -0,0 +1,116 @@ +using System; + +namespace DB +{ + // Token: 0x020008C1 RID: 2241 + public static class TestmodeTouchpanel2pIDEnum + { + // Token: 0x06004A61 RID: 19041 RVA: 0x001748BD File Offset: 0x00173ABD + public static bool IsActive(this TestmodeTouchpanel2pID self) + { + return self >= TestmodeTouchpanel2pID.Title0 && self < TestmodeTouchpanel2pID.End && self > TestmodeTouchpanel2pID.Title0; + } + + // Token: 0x06004A62 RID: 19042 RVA: 0x001748CE File Offset: 0x00173ACE + public static bool IsValid(this TestmodeTouchpanel2pID self) + { + return self >= TestmodeTouchpanel2pID.Title0 && self < TestmodeTouchpanel2pID.End; + } + + // Token: 0x06004A63 RID: 19043 RVA: 0x0018D8A8 File Offset: 0x0018CAA8 + public static void Clamp(this TestmodeTouchpanel2pID self) + { + if (self < TestmodeTouchpanel2pID.Title0) + { + self = TestmodeTouchpanel2pID.Title0; + return; + } + if (self >= (TestmodeTouchpanel2pID)TestmodeTouchpanel2pIDEnum.GetEnd()) + { + self = (TestmodeTouchpanel2pID)TestmodeTouchpanel2pIDEnum.GetEnd(); + } + } + + // Token: 0x06004A64 RID: 19044 RVA: 0x0018D8C1 File Offset: 0x0018CAC1 + public static int GetEnd(this TestmodeTouchpanel2pID self) + { + return TestmodeTouchpanel2pIDEnum.GetEnd(); + } + + // Token: 0x06004A65 RID: 19045 RVA: 0x0018D8C8 File Offset: 0x0018CAC8 + public static TestmodeTouchpanel2pID FindID(string enumName) + { + for (TestmodeTouchpanel2pID testmodeTouchpanel2pID = TestmodeTouchpanel2pID.Title0; testmodeTouchpanel2pID < TestmodeTouchpanel2pID.End; testmodeTouchpanel2pID++) + { + if (testmodeTouchpanel2pID.GetEnumName() == enumName) + { + return testmodeTouchpanel2pID; + } + } + return TestmodeTouchpanel2pID.Invalid; + } + + // Token: 0x06004A66 RID: 19046 RVA: 0x0018D8F3 File Offset: 0x0018CAF3 + public static int GetEnd() + { + return TestmodeTouchpanel2pIDEnum.records.Length; + } + + // Token: 0x06004A67 RID: 19047 RVA: 0x0018D8FC File Offset: 0x0018CAFC + public static int GetEnumValue(this TestmodeTouchpanel2pID self) + { + if (self.IsValid()) + { + return TestmodeTouchpanel2pIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004A68 RID: 19048 RVA: 0x0018D914 File Offset: 0x0018CB14 + public static string GetEnumName(this TestmodeTouchpanel2pID self) + { + if (self.IsValid()) + { + return TestmodeTouchpanel2pIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004A69 RID: 19049 RVA: 0x0018D930 File Offset: 0x0018CB30 + public static string GetName(this TestmodeTouchpanel2pID self) + { + if (self.IsValid()) + { + return TestmodeTouchpanel2pIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004A6A RID: 19050 RVA: 0x0018D94C File Offset: 0x0018CB4C + public static string GetNameEx(this TestmodeTouchpanel2pID self) + { + if (self.IsValid()) + { + return TestmodeTouchpanel2pIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005B3D RID: 23357 + private static readonly TestmodeTouchpanel2pTableRecord[] records = new TestmodeTouchpanel2pTableRecord[] + { + new TestmodeTouchpanel2pTableRecord(0, "Title0", "2P\u3000触摸感应器", ""), + new TestmodeTouchpanel2pTableRecord(1, "Label00", "当前灵敏度", ""), + new TestmodeTouchpanel2pTableRecord(2, "Label01", "状态", ""), + new TestmodeTouchpanel2pTableRecord(3, "Label02", "灵敏度+", ""), + new TestmodeTouchpanel2pTableRecord(4, "Label03", "灵敏度-", ""), + new TestmodeTouchpanel2pTableRecord(5, "Label04", "改变设置", ""), + new TestmodeTouchpanel2pTableRecord(6, "Label05", "离开", ""), + new TestmodeTouchpanel2pTableRecord(7, "Status0", "正在初始化", ""), + new TestmodeTouchpanel2pTableRecord(8, "Status1", "运行中", ""), + new TestmodeTouchpanel2pTableRecord(9, "Status2", "正在设置", ""), + new TestmodeTouchpanel2pTableRecord(10, "Error0", "无法连接(超时)", ""), + new TestmodeTouchpanel2pTableRecord(11, "Error1", "初始化失败", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeTouchpanel2pTableRecord.cs b/Assembly-CSharp/DB/TestmodeTouchpanel2pTableRecord.cs new file mode 100644 index 0000000..b1c55c3 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeTouchpanel2pTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x020008C0 RID: 2240 + public class TestmodeTouchpanel2pTableRecord + { + // Token: 0x06004A5F RID: 19039 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeTouchpanel2pTableRecord() + { + } + + // Token: 0x06004A60 RID: 19040 RVA: 0x0018D883 File Offset: 0x0018CA83 + public TestmodeTouchpanel2pTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005B39 RID: 23353 + public int EnumValue; + + // Token: 0x04005B3A RID: 23354 + public string EnumName; + + // Token: 0x04005B3B RID: 23355 + public string Name; + + // Token: 0x04005B3C RID: 23356 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeTouchpanelID.cs b/Assembly-CSharp/DB/TestmodeTouchpanelID.cs new file mode 100644 index 0000000..ccc9396 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeTouchpanelID.cs @@ -0,0 +1,23 @@ +using System; + +namespace DB +{ + // Token: 0x020008C2 RID: 2242 + public enum TestmodeTouchpanelID + { + // Token: 0x04005B3F RID: 23359 + Title0, + // Token: 0x04005B40 RID: 23360 + Label00, + // Token: 0x04005B41 RID: 23361 + Label01, + // Token: 0x04005B42 RID: 23362 + Label02, + // Token: 0x04005B43 RID: 23363 + Begin = 0, + // Token: 0x04005B44 RID: 23364 + End = 4, + // Token: 0x04005B45 RID: 23365 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeTouchpanelIDEnum.cs b/Assembly-CSharp/DB/TestmodeTouchpanelIDEnum.cs new file mode 100644 index 0000000..99e09dc --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeTouchpanelIDEnum.cs @@ -0,0 +1,108 @@ +using System; + +namespace DB +{ + // Token: 0x020008C4 RID: 2244 + public static class TestmodeTouchpanelIDEnum + { + // Token: 0x06004A6E RID: 19054 RVA: 0x00173DA6 File Offset: 0x00172FA6 + public static bool IsActive(this TestmodeTouchpanelID self) + { + return self >= TestmodeTouchpanelID.Title0 && self < TestmodeTouchpanelID.End && self > TestmodeTouchpanelID.Title0; + } + + // Token: 0x06004A6F RID: 19055 RVA: 0x00173DB6 File Offset: 0x00172FB6 + public static bool IsValid(this TestmodeTouchpanelID self) + { + return self >= TestmodeTouchpanelID.Title0 && self < TestmodeTouchpanelID.End; + } + + // Token: 0x06004A70 RID: 19056 RVA: 0x0018DACC File Offset: 0x0018CCCC + public static void Clamp(this TestmodeTouchpanelID self) + { + if (self < TestmodeTouchpanelID.Title0) + { + self = TestmodeTouchpanelID.Title0; + return; + } + if (self >= (TestmodeTouchpanelID)TestmodeTouchpanelIDEnum.GetEnd()) + { + self = (TestmodeTouchpanelID)TestmodeTouchpanelIDEnum.GetEnd(); + } + } + + // Token: 0x06004A71 RID: 19057 RVA: 0x0018DAE5 File Offset: 0x0018CCE5 + public static int GetEnd(this TestmodeTouchpanelID self) + { + return TestmodeTouchpanelIDEnum.GetEnd(); + } + + // Token: 0x06004A72 RID: 19058 RVA: 0x0018DAEC File Offset: 0x0018CCEC + public static TestmodeTouchpanelID FindID(string enumName) + { + for (TestmodeTouchpanelID testmodeTouchpanelID = TestmodeTouchpanelID.Title0; testmodeTouchpanelID < TestmodeTouchpanelID.End; testmodeTouchpanelID++) + { + if (testmodeTouchpanelID.GetEnumName() == enumName) + { + return testmodeTouchpanelID; + } + } + return TestmodeTouchpanelID.Invalid; + } + + // Token: 0x06004A73 RID: 19059 RVA: 0x0018DB16 File Offset: 0x0018CD16 + public static int GetEnd() + { + return TestmodeTouchpanelIDEnum.records.Length; + } + + // Token: 0x06004A74 RID: 19060 RVA: 0x0018DB1F File Offset: 0x0018CD1F + public static int GetEnumValue(this TestmodeTouchpanelID self) + { + if (self.IsValid()) + { + return TestmodeTouchpanelIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004A75 RID: 19061 RVA: 0x0018DB37 File Offset: 0x0018CD37 + public static string GetEnumName(this TestmodeTouchpanelID self) + { + if (self.IsValid()) + { + return TestmodeTouchpanelIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004A76 RID: 19062 RVA: 0x0018DB53 File Offset: 0x0018CD53 + public static string GetName(this TestmodeTouchpanelID self) + { + if (self.IsValid()) + { + return TestmodeTouchpanelIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004A77 RID: 19063 RVA: 0x0018DB6F File Offset: 0x0018CD6F + public static string GetNameEx(this TestmodeTouchpanelID self) + { + if (self.IsValid()) + { + return TestmodeTouchpanelIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005B4A RID: 23370 + private static readonly TestmodeTouchpanelTableRecord[] records = new TestmodeTouchpanelTableRecord[] + { + new TestmodeTouchpanelTableRecord(0, "Title0", "触摸感应器", ""), + new TestmodeTouchpanelTableRecord(1, "Label00", "触摸感应器(玩家1)", ""), + new TestmodeTouchpanelTableRecord(2, "Label01", "触摸感应器(玩家2)", ""), + new TestmodeTouchpanelTableRecord(3, "Label02", "离开", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeTouchpanelTableRecord.cs b/Assembly-CSharp/DB/TestmodeTouchpanelTableRecord.cs new file mode 100644 index 0000000..d52ea1b --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeTouchpanelTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x020008C3 RID: 2243 + public class TestmodeTouchpanelTableRecord + { + // Token: 0x06004A6C RID: 19052 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeTouchpanelTableRecord() + { + } + + // Token: 0x06004A6D RID: 19053 RVA: 0x0018DAA7 File Offset: 0x0018CCA7 + public TestmodeTouchpanelTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005B46 RID: 23366 + public int EnumValue; + + // Token: 0x04005B47 RID: 23367 + public string EnumName; + + // Token: 0x04005B48 RID: 23368 + public string Name; + + // Token: 0x04005B49 RID: 23369 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/TestmodeVfdID.cs b/Assembly-CSharp/DB/TestmodeVfdID.cs new file mode 100644 index 0000000..c293b4c --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeVfdID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x020008C5 RID: 2245 + public enum TestmodeVfdID + { + // Token: 0x04005B4C RID: 23372 + Title0, + // Token: 0x04005B4D RID: 23373 + Label00, + // Token: 0x04005B4E RID: 23374 + Begin = 0, + // Token: 0x04005B4F RID: 23375 + End = 2, + // Token: 0x04005B50 RID: 23376 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/TestmodeVfdIDEnum.cs b/Assembly-CSharp/DB/TestmodeVfdIDEnum.cs new file mode 100644 index 0000000..a3f53f4 --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeVfdIDEnum.cs @@ -0,0 +1,106 @@ +using System; + +namespace DB +{ + // Token: 0x020008C7 RID: 2247 + public static class TestmodeVfdIDEnum + { + // Token: 0x06004A7B RID: 19067 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this TestmodeVfdID self) + { + return self >= TestmodeVfdID.Title0 && self < TestmodeVfdID.End && self > TestmodeVfdID.Title0; + } + + // Token: 0x06004A7C RID: 19068 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this TestmodeVfdID self) + { + return self >= TestmodeVfdID.Title0 && self < TestmodeVfdID.End; + } + + // Token: 0x06004A7D RID: 19069 RVA: 0x0018DC29 File Offset: 0x0018CE29 + public static void Clamp(this TestmodeVfdID self) + { + if (self < TestmodeVfdID.Title0) + { + self = TestmodeVfdID.Title0; + return; + } + if (self >= (TestmodeVfdID)TestmodeVfdIDEnum.GetEnd()) + { + self = (TestmodeVfdID)TestmodeVfdIDEnum.GetEnd(); + } + } + + // Token: 0x06004A7E RID: 19070 RVA: 0x0018DC42 File Offset: 0x0018CE42 + public static int GetEnd(this TestmodeVfdID self) + { + return TestmodeVfdIDEnum.GetEnd(); + } + + // Token: 0x06004A7F RID: 19071 RVA: 0x0018DC4C File Offset: 0x0018CE4C + public static TestmodeVfdID FindID(string enumName) + { + for (TestmodeVfdID testmodeVfdID = TestmodeVfdID.Title0; testmodeVfdID < TestmodeVfdID.End; testmodeVfdID++) + { + if (testmodeVfdID.GetEnumName() == enumName) + { + return testmodeVfdID; + } + } + return TestmodeVfdID.Invalid; + } + + // Token: 0x06004A80 RID: 19072 RVA: 0x0018DC76 File Offset: 0x0018CE76 + public static int GetEnd() + { + return TestmodeVfdIDEnum.records.Length; + } + + // Token: 0x06004A81 RID: 19073 RVA: 0x0018DC7F File Offset: 0x0018CE7F + public static int GetEnumValue(this TestmodeVfdID self) + { + if (self.IsValid()) + { + return TestmodeVfdIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004A82 RID: 19074 RVA: 0x0018DC97 File Offset: 0x0018CE97 + public static string GetEnumName(this TestmodeVfdID self) + { + if (self.IsValid()) + { + return TestmodeVfdIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004A83 RID: 19075 RVA: 0x0018DCB3 File Offset: 0x0018CEB3 + public static string GetName(this TestmodeVfdID self) + { + if (self.IsValid()) + { + return TestmodeVfdIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004A84 RID: 19076 RVA: 0x0018DCCF File Offset: 0x0018CECF + public static string GetNameEx(this TestmodeVfdID self) + { + if (self.IsValid()) + { + return TestmodeVfdIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x04005B55 RID: 23381 + private static readonly TestmodeVfdTableRecord[] records = new TestmodeVfdTableRecord[] + { + new TestmodeVfdTableRecord(0, "Title0", "VFD表示テスト", ""), + new TestmodeVfdTableRecord(1, "Label00", "テスト中 : VFDを確認してください", "") + }; + } +} diff --git a/Assembly-CSharp/DB/TestmodeVfdTableRecord.cs b/Assembly-CSharp/DB/TestmodeVfdTableRecord.cs new file mode 100644 index 0000000..beb85dd --- /dev/null +++ b/Assembly-CSharp/DB/TestmodeVfdTableRecord.cs @@ -0,0 +1,34 @@ +using System; + +namespace DB +{ + // Token: 0x020008C6 RID: 2246 + public class TestmodeVfdTableRecord + { + // Token: 0x06004A79 RID: 19065 RVA: 0x00003560 File Offset: 0x00002760 + public TestmodeVfdTableRecord() + { + } + + // Token: 0x06004A7A RID: 19066 RVA: 0x0018DC04 File Offset: 0x0018CE04 + public TestmodeVfdTableRecord(int EnumValue, string EnumName, string Name, string NameEx) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + this.NameEx = NameEx; + } + + // Token: 0x04005B51 RID: 23377 + public int EnumValue; + + // Token: 0x04005B52 RID: 23378 + public string EnumName; + + // Token: 0x04005B53 RID: 23379 + public string Name; + + // Token: 0x04005B54 RID: 23380 + public string NameEx; + } +} diff --git a/Assembly-CSharp/DB/VsghostnpcID.cs b/Assembly-CSharp/DB/VsghostnpcID.cs new file mode 100644 index 0000000..8ddbf17 --- /dev/null +++ b/Assembly-CSharp/DB/VsghostnpcID.cs @@ -0,0 +1,35 @@ +using System; + +namespace DB +{ + // Token: 0x020008C8 RID: 2248 + public enum VsghostnpcID + { + // Token: 0x04005B57 RID: 23383 + vsNpc01, + // Token: 0x04005B58 RID: 23384 + vsNpc02, + // Token: 0x04005B59 RID: 23385 + vsNpc03, + // Token: 0x04005B5A RID: 23386 + vsNpc04, + // Token: 0x04005B5B RID: 23387 + vsNpc05, + // Token: 0x04005B5C RID: 23388 + vsNpc06, + // Token: 0x04005B5D RID: 23389 + vsNpc07, + // Token: 0x04005B5E RID: 23390 + vsNpc08, + // Token: 0x04005B5F RID: 23391 + vsNpc09, + // Token: 0x04005B60 RID: 23392 + vsNpc10, + // Token: 0x04005B61 RID: 23393 + Begin = 0, + // Token: 0x04005B62 RID: 23394 + End = 10, + // Token: 0x04005B63 RID: 23395 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/VsghostnpcIDEnum.cs b/Assembly-CSharp/DB/VsghostnpcIDEnum.cs new file mode 100644 index 0000000..6207c35 --- /dev/null +++ b/Assembly-CSharp/DB/VsghostnpcIDEnum.cs @@ -0,0 +1,104 @@ +using System; + +namespace DB +{ + // Token: 0x020008CA RID: 2250 + public static class VsghostnpcIDEnum + { + // Token: 0x06004A88 RID: 19080 RVA: 0x001784B0 File Offset: 0x001776B0 + public static bool IsActive(this VsghostnpcID self) + { + return self >= VsghostnpcID.vsNpc01 && self < VsghostnpcID.End && self > VsghostnpcID.vsNpc01; + } + + // Token: 0x06004A89 RID: 19081 RVA: 0x001784C1 File Offset: 0x001776C1 + public static bool IsValid(this VsghostnpcID self) + { + return self >= VsghostnpcID.vsNpc01 && self < VsghostnpcID.End; + } + + // Token: 0x06004A8A RID: 19082 RVA: 0x0018DD45 File Offset: 0x0018CF45 + public static void Clamp(this VsghostnpcID self) + { + if (self < VsghostnpcID.vsNpc01) + { + self = VsghostnpcID.vsNpc01; + return; + } + if (self >= (VsghostnpcID)VsghostnpcIDEnum.GetEnd()) + { + self = (VsghostnpcID)VsghostnpcIDEnum.GetEnd(); + } + } + + // Token: 0x06004A8B RID: 19083 RVA: 0x0018DD5E File Offset: 0x0018CF5E + public static int GetEnd(this VsghostnpcID self) + { + return VsghostnpcIDEnum.GetEnd(); + } + + // Token: 0x06004A8C RID: 19084 RVA: 0x0018DD68 File Offset: 0x0018CF68 + public static VsghostnpcID FindID(string enumName) + { + for (VsghostnpcID vsghostnpcID = VsghostnpcID.vsNpc01; vsghostnpcID < VsghostnpcID.End; vsghostnpcID++) + { + if (vsghostnpcID.GetEnumName() == enumName) + { + return vsghostnpcID; + } + } + return VsghostnpcID.Invalid; + } + + // Token: 0x06004A8D RID: 19085 RVA: 0x0018DD93 File Offset: 0x0018CF93 + public static int GetEnd() + { + return VsghostnpcIDEnum.records.Length; + } + + // Token: 0x06004A8E RID: 19086 RVA: 0x0018DD9C File Offset: 0x0018CF9C + public static int GetEnumValue(this VsghostnpcID self) + { + if (self.IsValid()) + { + return VsghostnpcIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004A8F RID: 19087 RVA: 0x0018DDB4 File Offset: 0x0018CFB4 + public static string GetEnumName(this VsghostnpcID self) + { + if (self.IsValid()) + { + return VsghostnpcIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004A90 RID: 19088 RVA: 0x0018DDD0 File Offset: 0x0018CFD0 + public static string GetName(this VsghostnpcID self) + { + if (self.IsValid()) + { + return VsghostnpcIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04005B67 RID: 23399 + private static readonly VsghostnpcTableRecord[] records = new VsghostnpcTableRecord[] + { + new VsghostnpcTableRecord(0, "vsNpc01", "maimai"), + new VsghostnpcTableRecord(1, "vsNpc02", "deluxe"), + new VsghostnpcTableRecord(2, "vsNpc03", "Osaki"), + new VsghostnpcTableRecord(3, "vsNpc04", "Otorii"), + new VsghostnpcTableRecord(4, "vsNpc05", "Rand"), + new VsghostnpcTableRecord(5, "vsNpc06", "Dolly"), + new VsghostnpcTableRecord(6, "vsNpc07", "Lime"), + new VsghostnpcTableRecord(7, "vsNpc08", "Lemon"), + new VsghostnpcTableRecord(8, "vsNpc09", "Otohime"), + new VsghostnpcTableRecord(9, "vsNpc10", "Splash") + }; + } +} diff --git a/Assembly-CSharp/DB/VsghostnpcTableRecord.cs b/Assembly-CSharp/DB/VsghostnpcTableRecord.cs new file mode 100644 index 0000000..cd3f601 --- /dev/null +++ b/Assembly-CSharp/DB/VsghostnpcTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x020008C9 RID: 2249 + public class VsghostnpcTableRecord + { + // Token: 0x06004A86 RID: 19078 RVA: 0x00003560 File Offset: 0x00002760 + public VsghostnpcTableRecord() + { + } + + // Token: 0x06004A87 RID: 19079 RVA: 0x0018DD28 File Offset: 0x0018CF28 + public VsghostnpcTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005B64 RID: 23396 + public int EnumValue; + + // Token: 0x04005B65 RID: 23397 + public string EnumName; + + // Token: 0x04005B66 RID: 23398 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/WindowKindID.cs b/Assembly-CSharp/DB/WindowKindID.cs new file mode 100644 index 0000000..37602ef --- /dev/null +++ b/Assembly-CSharp/DB/WindowKindID.cs @@ -0,0 +1,19 @@ +using System; + +namespace DB +{ + // Token: 0x020008CB RID: 2251 + public enum WindowKindID + { + // Token: 0x04005B69 RID: 23401 + Common, + // Token: 0x04005B6A RID: 23402 + Attention, + // Token: 0x04005B6B RID: 23403 + Begin = 0, + // Token: 0x04005B6C RID: 23404 + End = 2, + // Token: 0x04005B6D RID: 23405 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/WindowKindIDEnum.cs b/Assembly-CSharp/DB/WindowKindIDEnum.cs new file mode 100644 index 0000000..8e7dfcc --- /dev/null +++ b/Assembly-CSharp/DB/WindowKindIDEnum.cs @@ -0,0 +1,96 @@ +using System; + +namespace DB +{ + // Token: 0x020008CD RID: 2253 + public static class WindowKindIDEnum + { + // Token: 0x06004A94 RID: 19092 RVA: 0x00174F4E File Offset: 0x0017414E + public static bool IsActive(this WindowKindID self) + { + return self >= WindowKindID.Common && self < WindowKindID.End && self > WindowKindID.Common; + } + + // Token: 0x06004A95 RID: 19093 RVA: 0x00174F5E File Offset: 0x0017415E + public static bool IsValid(this WindowKindID self) + { + return self >= WindowKindID.Common && self < WindowKindID.End; + } + + // Token: 0x06004A96 RID: 19094 RVA: 0x0018DEE2 File Offset: 0x0018D0E2 + public static void Clamp(this WindowKindID self) + { + if (self < WindowKindID.Common) + { + self = WindowKindID.Common; + return; + } + if (self >= (WindowKindID)WindowKindIDEnum.GetEnd()) + { + self = (WindowKindID)WindowKindIDEnum.GetEnd(); + } + } + + // Token: 0x06004A97 RID: 19095 RVA: 0x0018DEFB File Offset: 0x0018D0FB + public static int GetEnd(this WindowKindID self) + { + return WindowKindIDEnum.GetEnd(); + } + + // Token: 0x06004A98 RID: 19096 RVA: 0x0018DF04 File Offset: 0x0018D104 + public static WindowKindID FindID(string enumName) + { + for (WindowKindID windowKindID = WindowKindID.Common; windowKindID < WindowKindID.End; windowKindID++) + { + if (windowKindID.GetEnumName() == enumName) + { + return windowKindID; + } + } + return WindowKindID.Invalid; + } + + // Token: 0x06004A99 RID: 19097 RVA: 0x0018DF2E File Offset: 0x0018D12E + public static int GetEnd() + { + return WindowKindIDEnum.records.Length; + } + + // Token: 0x06004A9A RID: 19098 RVA: 0x0018DF37 File Offset: 0x0018D137 + public static int GetEnumValue(this WindowKindID self) + { + if (self.IsValid()) + { + return WindowKindIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004A9B RID: 19099 RVA: 0x0018DF4F File Offset: 0x0018D14F + public static string GetEnumName(this WindowKindID self) + { + if (self.IsValid()) + { + return WindowKindIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004A9C RID: 19100 RVA: 0x0018DF6B File Offset: 0x0018D16B + public static string GetName(this WindowKindID self) + { + if (self.IsValid()) + { + return WindowKindIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04005B71 RID: 23409 + private static readonly WindowKindTableRecord[] records = new WindowKindTableRecord[] + { + new WindowKindTableRecord(0, "Common", "ノーマル"), + new WindowKindTableRecord(1, "Attention", "アテンション") + }; + } +} diff --git a/Assembly-CSharp/DB/WindowKindTableRecord.cs b/Assembly-CSharp/DB/WindowKindTableRecord.cs new file mode 100644 index 0000000..7976b89 --- /dev/null +++ b/Assembly-CSharp/DB/WindowKindTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x020008CC RID: 2252 + public class WindowKindTableRecord + { + // Token: 0x06004A92 RID: 19090 RVA: 0x00003560 File Offset: 0x00002760 + public WindowKindTableRecord() + { + } + + // Token: 0x06004A93 RID: 19091 RVA: 0x0018DEC5 File Offset: 0x0018D0C5 + public WindowKindTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005B6E RID: 23406 + public int EnumValue; + + // Token: 0x04005B6F RID: 23407 + public string EnumName; + + // Token: 0x04005B70 RID: 23408 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/WindowMessageID.cs b/Assembly-CSharp/DB/WindowMessageID.cs new file mode 100644 index 0000000..5190fce --- /dev/null +++ b/Assembly-CSharp/DB/WindowMessageID.cs @@ -0,0 +1,379 @@ +using System; + +namespace DB +{ + // Token: 0x020008CE RID: 2254 + public enum WindowMessageID + { + // Token: 0x04005B73 RID: 23411 + EntryConfirmGuest, + // Token: 0x04005B74 RID: 23412 + EntryDisplayPleaseWait, + // Token: 0x04005B75 RID: 23413 + EntryConfirmNewAime, + // Token: 0x04005B76 RID: 23414 + EntryConfirmNewUser, + // Token: 0x04005B77 RID: 23415 + EntryConfirmExistingAime, + // Token: 0x04005B78 RID: 23416 + EntryConfirmInheritAime, + // Token: 0x04005B79 RID: 23417 + EntryConfirmNewAimeSp, + // Token: 0x04005B7A RID: 23418 + EntryConfirmExistingAimeEvent, + // Token: 0x04005B7B RID: 23419 + EntryConfirmExistingAimeOldUser, + // Token: 0x04005B7C RID: 23420 + EntryWaitPartner, + // Token: 0x04005B7D RID: 23421 + EntryNoticeFelicaRegistration, + // Token: 0x04005B7E RID: 23422 + EntryConfirmFelicaSite, + // Token: 0x04005B7F RID: 23423 + EntryConfirmAccessCode, + // Token: 0x04005B80 RID: 23424 + EntryErrorAimeUnknown, + // Token: 0x04005B81 RID: 23425 + EntryErrorAimeLogin, + // Token: 0x04005B82 RID: 23426 + EntryErrorAimeEventNew, + // Token: 0x04005B83 RID: 23427 + EntryErrorAimeEventInherit, + // Token: 0x04005B84 RID: 23428 + EntryErrorAimeVersion, + // Token: 0x04005B85 RID: 23429 + EntryErrorAimeVersionInherit, + // Token: 0x04005B86 RID: 23430 + EntryErrorAimeNetwork, + // Token: 0x04005B87 RID: 23431 + EntryErrorAimeFatal, + // Token: 0x04005B88 RID: 23432 + EntryErrorAimeOverlap, + // Token: 0x04005B89 RID: 23433 + EntryErrorOldServerDown, + // Token: 0x04005B8A RID: 23434 + EntryDoneEntryTwoPlayer, + // Token: 0x04005B8B RID: 23435 + EntryDoneEntryTwoPlayerNew, + // Token: 0x04005B8C RID: 23436 + EntryDoneEntryDailyBonus, + // Token: 0x04005B8D RID: 23437 + EntryDoneEntryWeekdayBonus, + // Token: 0x04005B8E RID: 23438 + EntryErrorAccessCodeRead, + // Token: 0x04005B8F RID: 23439 + EntryErrorAccessCodeRegistration, + // Token: 0x04005B90 RID: 23440 + PhotoNotRegistNet, + // Token: 0x04005B91 RID: 23441 + PhotoUploadConfirm, + // Token: 0x04005B92 RID: 23442 + PhotoUploadContract, + // Token: 0x04005B93 RID: 23443 + PhotoUploadDone, + // Token: 0x04005B94 RID: 23444 + NameEntryDescription, + // Token: 0x04005B95 RID: 23445 + NameEntryConfirm, + // Token: 0x04005B96 RID: 23446 + NameEntryNgwordInfo, + // Token: 0x04005B97 RID: 23447 + NameEntryNotEnteredInfo, + // Token: 0x04005B98 RID: 23448 + NameEntryWelcomeInfo, + // Token: 0x04005B99 RID: 23449 + NameEntryTimeupInfo01, + // Token: 0x04005B9A RID: 23450 + NameEntryTimeUpInfo02, + // Token: 0x04005B9B RID: 23451 + NameEntryTimeUpInfo03, + // Token: 0x04005B9C RID: 23452 + PlayPreparationWait, + // Token: 0x04005B9D RID: 23453 + PlayPreparationCancel, + // Token: 0x04005B9E RID: 23454 + FreedomModeTimeUp, + // Token: 0x04005B9F RID: 23455 + CollectionAttentionMaxFavorite, + // Token: 0x04005BA0 RID: 23456 + CollectionAttentionEmptyFavorite, + // Token: 0x04005BA1 RID: 23457 + CollectionCategorySelectAnnounce, + // Token: 0x04005BA2 RID: 23458 + CollectionSelectAnnounce, + // Token: 0x04005BA3 RID: 23459 + CollectionGotoFavorite, + // Token: 0x04005BA4 RID: 23460 + CollectionGotoCollectionCustom, + // Token: 0x04005BA5 RID: 23461 + CollectionGetAnnounceInfo, + // Token: 0x04005BA6 RID: 23462 + GhostDifficultyInfomation, + // Token: 0x04005BA7 RID: 23463 + NetworkErrorToGuest, + // Token: 0x04005BA8 RID: 23464 + TutorialSelectInfo, + // Token: 0x04005BA9 RID: 23465 + TutorialEnter, + // Token: 0x04005BAA RID: 23466 + TutorialExit, + // Token: 0x04005BAB RID: 23467 + NextTrackTips01, + // Token: 0x04005BAC RID: 23468 + NextTrackTips02, + // Token: 0x04005BAD RID: 23469 + NextTrackTips03, + // Token: 0x04005BAE RID: 23470 + NextTrackTips04, + // Token: 0x04005BAF RID: 23471 + NextTrackTips05, + // Token: 0x04005BB0 RID: 23472 + NextTrackTips06, + // Token: 0x04005BB1 RID: 23473 + NextTrackTips07, + // Token: 0x04005BB2 RID: 23474 + NextTrackTips08, + // Token: 0x04005BB3 RID: 23475 + NextTrackTips09, + // Token: 0x04005BB4 RID: 23476 + NextTrackTips10, + // Token: 0x04005BB5 RID: 23477 + NextTrackTips11, + // Token: 0x04005BB6 RID: 23478 + NextTrackTips12, + // Token: 0x04005BB7 RID: 23479 + NextTrackTips13, + // Token: 0x04005BB8 RID: 23480 + NextTrackTips14, + // Token: 0x04005BB9 RID: 23481 + NextTrackTips15, + // Token: 0x04005BBA RID: 23482 + NextTrackTips16, + // Token: 0x04005BBB RID: 23483 + NextTrackTips17, + // Token: 0x04005BBC RID: 23484 + NextTrackTips18, + // Token: 0x04005BBD RID: 23485 + NextTrackTips19, + // Token: 0x04005BBE RID: 23486 + NextTrackTips20, + // Token: 0x04005BBF RID: 23487 + NextTrackTips21, + // Token: 0x04005BC0 RID: 23488 + NextTrackTips22, + // Token: 0x04005BC1 RID: 23489 + NextTrackTips23, + // Token: 0x04005BC2 RID: 23490 + NextTrackTips24, + // Token: 0x04005BC3 RID: 23491 + NextTrackTips25, + // Token: 0x04005BC4 RID: 23492 + NextTrackTips26, + // Token: 0x04005BC5 RID: 23493 + NextTrackTips27, + // Token: 0x04005BC6 RID: 23494 + NextTrackTips28, + // Token: 0x04005BC7 RID: 23495 + NextTrackTips29, + // Token: 0x04005BC8 RID: 23496 + NextTrackTips30, + // Token: 0x04005BC9 RID: 23497 + NextTrackTips31, + // Token: 0x04005BCA RID: 23498 + NextTrackTips32, + // Token: 0x04005BCB RID: 23499 + NextTrackTips33, + // Token: 0x04005BCC RID: 23500 + NextTrackTips34, + // Token: 0x04005BCD RID: 23501 + NextTrackTips35, + // Token: 0x04005BCE RID: 23502 + NextTrackTips36, + // Token: 0x04005BCF RID: 23503 + IconPhotoContract, + // Token: 0x04005BD0 RID: 23504 + ClassicModeSelectMessage, + // Token: 0x04005BD1 RID: 23505 + CharacterSelectAutoMessage, + // Token: 0x04005BD2 RID: 23506 + CardReadFailedMessage, + // Token: 0x04005BD3 RID: 23507 + CodeReadInsertCardMessage, + // Token: 0x04005BD4 RID: 23508 + FreedomModeTerminationMessage, + // Token: 0x04005BD5 RID: 23509 + DataSaveStart, + // Token: 0x04005BD6 RID: 23510 + DataSaveError, + // Token: 0x04005BD7 RID: 23511 + TakeOverInfo01, + // Token: 0x04005BD8 RID: 23512 + TakeOverInfo02, + // Token: 0x04005BD9 RID: 23513 + Warning, + // Token: 0x04005BDA RID: 23514 + CodeReadFirst, + // Token: 0x04005BDB RID: 23515 + CodeReadOutOfService, + // Token: 0x04005BDC RID: 23516 + CodeReadNotHave, + // Token: 0x04005BDD RID: 23517 + SimpleSettingFirst, + // Token: 0x04005BDE RID: 23518 + SinmpeSettingNewFrame, + // Token: 0x04005BDF RID: 23519 + MapSelectFirst, + // Token: 0x04005BE0 RID: 23520 + CharaSelectFirst, + // Token: 0x04005BE1 RID: 23521 + CharaSelectGoodBad, + // Token: 0x04005BE2 RID: 23522 + CategorySelectFirst, + // Token: 0x04005BE3 RID: 23523 + MusicSelectFirst, + // Token: 0x04005BE4 RID: 23524 + PlayReadyFirst, + // Token: 0x04005BE5 RID: 23525 + DxStandardFirst, + // Token: 0x04005BE6 RID: 23526 + OtomodachiFirst, + // Token: 0x04005BE7 RID: 23527 + RateCategoryFirst, + // Token: 0x04005BE8 RID: 23528 + CharaAwakeFirst, + // Token: 0x04005BE9 RID: 23529 + TotalResultFirst, + // Token: 0x04005BEA RID: 23530 + CollectionCustomFirst, + // Token: 0x04005BEB RID: 23531 + DxPassFirst, + // Token: 0x04005BEC RID: 23532 + FreedomFirst, + // Token: 0x04005BED RID: 23533 + SortFirst, + // Token: 0x04005BEE RID: 23534 + AimeUseNotice, + // Token: 0x04005BEF RID: 23535 + MusicSelectCanceRecruit, + // Token: 0x04005BF0 RID: 23536 + MusicSelectCancelConfirmHost, + // Token: 0x04005BF1 RID: 23537 + MusicSelectCancelConfirmClient, + // Token: 0x04005BF2 RID: 23538 + MusicSelectConfirmTrackStart, + // Token: 0x04005BF3 RID: 23539 + MusicSelectForceTrackStart, + // Token: 0x04005BF4 RID: 23540 + MusicSelectWaitToHost, + // Token: 0x04005BF5 RID: 23541 + PhotoAgree, + // Token: 0x04005BF6 RID: 23542 + NetworkErrorUpPlaylog, + // Token: 0x04005BF7 RID: 23543 + NetworkError, + // Token: 0x04005BF8 RID: 23544 + EntryError, + // Token: 0x04005BF9 RID: 23545 + MapCounterStop, + // Token: 0x04005BFA RID: 23546 + BossAppearFirst, + // Token: 0x04005BFB RID: 23547 + BossStayHint, + // Token: 0x04005BFC RID: 23548 + TrackSkip3Second, + // Token: 0x04005BFD RID: 23549 + TrackSkip2Second, + // Token: 0x04005BFE RID: 23550 + TrackSkip1Second, + // Token: 0x04005BFF RID: 23551 + CharaLockInfo, + // Token: 0x04005C00 RID: 23552 + LoginBonusFirst01, + // Token: 0x04005C01 RID: 23553 + LoginBonusFirst02, + // Token: 0x04005C02 RID: 23554 + LoginBonusFirst03, + // Token: 0x04005C03 RID: 23555 + CollectionPartnerFIrst, + // Token: 0x04005C04 RID: 23556 + TransferDx01, + // Token: 0x04005C05 RID: 23557 + TransferDx02, + // Token: 0x04005C06 RID: 23558 + TransferDx03, + // Token: 0x04005C07 RID: 23559 + PassportCamera, + // Token: 0x04005C08 RID: 23560 + CharaSelectCut, + // Token: 0x04005C09 RID: 23561 + SpecialBossAppear, + // Token: 0x04005C0A RID: 23562 + PhotoShootCancel, + // Token: 0x04005C0B RID: 23563 + FBRFirst, + // Token: 0x04005C0C RID: 23564 + FBRClassPoint, + // Token: 0x04005C0D RID: 23565 + FBRLegend, + // Token: 0x04005C0E RID: 23566 + TicketSelectFirst, + // Token: 0x04005C0F RID: 23567 + ModeSelectSinRankAdd, + // Token: 0x04005C10 RID: 23568 + ModeSelectFirst, + // Token: 0x04005C11 RID: 23569 + TicketConnectServer, + // Token: 0x04005C12 RID: 23570 + TicketConnectFailed, + // Token: 0x04005C13 RID: 23571 + ModeSelectWhichOneTimeOut, + // Token: 0x04005C14 RID: 23572 + EntryNoticeDataMigration, + // Token: 0x04005C15 RID: 23573 + PlayRulesMessage, + // Token: 0x04005C16 RID: 23574 + BanWarning, + // Token: 0x04005C17 RID: 23575 + BanExecution, + // Token: 0x04005C18 RID: 23576 + SeasonStartPointGet, + // Token: 0x04005C19 RID: 23577 + QuickRetry2Second, + // Token: 0x04005C1A RID: 23578 + QuickRetry1Second, + // Token: 0x04005C1B RID: 23579 + SelectionMusicFirst, + // Token: 0x04005C1C RID: 23580 + RateMusicFirst, + // Token: 0x04005C1D RID: 23581 + InfinityRegionFirst, + // Token: 0x04005C1E RID: 23582 + UnlockUtage, + // Token: 0x04005C1F RID: 23583 + PhotoShootSelect, + // Token: 0x04005C20 RID: 23584 + LegendSeasonAppear, + // Token: 0x04005C21 RID: 23585 + BuyItem, + // Token: 0x04005C22 RID: 23586 + Mission, + // Token: 0x04005C23 RID: 23587 + GetMileFirst, + // Token: 0x04005C24 RID: 23588 + AddFavoriteMusic, + // Token: 0x04005C25 RID: 23589 + KaleidxScopeConfirm, + // Token: 0x04005C26 RID: 23590 + GetKaleidxScopePrism, + // Token: 0x04005C27 RID: 23591 + KaleidxScopeConfirm2P, + // Token: 0x04005C28 RID: 23592 + KaleidxScopeToNormal, + // Token: 0x04005C29 RID: 23593 + Begin = 0, + // Token: 0x04005C2A RID: 23594 + End = 182, + // Token: 0x04005C2B RID: 23595 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/WindowMessageIDEnum.cs b/Assembly-CSharp/DB/WindowMessageIDEnum.cs new file mode 100644 index 0000000..2ed0257 --- /dev/null +++ b/Assembly-CSharp/DB/WindowMessageIDEnum.cs @@ -0,0 +1,356 @@ +using System; + +namespace DB +{ + // Token: 0x020008D0 RID: 2256 + public static class WindowMessageIDEnum + { + // Token: 0x06004AA0 RID: 19104 RVA: 0x0018E024 File Offset: 0x0018D224 + public static bool IsActive(this WindowMessageID self) + { + return self >= WindowMessageID.EntryConfirmGuest && self < WindowMessageID.End && self > WindowMessageID.EntryConfirmGuest; + } + + // Token: 0x06004AA1 RID: 19105 RVA: 0x0018E038 File Offset: 0x0018D238 + public static bool IsValid(this WindowMessageID self) + { + return self >= WindowMessageID.EntryConfirmGuest && self < WindowMessageID.End; + } + + // Token: 0x06004AA2 RID: 19106 RVA: 0x0018E048 File Offset: 0x0018D248 + public static void Clamp(this WindowMessageID self) + { + if (self < WindowMessageID.EntryConfirmGuest) + { + self = WindowMessageID.EntryConfirmGuest; + return; + } + if (self >= (WindowMessageID)WindowMessageIDEnum.GetEnd()) + { + self = (WindowMessageID)WindowMessageIDEnum.GetEnd(); + } + } + + // Token: 0x06004AA3 RID: 19107 RVA: 0x0018E061 File Offset: 0x0018D261 + public static int GetEnd(this WindowMessageID self) + { + return WindowMessageIDEnum.GetEnd(); + } + + // Token: 0x06004AA4 RID: 19108 RVA: 0x0018E068 File Offset: 0x0018D268 + public static WindowMessageID FindID(string enumName) + { + for (WindowMessageID windowMessageID = WindowMessageID.EntryConfirmGuest; windowMessageID < WindowMessageID.End; windowMessageID++) + { + if (windowMessageID.GetEnumName() == enumName) + { + return windowMessageID; + } + } + return WindowMessageID.Invalid; + } + + // Token: 0x06004AA5 RID: 19109 RVA: 0x0018E096 File Offset: 0x0018D296 + public static int GetEnd() + { + return WindowMessageIDEnum.records.Length; + } + + // Token: 0x06004AA6 RID: 19110 RVA: 0x0018E09F File Offset: 0x0018D29F + public static int GetEnumValue(this WindowMessageID self) + { + if (self.IsValid()) + { + return WindowMessageIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004AA7 RID: 19111 RVA: 0x0018E0B7 File Offset: 0x0018D2B7 + public static string GetEnumName(this WindowMessageID self) + { + if (self.IsValid()) + { + return WindowMessageIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004AA8 RID: 19112 RVA: 0x0018E0D3 File Offset: 0x0018D2D3 + public static WindowKindID GetKind(this WindowMessageID self) + { + if (self.IsValid()) + { + return WindowMessageIDEnum.records[(int)self].Kind; + } + return WindowKindID.Invalid; + } + + // Token: 0x06004AA9 RID: 19113 RVA: 0x0018E0EB File Offset: 0x0018D2EB + public static WindowPositionID GetPosition(this WindowMessageID self) + { + if (self.IsValid()) + { + return WindowMessageIDEnum.records[(int)self].Position; + } + return WindowPositionID.Invalid; + } + + // Token: 0x06004AAA RID: 19114 RVA: 0x0018E103 File Offset: 0x0018D303 + public static WindowSizeID GetSize(this WindowMessageID self) + { + if (self.IsValid()) + { + return WindowMessageIDEnum.records[(int)self].Size; + } + return WindowSizeID.Invalid; + } + + // Token: 0x06004AAB RID: 19115 RVA: 0x0018E11B File Offset: 0x0018D31B + public static string GetTitle(this WindowMessageID self) + { + if (self.IsValid()) + { + return WindowMessageIDEnum.records[(int)self].Title; + } + return ""; + } + + // Token: 0x06004AAC RID: 19116 RVA: 0x0018E137 File Offset: 0x0018D337 + public static string GetTitleEx(this WindowMessageID self) + { + if (self.IsValid()) + { + return WindowMessageIDEnum.records[(int)self].TitleEx; + } + return ""; + } + + // Token: 0x06004AAD RID: 19117 RVA: 0x0018E153 File Offset: 0x0018D353 + public static string GetName(this WindowMessageID self) + { + if (self.IsValid()) + { + return WindowMessageIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x06004AAE RID: 19118 RVA: 0x0018E16F File Offset: 0x0018D36F + public static string GetNameEx(this WindowMessageID self) + { + if (self.IsValid()) + { + return WindowMessageIDEnum.records[(int)self].NameEx; + } + return ""; + } + + // Token: 0x06004AAF RID: 19119 RVA: 0x0018E18B File Offset: 0x0018D38B + public static int GetLifetime(this WindowMessageID self) + { + if (self.IsValid()) + { + return WindowMessageIDEnum.records[(int)self].Lifetime; + } + return 0; + } + + // Token: 0x06004AB0 RID: 19120 RVA: 0x0018E1A3 File Offset: 0x0018D3A3 + public static string GetFileName(this WindowMessageID self) + { + if (self.IsValid()) + { + return WindowMessageIDEnum.records[(int)self].FileName; + } + return ""; + } + + // Token: 0x04005C37 RID: 23607 + private static readonly WindowMessageTableRecord[] records = new WindowMessageTableRecord[] + { + new WindowMessageTableRecord(0, "EntryConfirmGuest", 0, 1, 3, "通知信息", "", "不使用账号进行游戏!可以吗?\n\n游戏的通关进度等信息都将无法保存", "", -1, ""), + new WindowMessageTableRecord(1, "EntryDisplayPleaseWait", 0, 1, 4, "请稍候", "", "相邻玩家正在操作", "", -1, ""), + new WindowMessageTableRecord(2, "EntryConfirmNewAime", 0, 1, 0, "ユーザーデータ作成を行いますか?", "", "Aimeでプレイするには、このカード・携帯電話に\nユーザーデータ作成を行う必要があります。(無料)\n\n※すでにAimeでご利用中のカード・携帯電話からの\n\u3000データ移行先としては、使用できなくなります\n\n【新規Aimeとして使用する場合】\nはいボタンを押してユーザーデータを作成してください。\n\n【データ移行先として使用する場合】\nいいえボタンを押した後、\n左上のアクセスコードボタンを押してください。", "", -1, ""), + new WindowMessageTableRecord(3, "EntryConfirmNewUser", 0, 1, 3, "使用新账号进行游戏吗?", "", "可以观看教程并免费玩1首曲子哦!\n而且双人游戏的话可以免费玩4首曲子哦哦!", "", -1, ""), + new WindowMessageTableRecord(4, "EntryConfirmExistingAime", 0, 0, 4, "通知信息", "", "用这个账号开始游戏吗?", "", -1, ""), + new WindowMessageTableRecord(5, "EntryConfirmInheritAime", 0, 0, 3, "用这个账号开始游戏吗?", "", "現在のデータをmaimai でらっくす に引き継ぎます\n\n※引き継ぎ後にmaimai FiNALEをプレイしても、\nmaimai でらっくす に更新データは反映されません", "", -1, ""), + new WindowMessageTableRecord(6, "EntryConfirmNewAimeSp", 0, 1, 3, "用这个账号开始游戏吗?", "", "此账号在上次游戏后没有正常登出\n要使用游戏点数开始新的游戏吗?", "", -1, ""), + new WindowMessageTableRecord(7, "EntryConfirmExistingAimeEvent", 0, 0, 4, "用这个账号开始游戏吗?", "", "由于目前处在大会模式,无法保存游戏结果", "", -1, ""), + new WindowMessageTableRecord(8, "EntryConfirmExistingAimeOldUser", 1, 0, 4, "用这个账号开始游戏吗?", "", "由于版本不同,现在将数据继承至新版本\n※数据继承完成后,将无法在之前的版本游戏", "", -1, ""), + new WindowMessageTableRecord(9, "EntryWaitPartner", 0, 1, 4, "正在等待其他玩家", "", "长按跳过倒计时键结束报名", "", -1, ""), + new WindowMessageTableRecord(10, "EntryNoticeFelicaRegistration", 0, 1, 4, "INFORMATION", "", "この携帯電話はAimeとして利用できます\n(ユーザーデータは作成されておりません)", "", -1, ""), + new WindowMessageTableRecord(11, "EntryConfirmFelicaSite", 0, 1, 3, "Aimeサービスサイトに登録しますか?", "", "Aimeサービスサイトに登録すると\n機種変更や紛失・故障などのトラブルが\n起きたときにデータを引き継ぐことができます", "", -1, ""), + new WindowMessageTableRecord(12, "EntryConfirmAccessCode", 0, 1, 4, "アクセスコードを表示します", "", "Aime対応カードまたは対応携帯電話を\nAimeリーダーにタッチしてください", "", -1, ""), + new WindowMessageTableRecord(13, "EntryErrorAimeUnknown", 0, 1, 4, "读取失败", "", "请重新读取", "", -1, ""), + new WindowMessageTableRecord(14, "EntryErrorAimeLogin", 0, 1, 4, "该账号没有登出", "", "当前使用的账号没有正常登出\n请过15分钟后再试", "", -1, ""), + new WindowMessageTableRecord(15, "EntryErrorAimeEventNew", 0, 1, 4, "需要登录账号", "", "由于目前处在大会模式,无法使用新账号登录", "", -1, ""), + new WindowMessageTableRecord(16, "EntryErrorAimeEventInherit", 0, 1, 4, "需要进行数据继承的账号", "", "由于目前处在大会模式,无法进行数据继承", "", -1, ""), + new WindowMessageTableRecord(17, "EntryErrorAimeVersion", 0, 1, 4, "游戏版本不同的账号", "", "在当前的版本中无法使用该账号进行游戏", "", -1, ""), + new WindowMessageTableRecord(18, "EntryErrorAimeVersionInherit", 0, 1, 4, "该账号无法进行数据继承", "", "引き継ぎができるのは、maimai FiNALEを\nプレイしているAimeのみとなります", "", -1, ""), + new WindowMessageTableRecord(19, "EntryErrorAimeNetwork", 0, 1, 4, "无法连接网络", "", "请重试", "", -1, ""), + new WindowMessageTableRecord(20, "EntryErrorAimeFatal", 0, 1, 4, "无法使用当前账号游戏", "", "由于读卡器或机器的原因,无法读取该账号数据", "", -1, ""), + new WindowMessageTableRecord(21, "EntryErrorAimeOverlap", 0, 1, 4, "当前正在使用该账号", "", "无法使用同一账号参加游戏", "", -1, ""), + new WindowMessageTableRecord(22, "EntryErrorOldServerDown", 0, 1, 4, "服务器维护中", "", "目前无法进行账号的注册与继承", "", -1, ""), + new WindowMessageTableRecord(23, "EntryDoneEntryTwoPlayer", 0, 1, 4, "双人游戏奖励!", "", "可玩乐曲已从3首增加至4首!", "", -1, ""), + new WindowMessageTableRecord(24, "EntryDoneEntryTwoPlayerNew", 0, 1, 4, "双人游戏奖励!", "", "可免费游玩的乐曲已从1首增加至4首!", "", -1, ""), + new WindowMessageTableRecord(25, "EntryDoneEntryDailyBonus", 0, 1, 4, "每日乐曲数增加的奖励!", "", "可玩乐曲已从3首增加至4首!", "", -1, ""), + new WindowMessageTableRecord(26, "EntryDoneEntryWeekdayBonus", 0, 1, 4, "平日早得曲数UPボーナス!", "", "可玩乐曲已从3首增加至4首!", "", -1, ""), + new WindowMessageTableRecord(27, "EntryErrorAccessCodeRead", 0, 1, 4, "読み込みに失敗しました", "", "Aimeとして利用可能なカード・携帯電話か確認の上、\n再度読み込みを試してください", "", -1, ""), + new WindowMessageTableRecord(28, "EntryErrorAccessCodeRegistration", 0, 1, 4, "ユーザーデータ作成が必要です", "", "ユーザーデータ作成がされていないため、\nアクセスコードを表示できません\n\n※データ移行先として使用する場合は、\nカード裏に記載されているアクセスコードを確認し、\nAimeサービスサイトでデータ移行を行ってください。", "", -1, ""), + new WindowMessageTableRecord(29, "PhotoNotRegistNet", 0, 1, 3, "关于上传", "", "需要登录舞萌DX官方公众号\r\n除了上传以外还可以进行游戏成绩确认哦!", "", -1, ""), + new WindowMessageTableRecord(30, "PhotoUploadConfirm", 0, 0, 4, "要上传吗?", "", "单次游戏只可以上传1张", "", -1, ""), + new WindowMessageTableRecord(31, "PhotoUploadContract", 0, 1, 0, "服务条款", "", "・您可以通过互联网将拍摄的照片上传到舞萌maimai DX网,并下载到您的终端上。\r\n请您意识到将会在互联网上发布自己的肖像以及拍摄到的周围环境,同时考虑照片的内容、可否上传或下载,并在判断后上传或下载。\r\n即使因客户上传照片以及使用或公开下载的照片而给客户自身带来麻烦或与第三方发生纠纷,造成损害,本公司也不承担责任。\r\n・无论何种理由,本公司可以随时删除显示的照片,并要求您或第三方删除。如果本公司要求您删除照片,您须立即删除照片。\r\n※一次游戏中只能上传一张照片。\r\n\r\n您同意上述内容吗?", "", -1, ""), + new WindowMessageTableRecord(32, "PhotoUploadDone", 0, 1, 3, "已接受上传请求", "", "上传后的照片请在舞萌DX官方公众号中进行确认", "", -1, ""), + new WindowMessageTableRecord(33, "NameEntryDescription", 0, 1, 4, "请输入名字", "", "按「END」键完成输入", "", -1, ""), + new WindowMessageTableRecord(34, "NameEntryConfirm", 0, 1, 4, "这个名字可以吗?", "", "※输入的名字会在游戏中以及舞萌DX官方公众号上公开", "", -1, ""), + new WindowMessageTableRecord(35, "NameEntryNgwordInfo", 1, 2, 4, "名字已变更为“maimai”", "", "输入的内容中包含屏蔽字", "", -1, ""), + new WindowMessageTableRecord(36, "NameEntryNotEnteredInfo", 1, 2, 4, "名字已变更为“maimai”", "", "没有输入名字,或只输入了空格符", "", -1, ""), + new WindowMessageTableRecord(37, "NameEntryWelcomeInfo", 0, 0, 4, "欢迎来到“舞萌DX”!", "", "将使用该名字登录游戏", "", -1, ""), + new WindowMessageTableRecord(38, "NameEntryTimeupInfo01", 1, 2, 3, "倒计时结束", "", "将采用已输入的名字信息", "", -1, ""), + new WindowMessageTableRecord(39, "NameEntryTimeUpInfo02", 1, 2, 3, "倒计时结束", "", "由于输入的内容包含屏蔽字,\n名字将自动变更为“maimai”", "", -1, ""), + new WindowMessageTableRecord(40, "NameEntryTimeUpInfo03", 1, 2, 3, "倒计时结束", "", "由于没有输入名字或只输入了空格符,\n名字将自动变更为“maimai”", "", -1, ""), + new WindowMessageTableRecord(41, "PlayPreparationWait", 0, 2, 4, "", "", "请稍候", "", -1, ""), + new WindowMessageTableRecord(42, "PlayPreparationCancel", 0, 2, 4, "已回到乐曲选择", "", "可以商量下玩哪首乐曲哦", "", 3000, ""), + new WindowMessageTableRecord(43, "FreedomModeTimeUp", 0, 1, 4, "倒计时结束!", "", "没有剩余时间了\n结束乐曲播放", "", -1, ""), + new WindowMessageTableRecord(44, "CollectionAttentionMaxFavorite", 1, 1, 4, "お気に入り登録枠がいっぱいです!", "", "お気に入り登録できるのは最大20件までです\n登録済のコレクションはお気に入りリストで確認できます", "", 5000, ""), + new WindowMessageTableRecord(45, "CollectionAttentionEmptyFavorite", 0, 1, 4, "", "", "お気に入り登録したコレクションはありません", "", 3000, ""), + new WindowMessageTableRecord(46, "CollectionCategorySelectAnnounce", 0, 1, 3, "", "", "请选择想要设定的种类", "", -1, ""), + new WindowMessageTableRecord(47, "CollectionSelectAnnounce", 0, 1, 3, "", "", "请选择想要设置的头像", "", -1, ""), + new WindowMessageTableRecord(48, "CollectionGotoFavorite", 0, 1, 3, "", "", "1Pボタンでおきにいりに移動するよ\u3000おきにいりは最大で20件登録できます", "", -1, ""), + new WindowMessageTableRecord(49, "CollectionGotoCollectionCustom", 0, 1, 3, "", "", "1Pボタンでコレクションカスタムに戻るよ", "", -1, ""), + new WindowMessageTableRecord(50, "CollectionGetAnnounceInfo", 0, 1, 4, "", "", "详细信息可以在藏品定制中确认!", "", -1, ""), + new WindowMessageTableRecord(51, "GhostDifficultyInfomation", 0, 0, 3, "友人对战", "", "对战结果会影响到你的“评级”哦!\n胜利的话可以增加“区域”中的移动距离!", "", -1, ""), + new WindowMessageTableRecord(52, "NetworkErrorToGuest", 1, 1, 4, "网络连接错误", "", "网络连接发生错误\n开启游客模式进行游戏", "", 5000, ""), + new WindowMessageTableRecord(53, "TutorialSelectInfo", 0, 1, 4, "", "", "要播放游戏操作说明吗?", "", -1, ""), + new WindowMessageTableRecord(54, "TutorialEnter", 0, 1, 4, "", "", "开始进行游戏操作说明♪", "", -1, ""), + new WindowMessageTableRecord(55, "TutorialExit", 0, 1, 4, "", "", "跳过游戏操作说明", "", -1, ""), + new WindowMessageTableRecord(56, "NextTrackTips01", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(57, "NextTrackTips02", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(58, "NextTrackTips03", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(59, "NextTrackTips04", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(60, "NextTrackTips05", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(61, "NextTrackTips06", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(62, "NextTrackTips07", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(63, "NextTrackTips08", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(64, "NextTrackTips09", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(65, "NextTrackTips10", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(66, "NextTrackTips11", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(67, "NextTrackTips12", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(68, "NextTrackTips13", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(69, "NextTrackTips14", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(70, "NextTrackTips15", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(71, "NextTrackTips16", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(72, "NextTrackTips17", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(73, "NextTrackTips18", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(74, "NextTrackTips19", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(75, "NextTrackTips20", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(76, "NextTrackTips21", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(77, "NextTrackTips22", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(78, "NextTrackTips23", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(79, "NextTrackTips24", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(80, "NextTrackTips25", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(81, "NextTrackTips26", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(82, "NextTrackTips27", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(83, "NextTrackTips28", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(84, "NextTrackTips29", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(85, "NextTrackTips30", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(86, "NextTrackTips31", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(87, "NextTrackTips32", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(88, "NextTrackTips33", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(89, "NextTrackTips34", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(90, "NextTrackTips35", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(91, "NextTrackTips36", 0, 1, 3, "", "", "", "", -1, ""), + new WindowMessageTableRecord(92, "IconPhotoContract", 0, 1, 0, "服务条款", "", "\n・拍摄的照片会作为头像在和舞萌DX 官方帐号以下场所\n 进行显示。请用户在确认无误的前提下同意并使用。\n\n 1)游戏进行时的个人信息\n 2)舞萌DX官方公众号的个人信息页面\n\n・即使发生因上传照片致使用户和第三方机构之间发生纠纷、\n 造成损失,本公司也概不负责。\n\n・本公司有权在任何情况任何时间将显示的照片删除。\n\n※最新拍摄的照片会覆盖之前的照片。\n\n请问同意上述内容吗?", "", -1, ""), + new WindowMessageTableRecord(93, "ClassicModeSelectMessage", 0, 1, 3, "クラシックモードではじめます", "", "となりのプレイヤーがクラシックモードを選択しました", "", -1, ""), + new WindowMessageTableRecord(94, "CharacterSelectAutoMessage", 0, 1, 3, "", "", "选择移动力高的旅行伙伴", "", -1, ""), + new WindowMessageTableRecord(95, "CardReadFailedMessage", 0, 1, 4, "通知信息", "", "カード読み込みに失敗しました\nもしくは使用できないカードです", "", -1, ""), + new WindowMessageTableRecord(96, "CodeReadInsertCardMessage", 1, 1, 3, "通知信息", "", "カードが挿したままになっています\n忘れずにお持ち帰りください", "", 5000, ""), + new WindowMessageTableRecord(97, "FreedomModeTerminationMessage", 0, 1, 4, "通知信息", "", "強制終了の操作を受け付けました\n制限時間をゼロにしますか?", "", -1, ""), + new WindowMessageTableRecord(98, "DataSaveStart", 0, 0, 4, "与服务器通信中", "", "请耐心等待", "", -1, ""), + new WindowMessageTableRecord(99, "DataSaveError", 1, 0, 4, "", "", "数据保存失败\n无法反映本次游戏成绩", "", -1, ""), + new WindowMessageTableRecord(100, "TakeOverInfo01", 0, 1, 3, "プレイヤーデータの引き継ぎ①", "", "「maimai FiNALE」までの楽曲で本作でも\nプレイできる譜面は、以下のものが引き継がれます\n\n\u3000\u3000・達成率(100%以上は新システムに合わせて変換)\n\u3000\u3000・FULL COMBO/ALL PERFECTアイコン\n\u3000\u3000・SYNCアイコン(新システムに合わせて変換)\n\n\u3000\u3000※「maimai FiNALE」までのMASTER、\n\u3000\u3000\u3000Re:MASTER譜面は、全て解禁状態になります", "", -1, ""), + new WindowMessageTableRecord(101, "TakeOverInfo02", 0, 1, 3, "プレイヤーデータの引き継ぎ②", "", "コレクションは、一部を除く下記のものが\n早朝の定期メンテナンス後に引き継がれます\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000・アイコン\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000・ネームプレート\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000・称号\n\n※引き継ぎが行われるのは、一度限りです", "", -1, ""), + new WindowMessageTableRecord(102, "Warning", 1, 1, 4, "警告", "", "没有连接互联网\n无法游玩部分乐曲\n无法使用玩家账号", "", -1, ""), + new WindowMessageTableRecord(103, "CodeReadFirst", 0, 1, 3, "でらっくすパスを使ってみよう!", "", "難易度MASTER解放など色々効果があるよ", "", -1, ""), + new WindowMessageTableRecord(104, "CodeReadOutOfService", 0, 1, 3, "ブースト期間切れのでらっくすパス", "", "おまけ効果として、\nレーティング対象楽曲が見れるようになるよ\n\n別のAimeで使用しても同じ効果になるので、\n使ったことがない友達にプレゼントするのもオススメ!", "", -1, ""), + new WindowMessageTableRecord(105, "CodeReadNotHave", 0, 1, 4, "別のAimeで印刷したでらっくすパス", "", "おまけ効果として、\nレーティング対象楽曲が見れるようになるよ\n", "", -1, ""), + new WindowMessageTableRecord(106, "SimpleSettingFirst", 0, 1, 2, "试着拍一张头像吧!", "", "", "", -1, "UI_CWD_FirstInfo_008"), + new WindowMessageTableRecord(107, "SinmpeSettingNewFrame", 0, 1, 4, "追加了限时提供的相框!", "", "使用用新相框来制作一张纪念头像照吧!", "", -1, ""), + new WindowMessageTableRecord(108, "MapSelectFirst", 0, 1, 2, "选择区域吧!", "", "", "", -1, "UI_CWD_FirstInfo_010"), + new WindowMessageTableRecord(109, "CharaSelectFirst", 0, 1, 2, "进行旅行伙伴编成!", "", "", "", -1, "UI_CWD_FirstInfo_011"), + new WindowMessageTableRecord(110, "CharaSelectGoodBad", 0, 1, 2, "选择符合该区域的旅行伙伴", "", "", "", -1, "UI_CWD_FirstInfo_012"), + new WindowMessageTableRecord(111, "CategorySelectFirst", 0, 1, 2, "选择乐曲种类吧", "", "", "", -1, "UI_CWD_FirstInfo_014"), + new WindowMessageTableRecord(112, "MusicSelectFirst", 0, 1, 2, "选择乐曲吧", "", "", "", -1, "UI_CWD_FirstInfo_015"), + new WindowMessageTableRecord(113, "PlayReadyFirst", 0, 1, 2, "来进行游玩乐曲前的准备吧", "", "", "", -1, "UI_CWD_FirstInfo_016"), + new WindowMessageTableRecord(114, "DxStandardFirst", 0, 1, 2, "DX/标准乐谱的切换", "", "", "", -1, "UI_CWD_FirstInfo_017"), + new WindowMessageTableRecord(115, "OtomodachiFirst", 0, 1, 2, "尝试一下友人对战吧", "", "", "", -1, "UI_CWD_FirstInfo_038"), + new WindowMessageTableRecord(116, "RateCategoryFirst", 0, 1, 3, "确认下评级对象乐曲", "", "这些都是会对你的DX评级有影响的乐曲哦\n试着找一下可以更新纪录的乐曲吧", "", -1, ""), + new WindowMessageTableRecord(117, "CharaAwakeFirst", 0, 1, 3, "通过觉醒角色来获得收藏品吧!", "", "在每个旅行伙伴觉醒1次时都能获得头像!\n每个区域的总游戏数也会触发奖赏哟", "", -1, ""), + new WindowMessageTableRecord(118, "TotalResultFirst", 0, 1, 2, "确认一下游戏成绩吧", "", "", "", -1, "UI_CWD_FirstInfo_021"), + new WindowMessageTableRecord(119, "CollectionCustomFirst", 0, 1, 3, "来设置收藏品吧!", "", "设置后的收藏品会显示在画面上方哟\n获得新的收藏品后记得要去确认一下哦", "", -1, ""), + new WindowMessageTableRecord(120, "DxPassFirst", 0, 1, 2, "でらっくすパスを印刷してみよう!", "", "", "", -1, "UI_CWD_FirstInfo_023"), + new WindowMessageTableRecord(121, "FreedomFirst", 0, 1, 0, "フリーダムモードのルール", "", "・となりの画面に制限時間を表示しています\n・カテゴリセレクト~楽曲リザルトの間でカウントします\n・楽曲プレイ中、3・4・5・6番ボタンを長押し\n\u3000することで楽曲プレイ開始時に戻ります\n・Aimeをかざし、となりの画面で操作することで\n\u3000制限時間をゼロにして強制終了することができます", "", -1, ""), + new WindowMessageTableRecord(122, "SortFirst", 0, 1, 3, "ソート設定の有効箇所", "", "ここで設定できるカテゴリにのみ\nソート設定が反映されます", "", -1, ""), + new WindowMessageTableRecord(123, "AimeUseNotice", 0, 1, 2, "试着用微信号来玩吧", "", "", "", -1, "UI_CWD_FirstInfo_026"), + new WindowMessageTableRecord(124, "MusicSelectCanceRecruit", 0, 1, 4, "已取消招募", "", "请重新选择想要玩的乐曲", "", 2000, ""), + new WindowMessageTableRecord(125, "MusicSelectCancelConfirmHost", 0, 1, 4, "返回乐曲选择", "", "取消店内招募,可以吗?", "", -1, ""), + new WindowMessageTableRecord(126, "MusicSelectCancelConfirmClient", 0, 1, 4, "返回乐曲选择", "", " 不参加店内招募,可以吗?", "", -1, ""), + new WindowMessageTableRecord(127, "MusicSelectConfirmTrackStart", 0, 2, 4, "有玩家正在准备中", "", "现在就开始游戏可以吗?", "", -1, ""), + new WindowMessageTableRecord(128, "MusicSelectForceTrackStart", 0, 2, 4, "乐曲开始", "", "招募到的玩家已经开始游戏了", "", 2000, ""), + new WindowMessageTableRecord(129, "MusicSelectWaitToHost", 0, 2, 4, "有招募到的玩家正在等待", "", "请在招募到的玩家操作结束前耐心等待", "", -1, ""), + new WindowMessageTableRecord(130, "PhotoAgree", 0, 1, 3, "关于纪念照片", "", "游戏结束时拍摄的照片可在事后进行确认和上传\n要拍摄纪念照片吗?", "", -1, ""), + new WindowMessageTableRecord(131, "NetworkErrorUpPlaylog", 1, 1, 4, "网络连接错误", "", "网络连接发生错误\n无法保存后续游戏数据", "", 5000, ""), + new WindowMessageTableRecord(132, "NetworkError", 1, 1, 4, "网络连接错误", "", "与服务器的连接已断开", "", -1, ""), + new WindowMessageTableRecord(133, "EntryError", 1, 1, 4, "", "", "因为游戏点数不足无法参加游戏", "", -1, ""), + new WindowMessageTableRecord(134, "MapCounterStop", 0, 1, 4, "", "", "恭喜通关!\n敬请期待新的地图!", "", -1, ""), + new WindowMessageTableRecord(135, "BossAppearFirst", 0, 1, 2, "BOSS友人登场!", "", "", "", -1, "UI_CWD_FirstInfo_034"), + new WindowMessageTableRecord(136, "BossStayHint", 0, 1, 2, "如何提升阶级?", "", "", "", -1, "UI_CWD_FirstInfo_033"), + new WindowMessageTableRecord(137, "TrackSkip3Second", 1, 1, 3, "注意!", "", "中途强制结束!!\n3秒后,将会强制结束游玩", "", -1, ""), + new WindowMessageTableRecord(138, "TrackSkip2Second", 1, 1, 3, "注意!", "", "中途强制结束!!\n2秒后,将会强制结束游玩", "", -1, ""), + new WindowMessageTableRecord(139, "TrackSkip1Second", 1, 1, 3, "注意!", "", "中途强制结束!!\n1秒后,将会强制结束游玩", "", -1, ""), + new WindowMessageTableRecord(140, "CharaLockInfo", 0, 1, 2, "通知信息", "", "", "", -1, "UI_CWD_FirstInfo_030"), + new WindowMessageTableRecord(141, "LoginBonusFirst01", 0, 1, 2, "新しく「パートナー」が追加!", "", "", "", -1, "UI_CWD_FirstInfo_027"), + new WindowMessageTableRecord(142, "LoginBonusFirst02", 0, 1, 2, "パートナーがナビゲーションするよ!", "", "", "", -1, "UI_CWD_FirstInfo_029"), + new WindowMessageTableRecord(143, "LoginBonusFirst03", 0, 1, 2, "选择集章卡来收集印章吧", "", "", "", -1, "UI_CWD_FirstInfo_028"), + new WindowMessageTableRecord(144, "CollectionPartnerFIrst", 0, 1, 4, "通知信息", "", "可以选择新的搭档哟!", "", -1, ""), + new WindowMessageTableRecord(145, "TransferDx01", 0, 1, 0, "将继承以下信息", "", "分数\r\n歌曲/谱面的解禁情况\r\n区域的物品获得情况\r\n收藏品\r\n选项设置(仅限速度设置)", "", -1, ""), + new WindowMessageTableRecord(146, "TransferDx02", 0, 1, 0, "关于评级/段位的更新", "", "各乐曲的评级值虽然会被继承\r\n评级值会发生很大的变化\r\n\r\n段位现已更新为段位认定模式\r\n过去的段位将会被重置", "", -1, ""), + new WindowMessageTableRecord(147, "TransferDx03", 1, 1, 0, "网络连接错误", "", "数据通信失败了\r\n开启游客模式进行游戏", "", -1, ""), + new WindowMessageTableRecord(148, "PassportCamera", 0, 1, 2, "INFORMATION", "", "", "", -1, "UI_CWD_FirstInfo_031"), + new WindowMessageTableRecord(149, "CharaSelectCut", 0, 1, 2, "つあーメンバー編成の切り替えをしよう!", "", "", "", -1, "UI_CWD_FirstInfo_032"), + new WindowMessageTableRecord(150, "SpecialBossAppear", 0, 1, 2, "打倒BOSS并获得传导乐曲!", "", "", "", -1, "UI_CWD_FirstInfo_035"), + new WindowMessageTableRecord(151, "PhotoShootCancel", 0, 1, 4, "", "", "要取消拍摄头像吗?", "", -1, ""), + new WindowMessageTableRecord(152, "FBRFirst", 0, 1, 2, "打倒友人,来积累阶级点数吧!", "", "", "", -1, "UI_CWD_FirstInfo_038"), + new WindowMessageTableRecord(153, "FBRClassPoint", 0, 1, 2, "关于阶级点数", "", "", "", -1, "UI_CWD_FirstInfo_039"), + new WindowMessageTableRecord(154, "FBRLegend", 0, 1, 2, "到达「LEGEND」阶级!", "", "", "", -1, "UI_CWD_FirstInfo_040"), + new WindowMessageTableRecord(155, "TicketSelectFirst", 0, 1, 2, "功能票登场!", "", "", "", -1, "UI_CWD_FirstInfo_036"), + new WindowMessageTableRecord(156, "ModeSelectSinRankAdd", 0, 1, 2, "来挑战试试吧!", "", "", "", -1, "UI_CWD_FirstInfo_037"), + new WindowMessageTableRecord(157, "ModeSelectFirst", 0, 1, 2, "拍摄在这里哦!", "", "", "", -1, "UI_CWD_FirstInfo_041"), + new WindowMessageTableRecord(158, "TicketConnectServer", 0, 1, 4, "", "", "正在购买功能票中", "", -1, ""), + new WindowMessageTableRecord(159, "TicketConnectFailed", 1, 1, 3, "", "", "功能票购买失败\n将不使用功能票直接开始游戏", "", -1, ""), + new WindowMessageTableRecord(160, "ModeSelectWhichOneTimeOut", 1, 1, 3, "", "", "未在时间内进入游戏\n将直接取消申请", "", -1, ""), + new WindowMessageTableRecord(161, "EntryNoticeDataMigration", 0, 1, 0, "通知信息", "", "这之后将会返回申请界面", "", -1, ""), + new WindowMessageTableRecord(162, "PlayRulesMessage", 0, 1, 5, "舞萌DX 游玩条款", "", "选择「是」后,\r\n将默认为同意了下记二维码的游玩条约。\r\nhttp://wc.wahlap.net/terms/\r\n", "", -1, "UI_CWD_FirstInfo_BAN_QRcode"), + new WindowMessageTableRecord(163, "BanWarning", 1, 1, 3, "通知信息", "", "当前账号存在违反我司游玩条款的嫌疑\n若今后再次发现类似情况\n将无法使用此账户登录游戏", "", -1, ""), + new WindowMessageTableRecord(164, "BanExecution", 1, 1, 3, "通知信息", "", "当前账号因存在违反我司游玩条款的数据而无法使用。", "", -1, ""), + new WindowMessageTableRecord(165, "SeasonStartPointGet", 0, 1, 2, "通知信息", "", "", "", -1, "UI_CWD_FirstInfo_042"), + new WindowMessageTableRecord(166, "QuickRetry2Second", 1, 1, 3, "", "", "正在返回歌曲开头!!\n2秒后会结束游玩", "", -1, ""), + new WindowMessageTableRecord(167, "QuickRetry1Second", 1, 1, 3, "", "", "正在返回歌曲开头!!\n1秒后会结束游玩", "", -1, ""), + new WindowMessageTableRecord(168, "SelectionMusicFirst", 0, 1, 3, "追加新分类!", "", "从适合你的歌曲来推荐\r\n「根据你的选曲倾向」分类登场!\r\n也许会找到你还没听过的神曲哦。", "", -1, ""), + new WindowMessageTableRecord(169, "RateMusicFirst", 0, 1, 3, "追加新分类!", "", "从评级相近的玩家的擅长曲来推荐\r\n「根据你的实力」分类登场!\r\n来挑战更高的目标吧!", "", -1, ""), + new WindowMessageTableRecord(170, "InfinityRegionFirst", 0, 1, 3, "通知信息", "", "这个区域是无限区域\r\n先尝试走完其他区域吧!", "", -1, ""), + new WindowMessageTableRecord(171, "UnlockUtage", 0, 1, 3, "添加宴会场分类!", "", "各种疯狂的谱面集结在这里!让我们一起热闹起来吧!\r\n※不会影响DX评分和全曲目总分。", "", -1, ""), + new WindowMessageTableRecord(172, "PhotoShootSelect", 0, 1, 3, "拍摄头像", "", "拍摄照片并设为头像。\r\n让我们自定义顶部屏幕的个人资料吧!\r\n要进行头像拍摄吗?", "", -1, ""), + new WindowMessageTableRecord(173, "LegendSeasonAppear", 0, 1, 2, "等待头目友人的出现吧!", "", "", "", -1, "UI_CWD_FirstInfo_043"), + new WindowMessageTableRecord(174, "BuyItem", 0, 1, 4, "", "", "已交换物品!", "", -1, ""), + new WindowMessageTableRecord(175, "Mission", 0, 1, 2, "每周任务请从这里开始!", "", "", "", -1, "UI_CWD_FirstInfo_044"), + new WindowMessageTableRecord(176, "GetMileFirst", 0, 1, 3, "收集舞里程的方法", "", "完成任务来收集舞里程!\r\n在朋友登录时也可以获得奖励哦!", "", -1, ""), + new WindowMessageTableRecord(177, "AddFavoriteMusic", 0, 1, 3, "", "", "已添加到我的收藏!", "", 500, ""), + new WindowMessageTableRecord(178, "KaleidxScopeConfirm", 0, 1, 3, "", "", "这是挑战特殊关卡的高手模式。\r\n确定要开始万花筒模式吗?", "", -1, ""), + new WindowMessageTableRecord(179, "GetKaleidxScopePrism", 0, 2, 3, "", "", "获得了碎片", "", -1, ""), + new WindowMessageTableRecord(180, "KaleidxScopeConfirm2P", 0, 1, 3, "", "", "这是挑战特殊关卡的高手模式。\r\n确定要开始万花筒模式吗?\r\n\r\n如果参加后没有可玩的关卡,\r\n将切换到普通模式", "", -1, ""), + new WindowMessageTableRecord(181, "KaleidxScopeToNormal", 0, 1, 3, "", "", "切换到普通模式", "", -1, "") + }; + } +} diff --git a/Assembly-CSharp/DB/WindowMessageTableRecord.cs b/Assembly-CSharp/DB/WindowMessageTableRecord.cs new file mode 100644 index 0000000..ebd551d --- /dev/null +++ b/Assembly-CSharp/DB/WindowMessageTableRecord.cs @@ -0,0 +1,62 @@ +using System; + +namespace DB +{ + // Token: 0x020008CF RID: 2255 + public class WindowMessageTableRecord + { + // Token: 0x06004A9E RID: 19102 RVA: 0x00003560 File Offset: 0x00002760 + public WindowMessageTableRecord() + { + } + + // Token: 0x06004A9F RID: 19103 RVA: 0x0018DFBC File Offset: 0x0018D1BC + public WindowMessageTableRecord(int EnumValue, string EnumName, int Kind, int Position, int Size, string Title, string TitleEx, string Name, string NameEx, int Lifetime, string FileName) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Kind = (WindowKindID)Kind; + this.Position = (WindowPositionID)Position; + this.Size = (WindowSizeID)Size; + this.Title = Title; + this.TitleEx = TitleEx; + this.Name = Name; + this.NameEx = NameEx; + this.Lifetime = Lifetime; + this.FileName = FileName; + } + + // Token: 0x04005C2C RID: 23596 + public int EnumValue; + + // Token: 0x04005C2D RID: 23597 + public string EnumName; + + // Token: 0x04005C2E RID: 23598 + public WindowKindID Kind; + + // Token: 0x04005C2F RID: 23599 + public WindowPositionID Position; + + // Token: 0x04005C30 RID: 23600 + public WindowSizeID Size; + + // Token: 0x04005C31 RID: 23601 + public string Title; + + // Token: 0x04005C32 RID: 23602 + public string TitleEx; + + // Token: 0x04005C33 RID: 23603 + public string Name; + + // Token: 0x04005C34 RID: 23604 + public string NameEx; + + // Token: 0x04005C35 RID: 23605 + public int Lifetime; + + // Token: 0x04005C36 RID: 23606 + public string FileName; + } +} diff --git a/Assembly-CSharp/DB/WindowPositionID.cs b/Assembly-CSharp/DB/WindowPositionID.cs new file mode 100644 index 0000000..d77127c --- /dev/null +++ b/Assembly-CSharp/DB/WindowPositionID.cs @@ -0,0 +1,21 @@ +using System; + +namespace DB +{ + // Token: 0x020008D1 RID: 2257 + public enum WindowPositionID + { + // Token: 0x04005C39 RID: 23609 + Upper, + // Token: 0x04005C3A RID: 23610 + Middle, + // Token: 0x04005C3B RID: 23611 + Lower, + // Token: 0x04005C3C RID: 23612 + Begin = 0, + // Token: 0x04005C3D RID: 23613 + End = 3, + // Token: 0x04005C3E RID: 23614 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/WindowPositionIDEnum.cs b/Assembly-CSharp/DB/WindowPositionIDEnum.cs new file mode 100644 index 0000000..e06b330 --- /dev/null +++ b/Assembly-CSharp/DB/WindowPositionIDEnum.cs @@ -0,0 +1,97 @@ +using System; + +namespace DB +{ + // Token: 0x020008D3 RID: 2259 + public static class WindowPositionIDEnum + { + // Token: 0x06004AB4 RID: 19124 RVA: 0x001739BD File Offset: 0x00172BBD + public static bool IsActive(this WindowPositionID self) + { + return self >= WindowPositionID.Upper && self < WindowPositionID.End && self > WindowPositionID.Upper; + } + + // Token: 0x06004AB5 RID: 19125 RVA: 0x001739CD File Offset: 0x00172BCD + public static bool IsValid(this WindowPositionID self) + { + return self >= WindowPositionID.Upper && self < WindowPositionID.End; + } + + // Token: 0x06004AB6 RID: 19126 RVA: 0x0019034D File Offset: 0x0018F54D + public static void Clamp(this WindowPositionID self) + { + if (self < WindowPositionID.Upper) + { + self = WindowPositionID.Upper; + return; + } + if (self >= (WindowPositionID)WindowPositionIDEnum.GetEnd()) + { + self = (WindowPositionID)WindowPositionIDEnum.GetEnd(); + } + } + + // Token: 0x06004AB7 RID: 19127 RVA: 0x00190366 File Offset: 0x0018F566 + public static int GetEnd(this WindowPositionID self) + { + return WindowPositionIDEnum.GetEnd(); + } + + // Token: 0x06004AB8 RID: 19128 RVA: 0x00190370 File Offset: 0x0018F570 + public static WindowPositionID FindID(string enumName) + { + for (WindowPositionID windowPositionID = WindowPositionID.Upper; windowPositionID < WindowPositionID.End; windowPositionID++) + { + if (windowPositionID.GetEnumName() == enumName) + { + return windowPositionID; + } + } + return WindowPositionID.Invalid; + } + + // Token: 0x06004AB9 RID: 19129 RVA: 0x0019039A File Offset: 0x0018F59A + public static int GetEnd() + { + return WindowPositionIDEnum.records.Length; + } + + // Token: 0x06004ABA RID: 19130 RVA: 0x001903A3 File Offset: 0x0018F5A3 + public static int GetEnumValue(this WindowPositionID self) + { + if (self.IsValid()) + { + return WindowPositionIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004ABB RID: 19131 RVA: 0x001903BB File Offset: 0x0018F5BB + public static string GetEnumName(this WindowPositionID self) + { + if (self.IsValid()) + { + return WindowPositionIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004ABC RID: 19132 RVA: 0x001903D7 File Offset: 0x0018F5D7 + public static string GetName(this WindowPositionID self) + { + if (self.IsValid()) + { + return WindowPositionIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04005C42 RID: 23618 + private static readonly WindowPositionTableRecord[] records = new WindowPositionTableRecord[] + { + new WindowPositionTableRecord(0, "Upper", "上"), + new WindowPositionTableRecord(1, "Middle", "中央"), + new WindowPositionTableRecord(2, "Lower", "下") + }; + } +} diff --git a/Assembly-CSharp/DB/WindowPositionTableRecord.cs b/Assembly-CSharp/DB/WindowPositionTableRecord.cs new file mode 100644 index 0000000..609380c --- /dev/null +++ b/Assembly-CSharp/DB/WindowPositionTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x020008D2 RID: 2258 + public class WindowPositionTableRecord + { + // Token: 0x06004AB2 RID: 19122 RVA: 0x00003560 File Offset: 0x00002760 + public WindowPositionTableRecord() + { + } + + // Token: 0x06004AB3 RID: 19123 RVA: 0x00190330 File Offset: 0x0018F530 + public WindowPositionTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005C3F RID: 23615 + public int EnumValue; + + // Token: 0x04005C40 RID: 23616 + public string EnumName; + + // Token: 0x04005C41 RID: 23617 + public string Name; + } +} diff --git a/Assembly-CSharp/DB/WindowSizeID.cs b/Assembly-CSharp/DB/WindowSizeID.cs new file mode 100644 index 0000000..55c2442 --- /dev/null +++ b/Assembly-CSharp/DB/WindowSizeID.cs @@ -0,0 +1,27 @@ +using System; + +namespace DB +{ + // Token: 0x020008D4 RID: 2260 + public enum WindowSizeID + { + // Token: 0x04005C44 RID: 23620 + Large, + // Token: 0x04005C45 RID: 23621 + LargeVertical, + // Token: 0x04005C46 RID: 23622 + LargeHorizontal, + // Token: 0x04005C47 RID: 23623 + Middle, + // Token: 0x04005C48 RID: 23624 + Small, + // Token: 0x04005C49 RID: 23625 + LargeVerticalPostImage, + // Token: 0x04005C4A RID: 23626 + Begin = 0, + // Token: 0x04005C4B RID: 23627 + End = 6, + // Token: 0x04005C4C RID: 23628 + Invalid = -1 + } +} diff --git a/Assembly-CSharp/DB/WindowSizeIDEnum.cs b/Assembly-CSharp/DB/WindowSizeIDEnum.cs new file mode 100644 index 0000000..53da1f0 --- /dev/null +++ b/Assembly-CSharp/DB/WindowSizeIDEnum.cs @@ -0,0 +1,100 @@ +using System; + +namespace DB +{ + // Token: 0x020008D6 RID: 2262 + public static class WindowSizeIDEnum + { + // Token: 0x06004AC0 RID: 19136 RVA: 0x00178314 File Offset: 0x00177514 + public static bool IsActive(this WindowSizeID self) + { + return self >= WindowSizeID.Large && self < WindowSizeID.End && self > WindowSizeID.Large; + } + + // Token: 0x06004AC1 RID: 19137 RVA: 0x00130760 File Offset: 0x0012F960 + public static bool IsValid(this WindowSizeID self) + { + return self >= WindowSizeID.Large && self < WindowSizeID.End; + } + + // Token: 0x06004AC2 RID: 19138 RVA: 0x00190462 File Offset: 0x0018F662 + public static void Clamp(this WindowSizeID self) + { + if (self < WindowSizeID.Large) + { + self = WindowSizeID.Large; + return; + } + if (self >= (WindowSizeID)WindowSizeIDEnum.GetEnd()) + { + self = (WindowSizeID)WindowSizeIDEnum.GetEnd(); + } + } + + // Token: 0x06004AC3 RID: 19139 RVA: 0x0019047B File Offset: 0x0018F67B + public static int GetEnd(this WindowSizeID self) + { + return WindowSizeIDEnum.GetEnd(); + } + + // Token: 0x06004AC4 RID: 19140 RVA: 0x00190484 File Offset: 0x0018F684 + public static WindowSizeID FindID(string enumName) + { + for (WindowSizeID windowSizeID = WindowSizeID.Large; windowSizeID < WindowSizeID.End; windowSizeID++) + { + if (windowSizeID.GetEnumName() == enumName) + { + return windowSizeID; + } + } + return WindowSizeID.Invalid; + } + + // Token: 0x06004AC5 RID: 19141 RVA: 0x001904AE File Offset: 0x0018F6AE + public static int GetEnd() + { + return WindowSizeIDEnum.records.Length; + } + + // Token: 0x06004AC6 RID: 19142 RVA: 0x001904B7 File Offset: 0x0018F6B7 + public static int GetEnumValue(this WindowSizeID self) + { + if (self.IsValid()) + { + return WindowSizeIDEnum.records[(int)self].EnumValue; + } + return 0; + } + + // Token: 0x06004AC7 RID: 19143 RVA: 0x001904CF File Offset: 0x0018F6CF + public static string GetEnumName(this WindowSizeID self) + { + if (self.IsValid()) + { + return WindowSizeIDEnum.records[(int)self].EnumName; + } + return ""; + } + + // Token: 0x06004AC8 RID: 19144 RVA: 0x001904EB File Offset: 0x0018F6EB + public static string GetName(this WindowSizeID self) + { + if (self.IsValid()) + { + return WindowSizeIDEnum.records[(int)self].Name; + } + return ""; + } + + // Token: 0x04005C50 RID: 23632 + private static readonly WindowSizeTableRecord[] records = new WindowSizeTableRecord[] + { + new WindowSizeTableRecord(0, "Large", "大"), + new WindowSizeTableRecord(1, "LargeVertical", "大・画像・文字の順で縦"), + new WindowSizeTableRecord(2, "LargeHorizontal", "大・画像・文字の順で横"), + new WindowSizeTableRecord(3, "Middle", "中"), + new WindowSizeTableRecord(4, "Small", "小"), + new WindowSizeTableRecord(5, "LargeVerticalPostImage", "大・文字・画像の順で縦") + }; + } +} diff --git a/Assembly-CSharp/DB/WindowSizeTableRecord.cs b/Assembly-CSharp/DB/WindowSizeTableRecord.cs new file mode 100644 index 0000000..2998bf7 --- /dev/null +++ b/Assembly-CSharp/DB/WindowSizeTableRecord.cs @@ -0,0 +1,30 @@ +using System; + +namespace DB +{ + // Token: 0x020008D5 RID: 2261 + public class WindowSizeTableRecord + { + // Token: 0x06004ABE RID: 19134 RVA: 0x00003560 File Offset: 0x00002760 + public WindowSizeTableRecord() + { + } + + // Token: 0x06004ABF RID: 19135 RVA: 0x00190445 File Offset: 0x0018F645 + public WindowSizeTableRecord(int EnumValue, string EnumName, string Name) + { + this.EnumValue = EnumValue; + this.EnumName = EnumName; + this.Name = Name; + } + + // Token: 0x04005C4D RID: 23629 + public int EnumValue; + + // Token: 0x04005C4E RID: 23630 + public string EnumName; + + // Token: 0x04005C4F RID: 23631 + public string Name; + } +} diff --git a/Assembly-CSharp/DaniDataInfo.cs b/Assembly-CSharp/DaniDataInfo.cs new file mode 100644 index 0000000..50be5c4 --- /dev/null +++ b/Assembly-CSharp/DaniDataInfo.cs @@ -0,0 +1,204 @@ +using System; +using DB; +using MAI2.Util; +using Manager; +using TMPro; +using UI; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x02000094 RID: 148 +public class DaniDataInfo : MonoBehaviour +{ + // Token: 0x06000517 RID: 1303 RVA: 0x00013B14 File Offset: 0x00012D14 + private void Awake() + { + this._textDaniInfo.text = CommonMessageID.CourseDaniInfo.GetName(); + this._textShinDaniInfo.text = CommonMessageID.CourceShinDaniInfo.GetName(); + this._textRandomInfo.text = CommonMessageID.CourseDaniInfo.GetName(); + this._textLeftLife.text = CommonMessageID.CourseLeftLife.GetName(); + } + + // Token: 0x06000518 RID: 1304 RVA: 0x00013B78 File Offset: 0x00012D78 + public void Prepare(Sprite sprite, int mode, MusicLevelID level, int life, int recover, int greatDamage, int goodDamage, int missDamage, int achieve, int restLife) + { + CourseManager.LifeColor lifeColor = Singleton.Instance.GetLifeColor((uint)life, 0U); + string text = life.ToString(); + int i = life; + int num = 0; + while (i < 100) + { + i *= 10; + text += " "; + num++; + if (num >= 2) + { + break; + } + } + for (int j = 0; j < this._lifeText.Length; j++) + { + this._lifeText[j].ChangeText(text); + if (j == (int)lifeColor) + { + this._lifeText[j].gameObject.SetActive(true); + } + else + { + this._lifeText[j].gameObject.SetActive(false); + } + } + this._lifeHeartObj.ChangeSprite((int)lifeColor); + if (this._image != null) + { + this._image.sprite = sprite; + } + if (this._recoverText != null) + { + this._recoverText.text = ""; + if (recover > 0) + { + this._recoverText.text = "+"; + } + TextMeshProUGUI recoverText = this._recoverText; + recoverText.text += recover.ToString(); + } + if (this._greatDamegeText != null) + { + this._greatDamegeText.text = ""; + if (greatDamage > 0) + { + this._greatDamegeText.text = "-"; + } + TextMeshProUGUI greatDamegeText = this._greatDamegeText; + greatDamegeText.text += greatDamage.ToString(); + } + if (this._goodDamegeText != null) + { + this._goodDamegeText.text = ""; + if (goodDamage > 0) + { + this._goodDamegeText.text = "-"; + } + TextMeshProUGUI goodDamegeText = this._goodDamegeText; + goodDamegeText.text += goodDamage.ToString(); + } + if (this._missDamegeText != null) + { + this._missDamegeText.text = ""; + if (missDamage > 0) + { + this._missDamegeText.text = "-"; + } + TextMeshProUGUI missDamegeText = this._missDamegeText; + missDamegeText.text += missDamage.ToString(); + } + if (this._daniBG != null && this._sinDaniBG != null && this._sinDaniBG != null) + { + switch (mode) + { + case 1: + this._daniBG.SetActive(true); + this._sinDaniBG.SetActive(false); + this._randomBG.SetActive(false); + break; + case 2: + this._daniBG.SetActive(false); + this._sinDaniBG.SetActive(true); + this._randomBG.SetActive(false); + break; + case 3: + this._daniBG.SetActive(false); + this._sinDaniBG.SetActive(false); + this._randomBG.SetActive(true); + break; + } + } + if (life == 0 || recover == 0) + { + this._lifeRecoverInfo.SetActive(false); + return; + } + this._lifeRecoverInfo.SetActive(true); + } + + // Token: 0x06000519 RID: 1305 RVA: 0x00013E55 File Offset: 0x00013055 + public void SetPlayAnim(string animName) + { + if (this._anim != null) + { + this._anim.Play(animName); + } + } + + // Token: 0x0600051A RID: 1306 RVA: 0x00013E74 File Offset: 0x00013074 + public void Prepare(CourseCardData data) + { + this.Prepare(data._sprite, data._courseMode, data._level, data._life, data._recover, data._greatDamage, data._goodDamage, data._missDamage, data._achievement, data._restLife); + } + + // Token: 0x0400039D RID: 925 + [SerializeField] + private Image _image; + + // Token: 0x0400039E RID: 926 + [SerializeField] + private GameObject _daniBG; + + // Token: 0x0400039F RID: 927 + [SerializeField] + private GameObject _sinDaniBG; + + // Token: 0x040003A0 RID: 928 + [SerializeField] + private GameObject _randomBG; + + // Token: 0x040003A1 RID: 929 + [SerializeField] + private SpriteCounter[] _lifeText; + + // Token: 0x040003A2 RID: 930 + [SerializeField] + private TextMeshProUGUI _recoverText; + + // Token: 0x040003A3 RID: 931 + [SerializeField] + private TextMeshProUGUI _greatDamegeText; + + // Token: 0x040003A4 RID: 932 + [SerializeField] + private TextMeshProUGUI _goodDamegeText; + + // Token: 0x040003A5 RID: 933 + [SerializeField] + private TextMeshProUGUI _missDamegeText; + + // Token: 0x040003A6 RID: 934 + [SerializeField] + private MultipleImage _lifeHeartObj; + + // Token: 0x040003A7 RID: 935 + [SerializeField] + private GameObject _lifeRecoverInfo; + + // Token: 0x040003A8 RID: 936 + [SerializeField] + private Animator _anim; + + // Token: 0x040003A9 RID: 937 + [SerializeField] + [Header("DBテキスト")] + private TextMeshProUGUI _textDaniInfo; + + // Token: 0x040003AA RID: 938 + [SerializeField] + private TextMeshProUGUI _textShinDaniInfo; + + // Token: 0x040003AB RID: 939 + [SerializeField] + private TextMeshProUGUI _textRandomInfo; + + // Token: 0x040003AC RID: 940 + [SerializeField] + private TextMeshProUGUI _textLeftLife; +} diff --git a/Assembly-CSharp/Datas/DebugData/DebugGameScoreList.cs b/Assembly-CSharp/Datas/DebugData/DebugGameScoreList.cs new file mode 100644 index 0000000..28fe2a2 --- /dev/null +++ b/Assembly-CSharp/Datas/DebugData/DebugGameScoreList.cs @@ -0,0 +1,40 @@ +using System; +using MAI2.Util; +using Manager; +using Manager.MaiStudio; +using Process; +using UnityEngine; + +namespace Datas.DebugData +{ + // Token: 0x020008DB RID: 2267 + [CreateAssetMenu(menuName = "Mai2Data/DebugGameScoreList", fileName = "DebugGameScoreList")] + public class DebugGameScoreList : ScriptableObject + { + // Token: 0x06004ACC RID: 19148 RVA: 0x00190644 File Offset: 0x0018F844 + public GameScoreList GetGameScoreList(int playerIndex, int trackNumber) + { + GameScoreList gameScore = Singleton.Instance.GetGameScore(playerIndex, trackNumber); + gameScore.DebugSetData(playerIndex, trackNumber, this, this._isParty); + return gameScore; + } + + // Token: 0x06004ACD RID: 19149 RVA: 0x00190661 File Offset: 0x0018F861 + public Notes GetNotesData(int index, int track) + { + return new Notes(); + } + + // Token: 0x04005C5E RID: 23646 + [SerializeField] + public ResultProcess.ResultScoreViewType resultScoreViewType; + + // Token: 0x04005C5F RID: 23647 + [SerializeField] + private bool _isParty; + + // Token: 0x04005C60 RID: 23648 + [SerializeField] + public DebugGameScoreListData[] GameScoreData; + } +} diff --git a/Assembly-CSharp/Datas/DebugData/DebugGameScoreListData.cs b/Assembly-CSharp/Datas/DebugData/DebugGameScoreListData.cs new file mode 100644 index 0000000..3323673 --- /dev/null +++ b/Assembly-CSharp/Datas/DebugData/DebugGameScoreListData.cs @@ -0,0 +1,222 @@ +using System; +using Game; +using Manager; +using Manager.UserDatas; +using UnityEngine; + +namespace Datas.DebugData +{ + // Token: 0x020008DD RID: 2269 + [Serializable] + public class DebugGameScoreListData + { + // Token: 0x170007EF RID: 2031 + // (get) Token: 0x06004AD3 RID: 19155 RVA: 0x0019071F File Offset: 0x0018F91F + public UserScore Score + { + get + { + return this._score; + } + } + + // Token: 0x170007F0 RID: 2032 + // (get) Token: 0x06004AD4 RID: 19156 RVA: 0x00190727 File Offset: 0x0018F927 + public MusicDifficultyID Difficulty + { + get + { + return this._difficulty; + } + } + + // Token: 0x170007F1 RID: 2033 + // (get) Token: 0x06004AD5 RID: 19157 RVA: 0x00190730 File Offset: 0x0018F930 + public uint Perfect + { + get + { + return this.Tap.GetScore(NoteJudge.JudgeBox.Perfect) + this.Hold.GetScore(NoteJudge.JudgeBox.Perfect) + this.Slide.GetScore(NoteJudge.JudgeBox.Perfect) + this.Touch.GetScore(NoteJudge.JudgeBox.Perfect) + this.Break.GetScore(NoteJudge.JudgeBox.Perfect); + } + } + + // Token: 0x170007F2 RID: 2034 + // (get) Token: 0x06004AD6 RID: 19158 RVA: 0x00190780 File Offset: 0x0018F980 + public uint Great + { + get + { + return this.Tap.GetScore(NoteJudge.JudgeBox.Great) + this.Hold.GetScore(NoteJudge.JudgeBox.Great) + this.Slide.GetScore(NoteJudge.JudgeBox.Great) + this.Touch.GetScore(NoteJudge.JudgeBox.Great) + this.Break.GetScore(NoteJudge.JudgeBox.Great); + } + } + + // Token: 0x170007F3 RID: 2035 + // (get) Token: 0x06004AD7 RID: 19159 RVA: 0x001907D0 File Offset: 0x0018F9D0 + public uint Good + { + get + { + return this.Tap.GetScore(NoteJudge.JudgeBox.Great) + this.Hold.GetScore(NoteJudge.JudgeBox.Good) + this.Slide.GetScore(NoteJudge.JudgeBox.Good) + this.Touch.GetScore(NoteJudge.JudgeBox.Good) + this.Break.GetScore(NoteJudge.JudgeBox.Good); + } + } + + // Token: 0x170007F4 RID: 2036 + // (get) Token: 0x06004AD8 RID: 19160 RVA: 0x00190820 File Offset: 0x0018FA20 + public uint Miss + { + get + { + return this.Tap.GetScore(NoteJudge.JudgeBox.Great) + this.Hold.GetScore(NoteJudge.JudgeBox.Miss) + this.Slide.GetScore(NoteJudge.JudgeBox.Miss) + this.Touch.GetScore(NoteJudge.JudgeBox.Miss) + this.Break.GetScore(NoteJudge.JudgeBox.Miss); + } + } + + // Token: 0x170007F5 RID: 2037 + // (get) Token: 0x06004AD9 RID: 19161 RVA: 0x00190870 File Offset: 0x0018FA70 + public uint Critical + { + get + { + return this.Tap.GetScore(NoteJudge.JudgeBox.Critical) + this.Hold.GetScore(NoteJudge.JudgeBox.Critical) + this.Slide.GetScore(NoteJudge.JudgeBox.Critical) + this.Touch.GetScore(NoteJudge.JudgeBox.Critical) + this.Break.GetScore(NoteJudge.JudgeBox.Critical); + } + } + + // Token: 0x06004ADA RID: 19162 RVA: 0x001908C0 File Offset: 0x0018FAC0 + public float GetNoteScore(NoteScore.EScoreType type, NoteJudge.ETiming timing) + { + float num = 0f; + switch (type) + { + case NoteScore.EScoreType.Tap: + num = this.Tap.Get(timing); + break; + case NoteScore.EScoreType.Hold: + num = this.Hold.Get(timing); + break; + case NoteScore.EScoreType.Slide: + num = this.Slide.Get(timing); + break; + case NoteScore.EScoreType.Break: + num = this.Break.Get(timing); + break; + case NoteScore.EScoreType.Touch: + num = this.Touch.Get(timing); + break; + } + return num; + } + + // Token: 0x06004ADB RID: 19163 RVA: 0x0019093C File Offset: 0x0018FB3C + public uint GetScore(NoteScore.EScoreType type, NoteJudge.JudgeBox judge) + { + switch (type) + { + case NoteScore.EScoreType.Tap: + return this.Tap.GetScore(judge); + case NoteScore.EScoreType.Hold: + return this.Hold.GetScore(judge); + case NoteScore.EScoreType.Slide: + return this.Slide.GetScore(judge); + case NoteScore.EScoreType.Break: + return this.Break.GetScore(judge); + case NoteScore.EScoreType.Touch: + return this.Touch.GetScore(judge); + default: + return 0U; + } + } + + // Token: 0x06004ADC RID: 19164 RVA: 0x001909A8 File Offset: 0x0018FBA8 + public uint GetCount(NoteScore.EScoreType type) + { + uint num = 0U; + switch (type) + { + case NoteScore.EScoreType.Tap: + num = this.Tap.Count; + break; + case NoteScore.EScoreType.Hold: + num = this.Hold.Count; + break; + case NoteScore.EScoreType.Slide: + num = this.Slide.Count; + break; + case NoteScore.EScoreType.Break: + num = this.Break.Count; + break; + case NoteScore.EScoreType.Touch: + num = this.Touch.Count; + break; + } + return num; + } + + // Token: 0x06004ADD RID: 19165 RVA: 0x00190A18 File Offset: 0x0018FC18 + public GameScoreList GetGameScoreList(int monitorIndex) + { + GameScoreList gameScoreList = new GameScoreList(monitorIndex); + gameScoreList.Initialize(monitorIndex, false); + gameScoreList.OverridePartyScore((int)this._score.achivement, 0, 0, 0, 0, 0, false); + gameScoreList.SessionInfo = new SessionInfo + { + difficulty = (int)this.Difficulty, + musicId = this._score.id, + isTutorial = false, + isAdvDemo = false + }; + gameScoreList.CalcUpdate(); + return gameScoreList; + } + + // Token: 0x04005C6B RID: 23659 + [SerializeField] + private UserScore _score; + + // Token: 0x04005C6C RID: 23660 + [SerializeField] + private MusicDifficultyID _difficulty; + + // Token: 0x04005C6D RID: 23661 + [SerializeField] + public DebugNoteScore Tap; + + // Token: 0x04005C6E RID: 23662 + [SerializeField] + public DebugNoteScore Hold; + + // Token: 0x04005C6F RID: 23663 + [SerializeField] + public DebugNoteScore Slide; + + // Token: 0x04005C70 RID: 23664 + [SerializeField] + public DebugNoteScore Touch; + + // Token: 0x04005C71 RID: 23665 + [SerializeField] + public DebugNoteScore Break; + + // Token: 0x04005C72 RID: 23666 + [SerializeField] + public uint DxScore; + + // Token: 0x04005C73 RID: 23667 + [SerializeField] + public uint Combo; + + // Token: 0x04005C74 RID: 23668 + [SerializeField] + public uint TotalCombo; + + // Token: 0x04005C75 RID: 23669 + [SerializeField] + public uint Chain; + + // Token: 0x04005C76 RID: 23670 + [SerializeField] + public uint Fast; + + // Token: 0x04005C77 RID: 23671 + [SerializeField] + public uint Late; + } +} diff --git a/Assembly-CSharp/Datas/DebugData/DebugNoteScore.cs b/Assembly-CSharp/Datas/DebugData/DebugNoteScore.cs new file mode 100644 index 0000000..29d0175 --- /dev/null +++ b/Assembly-CSharp/Datas/DebugData/DebugNoteScore.cs @@ -0,0 +1,111 @@ +using System; +using UnityEngine; + +namespace Datas.DebugData +{ + // Token: 0x020008DC RID: 2268 + [Serializable] + public class DebugNoteScore + { + // Token: 0x170007EE RID: 2030 + // (get) Token: 0x06004ACF RID: 19151 RVA: 0x00190668 File Offset: 0x0018F868 + public uint Count + { + get + { + return this._count; + } + } + + // Token: 0x06004AD0 RID: 19152 RVA: 0x00190670 File Offset: 0x0018F870 + public uint GetScore(NoteJudge.JudgeBox timing) + { + uint num = 0U; + switch (timing) + { + case NoteJudge.JudgeBox.Miss: + num = this._miss; + break; + case NoteJudge.JudgeBox.Good: + num = this._good; + break; + case NoteJudge.JudgeBox.Great: + num = this._great; + break; + case NoteJudge.JudgeBox.Perfect: + num = this._perfect; + break; + case NoteJudge.JudgeBox.Critical: + num = this._criticalPerfect; + break; + } + return num; + } + + // Token: 0x06004AD1 RID: 19153 RVA: 0x001906C8 File Offset: 0x0018F8C8 + public float Get(NoteJudge.ETiming timing) + { + float num = 0f; + switch (NoteJudge.ConvertJudge(timing)) + { + case NoteJudge.JudgeBox.Good: + num = this._goodRate; + break; + case NoteJudge.JudgeBox.Great: + num = this._greatRate; + break; + case NoteJudge.JudgeBox.Perfect: + num = this._perfectRate; + break; + case NoteJudge.JudgeBox.Critical: + num = this._criticalPerfectRate; + break; + } + return num; + } + + // Token: 0x04005C61 RID: 23649 + [SerializeField] + private uint _criticalPerfect; + + // Token: 0x04005C62 RID: 23650 + [SerializeField] + private uint _perfect; + + // Token: 0x04005C63 RID: 23651 + [SerializeField] + private uint _great; + + // Token: 0x04005C64 RID: 23652 + [SerializeField] + private uint _good; + + // Token: 0x04005C65 RID: 23653 + [SerializeField] + private uint _miss; + + // Token: 0x04005C66 RID: 23654 + [SerializeField] + [Range(0f, 1f)] + private float _criticalPerfectRate; + + // Token: 0x04005C67 RID: 23655 + [SerializeField] + [Range(0f, 1f)] + private float _perfectRate; + + // Token: 0x04005C68 RID: 23656 + [SerializeField] + [Range(0f, 1f)] + private float _greatRate; + + // Token: 0x04005C69 RID: 23657 + [SerializeField] + [Range(0f, 1f)] + private float _goodRate; + + // Token: 0x04005C6A RID: 23658 + [SerializeField] + private uint _count; + } +} diff --git a/Assembly-CSharp/Datas/DebugData/DebugUserChara.cs b/Assembly-CSharp/Datas/DebugData/DebugUserChara.cs new file mode 100644 index 0000000..b3ba630 --- /dev/null +++ b/Assembly-CSharp/Datas/DebugData/DebugUserChara.cs @@ -0,0 +1,35 @@ +using System; +using UnityEngine; + +namespace Datas.DebugData +{ + // Token: 0x020008E6 RID: 2278 + [Serializable] + public class DebugUserChara + { + // Token: 0x04005CCF RID: 23759 + public int ID; + + // Token: 0x04005CD0 RID: 23760 + public uint Exp; + + // Token: 0x04005CD1 RID: 23761 + public uint Level; + + // Token: 0x04005CD2 RID: 23762 + public int NextAwake; + + // Token: 0x04005CD3 RID: 23763 + [Range(0f, 1f)] + public float NextAwakePercent; + + // Token: 0x04005CD4 RID: 23764 + public bool Favorite; + + // Token: 0x04005CD5 RID: 23765 + public uint Awakening; + + // Token: 0x04005CD6 RID: 23766 + public uint Flower; + } +} diff --git a/Assembly-CSharp/Datas/DebugData/DebugUserData.cs b/Assembly-CSharp/Datas/DebugData/DebugUserData.cs new file mode 100644 index 0000000..c0c5545 --- /dev/null +++ b/Assembly-CSharp/Datas/DebugData/DebugUserData.cs @@ -0,0 +1,383 @@ +using System; +using System.Collections.Generic; +using DB; +using Manager; +using Manager.UserDatas; +using UnityEngine; + +namespace Datas.DebugData +{ + // Token: 0x020008DE RID: 2270 + [CreateAssetMenu(menuName = "Mai2Data/DebugDataCreate", fileName = "DebugUserData")] + public class DebugUserData : ScriptableObject + { + // Token: 0x06004ADF RID: 19167 RVA: 0x00190A90 File Offset: 0x0018FC90 + public UserData GetUserData() + { + UserData userData = new UserData(); + userData.SetEntry(this.IsEntry); + userData.SetActiveUser(this.IsEntry); + userData.UserType = this.UserIDType; + userData.Detail.UserID = this.UserID; + userData.Detail.UserName = this.UserName; + userData.Detail.AccessCode = this.AccessCode; + userData.Detail.Rating = this.Rating; + userData.RatingList.Udemae.SetClassValue(this.ClassValue); + userData.RatingList.Udemae.SetMaxClassValue(this.MaxClassValue); + userData.Detail.EquipIconID = this.EquipIconID; + userData.Detail.EquipTitleID = this.EquipTitleID; + userData.Detail.EquipPlateID = this.EquipPlateID; + userData.Detail.EquipPartnerID = this.EquipPartnerID; + userData.Detail.EquipFrameID = this.EquipFrameID; + userData.Detail.SelectMapID = this.SelectMapID; + userData.Detail.ClassRank = (uint)UserUdemae.GetRateToUdemaeID(this.ClassValue); + userData.Detail.IsNetMember = (int)this.IsNetMember; + userData.Detail.PlayCount = this.PlayCount; + userData.Detail.MapStock = this.MapStock; + userData.Activity.Clear(); + userData.Activity.PlayList = this.PlayList; + userData.Activity.MusicList = this.MusicList; + userData.Option = this.Option.GetUserOption(); + userData.Extend = this.Extend.GetUserExtend(); + foreach (MapEncountNpc mapEncountNpc in this.Extend.EncountMapNpcList) + { + userData.Extend.AddEncountMapNpc(mapEncountNpc.NpcId, mapEncountNpc.MusicId); + } + userData.Extend.SelectedCardList = this.Extend.SelectedCardList; + userData.Extend.SelectResultDetails = this.Extend.SelectResultDetails; + userData.Extend.ExtendContendBit.SetFlag(ExtendContentBitID.PhotoAgree, this.IsPhotoAgree); + userData.Extend.ExtendContendBit.SetFlag(ExtendContentBitID.GotoCodeRead, this.IsGotoCodeRead); + userData.Extend.ExtendContendBit.SetFlag(ExtendContentBitID.GotoCharaSelect, this.IsGotoCharaSelect); + userData.Extend.ExtendContendBit.SetFlag(ExtendContentBitID.GotoIconPhotoShoot, this.IsGotoIconPhotoShoot); + userData.SortFilter = new UserSort + { + SortMusic = this.Sort.sortMusic, + SortTab = this.Sort.sortTab + }; + foreach (ContentBitID contentBitID in (ContentBitID[])Enum.GetValues(typeof(ContentBitID))) + { + if (contentBitID != ContentBitID.End && contentBitID != ContentBitID.Invalid) + { + bool flag = (this.FirstFlags & (1 << contentBitID.GetEnumValue())) > 0; + userData.Detail.ContentBit.SetFlag(contentBitID, flag); + } + } + userData.CharaList.Clear(); + userData.NewCharaList.Clear(); + foreach (DebugUserChara debugUserChara in this.CharaList) + { + UserChara userChara = new UserChara(debugUserChara.ID) + { + Awakening = debugUserChara.Awakening, + Count = debugUserChara.Exp, + DisplayLevel = debugUserChara.Level, + NextAwake = debugUserChara.NextAwake, + NextAwakePercent = debugUserChara.NextAwakePercent + }; + userChara.CalcLevelToAwake(); + userData.CharaList.Add(userChara); + } + userData.IconList.Clear(); + userData.NewIconList.Clear(); + foreach (int num in this.iconList) + { + userData.IconList.Add(new UserItem(num)); + } + userData.PlateList.Clear(); + userData.NewPlateList.Clear(); + foreach (int num2 in this.plateList) + { + userData.PlateList.Add(new UserItem(num2)); + } + userData.TitleList.Clear(); + userData.NewTitleList.Clear(); + foreach (int num3 in this.titleList) + { + userData.TitleList.Add(new UserItem(num3)); + } + userData.PartnerList.Clear(); + userData.NewPartnerList.Clear(); + foreach (int num4 in this.partnerList) + { + userData.PartnerList.Add(new UserItem(num4)); + } + userData.FrameList.Clear(); + userData.NewFrameList.Clear(); + foreach (int num5 in this.frameList) + { + userData.FrameList.Add(new UserItem(num5)); + } + userData.TicketList.Clear(); + userData.NewTicketList.Clear(); + foreach (int num6 in this.ticketList) + { + userData.TicketList.Add(new UserItem(num6)); + } + userData.PresentList.Clear(); + userData.NewItemList.Clear(); + userData.MusicUnlockList.Clear(); + foreach (int num7 in this.musicUnlockList) + { + userData.MusicUnlockList.Add(num7); + } + userData.MusicUnlockMasterList.Clear(); + foreach (int num8 in this.musicUnlockMasList) + { + userData.MusicUnlockMasterList.Add(num8); + } + userData.MusicUnlockReMasterList.Clear(); + foreach (int num9 in this.musicUnlockRemList) + { + userData.MusicUnlockReMasterList.Add(num9); + } + userData.MusicUnlockStrongList.Clear(); + foreach (int num10 in this.musicUnlockStrList) + { + userData.MusicUnlockStrongList.Add(num10); + } + userData.MapList.Clear(); + foreach (DebugUserMap debugUserMap in this.mapList) + { + UserMapData userMapData = new UserMapData(debugUserMap.ID) + { + Distance = debugUserMap.Distance, + IsLock = debugUserMap.IsLock, + IsClear = debugUserMap.IsClear, + IsComplete = debugUserMap.IsComplete + }; + userData.MapList.Add(userMapData); + } + userData.LoginBonusList.Clear(); + foreach (DebugUserLoginBonus debugUserLoginBonus in this.loginBonusList) + { + UserLoginBonus userLoginBonus = new UserLoginBonus(debugUserLoginBonus.ID) + { + Point = debugUserLoginBonus.Point + }; + userData.LoginBonusList.Add(userLoginBonus); + } + userData.FriendSeasonRankingList.Clear(); + userData.CardList = this.CardList; + for (int j = 0; j < userData.ScoreDic.Length; j++) + { + Dictionary dictionary = new Dictionary(); + List list; + switch (j) + { + case 0: + list = this.ScoreList.Basic; + break; + case 1: + list = this.ScoreList.Advanced; + break; + case 2: + list = this.ScoreList.Expart; + break; + case 3: + list = this.ScoreList.Master; + break; + case 4: + list = this.ScoreList.ReMaster; + break; + default: + list = new List(); + break; + } + foreach (UserScore userScore in list) + { + dictionary.Add(userScore.id, userScore); + } + userData.ScoreDic[j] = dictionary; + } + for (int k = 0; k < userData.Detail.CharaSlot.Length; k++) + { + if (k < this.CharaSlot.Length) + { + userData.Detail.CharaSlot[k] = this.CharaSlot[k]; + } + } + userData.Detail.CardType = this.CardType; + return userData; + } + + // Token: 0x04005C78 RID: 23672 + [SerializeField] + public bool IsEntry; + + // Token: 0x04005C79 RID: 23673 + [SerializeField] + public UserData.NetMember IsNetMember; + + // Token: 0x04005C7A RID: 23674 + [SerializeField] + public UserData.UserIDType UserIDType; + + // Token: 0x04005C7B RID: 23675 + [SerializeField] + public ulong UserID; + + // Token: 0x04005C7C RID: 23676 + [SerializeField] + public string UserName; + + // Token: 0x04005C7D RID: 23677 + [SerializeField] + public string AccessCode; + + // Token: 0x04005C7E RID: 23678 + [SerializeField] + public uint Rating; + + // Token: 0x04005C7F RID: 23679 + [SerializeField] + public int ClassValue; + + // Token: 0x04005C80 RID: 23680 + [SerializeField] + public int MaxClassValue; + + // Token: 0x04005C81 RID: 23681 + [SerializeField] + public int PlayCount; + + // Token: 0x04005C82 RID: 23682 + [SerializeField] + public int MapStock; + + // Token: 0x04005C83 RID: 23683 + [SerializeField] + public int FirstFlags; + + // Token: 0x04005C84 RID: 23684 + [SerializeField] + public int EquipIconID; + + // Token: 0x04005C85 RID: 23685 + [SerializeField] + public int EquipTitleID; + + // Token: 0x04005C86 RID: 23686 + [SerializeField] + public int EquipPlateID; + + // Token: 0x04005C87 RID: 23687 + [SerializeField] + public int EquipPartnerID; + + // Token: 0x04005C88 RID: 23688 + [SerializeField] + public int EquipFrameID; + + // Token: 0x04005C89 RID: 23689 + [SerializeField] + public int SelectMapID = 1; + + // Token: 0x04005C8A RID: 23690 + [SerializeField] + public DebugUserOption Option; + + // Token: 0x04005C8B RID: 23691 + [SerializeField] + public DebugUserExtend Extend; + + // Token: 0x04005C8C RID: 23692 + [SerializeField] + public DebugUserSort Sort; + + // Token: 0x04005C8D RID: 23693 + [SerializeField] + public DebugUserScore ScoreList; + + // Token: 0x04005C8E RID: 23694 + [SerializeField] + public List CharaList = new List(); + + // Token: 0x04005C8F RID: 23695 + [SerializeField] + public int[] CharaSlot = new int[5]; + + // Token: 0x04005C90 RID: 23696 + [SerializeField] + public List iconList = new List(); + + // Token: 0x04005C91 RID: 23697 + [SerializeField] + public List plateList = new List(); + + // Token: 0x04005C92 RID: 23698 + [SerializeField] + public List titleList = new List(); + + // Token: 0x04005C93 RID: 23699 + [SerializeField] + public List partnerList = new List(); + + // Token: 0x04005C94 RID: 23700 + [SerializeField] + public List frameList = new List(); + + // Token: 0x04005C95 RID: 23701 + [SerializeField] + public List ticketList = new List(); + + // Token: 0x04005C96 RID: 23702 + [SerializeField] + public int CardType; + + // Token: 0x04005C97 RID: 23703 + [SerializeField] + public List musicUnlockList = new List(); + + // Token: 0x04005C98 RID: 23704 + [SerializeField] + public List musicUnlockMasList = new List(); + + // Token: 0x04005C99 RID: 23705 + [SerializeField] + public List musicUnlockRemList = new List(); + + // Token: 0x04005C9A RID: 23706 + [SerializeField] + public List musicUnlockStrList = new List(); + + // Token: 0x04005C9B RID: 23707 + [SerializeField] + public List mapList = new List(); + + // Token: 0x04005C9C RID: 23708 + [SerializeField] + public List loginBonusList = new List(); + + // Token: 0x04005C9D RID: 23709 + [SerializeField] + public List CardList = new List(); + + // Token: 0x04005C9E RID: 23710 + [SerializeField] + public List PlayList = new List(); + + // Token: 0x04005C9F RID: 23711 + [SerializeField] + public List MusicList = new List(); + + // Token: 0x04005CA0 RID: 23712 + [SerializeField] + public List CourseList = new List(); + + // Token: 0x04005CA1 RID: 23713 + [SerializeField] + public bool IsPhotoAgree; + + // Token: 0x04005CA2 RID: 23714 + [SerializeField] + public bool IsGotoCodeRead; + + // Token: 0x04005CA3 RID: 23715 + [SerializeField] + public bool IsGotoCharaSelect; + + // Token: 0x04005CA4 RID: 23716 + [SerializeField] + public bool IsGotoIconPhotoShoot; + } +} diff --git a/Assembly-CSharp/Datas/DebugData/DebugUserExtend.cs b/Assembly-CSharp/Datas/DebugData/DebugUserExtend.cs new file mode 100644 index 0000000..88645d7 --- /dev/null +++ b/Assembly-CSharp/Datas/DebugData/DebugUserExtend.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using DB; +using Manager.UserDatas; + +namespace Datas.DebugData +{ + // Token: 0x020008E3 RID: 2275 + [Serializable] + public class DebugUserExtend + { + // Token: 0x06004AE6 RID: 19174 RVA: 0x001916AF File Offset: 0x001908AF + public UserExtend GetUserExtend() + { + UserExtend userExtend = new UserExtend(); + userExtend.Initialize(); + return userExtend; + } + + // Token: 0x04005CC1 RID: 23745 + public int CategoryIndex; + + // Token: 0x04005CC2 RID: 23746 + public int MusicIndex; + + // Token: 0x04005CC3 RID: 23747 + public int ExtraFlag; + + // Token: 0x04005CC4 RID: 23748 + public bool SelectResultDetails; + + // Token: 0x04005CC5 RID: 23749 + public SortTabID SortCategorySetting; + + // Token: 0x04005CC6 RID: 23750 + public SortMusicID SortMusicSetting; + + // Token: 0x04005CC7 RID: 23751 + public List EncountMapNpcList = new List(); + + // Token: 0x04005CC8 RID: 23752 + public List SelectedCardList = new List(4); + } +} diff --git a/Assembly-CSharp/Datas/DebugData/DebugUserLoginBonus.cs b/Assembly-CSharp/Datas/DebugData/DebugUserLoginBonus.cs new file mode 100644 index 0000000..d37ef9f --- /dev/null +++ b/Assembly-CSharp/Datas/DebugData/DebugUserLoginBonus.cs @@ -0,0 +1,18 @@ +using System; + +namespace Datas.DebugData +{ + // Token: 0x020008E0 RID: 2272 + [Serializable] + public class DebugUserLoginBonus + { + // Token: 0x04005CAA RID: 23722 + public int ID; + + // Token: 0x04005CAB RID: 23723 + public uint Point; + + // Token: 0x04005CAC RID: 23724 + public bool IsCurrent; + } +} diff --git a/Assembly-CSharp/Datas/DebugData/DebugUserMap.cs b/Assembly-CSharp/Datas/DebugData/DebugUserMap.cs new file mode 100644 index 0000000..6b0bad5 --- /dev/null +++ b/Assembly-CSharp/Datas/DebugData/DebugUserMap.cs @@ -0,0 +1,24 @@ +using System; + +namespace Datas.DebugData +{ + // Token: 0x020008DF RID: 2271 + [Serializable] + public class DebugUserMap + { + // Token: 0x04005CA5 RID: 23717 + public int ID; + + // Token: 0x04005CA6 RID: 23718 + public uint Distance; + + // Token: 0x04005CA7 RID: 23719 + public bool IsLock; + + // Token: 0x04005CA8 RID: 23720 + public bool IsClear; + + // Token: 0x04005CA9 RID: 23721 + public bool IsComplete; + } +} diff --git a/Assembly-CSharp/Datas/DebugData/DebugUserOption.cs b/Assembly-CSharp/Datas/DebugData/DebugUserOption.cs new file mode 100644 index 0000000..26ba61f --- /dev/null +++ b/Assembly-CSharp/Datas/DebugData/DebugUserOption.cs @@ -0,0 +1,89 @@ +using System; +using DB; +using Manager.UserDatas; + +namespace Datas.DebugData +{ + // Token: 0x020008E2 RID: 2274 + [Serializable] + public class DebugUserOption + { + // Token: 0x06004AE4 RID: 19172 RVA: 0x00191564 File Offset: 0x00190764 + public UserOption GetUserOption() + { + UserOption userOption = new UserOption(); + userOption.Initialize(); + userOption.OptionKind = this.OptionKind; + userOption.NoteSpeed = this.NoteSpeed; + userOption.SlideSpeed = this.SlideSpeed; + userOption.TouchSpeed = this.TouchSpeed; + userOption.StarRotate = this.StarRotate; + userOption.AdjustTiming = this.AdjustTiming; + userOption.JudgeTiming = this.JudgeTiming; + userOption.DispJudge = this.DispJudge; + userOption.Brightness = this.Brightness; + userOption.SubmonitorAnimation = this.SubmonitorAnimation; + userOption.BreakVolume = this.BreakVolume; + userOption.SlideVolume = this.SlideVolume; + userOption.BreakSlideVolume = this.BreakSlideVolume; + userOption.AnsVolume = this.AnsVolume; + userOption.TapHoldVolume = this.TapHoldVolume; + userOption.HeadPhoneVolume = this.HeadPhoneVolume; + return userOption; + } + + // Token: 0x04005CAF RID: 23727 + public OptionKindID OptionKind; + + // Token: 0x04005CB0 RID: 23728 + public OptionNotespeedID NoteSpeed = OptionNotespeedID.Speed2_0; + + // Token: 0x04005CB1 RID: 23729 + public OptionSlidespeedID SlideSpeed = OptionSlidespeedID.Normal; + + // Token: 0x04005CB2 RID: 23730 + public OptionTouchspeedID TouchSpeed = OptionTouchspeedID.Speed4_0; + + // Token: 0x04005CB3 RID: 23731 + public OptionStarrotateID StarRotate = OptionStarrotateID.On; + + // Token: 0x04005CB4 RID: 23732 + public OptionJudgetimingID AdjustTiming = OptionJudgetimingID.Normal; + + // Token: 0x04005CB5 RID: 23733 + public OptionJudgetimingID JudgeTiming = OptionJudgetimingID.Normal; + + // Token: 0x04005CB6 RID: 23734 + public OptionDispjudgeID DispJudge; + + // Token: 0x04005CB7 RID: 23735 + public OptionMoviebrightnessID Brightness; + + // Token: 0x04005CB8 RID: 23736 + public OptionSubmonitorID SubmonitorAnimation; + + // Token: 0x04005CB9 RID: 23737 + public OptionMirrorID MirrorMode; + + // Token: 0x04005CBA RID: 23738 + public OptionVolumeID SeVolume = OptionVolumeID.Vol4; + + // Token: 0x04005CBB RID: 23739 + public OptionVolumeID BreakVolume = OptionVolumeID.Vol4; + + // Token: 0x04005CBC RID: 23740 + public OptionVolumeID SlideVolume = OptionVolumeID.Vol4; + + // Token: 0x04005CBD RID: 23741 + public OptionVolumeID BreakSlideVolume = OptionVolumeID.Vol4; + + // Token: 0x04005CBE RID: 23742 + public OptionVolumeAnswerSoundID AnsVolume = OptionVolumeAnswerSoundID.Vol4; + + // Token: 0x04005CBF RID: 23743 + public OptionVolumeID TapHoldVolume = OptionVolumeID.Vol4; + + // Token: 0x04005CC0 RID: 23744 + public OptionHeadphonevolumeID HeadPhoneVolume = OptionHeadphonevolumeID.Vol10; + } +} diff --git a/Assembly-CSharp/Datas/DebugData/DebugUserScore.cs b/Assembly-CSharp/Datas/DebugData/DebugUserScore.cs new file mode 100644 index 0000000..bbcf090 --- /dev/null +++ b/Assembly-CSharp/Datas/DebugData/DebugUserScore.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using Manager.UserDatas; + +namespace Datas.DebugData +{ + // Token: 0x020008E4 RID: 2276 + [Serializable] + public class DebugUserScore + { + // Token: 0x04005CC9 RID: 23753 + public List Basic = new List(); + + // Token: 0x04005CCA RID: 23754 + public List Advanced = new List(); + + // Token: 0x04005CCB RID: 23755 + public List Expart = new List(); + + // Token: 0x04005CCC RID: 23756 + public List Master = new List(); + + // Token: 0x04005CCD RID: 23757 + public List ReMaster = new List(); + } +} diff --git a/Assembly-CSharp/Datas/DebugData/DebugUserSort.cs b/Assembly-CSharp/Datas/DebugData/DebugUserSort.cs new file mode 100644 index 0000000..5ae78ca --- /dev/null +++ b/Assembly-CSharp/Datas/DebugData/DebugUserSort.cs @@ -0,0 +1,16 @@ +using System; +using DB; + +namespace Datas.DebugData +{ + // Token: 0x020008E1 RID: 2273 + [Serializable] + public class DebugUserSort + { + // Token: 0x04005CAD RID: 23725 + public SortTabID sortTab; + + // Token: 0x04005CAE RID: 23726 + public SortMusicID sortMusic; + } +} diff --git a/Assembly-CSharp/Datas/DebugData/DebugUserStrongScore.cs b/Assembly-CSharp/Datas/DebugData/DebugUserStrongScore.cs new file mode 100644 index 0000000..fc678e4 --- /dev/null +++ b/Assembly-CSharp/Datas/DebugData/DebugUserStrongScore.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using Manager.UserDatas; + +namespace Datas.DebugData +{ + // Token: 0x020008E5 RID: 2277 + [Serializable] + public class DebugUserStrongScore + { + // Token: 0x04005CCE RID: 23758 + public List Strong = new List(); + } +} diff --git a/Assembly-CSharp/Debug.cs b/Assembly-CSharp/Debug.cs new file mode 100644 index 0000000..ddfa19f --- /dev/null +++ b/Assembly-CSharp/Debug.cs @@ -0,0 +1,235 @@ +using System; +using System.Diagnostics; +using UnityEngine; + +// Token: 0x02000191 RID: 401 +public static class Debug +{ + // Token: 0x06000E19 RID: 3609 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void Assert(bool condition, string message, Object context) + { + } + + // Token: 0x06000E1A RID: 3610 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void Assert(bool condition, object message, Object context) + { + } + + // Token: 0x06000E1B RID: 3611 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void Assert(bool condition, string message) + { + } + + // Token: 0x06000E1C RID: 3612 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void Assert(bool condition, object message) + { + } + + // Token: 0x06000E1D RID: 3613 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void Assert(bool condition, Object context) + { + } + + // Token: 0x06000E1E RID: 3614 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void Assert(bool condition) + { + } + + // Token: 0x06000E1F RID: 3615 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void Assert(bool condition, string format, params object[] args) + { + } + + // Token: 0x06000E20 RID: 3616 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void AssertFormat(bool condition, string format, params object[] args) + { + } + + // Token: 0x06000E21 RID: 3617 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void AssertFormat(bool condition, Object context, string format, params object[] args) + { + } + + // Token: 0x06000E22 RID: 3618 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void Break() + { + } + + // Token: 0x06000E23 RID: 3619 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void ClearDeveloperConsole() + { + } + + // Token: 0x06000E24 RID: 3620 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void DebugBreak() + { + } + + // Token: 0x06000E25 RID: 3621 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void DrawLine(Vector3 start, Vector3 end, Color color, float duration, bool depthTest) + { + } + + // Token: 0x06000E26 RID: 3622 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void DrawLine(Vector3 start, Vector3 end, Color color, float duration) + { + } + + // Token: 0x06000E27 RID: 3623 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void DrawLine(Vector3 start, Vector3 end) + { + } + + // Token: 0x06000E28 RID: 3624 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void DrawLine(Vector3 start, Vector3 end, Color color) + { + } + + // Token: 0x06000E29 RID: 3625 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void DrawRay(Vector3 start, Vector3 dir, Color color, float duration) + { + } + + // Token: 0x06000E2A RID: 3626 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void DrawRay(Vector3 start, Vector3 dir, Color color, float duration, bool depthTest) + { + } + + // Token: 0x06000E2B RID: 3627 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void DrawRay(Vector3 start, Vector3 dir) + { + } + + // Token: 0x06000E2C RID: 3628 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void DrawRay(Vector3 start, Vector3 dir, Color color) + { + } + + // Token: 0x06000E2D RID: 3629 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void Log(object message) + { + } + + // Token: 0x06000E2E RID: 3630 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void Log(object message, Object context) + { + } + + // Token: 0x06000E2F RID: 3631 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogAssertion(object message, Object context) + { + } + + // Token: 0x06000E30 RID: 3632 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogAssertion(object message) + { + } + + // Token: 0x06000E31 RID: 3633 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogAssertionFormat(Object context, string format, params object[] args) + { + } + + // Token: 0x06000E32 RID: 3634 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogAssertionFormat(string format, params object[] args) + { + } + + // Token: 0x06000E33 RID: 3635 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogError(object message, Object context) + { + } + + // Token: 0x06000E34 RID: 3636 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogError(object message) + { + } + + // Token: 0x06000E35 RID: 3637 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogErrorFormat(string format, params object[] args) + { + } + + // Token: 0x06000E36 RID: 3638 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogErrorFormat(Object context, string format, params object[] args) + { + } + + // Token: 0x06000E37 RID: 3639 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogException(Exception exception, Object context) + { + } + + // Token: 0x06000E38 RID: 3640 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogException(Exception exception) + { + } + + // Token: 0x06000E39 RID: 3641 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogFormat(Object context, string format, params object[] args) + { + } + + // Token: 0x06000E3A RID: 3642 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogFormat(string format, params object[] args) + { + } + + // Token: 0x06000E3B RID: 3643 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogWarning(object message) + { + } + + // Token: 0x06000E3C RID: 3644 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogWarning(object message, Object context) + { + } + + // Token: 0x06000E3D RID: 3645 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogWarningFormat(string format, params object[] args) + { + } + + // Token: 0x06000E3E RID: 3646 RVA: 0x00003598 File Offset: 0x00002798 + [Conditional("UNITY_EDITOR")] + public static void LogWarningFormat(Object context, string format, params object[] args) + { + } +} diff --git a/Assembly-CSharp/DebugDesignButtonSimple.cs b/Assembly-CSharp/DebugDesignButtonSimple.cs new file mode 100644 index 0000000..7d129ac --- /dev/null +++ b/Assembly-CSharp/DebugDesignButtonSimple.cs @@ -0,0 +1,67 @@ +using System; +using UnityEngine; +using UnityEngine.UI; + +// Token: 0x02000096 RID: 150 +public class DebugDesignButtonSimple : MonoBehaviour +{ + // Token: 0x0600051F RID: 1311 RVA: 0x00013EC4 File Offset: 0x000130C4 + public void Awake() + { + Button component = base.GetComponent