using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Cpp2IlInjected; using UnityEngine; namespace RecRoom.Core.UI.RoomChat { // Token: 0x02003031 RID: 12337 [Token(Token = "0x2003031")] [CreateAssetMenu] public class CannedChatConfig : ScriptableObject { // Token: 0x170039C1 RID: 14785 // (get) Token: 0x06014FDB RID: 85979 RVA: 0x004E95E4 File Offset: 0x004E77E4 [Token(Token = "0x170039C1")] public static CannedChatConfig Instance { [Token(Token = "0x6014FDB")] [Address(RVA = "0xA58C90", Offset = "0xA57A90", VA = "0x180A58C90")] get { CannedChatConfig instance = CannedChatConfig._instance; int num = 0; if (!(instance != num)) { CannedChatConfig._instance = global::UnityEngine.Object.Instantiate(OLJIOKGMCPN.MNKDOANEFLK(0)); int num2 = 0; if (!(CannedChatConfig._instance == num2)) { CannedChatConfig instance2 = CannedChatConfig._instance; List list = instance2.cannedChatItems; int size = list._size; int num3 = instance2.APNMDLBOFLC(list, size); List list2 = instance2.cannedChatItems; int num4 = 0; int num5 = 0; instance2.k__BackingField = num3; instance2.MMGHHEJJDJM(list2, num5, num4); } Debug.LogError("Failed to load CannedChat config"); } return CannedChatConfig._instance; } } // Token: 0x170039C2 RID: 14786 // (get) Token: 0x06014FDC RID: 85980 RVA: 0x004E9680 File Offset: 0x004E7880 // (set) Token: 0x06014FDD RID: 85981 RVA: 0x004E9694 File Offset: 0x004E7894 [Token(Token = "0x170039C2")] public int MaxChildren { [Token(Token = "0x6014FDC")] [Address(RVA = "0x3F7310", Offset = "0x3F6110", VA = "0x1803F7310")] get; [Token(Token = "0x6014FDD")] [Address(RVA = "0x420360", Offset = "0x41F160", VA = "0x180420360")] private set; } // Token: 0x06014FDE RID: 85982 RVA: 0x004E96A8 File Offset: 0x004E78A8 [Token(Token = "0x6014FDE")] [Address(RVA = "0xA58BC0", Offset = "0xA579C0", VA = "0x180A58BC0")] private void OFFLOPLJBBG() { List list = this.cannedChatItems; int size = list._size; int num = this.APNMDLBOFLC(list, size); List list2 = this.cannedChatItems; int num2 = 0; int num3 = 0; this.k__BackingField = num; this.MMGHHEJJDJM(list2, num3, num2); } // Token: 0x06014FDF RID: 85983 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x6014FDF")] [Address(RVA = "0xA58910", Offset = "0xA57710", VA = "0x180A58910")] private void MMGHHEJJDJM(List BOOHBJEEGKH, [Optional] string FBDCFGOMPKP, [Optional] string CLAJOCDAJKF) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06014FE0 RID: 85984 RVA: 0x004E96F4 File Offset: 0x004E78F4 [Token(Token = "0x6014FE0")] [Address(RVA = "0xA582B0", Offset = "0xA570B0", VA = "0x180A582B0")] private int APNMDLBOFLC(List BOOHBJEEGKH, int DIBEMNHGIBE = 0) { int num; int num2; do { num = 0; num2 = BOOHBJEEGKH._size; num2 = Mathf.Max(DIBEMNHGIBE, num2); bool flag; if (flag) { int num3; num2 = num3; } } while (num != 0); return num2; } // Token: 0x06014FE1 RID: 85985 RVA: 0x004E972C File Offset: 0x004E792C [Token(Token = "0x6014FE1")] [Address(RVA = "0xA58A90", Offset = "0xA57890", VA = "0x180A58A90")] public void MNDGDFGBLFJ(IEnumerable GDDBDIJIBCO) { string[] array = new string[2]; if ("Room" != 0) { } array[0] = "Room"; if ("Favorites" != 0) { } array[1] = "Favorites"; this.LBLCCJDIOFJ(GDDBDIJIBCO, (CEKGPDLHOKF)((uint)1), array); } // Token: 0x06014FE2 RID: 85986 RVA: 0x004E9778 File Offset: 0x004E7978 [Token(Token = "0x6014FE2")] [Address(RVA = "0xA58420", Offset = "0xA57220", VA = "0x180A58420")] public void EOAKMNBAHKN(IEnumerable GDDBDIJIBCO) { string[] array = new string[2]; if ("Room" != 0) { } array[0] = "Room"; if ("Recents" != 0) { } array[1] = "Recents"; this.LBLCCJDIOFJ(GDDBDIJIBCO, (CEKGPDLHOKF)((uint)2), array); } // Token: 0x06014FE3 RID: 85987 RVA: 0x004E97C4 File Offset: 0x004E79C4 [Token(Token = "0x6014FE3")] [Address(RVA = "0xA58180", Offset = "0xA56F80", VA = "0x180A58180")] public void AIFDOHGFMIM(IEnumerable MFIDBKBLKKG) { string[] array = new string[2]; if ("People" != 0) { } array[0] = "People"; if ("Nearby" != 0) { } array[1] = "Nearby"; this.LBLCCJDIOFJ(MFIDBKBLKKG, (CEKGPDLHOKF)((uint)3), array); } // Token: 0x06014FE4 RID: 85988 RVA: 0x004E9810 File Offset: 0x004E7A10 [Token(Token = "0x6014FE4")] [Address(RVA = "0xA58550", Offset = "0xA57350", VA = "0x180A58550")] private void LBLCCJDIOFJ(IEnumerable ACMONAHLIAK, CEKGPDLHOKF DIEPOPNJNCO, params string[] CBCDLMLKBJE) { int num; do { num = 0; CannedChatItem cannedChatItem; if (num < CBCDLMLKBJE.Length) { string text = CBCDLMLKBJE[num]; string pathPart = text; if (num != 0) { Func func = delegate(CannedChatItem c) { string pathPart3 = pathPart; return string.Equals(c.message, pathPart3); }; } List list = this.cannedChatItems; Func func2 = delegate(CannedChatItem c) { string pathPart2 = pathPart; return string.Equals(c.message, pathPart2); }; cannedChatItem = Enumerable.First(list, func2); num++; } List list2 = new List(); cannedChatItem.children = list2; if (num < ACMONAHLIAK) { num += num; num++; } int num2 = 0; if (list2 != 0) { if (num >= num2) { goto IL_8F; } num += num; if (num != num2) { num++; goto IL_8F; } IL_B8: int num3; num3 += num3; string text2 = CBCDLMLKBJE[0]; CannedChatItem cannedChatItem2; cannedChatItem2.k__BackingField = text2; string text3 = string.Join("_", CBCDLMLKBJE) + "_" + num; cannedChatItem2.k__BackingField = text3; cannedChatItem2.k__BackingField = text3; goto IL_FB; IL_8F: cannedChatItem2 = new CannedChatItem(); List list3 = new List(); cannedChatItem2.children = list3; num3 = 0; cannedChatItem2.message = num; num3 += num3; goto IL_B8; } IL_FB: if (list2 != 0) { } } while (num != 0); } // Token: 0x06014FE5 RID: 85989 RVA: 0x004E992C File Offset: 0x004E7B2C [Token(Token = "0x6014FE5")] [Address(RVA = "0xA58C30", Offset = "0xA57A30", VA = "0x180A58C30")] public CannedChatConfig() { List list = new List(); this.cannedChatItems = list; base..ctor(); } // Token: 0x0400DE6D RID: 56941 [Token(Token = "0x400DE6D")] private static CannedChatConfig _instance; // Token: 0x0400DE6E RID: 56942 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x400DE6E")] [SerializeField] public List cannedChatItems; // Token: 0x02003032 RID: 12338 [Token(Token = "0x2003032")] [CompilerGenerated] private sealed class OAIBFFCHHNC { // Token: 0x06014FE6 RID: 85990 RVA: 0x004E994C File Offset: 0x004E7B4C [Token(Token = "0x6014FE6")] [Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")] public OAIBFFCHHNC() { } // Token: 0x06014FE7 RID: 85991 RVA: 0x004E9960 File Offset: 0x004E7B60 [Token(Token = "0x6014FE7")] [Address(RVA = "0x8CFC10", Offset = "0x8CEA10", VA = "0x1808CFC10")] internal bool b__0(CannedChatItem c) { string text = this.pathPart; return string.Equals(c.message, text); } // Token: 0x06014FE8 RID: 85992 RVA: 0x004E9988 File Offset: 0x004E7B88 [Token(Token = "0x6014FE8")] [Address(RVA = "0x8CFC10", Offset = "0x8CEA10", VA = "0x1808CFC10")] internal bool b__1(CannedChatItem c) { string text = this.pathPart; return string.Equals(c.message, text); } // Token: 0x0400DE70 RID: 56944 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x400DE70")] public string pathPart; } } }