using System; using System.Collections.Generic; using System.Runtime.InteropServices; using Cpp2IlInjected; using Photon.Pun; using Photon.Realtime; using RecRoom.Networking.RPC; using UnityEngine; using UnityEngine.Events; namespace RecRoom.Tools.Groups { // Token: 0x0200263A RID: 9786 [Token(Token = "0x200263A")] [StructLayout(3)] public class PlayingCardDeck : MonoBehaviourPun { // Token: 0x06010EF4 RID: 69364 RVA: 0x003FAF48 File Offset: 0x003F9148 [Token(Token = "0x6010EF4")] [Address(RVA = "0x1A69890", Offset = "0x1A68290", VA = "0x181A69890", Slot = "13")] protected override void Awake() { Transform transform = base.transform; Vector3 vector; float z = vector.z; this.MJPJECPDMCM.z = z; Transform transform2 = base.transform; PlayingCard[] componentsInChildren = base.GetComponentsInChildren(); this.LHEIAHOIKIO = componentsInChildren; if (componentsInChildren.Length != 52) { object[] array = new object[5]; if ("Deck does not have the correct number of cards. Has " != 0) { } array[0] = "Deck does not have the correct number of cards. Has "; int length = this.LHEIAHOIKIO.Length; if (length != 0) { } array[1] = length; if (" and requires " != 0) { } array[2] = " and requires "; int num; if (num != 0) { } array[3] = num; if (" cards." != 0) { } array[4] = " cards."; Debug.LogError(string.Concat(array)); } SimplePhysicalButton simplePhysicalButton = this.recallCardsButton; int num2 = 0; if (simplePhysicalButton != num2) { PhysicalButtonBase.PhysicalButtonPressEvent pressEvent = this.recallCardsButton.pressEvent; UnityAction unityAction = new UnityAction(this.KGJJDJLPMNG); pressEvent.AddListener(unityAction); } } // Token: 0x06010EF5 RID: 69365 RVA: 0x003FB054 File Offset: 0x003F9254 [Token(Token = "0x6010EF5")] [Address(RVA = "0x1A6A5A0", Offset = "0x1A68FA0", VA = "0x181A6A5A0")] private void Start() { if (base.hasAuthority) { int num = 0; int num2 = 0; int num3 = 0; PlayingCard[] lheiahoikio = this.LHEIAHOIKIO; PlayingCard playingCard; playingCard.PADEMOOFMKO = (PlayingCard.BBJIAAMINKL)num; PlayingCard[] lheiahoikio2 = this.LHEIAHOIKIO; PlayingCard playingCard2; playingCard2.DMLIOOCLKKP = (PlayingCard.EGBLHMDGLIC)num3; num3++; num++; num2 += 13; PlayingCard[] lheiahoikio3 = this.LHEIAHOIKIO; this.PJOILCEBNGN(lheiahoikio3); } } // Token: 0x06010EF6 RID: 69366 RVA: 0x003FB0B4 File Offset: 0x003F92B4 [Token(Token = "0x6010EF6")] [Address(RVA = "0x1A69D60", Offset = "0x1A68760", VA = "0x181A69D60", Slot = "14")] protected override void OnDestroy() { base.OnDestroy(); SimplePhysicalButton simplePhysicalButton = this.recallCardsButton; int num = 0; if (simplePhysicalButton != num) { PhysicalButtonBase.PhysicalButtonPressEvent pressEvent = this.recallCardsButton.pressEvent; UnityAction unityAction = new UnityAction(this.KGJJDJLPMNG); pressEvent.RemoveListener(unityAction); } } // Token: 0x06010EF7 RID: 69367 RVA: 0x003FB100 File Offset: 0x003F9300 [Token(Token = "0x6010EF7")] [Address(RVA = "0x1A69E30", Offset = "0x1A68830", VA = "0x181A69E30")] private void PJOILCEBNGN(PlayingCard[] GGAECJKPOAF) { PlayingCard playingCard = GGAECJKPOAF[0]; ToolGroup toolGroup = playingCard.CreateNewGroup(); toolGroup.AuthorityAddChildren(GGAECJKPOAF); Transform transform = toolGroup.transform; float z = this.MJPJECPDMCM.z; Transform transform2 = toolGroup.transform; Quaternion lkkfaanjkfj = this.LKKFAANJKFJ; transform2.rotation = lkkfaanjkfj; } // Token: 0x06010EF8 RID: 69368 RVA: 0x003FB15C File Offset: 0x003F935C [Token(Token = "0x6010EF8")] [Address(RVA = "0x1A69C20", Offset = "0x1A68620", VA = "0x181A69C20")] private void KGJJDJLPMNG(PhysicalButtonBase AKBHFOFHHNK, global::Player EEMNAFPPPIK) { PhotonView photonView = base.photonView; RPCActions.RPCAction rpcaction = new RPCActions.RPCAction(this.RpcMasterRecall); photonView.RpcMaster(rpcaction); } // Token: 0x06010EF9 RID: 69369 RVA: 0x003FB18C File Offset: 0x003F938C [Token(Token = "0x6010EF9")] [Address(RVA = "0x1A69CD0", Offset = "0x1A686D0", VA = "0x181A69CD0")] private void KKMEAGEDLOB() { PhotonView photonView = base.photonView; RPCActions.RPCAction rpcaction = new RPCActions.RPCAction(this.RpcMasterRecall); photonView.RpcMaster(rpcaction); } // Token: 0x06010EFA RID: 69370 RVA: 0x003FB1BC File Offset: 0x003F93BC [Token(Token = "0x6010EFA")] [Address(RVA = "0x1A69FB0", Offset = "0x1A689B0", VA = "0x181A69FB0")] [PunRPC] private void RpcMasterRecall() { int num; int num3; do { num = 0; this.MMIKBLPIFKL.Clear(); this.NHEKDFIGODK.Clear(); PlayingCard[] lheiahoikio = this.LHEIAHOIKIO; if (num < lheiahoikio.Length) { ToolGroup group = lheiahoikio[num].Group; int num2 = 0; if (group != num2 && !this.LHEIAHOIKIO[num].Group.k__BackingField.FNFNLDBILFE) { HashSet nhekdfigodk = this.NHEKDFIGODK; ToolGroup group2 = this.LHEIAHOIKIO[num].Group; if (!nhekdfigodk.Contains(group2)) { HashSet nhekdfigodk2 = this.NHEKDFIGODK; ToolGroup group3 = this.LHEIAHOIKIO[num].Group; bool flag = nhekdfigodk2.Add(group3); } } num++; PlayingCard[] lheiahoikio2 = this.LHEIAHOIKIO; } HashSet nhekdfigodk3 = this.NHEKDFIGODK; HashSet.Enumerator enumerator; if (enumerator != 0 && enumerator == 0) { Photon.Realtime.Player localPlayer = PhotonNetwork.LocalPlayer; PhotonView photonView; photonView.TransferOwnership(localPlayer); } num3 = 0; if (num != -1) { } } while (num != 0); PlayingCard[] lheiahoikio3 = this.LHEIAHOIKIO; if (num3 < lheiahoikio3.Length) { ToolGroup group4 = lheiahoikio3[num3].Group; int num4 = 0; if (!(group4 != num4) && !this.LHEIAHOIKIO[num3].tool.FNFNLDBILFE) { List mmikblpifkl = this.MMIKBLPIFKL; PlayingCard playingCard = this.LHEIAHOIKIO[num3]; mmikblpifkl.Add(playingCard); } num3++; PlayingCard[] lheiahoikio4 = this.LHEIAHOIKIO; } PlayingCard[] array = this.MMIKBLPIFKL.ToArray(); this.PJOILCEBNGN(array); } // Token: 0x06010EFB RID: 69371 RVA: 0x003FB34C File Offset: 0x003F954C [Token(Token = "0x6010EFB")] [Address(RVA = "0x1A6A6A0", Offset = "0x1A690A0", VA = "0x181A6A6A0")] public PlayingCardDeck() { List list = new List(); this.MMIKBLPIFKL = list; HashSet hashSet = new HashSet(); this.NHEKDFIGODK = hashSet; float z = Vector3.zero.z; this.MJPJECPDMCM.z = z; Quaternion identity = Quaternion.identity; base..ctor(); } // Token: 0x0400B3FC RID: 46076 [Token(Token = "0x400B3FC")] private const int JFIPMEEJGHI = 52; // Token: 0x0400B3FD RID: 46077 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x400B3FD")] [SerializeField] private SimplePhysicalButton recallCardsButton; // Token: 0x0400B3FE RID: 46078 [global::Cpp2IlInjected.FieldOffset(Offset = "0x48")] [Token(Token = "0x400B3FE")] private PlayingCard[] LHEIAHOIKIO; // Token: 0x0400B3FF RID: 46079 [global::Cpp2IlInjected.FieldOffset(Offset = "0x50")] [Token(Token = "0x400B3FF")] private List MMIKBLPIFKL; // Token: 0x0400B400 RID: 46080 [global::Cpp2IlInjected.FieldOffset(Offset = "0x58")] [Token(Token = "0x400B400")] private HashSet NHEKDFIGODK; // Token: 0x0400B401 RID: 46081 [global::Cpp2IlInjected.FieldOffset(Offset = "0x60")] [Token(Token = "0x400B401")] private Vector3 MJPJECPDMCM; // Token: 0x0400B402 RID: 46082 [global::Cpp2IlInjected.FieldOffset(Offset = "0x6C")] [Token(Token = "0x400B402")] private Quaternion LKKFAANJKFJ; } }