From 33f9b61bef71b1a8d581d8a3b54be9d177a7963a Mon Sep 17 00:00:00 2001 From: Chipmunk <65827213+ChipmunkMC@users.noreply.github.com> Date: Thu, 9 May 2024 13:55:02 -0400 Subject: [PATCH] Fix the last(?) bunch of errors It *should* compile now. Most errors were related to "incorrectly" decompiled events, which I fixed by hand. Some were caused by ILSpy forgetting to cast values and other things, though. --- .../FingerDownDetector.cs | 32 +- .../FingerGestures.cs | 92 +--- .../FingerHoverDetector.cs | 32 +- .../FingerMotionDetector.cs | 62 +-- .../FingerUpDetector.cs | 32 +- .../Assembly-CSharp-firstpass/Gesture.cs | 32 +- .../GestureRecognizerTS.cs | 26 +- .../HTTP/WebSocket.cs | 122 +---- .../Assembly-CSharp-firstpass/TBPan.cs | 32 +- .../Assembly-CSharp/AnimationParserJob.cs | 32 +- .../Assembly-CSharp/AnimationTimeline.cs | 122 +---- .../Assembly-CSharp/AppStateManager.cs | 62 +-- .../Scripts/Assembly-CSharp/AssetManager.cs | 32 +- .../Assembly-CSharp/BatchAnimationJob.cs | 31 +- .../Scripts/Assembly-CSharp/BatchBoardJob.cs | 32 +- .../Scripts/Assembly-CSharp/BatchBrainJob.cs | 32 +- .../Assembly-CSharp/BatchCharacterJob.cs | 32 +- .../Scripts/Assembly-CSharp/BatchGameJob.cs | 31 +- .../Scripts/Assembly-CSharp/BatchLevelJob.cs | 31 +- .../Scripts/Assembly-CSharp/BatchMegaJob.cs | 32 +- .../Assembly-CSharp/BestHTTP/HTTPRequest.cs | 56 +-- .../BestHTTP/ServerSentEvents/EventSource.cs | 180 +------- .../BestHTTP/SignalR/Connection.cs | 212 +-------- .../BestHTTP/SignalR/Hubs/Hub.cs | 32 +- .../SignalR/Transports/TransportBase.cs | 32 +- .../Assembly-CSharp/BlockColorComparer.cs | 2 +- .../Scripts/Assembly-CSharp/BloxelBoard.cs | 31 +- .../Scripts/Assembly-CSharp/BloxelCamera.cs | 32 +- .../Scripts/Assembly-CSharp/BloxelGame.cs | 31 +- .../Assembly-CSharp/BloxelLevelLibrary.cs | 32 +- .../Scripts/Assembly-CSharp/BloxelLibrary.cs | 32 +- .../Assembly-CSharp/BloxelLibraryWindow.cs | 212 +-------- .../Assembly-CSharp/BloxelMegaBoard.cs | 32 +- .../Scripts/Assembly-CSharp/BloxelProject.cs | 32 +- .../Assembly-CSharp/BloxelServerInterface.cs | 422 +----------------- .../Scripts/Assembly-CSharp/BoardParserJob.cs | 32 +- .../Assets/Scripts/Assembly-CSharp/Bullet.cs | 2 +- .../Scripts/Assembly-CSharp/CanvasSquare.cs | 32 +- .../CanvasStreamingInterface.cs | 32 +- .../Scripts/Assembly-CSharp/CaptureManager.cs | 92 +--- .../Assembly-CSharp/CharacterBuilder.cs | 62 +-- .../Assembly-CSharp/CharacterBuilderCanvas.cs | 32 +- .../Assembly-CSharp/CharacterParserJob.cs | 32 +- .../Scripts/Assembly-CSharp/CurrentUser.cs | 62 +-- .../DiscoCapture/CaptureController.cs | 224 +--------- .../DiscoCapture/CaptureImageLoader.cs | 32 +- .../DiscoCapture/DeviceCameraController.cs | 92 +--- .../Scripts/Assembly-CSharp/EnemyLaser.cs | 2 +- .../Assembly-CSharp/FilterableSquares.cs | 62 +-- .../Assembly-CSharp/GameBuilderCanvas.cs | 182 +------- .../Scripts/Assembly-CSharp/GameParserJob.cs | 32 +- .../Assembly-CSharp/GameplayController.cs | 62 +-- .../Scripts/Assembly-CSharp/GemUnlockable.cs | 32 +- .../Scripts/Assembly-CSharp/HomeMenu.cs | 32 +- .../InternetReachabilityVerifier.cs | 32 +- .../Assembly-CSharp/LongPressEventTrigger.cs | 32 +- .../Assembly-CSharp/MegaBoardCanvas.cs | 32 +- .../Assembly-CSharp/MegaBoardParserJob.cs | 32 +- .../Scripts/Assembly-CSharp/MegaBoardTile.cs | 92 +--- .../Newtonsoft/Json/JsonSerializer.cs | 2 - .../Newtonsoft/Json/JsonValidatingReader.cs | 30 +- .../Newtonsoft/Json/Linq/JObject.cs | 32 +- .../Assembly-CSharp/PPInputController.cs | 242 +--------- .../Assembly-CSharp/PixelEditorController.cs | 32 +- .../Assembly-CSharp/PixelEditorPaintBoard.cs | 302 +------------ .../Assembly-CSharp/PixelEditorTile.cs | 212 +-------- .../Assembly-CSharp/PixelPlayerController.cs | 62 +-- .../Assembly-CSharp/PixelToolPalette.cs | 32 +- .../ObjectModel/ObservableDictionary.cs | 52 +-- .../Assembly-CSharp/PlayerBankManager.cs | 62 +-- .../Scripts/Assembly-CSharp/PrefsManager.cs | 32 +- .../Prime31/CharacterController2D.cs | 91 +--- .../Assembly-CSharp/ReflectedBullet.cs | 2 +- .../Assembly-CSharp/RegisterUsername.cs | 32 +- .../Assembly-CSharp/RegistrationController.cs | 32 +- .../Scripts/Assembly-CSharp/SavedProject.cs | 182 +------- .../Scripts/Assembly-CSharp/ScrollSnap.cs | 32 +- .../Scripts/Assembly-CSharp/SequentialMenu.cs | 32 +- .../Assembly-CSharp/ThemeBuilderJob.cs | 30 +- .../Scripts/Assembly-CSharp/ThreadAction.cs | 32 +- .../Assembly-CSharp/UIAnimationFrameRate.cs | 32 +- .../Assembly-CSharp/UIAvatarSelector.cs | 32 +- .../Assets/Scripts/Assembly-CSharp/UIBrain.cs | 92 +--- .../Scripts/Assembly-CSharp/UIBrainDisplay.cs | 32 +- .../Scripts/Assembly-CSharp/UIButton.cs | 212 +-------- .../Scripts/Assembly-CSharp/UIButtonGroup.cs | 32 +- .../Assembly-CSharp/UICaptureFlipToggle.cs | 32 +- .../Assembly-CSharp/UICaptureModeToggle.cs | 32 +- .../Assembly-CSharp/UIChallengeHeader.cs | 62 +-- .../Assembly-CSharp/UIChallengeItem.cs | 32 +- .../Assembly-CSharp/UICharacterStateSelect.cs | 32 +- .../Scripts/Assembly-CSharp/UIColorBlock.cs | 32 +- .../Scripts/Assembly-CSharp/UIColorPicker.cs | 32 +- .../Assembly-CSharp/UIColorScrollElement.cs | 32 +- .../Scripts/Assembly-CSharp/UIDraggable.cs | 122 +---- .../Scripts/Assembly-CSharp/UIDropdownList.cs | 32 +- .../UIGameBuilderSecondaryMode.cs | 32 +- .../Scripts/Assembly-CSharp/UIGemLock.cs | 32 +- .../Scripts/Assembly-CSharp/UIHeroDisplay.cs | 32 +- .../Scripts/Assembly-CSharp/UIInteractable.cs | 182 +------- .../Scripts/Assembly-CSharp/UIMenuPanel.cs | 32 +- .../Scripts/Assembly-CSharp/UIMoveable.cs | 32 +- .../Scripts/Assembly-CSharp/UIMusicChoice.cs | 32 +- .../Assembly-CSharp/UIOverlayNavMenu.cs | 32 +- .../Assets/Scripts/Assembly-CSharp/UIPopup.cs | 32 +- .../Scripts/Assembly-CSharp/UIPopupAccount.cs | 92 +--- .../Assembly-CSharp/UIPopupBoardActivation.cs | 32 +- .../Assembly-CSharp/UIPopupBuildLayout.cs | 32 +- .../UIPopupChallengeComplete.cs | 32 +- .../Assembly-CSharp/UIPopupChallengeInfo.cs | 32 +- .../Assembly-CSharp/UIPopupGemUnlock.cs | 92 +--- .../Assembly-CSharp/UIPopupHelpMenu.cs | 32 +- .../Scripts/Assembly-CSharp/UIPopupMenu.cs | 62 +-- .../Assembly-CSharp/UIPopupNPCConfig.cs | 32 +- .../Assembly-CSharp/UIPopupPowerupConfig.cs | 32 +- .../Assembly-CSharp/UIPopupStateChange.cs | 32 +- .../Assembly-CSharp/UIPopupUploadGame.cs | 32 +- .../Scripts/Assembly-CSharp/UIProgressBar.cs | 32 +- .../Assembly-CSharp/UIProjectPicker.cs | 32 +- .../Assembly-CSharp/UIProjectScrollElement.cs | 32 +- .../Scripts/Assembly-CSharp/UIRadioButton.cs | 32 +- .../Scripts/Assembly-CSharp/UIRadioGroup.cs | 32 +- .../Scripts/Assembly-CSharp/UIRectangle.cs | 32 +- .../Scripts/Assembly-CSharp/UIRoomDisplay.cs | 32 +- .../Assembly-CSharp/UISelectableItem.cs | 32 +- .../Scripts/Assembly-CSharp/UISimpleSquare.cs | 32 +- .../Assets/Scripts/Assembly-CSharp/UITag.cs | 62 +-- .../Assets/Scripts/Assembly-CSharp/UITip.cs | 32 +- .../Assembly-CSharp/UIToggleDropdown.cs | 32 +- .../Scripts/Assembly-CSharp/UITrashCan.cs | 152 +------ .../WebSocketSharp/Server/HttpServer.cs | 274 +----------- .../WebSocketSharp/Server/WebSocketServer.cs | 2 +- .../WebSocketSharp/WebSocket.cs | 122 +---- .../DG/Tweening/Plugins/Options/NoOptions.cs | 2 +- 134 files changed, 273 insertions(+), 7745 deletions(-) diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerDownDetector.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerDownDetector.cs index d99f872..22c54a2 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerDownDetector.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerDownDetector.cs @@ -1,43 +1,13 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; [AddComponentMenu("FingerGestures/Finger Events/Finger Down Detector")] public class FingerDownDetector : FingerEventDetector { - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private FingerEventHandler m_OnFingerDown; - public string MessageName = "OnFingerDown"; - public event FingerEventHandler OnFingerDown - { - add - { - FingerEventHandler fingerEventHandler = this.m_OnFingerDown; - FingerEventHandler fingerEventHandler2; - do - { - fingerEventHandler2 = fingerEventHandler; - fingerEventHandler = Interlocked.CompareExchange(ref this.m_OnFingerDown, (FingerEventHandler)Delegate.Combine(fingerEventHandler2, value), fingerEventHandler); - } - while (fingerEventHandler != fingerEventHandler2); - } - remove - { - FingerEventHandler fingerEventHandler = this.m_OnFingerDown; - FingerEventHandler fingerEventHandler2; - do - { - fingerEventHandler2 = fingerEventHandler; - fingerEventHandler = Interlocked.CompareExchange(ref this.m_OnFingerDown, (FingerEventHandler)Delegate.Remove(fingerEventHandler2, value), fingerEventHandler); - } - while (fingerEventHandler != fingerEventHandler2); - } - } + public event FingerEventHandler OnFingerDown; protected override void ProcessFinger(FingerGestures.Finger finger) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerGestures.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerGestures.cs index 26c5a1c..fb6805c 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerGestures.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerGestures.cs @@ -1,8 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -544,18 +542,6 @@ public class FingerGestures : MonoBehaviour RuntimePlatform.WP8Player }; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static Gesture.EventHandler m_OnGestureEvent; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static FingerEventDetector.FingerEventHandler m_OnFingerEvent; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static EventHandler m_OnInputProviderChanged; - public bool makePersistent = true; public bool detectUnityRemote = true; @@ -680,83 +666,11 @@ public class FingerGestures : MonoBehaviour } } - public static event Gesture.EventHandler OnGestureEvent - { - add - { - Gesture.EventHandler eventHandler = FingerGestures.m_OnGestureEvent; - Gesture.EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref FingerGestures.m_OnGestureEvent, (Gesture.EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - Gesture.EventHandler eventHandler = FingerGestures.m_OnGestureEvent; - Gesture.EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref FingerGestures.m_OnGestureEvent, (Gesture.EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public static event Gesture.EventHandler OnGestureEvent; - public static event FingerEventDetector.FingerEventHandler OnFingerEvent - { - add - { - FingerEventDetector.FingerEventHandler fingerEventHandler = FingerGestures.m_OnFingerEvent; - FingerEventDetector.FingerEventHandler fingerEventHandler2; - do - { - fingerEventHandler2 = fingerEventHandler; - fingerEventHandler = Interlocked.CompareExchange(ref FingerGestures.m_OnFingerEvent, (FingerEventDetector.FingerEventHandler)Delegate.Combine(fingerEventHandler2, value), fingerEventHandler); - } - while (fingerEventHandler != fingerEventHandler2); - } - remove - { - FingerEventDetector.FingerEventHandler fingerEventHandler = FingerGestures.m_OnFingerEvent; - FingerEventDetector.FingerEventHandler fingerEventHandler2; - do - { - fingerEventHandler2 = fingerEventHandler; - fingerEventHandler = Interlocked.CompareExchange(ref FingerGestures.m_OnFingerEvent, (FingerEventDetector.FingerEventHandler)Delegate.Remove(fingerEventHandler2, value), fingerEventHandler); - } - while (fingerEventHandler != fingerEventHandler2); - } - } + public static event FingerEventDetector.FingerEventHandler OnFingerEvent; - public static event EventHandler OnInputProviderChanged - { - add - { - EventHandler eventHandler = FingerGestures.m_OnInputProviderChanged; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref FingerGestures.m_OnInputProviderChanged, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = FingerGestures.m_OnInputProviderChanged; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref FingerGestures.m_OnInputProviderChanged, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public static event EventHandler OnInputProviderChanged; internal static void FireEvent(Gesture gesture) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerHoverDetector.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerHoverDetector.cs index 9783582..034b70b 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerHoverDetector.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerHoverDetector.cs @@ -1,43 +1,13 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; [AddComponentMenu("FingerGestures/Finger Events/Finger Hover Detector")] public class FingerHoverDetector : FingerEventDetector { - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private FingerEventHandler m_OnFingerHover; - public string MessageName = "OnFingerHover"; - public event FingerEventHandler OnFingerHover - { - add - { - FingerEventHandler fingerEventHandler = this.m_OnFingerHover; - FingerEventHandler fingerEventHandler2; - do - { - fingerEventHandler2 = fingerEventHandler; - fingerEventHandler = Interlocked.CompareExchange(ref this.m_OnFingerHover, (FingerEventHandler)Delegate.Combine(fingerEventHandler2, value), fingerEventHandler); - } - while (fingerEventHandler != fingerEventHandler2); - } - remove - { - FingerEventHandler fingerEventHandler = this.m_OnFingerHover; - FingerEventHandler fingerEventHandler2; - do - { - fingerEventHandler2 = fingerEventHandler; - fingerEventHandler = Interlocked.CompareExchange(ref this.m_OnFingerHover, (FingerEventHandler)Delegate.Remove(fingerEventHandler2, value), fingerEventHandler); - } - while (fingerEventHandler != fingerEventHandler2); - } - } + public event FingerEventHandler OnFingerHover; protected override void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerMotionDetector.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerMotionDetector.cs index d6a9d69..a69f50a 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerMotionDetector.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerMotionDetector.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -13,14 +11,6 @@ public class FingerMotionDetector : FingerEventDetector Stationary = 1 } - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private FingerEventHandler m_OnFingerMove; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private FingerEventHandler m_OnFingerStationary; - public string MoveMessageName = "OnFingerMove"; public string StationaryMessageName = "OnFingerStationary"; @@ -29,57 +19,9 @@ public class FingerMotionDetector : FingerEventDetector public bool TrackStationary = true; - public event FingerEventHandler OnFingerMove - { - add - { - FingerEventHandler fingerEventHandler = this.m_OnFingerMove; - FingerEventHandler fingerEventHandler2; - do - { - fingerEventHandler2 = fingerEventHandler; - fingerEventHandler = Interlocked.CompareExchange(ref this.m_OnFingerMove, (FingerEventHandler)Delegate.Combine(fingerEventHandler2, value), fingerEventHandler); - } - while (fingerEventHandler != fingerEventHandler2); - } - remove - { - FingerEventHandler fingerEventHandler = this.m_OnFingerMove; - FingerEventHandler fingerEventHandler2; - do - { - fingerEventHandler2 = fingerEventHandler; - fingerEventHandler = Interlocked.CompareExchange(ref this.m_OnFingerMove, (FingerEventHandler)Delegate.Remove(fingerEventHandler2, value), fingerEventHandler); - } - while (fingerEventHandler != fingerEventHandler2); - } - } + public event FingerEventHandler OnFingerMove; - public event FingerEventHandler OnFingerStationary - { - add - { - FingerEventHandler fingerEventHandler = this.m_OnFingerStationary; - FingerEventHandler fingerEventHandler2; - do - { - fingerEventHandler2 = fingerEventHandler; - fingerEventHandler = Interlocked.CompareExchange(ref this.m_OnFingerStationary, (FingerEventHandler)Delegate.Combine(fingerEventHandler2, value), fingerEventHandler); - } - while (fingerEventHandler != fingerEventHandler2); - } - remove - { - FingerEventHandler fingerEventHandler = this.m_OnFingerStationary; - FingerEventHandler fingerEventHandler2; - do - { - fingerEventHandler2 = fingerEventHandler; - fingerEventHandler = Interlocked.CompareExchange(ref this.m_OnFingerStationary, (FingerEventHandler)Delegate.Remove(fingerEventHandler2, value), fingerEventHandler); - } - while (fingerEventHandler != fingerEventHandler2); - } - } + public event FingerEventHandler OnFingerStationary; private bool FireEvent(FingerMotionEvent e, EventType eventType, FingerMotionPhase phase, Vector2 position, bool updateSelection) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerUpDetector.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerUpDetector.cs index af2de07..c10d195 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerUpDetector.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/FingerUpDetector.cs @@ -1,43 +1,13 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; [AddComponentMenu("FingerGestures/Finger Events/Finger Up Detector")] public class FingerUpDetector : FingerEventDetector { - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private FingerEventHandler m_OnFingerUp; - public string MessageName = "OnFingerUp"; - public event FingerEventHandler OnFingerUp - { - add - { - FingerEventHandler fingerEventHandler = this.m_OnFingerUp; - FingerEventHandler fingerEventHandler2; - do - { - fingerEventHandler2 = fingerEventHandler; - fingerEventHandler = Interlocked.CompareExchange(ref this.m_OnFingerUp, (FingerEventHandler)Delegate.Combine(fingerEventHandler2, value), fingerEventHandler); - } - while (fingerEventHandler != fingerEventHandler2); - } - remove - { - FingerEventHandler fingerEventHandler = this.m_OnFingerUp; - FingerEventHandler fingerEventHandler2; - do - { - fingerEventHandler2 = fingerEventHandler; - fingerEventHandler = Interlocked.CompareExchange(ref this.m_OnFingerUp, (FingerEventHandler)Delegate.Remove(fingerEventHandler2, value), fingerEventHandler); - } - while (fingerEventHandler != fingerEventHandler2); - } - } + public event FingerEventHandler OnFingerUp; protected override void ProcessFinger(FingerGestures.Finger finger) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/Gesture.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/Gesture.cs index a7b9fea..8e0e04c 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/Gesture.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/Gesture.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -8,10 +6,6 @@ public abstract class Gesture { public delegate void EventHandler(Gesture gesture); - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnStateChanged; - internal int ClusterId; private GestureRecognizer recognizer; @@ -166,31 +160,7 @@ public abstract class Gesture } } - public event EventHandler OnStateChanged - { - add - { - EventHandler eventHandler = this.m_OnStateChanged; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnStateChanged, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnStateChanged; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnStateChanged, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnStateChanged; public static implicit operator bool(Gesture gesture) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/GestureRecognizerTS.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/GestureRecognizerTS.cs index 6a18544..1490553 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/GestureRecognizerTS.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/GestureRecognizerTS.cs @@ -19,31 +19,7 @@ public abstract class GestureRecognizerTS : GestureRecognizer where T : Gestu } } - public event GestureEventHandler OnGesture - { - add - { - GestureEventHandler gestureEventHandler = this.OnGesture; - GestureEventHandler gestureEventHandler2; - do - { - gestureEventHandler2 = gestureEventHandler; - gestureEventHandler = Interlocked.CompareExchange(ref this.OnGesture, (GestureEventHandler)System.Delegate.Combine(gestureEventHandler2, value), gestureEventHandler); - } - while (gestureEventHandler != gestureEventHandler2); - } - remove - { - GestureEventHandler gestureEventHandler = this.OnGesture; - GestureEventHandler gestureEventHandler2; - do - { - gestureEventHandler2 = gestureEventHandler; - gestureEventHandler = Interlocked.CompareExchange(ref this.OnGesture, (GestureEventHandler)System.Delegate.Remove(gestureEventHandler2, value), gestureEventHandler); - } - while (gestureEventHandler != gestureEventHandler2); - } - } + public event GestureEventHandler OnGesture; protected override void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/HTTP/WebSocket.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/HTTP/WebSocket.cs index 64678f7..e3d1c3c 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/HTTP/WebSocket.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/HTTP/WebSocket.cs @@ -1,8 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using System.Threading; @@ -189,22 +187,6 @@ namespace HTTP private const int PAYLOAD_WITH_EIGHT_BYTE_EXTENDED_FIELD = 127; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private Action m_OnConnect; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private Action m_OnDisconnect; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnTextMessageHandler m_OnTextMessageRecv; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnBinaryMessageHandler m_OnBinaryMessageRecv; - public Exception exception; public bool isDone; @@ -241,109 +223,13 @@ namespace HTTP private UTF8Encoding enc = new UTF8Encoding(); - public event Action OnConnect - { - add - { - Action action = this.m_OnConnect; - Action action2; - do - { - action2 = action; - action = Interlocked.CompareExchange(ref this.m_OnConnect, (Action)Delegate.Combine(action2, value), action); - } - while (action != action2); - } - remove - { - Action action = this.m_OnConnect; - Action action2; - do - { - action2 = action; - action = Interlocked.CompareExchange(ref this.m_OnConnect, (Action)Delegate.Remove(action2, value), action); - } - while (action != action2); - } - } + public event Action OnConnect; - public event Action OnDisconnect - { - add - { - Action action = this.m_OnDisconnect; - Action action2; - do - { - action2 = action; - action = Interlocked.CompareExchange(ref this.m_OnDisconnect, (Action)Delegate.Combine(action2, value), action); - } - while (action != action2); - } - remove - { - Action action = this.m_OnDisconnect; - Action action2; - do - { - action2 = action; - action = Interlocked.CompareExchange(ref this.m_OnDisconnect, (Action)Delegate.Remove(action2, value), action); - } - while (action != action2); - } - } + public event Action OnDisconnect; - public event OnTextMessageHandler OnTextMessageRecv - { - add - { - OnTextMessageHandler onTextMessageHandler = this.m_OnTextMessageRecv; - OnTextMessageHandler onTextMessageHandler2; - do - { - onTextMessageHandler2 = onTextMessageHandler; - onTextMessageHandler = Interlocked.CompareExchange(ref this.m_OnTextMessageRecv, (OnTextMessageHandler)Delegate.Combine(onTextMessageHandler2, value), onTextMessageHandler); - } - while (onTextMessageHandler != onTextMessageHandler2); - } - remove - { - OnTextMessageHandler onTextMessageHandler = this.m_OnTextMessageRecv; - OnTextMessageHandler onTextMessageHandler2; - do - { - onTextMessageHandler2 = onTextMessageHandler; - onTextMessageHandler = Interlocked.CompareExchange(ref this.m_OnTextMessageRecv, (OnTextMessageHandler)Delegate.Remove(onTextMessageHandler2, value), onTextMessageHandler); - } - while (onTextMessageHandler != onTextMessageHandler2); - } - } + public event OnTextMessageHandler OnTextMessageRecv; - public event OnBinaryMessageHandler OnBinaryMessageRecv - { - add - { - OnBinaryMessageHandler onBinaryMessageHandler = this.m_OnBinaryMessageRecv; - OnBinaryMessageHandler onBinaryMessageHandler2; - do - { - onBinaryMessageHandler2 = onBinaryMessageHandler; - onBinaryMessageHandler = Interlocked.CompareExchange(ref this.m_OnBinaryMessageRecv, (OnBinaryMessageHandler)Delegate.Combine(onBinaryMessageHandler2, value), onBinaryMessageHandler); - } - while (onBinaryMessageHandler != onBinaryMessageHandler2); - } - remove - { - OnBinaryMessageHandler onBinaryMessageHandler = this.m_OnBinaryMessageRecv; - OnBinaryMessageHandler onBinaryMessageHandler2; - do - { - onBinaryMessageHandler2 = onBinaryMessageHandler; - onBinaryMessageHandler = Interlocked.CompareExchange(ref this.m_OnBinaryMessageRecv, (OnBinaryMessageHandler)Delegate.Remove(onBinaryMessageHandler2, value), onBinaryMessageHandler); - } - while (onBinaryMessageHandler != onBinaryMessageHandler2); - } - } + public event OnBinaryMessageHandler OnBinaryMessageRecv; private void OnTextMessage(string msg) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/TBPan.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/TBPan.cs index 2bea572..a529efa 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/TBPan.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp-firstpass/TBPan.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -22,35 +20,7 @@ public class TBPan : MonoBehaviour private DragGesture dragGesture; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private PanEventHandler m_OnPan; - - public event PanEventHandler OnPan - { - add - { - PanEventHandler panEventHandler = this.m_OnPan; - PanEventHandler panEventHandler2; - do - { - panEventHandler2 = panEventHandler; - panEventHandler = Interlocked.CompareExchange(ref this.m_OnPan, (PanEventHandler)Delegate.Combine(panEventHandler2, value), panEventHandler); - } - while (panEventHandler != panEventHandler2); - } - remove - { - PanEventHandler panEventHandler = this.m_OnPan; - PanEventHandler panEventHandler2; - do - { - panEventHandler2 = panEventHandler; - panEventHandler = Interlocked.CompareExchange(ref this.m_OnPan, (PanEventHandler)Delegate.Remove(panEventHandler2, value), panEventHandler); - } - while (panEventHandler != panEventHandler2); - } - } + public event PanEventHandler OnPan; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/AnimationParserJob.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/AnimationParserJob.cs index 92921c8..e8129fb 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/AnimationParserJob.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/AnimationParserJob.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; public class AnimationParserJob : ThreadedJob @@ -13,35 +11,7 @@ public class AnimationParserJob : ThreadedJob public BloxelAnimation animation; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParseComplete m_OnComplete; - - public event HandleParseComplete OnComplete - { - add - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Combine(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - remove - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Remove(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - } + public event HandleParseComplete OnComplete; protected override void ThreadFunction() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/AnimationTimeline.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/AnimationTimeline.cs index d0aef16..ba9990d 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/AnimationTimeline.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/AnimationTimeline.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -41,125 +39,13 @@ public class AnimationTimeline : UIMoveable public BloxelAnimation currentBloxelAnimation; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleFrameChange m_OnFrameChange; + public event HandleFrameChange OnFrameChange; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleAnimationEdit m_OnAnimationEdit; + public event HandleAnimationEdit OnAnimationEdit; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleAddFrameAfter m_OnAddFrameAfter; + public event HandleAddFrameAfter OnAddFrameAfter; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleAddFrameBefore m_OnAddFrameBefore; - - public event HandleFrameChange OnFrameChange - { - add - { - HandleFrameChange handleFrameChange = this.m_OnFrameChange; - HandleFrameChange handleFrameChange2; - do - { - handleFrameChange2 = handleFrameChange; - handleFrameChange = Interlocked.CompareExchange(ref this.m_OnFrameChange, (HandleFrameChange)Delegate.Combine(handleFrameChange2, value), handleFrameChange); - } - while (handleFrameChange != handleFrameChange2); - } - remove - { - HandleFrameChange handleFrameChange = this.m_OnFrameChange; - HandleFrameChange handleFrameChange2; - do - { - handleFrameChange2 = handleFrameChange; - handleFrameChange = Interlocked.CompareExchange(ref this.m_OnFrameChange, (HandleFrameChange)Delegate.Remove(handleFrameChange2, value), handleFrameChange); - } - while (handleFrameChange != handleFrameChange2); - } - } - - public event HandleAnimationEdit OnAnimationEdit - { - add - { - HandleAnimationEdit handleAnimationEdit = this.m_OnAnimationEdit; - HandleAnimationEdit handleAnimationEdit2; - do - { - handleAnimationEdit2 = handleAnimationEdit; - handleAnimationEdit = Interlocked.CompareExchange(ref this.m_OnAnimationEdit, (HandleAnimationEdit)Delegate.Combine(handleAnimationEdit2, value), handleAnimationEdit); - } - while (handleAnimationEdit != handleAnimationEdit2); - } - remove - { - HandleAnimationEdit handleAnimationEdit = this.m_OnAnimationEdit; - HandleAnimationEdit handleAnimationEdit2; - do - { - handleAnimationEdit2 = handleAnimationEdit; - handleAnimationEdit = Interlocked.CompareExchange(ref this.m_OnAnimationEdit, (HandleAnimationEdit)Delegate.Remove(handleAnimationEdit2, value), handleAnimationEdit); - } - while (handleAnimationEdit != handleAnimationEdit2); - } - } - - public event HandleAddFrameAfter OnAddFrameAfter - { - add - { - HandleAddFrameAfter handleAddFrameAfter = this.m_OnAddFrameAfter; - HandleAddFrameAfter handleAddFrameAfter2; - do - { - handleAddFrameAfter2 = handleAddFrameAfter; - handleAddFrameAfter = Interlocked.CompareExchange(ref this.m_OnAddFrameAfter, (HandleAddFrameAfter)Delegate.Combine(handleAddFrameAfter2, value), handleAddFrameAfter); - } - while (handleAddFrameAfter != handleAddFrameAfter2); - } - remove - { - HandleAddFrameAfter handleAddFrameAfter = this.m_OnAddFrameAfter; - HandleAddFrameAfter handleAddFrameAfter2; - do - { - handleAddFrameAfter2 = handleAddFrameAfter; - handleAddFrameAfter = Interlocked.CompareExchange(ref this.m_OnAddFrameAfter, (HandleAddFrameAfter)Delegate.Remove(handleAddFrameAfter2, value), handleAddFrameAfter); - } - while (handleAddFrameAfter != handleAddFrameAfter2); - } - } - - public event HandleAddFrameBefore OnAddFrameBefore - { - add - { - HandleAddFrameBefore handleAddFrameBefore = this.m_OnAddFrameBefore; - HandleAddFrameBefore handleAddFrameBefore2; - do - { - handleAddFrameBefore2 = handleAddFrameBefore; - handleAddFrameBefore = Interlocked.CompareExchange(ref this.m_OnAddFrameBefore, (HandleAddFrameBefore)Delegate.Combine(handleAddFrameBefore2, value), handleAddFrameBefore); - } - while (handleAddFrameBefore != handleAddFrameBefore2); - } - remove - { - HandleAddFrameBefore handleAddFrameBefore = this.m_OnAddFrameBefore; - HandleAddFrameBefore handleAddFrameBefore2; - do - { - handleAddFrameBefore2 = handleAddFrameBefore; - handleAddFrameBefore = Interlocked.CompareExchange(ref this.m_OnAddFrameBefore, (HandleAddFrameBefore)Delegate.Remove(handleAddFrameBefore2, value), handleAddFrameBefore); - } - while (handleAddFrameBefore != handleAddFrameBefore2); - } - } + public event HandleAddFrameBefore OnAddFrameBefore; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/AppStateManager.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/AppStateManager.cs index 6415a12..6b1a521 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/AppStateManager.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/AppStateManager.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -42,14 +40,6 @@ public class AppStateManager : MonoBehaviour public bool attemptedViewerRefresh; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleSceneChange m_OnSceneChange; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleBoardStatus m_OnOwnsBoard; - public bool userOwnsBoard { get @@ -86,57 +76,9 @@ public class AppStateManager : MonoBehaviour } } - public event HandleSceneChange OnSceneChange - { - add - { - HandleSceneChange handleSceneChange = this.m_OnSceneChange; - HandleSceneChange handleSceneChange2; - do - { - handleSceneChange2 = handleSceneChange; - handleSceneChange = Interlocked.CompareExchange(ref this.m_OnSceneChange, (HandleSceneChange)Delegate.Combine(handleSceneChange2, value), handleSceneChange); - } - while (handleSceneChange != handleSceneChange2); - } - remove - { - HandleSceneChange handleSceneChange = this.m_OnSceneChange; - HandleSceneChange handleSceneChange2; - do - { - handleSceneChange2 = handleSceneChange; - handleSceneChange = Interlocked.CompareExchange(ref this.m_OnSceneChange, (HandleSceneChange)Delegate.Remove(handleSceneChange2, value), handleSceneChange); - } - while (handleSceneChange != handleSceneChange2); - } - } + public event HandleSceneChange OnSceneChange; - public event HandleBoardStatus OnOwnsBoard - { - add - { - HandleBoardStatus handleBoardStatus = this.m_OnOwnsBoard; - HandleBoardStatus handleBoardStatus2; - do - { - handleBoardStatus2 = handleBoardStatus; - handleBoardStatus = Interlocked.CompareExchange(ref this.m_OnOwnsBoard, (HandleBoardStatus)Delegate.Combine(handleBoardStatus2, value), handleBoardStatus); - } - while (handleBoardStatus != handleBoardStatus2); - } - remove - { - HandleBoardStatus handleBoardStatus = this.m_OnOwnsBoard; - HandleBoardStatus handleBoardStatus2; - do - { - handleBoardStatus2 = handleBoardStatus; - handleBoardStatus = Interlocked.CompareExchange(ref this.m_OnOwnsBoard, (HandleBoardStatus)Delegate.Remove(handleBoardStatus2, value), handleBoardStatus); - } - while (handleBoardStatus != handleBoardStatus2); - } - } + public event HandleBoardStatus OnOwnsBoard; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/AssetManager.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/AssetManager.cs index c651f53..1f09f72 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/AssetManager.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/AssetManager.cs @@ -1,10 +1,8 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -221,39 +219,11 @@ public class AssetManager : MonoBehaviour public int boardsLoaded; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleInit m_OnInit; - public bool superSimpleManager; public static bool SetupComplete = false; - public event HandleInit OnInit - { - add - { - HandleInit handleInit = this.m_OnInit; - HandleInit handleInit2; - do - { - handleInit2 = handleInit; - handleInit = Interlocked.CompareExchange(ref this.m_OnInit, (HandleInit)Delegate.Combine(handleInit2, value), handleInit); - } - while (handleInit != handleInit2); - } - remove - { - HandleInit handleInit = this.m_OnInit; - HandleInit handleInit2; - do - { - handleInit2 = handleInit; - handleInit = Interlocked.CompareExchange(ref this.m_OnInit, (HandleInit)Delegate.Remove(handleInit2, value), handleInit); - } - while (handleInit != handleInit2); - } - } + public event HandleInit OnInit; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchAnimationJob.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchAnimationJob.cs index 53ade6f..9ea35bf 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchAnimationJob.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchAnimationJob.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; -using System.Runtime.CompilerServices; using System.Threading; using Newtonsoft.Json; @@ -20,37 +19,9 @@ public class BatchAnimationJob : ThreadedJob public List tags; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParseComplete m_OnComplete; - public string badAnimationName; - public event HandleParseComplete OnComplete - { - add - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Combine(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - remove - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Remove(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - } + public event HandleParseComplete OnComplete; protected override void ThreadFunction() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchBoardJob.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchBoardJob.cs index d4de909..7d52373 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchBoardJob.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchBoardJob.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; -using System.Runtime.CompilerServices; using System.Threading; using Newtonsoft.Json; @@ -18,37 +16,9 @@ public class BatchBoardJob : ThreadedJob public List tags; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParseComplete m_OnComplete; - public string badBoardName; - public event HandleParseComplete OnComplete - { - add - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Combine(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - remove - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Remove(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - } + public event HandleParseComplete OnComplete; protected override void ThreadFunction() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchBrainJob.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchBrainJob.cs index 76f3017..8287488 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchBrainJob.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchBrainJob.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; -using System.Runtime.CompilerServices; using System.Threading; using Newtonsoft.Json; @@ -18,37 +16,9 @@ public class BatchBrainJob : ThreadedJob public List tags; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParseComplete m_OnComplete; - public string badBrainName; - public event HandleParseComplete OnComplete - { - add - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Combine(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - remove - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Remove(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - } + public event HandleParseComplete OnComplete; protected override void ThreadFunction() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchCharacterJob.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchCharacterJob.cs index 5d3302f..cb8d619 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchCharacterJob.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchCharacterJob.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; -using System.Runtime.CompilerServices; using System.Threading; using Newtonsoft.Json; @@ -18,37 +16,9 @@ public class BatchCharacterJob : ThreadedJob public List tags; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParseComplete m_OnComplete; - public string badCharacterName; - public event HandleParseComplete OnComplete - { - add - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Combine(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - remove - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Remove(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - } + public event HandleParseComplete OnComplete; protected override void ThreadFunction() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchGameJob.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchGameJob.cs index 4ab7fd3..acc9146 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchGameJob.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchGameJob.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; -using System.Runtime.CompilerServices; using System.Threading; using Newtonsoft.Json; @@ -18,37 +17,9 @@ public class BatchGameJob : ThreadedJob public List tags; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParseComplete m_OnComplete; - public string badGameName; - public event HandleParseComplete OnComplete - { - add - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Combine(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - remove - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Remove(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - } + public event HandleParseComplete OnComplete; protected override void ThreadFunction() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchLevelJob.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchLevelJob.cs index ec4d625..8a49d44 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchLevelJob.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchLevelJob.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; -using System.Runtime.CompilerServices; using System.Threading; using Newtonsoft.Json; @@ -20,37 +19,9 @@ public class BatchLevelJob : ThreadedJob public List borkedLevels; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParseComplete m_OnComplete; - public string badLevelName; - public event HandleParseComplete OnComplete - { - add - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Combine(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - remove - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Remove(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - } + public event HandleParseComplete OnComplete; protected override void ThreadFunction() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchMegaJob.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchMegaJob.cs index bc3ba61..a2fc5cd 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchMegaJob.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BatchMegaJob.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; -using System.Runtime.CompilerServices; using System.Threading; using Newtonsoft.Json; @@ -18,37 +16,9 @@ public class BatchMegaJob : ThreadedJob public List tags; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParseComplete m_OnComplete; - public string badMegaBoardName; - public event HandleParseComplete OnComplete - { - add - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Combine(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - remove - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Remove(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - } + public event HandleParseComplete OnComplete; protected override void ThreadFunction() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/HTTPRequest.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/HTTPRequest.cs index e9a7900..c909f78 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/HTTPRequest.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/HTTPRequest.cs @@ -1,9 +1,7 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; using System.IO; -using System.Runtime.CompilerServices; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading; @@ -40,10 +38,6 @@ namespace BestHTTP private List customCookies; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private Func m_CustomCertificationValidator; - private OnBeforeRedirectionDelegate onBeforeRedirection; private OnBeforeHeaderSendDelegate _onBeforeHeaderSend; @@ -269,55 +263,11 @@ namespace BestHTTP } } - public event Func CustomCertificationValidator - { - add - { - Func func = this.m_CustomCertificationValidator; - Func func2; - do - { - func2 = func; - func = Interlocked.CompareExchange(ref this.m_CustomCertificationValidator, (Func)Delegate.Combine(func2, value), func); - } - while (func != func2); - } - remove - { - Func func = this.m_CustomCertificationValidator; - Func func2; - do - { - func2 = func; - func = Interlocked.CompareExchange(ref this.m_CustomCertificationValidator, (Func)Delegate.Remove(func2, value), func); - } - while (func != func2); - } - } + public event Func CustomCertificationValidator; - public event OnBeforeRedirectionDelegate OnBeforeRedirection - { - add - { - onBeforeRedirection = (OnBeforeRedirectionDelegate)Delegate.Combine(onBeforeRedirection, value); - } - remove - { - onBeforeRedirection = (OnBeforeRedirectionDelegate)Delegate.Remove(onBeforeRedirection, value); - } - } + public event OnBeforeRedirectionDelegate OnBeforeRedirection; - public event OnBeforeHeaderSendDelegate OnBeforeHeaderSend - { - add - { - _onBeforeHeaderSend = (OnBeforeHeaderSendDelegate)Delegate.Combine(_onBeforeHeaderSend, value); - } - remove - { - _onBeforeHeaderSend = (OnBeforeHeaderSendDelegate)Delegate.Remove(_onBeforeHeaderSend, value); - } - } + public event OnBeforeHeaderSendDelegate OnBeforeHeaderSend; public HTTPRequest(Uri uri) : this(uri, HTTPMethods.Get, HTTPManager.KeepAliveDefaultValue, HTTPManager.IsCachingDisabled, null) diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/ServerSentEvents/EventSource.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/ServerSentEvents/EventSource.cs index 11ef83c..72aa84f 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/ServerSentEvents/EventSource.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/ServerSentEvents/EventSource.cs @@ -11,30 +11,6 @@ namespace BestHTTP.ServerSentEvents { private States _state; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnGeneralEventDelegate m_OnOpen; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnMessageDelegate m_OnMessage; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnErrorDelegate m_OnError; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnRetryDelegate m_OnRetry; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnGeneralEventDelegate m_OnClosed; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnStateChangedDelegate m_OnStateChanged; - private Dictionary EventTable; private byte RetryCount; @@ -73,161 +49,17 @@ namespace BestHTTP.ServerSentEvents public HTTPRequest InternalRequest { get; private set; } - public event OnGeneralEventDelegate OnOpen - { - add - { - OnGeneralEventDelegate onGeneralEventDelegate = this.m_OnOpen; - OnGeneralEventDelegate onGeneralEventDelegate2; - do - { - onGeneralEventDelegate2 = onGeneralEventDelegate; - onGeneralEventDelegate = Interlocked.CompareExchange(ref this.m_OnOpen, (OnGeneralEventDelegate)Delegate.Combine(onGeneralEventDelegate2, value), onGeneralEventDelegate); - } - while (onGeneralEventDelegate != onGeneralEventDelegate2); - } - remove - { - OnGeneralEventDelegate onGeneralEventDelegate = this.m_OnOpen; - OnGeneralEventDelegate onGeneralEventDelegate2; - do - { - onGeneralEventDelegate2 = onGeneralEventDelegate; - onGeneralEventDelegate = Interlocked.CompareExchange(ref this.m_OnOpen, (OnGeneralEventDelegate)Delegate.Remove(onGeneralEventDelegate2, value), onGeneralEventDelegate); - } - while (onGeneralEventDelegate != onGeneralEventDelegate2); - } - } + public event OnGeneralEventDelegate OnOpen; - public event OnMessageDelegate OnMessage - { - add - { - OnMessageDelegate onMessageDelegate = this.m_OnMessage; - OnMessageDelegate onMessageDelegate2; - do - { - onMessageDelegate2 = onMessageDelegate; - onMessageDelegate = Interlocked.CompareExchange(ref this.m_OnMessage, (OnMessageDelegate)Delegate.Combine(onMessageDelegate2, value), onMessageDelegate); - } - while (onMessageDelegate != onMessageDelegate2); - } - remove - { - OnMessageDelegate onMessageDelegate = this.m_OnMessage; - OnMessageDelegate onMessageDelegate2; - do - { - onMessageDelegate2 = onMessageDelegate; - onMessageDelegate = Interlocked.CompareExchange(ref this.m_OnMessage, (OnMessageDelegate)Delegate.Remove(onMessageDelegate2, value), onMessageDelegate); - } - while (onMessageDelegate != onMessageDelegate2); - } - } + public event OnMessageDelegate OnMessage; - public event OnErrorDelegate OnError - { - add - { - OnErrorDelegate onErrorDelegate = this.m_OnError; - OnErrorDelegate onErrorDelegate2; - do - { - onErrorDelegate2 = onErrorDelegate; - onErrorDelegate = Interlocked.CompareExchange(ref this.m_OnError, (OnErrorDelegate)Delegate.Combine(onErrorDelegate2, value), onErrorDelegate); - } - while (onErrorDelegate != onErrorDelegate2); - } - remove - { - OnErrorDelegate onErrorDelegate = this.m_OnError; - OnErrorDelegate onErrorDelegate2; - do - { - onErrorDelegate2 = onErrorDelegate; - onErrorDelegate = Interlocked.CompareExchange(ref this.m_OnError, (OnErrorDelegate)Delegate.Remove(onErrorDelegate2, value), onErrorDelegate); - } - while (onErrorDelegate != onErrorDelegate2); - } - } + public event OnErrorDelegate OnError; - public event OnRetryDelegate OnRetry - { - add - { - OnRetryDelegate onRetryDelegate = this.m_OnRetry; - OnRetryDelegate onRetryDelegate2; - do - { - onRetryDelegate2 = onRetryDelegate; - onRetryDelegate = Interlocked.CompareExchange(ref this.m_OnRetry, (OnRetryDelegate)Delegate.Combine(onRetryDelegate2, value), onRetryDelegate); - } - while (onRetryDelegate != onRetryDelegate2); - } - remove - { - OnRetryDelegate onRetryDelegate = this.m_OnRetry; - OnRetryDelegate onRetryDelegate2; - do - { - onRetryDelegate2 = onRetryDelegate; - onRetryDelegate = Interlocked.CompareExchange(ref this.m_OnRetry, (OnRetryDelegate)Delegate.Remove(onRetryDelegate2, value), onRetryDelegate); - } - while (onRetryDelegate != onRetryDelegate2); - } - } + public event OnRetryDelegate OnRetry; - public event OnGeneralEventDelegate OnClosed - { - add - { - OnGeneralEventDelegate onGeneralEventDelegate = this.m_OnClosed; - OnGeneralEventDelegate onGeneralEventDelegate2; - do - { - onGeneralEventDelegate2 = onGeneralEventDelegate; - onGeneralEventDelegate = Interlocked.CompareExchange(ref this.m_OnClosed, (OnGeneralEventDelegate)Delegate.Combine(onGeneralEventDelegate2, value), onGeneralEventDelegate); - } - while (onGeneralEventDelegate != onGeneralEventDelegate2); - } - remove - { - OnGeneralEventDelegate onGeneralEventDelegate = this.m_OnClosed; - OnGeneralEventDelegate onGeneralEventDelegate2; - do - { - onGeneralEventDelegate2 = onGeneralEventDelegate; - onGeneralEventDelegate = Interlocked.CompareExchange(ref this.m_OnClosed, (OnGeneralEventDelegate)Delegate.Remove(onGeneralEventDelegate2, value), onGeneralEventDelegate); - } - while (onGeneralEventDelegate != onGeneralEventDelegate2); - } - } + public event OnGeneralEventDelegate OnClosed; - public event OnStateChangedDelegate OnStateChanged - { - add - { - OnStateChangedDelegate onStateChangedDelegate = this.m_OnStateChanged; - OnStateChangedDelegate onStateChangedDelegate2; - do - { - onStateChangedDelegate2 = onStateChangedDelegate; - onStateChangedDelegate = Interlocked.CompareExchange(ref this.m_OnStateChanged, (OnStateChangedDelegate)Delegate.Combine(onStateChangedDelegate2, value), onStateChangedDelegate); - } - while (onStateChangedDelegate != onStateChangedDelegate2); - } - remove - { - OnStateChangedDelegate onStateChangedDelegate = this.m_OnStateChanged; - OnStateChangedDelegate onStateChangedDelegate2; - do - { - onStateChangedDelegate2 = onStateChangedDelegate; - onStateChangedDelegate = Interlocked.CompareExchange(ref this.m_OnStateChanged, (OnStateChangedDelegate)Delegate.Remove(onStateChangedDelegate2, value), onStateChangedDelegate); - } - while (onStateChangedDelegate != onStateChangedDelegate2); - } - } + public event OnStateChangedDelegate OnStateChanged; public EventSource(Uri uri) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/SignalR/Connection.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/SignalR/Connection.cs index 085eb8e..37f68bd 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/SignalR/Connection.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/SignalR/Connection.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Text; using System.Threading; using BestHTTP.Extensions; @@ -24,34 +22,6 @@ namespace BestHTTP.SignalR private ObservableDictionary additionalQueryParams; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnConnectedDelegate m_OnConnected; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnClosedDelegate m_OnClosed; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnErrorDelegate m_OnError; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnConnectedDelegate m_OnReconnecting; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnConnectedDelegate m_OnReconnected; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnStateChanged m_OnStateChanged; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnNonHubMessageDelegate m_OnNonHubMessage; - internal object SyncRoot = new object(); private readonly string[] ClientProtocols = new string[3] { "1.3", "1.4", "1.5" }; @@ -230,187 +200,19 @@ namespace BestHTTP.SignalR } } - public event OnConnectedDelegate OnConnected - { - add - { - OnConnectedDelegate onConnectedDelegate = this.m_OnConnected; - OnConnectedDelegate onConnectedDelegate2; - do - { - onConnectedDelegate2 = onConnectedDelegate; - onConnectedDelegate = Interlocked.CompareExchange(ref this.m_OnConnected, (OnConnectedDelegate)Delegate.Combine(onConnectedDelegate2, value), onConnectedDelegate); - } - while (onConnectedDelegate != onConnectedDelegate2); - } - remove - { - OnConnectedDelegate onConnectedDelegate = this.m_OnConnected; - OnConnectedDelegate onConnectedDelegate2; - do - { - onConnectedDelegate2 = onConnectedDelegate; - onConnectedDelegate = Interlocked.CompareExchange(ref this.m_OnConnected, (OnConnectedDelegate)Delegate.Remove(onConnectedDelegate2, value), onConnectedDelegate); - } - while (onConnectedDelegate != onConnectedDelegate2); - } - } + public event OnConnectedDelegate OnConnected; - public event OnClosedDelegate OnClosed - { - add - { - OnClosedDelegate onClosedDelegate = this.m_OnClosed; - OnClosedDelegate onClosedDelegate2; - do - { - onClosedDelegate2 = onClosedDelegate; - onClosedDelegate = Interlocked.CompareExchange(ref this.m_OnClosed, (OnClosedDelegate)Delegate.Combine(onClosedDelegate2, value), onClosedDelegate); - } - while (onClosedDelegate != onClosedDelegate2); - } - remove - { - OnClosedDelegate onClosedDelegate = this.m_OnClosed; - OnClosedDelegate onClosedDelegate2; - do - { - onClosedDelegate2 = onClosedDelegate; - onClosedDelegate = Interlocked.CompareExchange(ref this.m_OnClosed, (OnClosedDelegate)Delegate.Remove(onClosedDelegate2, value), onClosedDelegate); - } - while (onClosedDelegate != onClosedDelegate2); - } - } + public event OnClosedDelegate OnClosed; - public event OnErrorDelegate OnError - { - add - { - OnErrorDelegate onErrorDelegate = this.m_OnError; - OnErrorDelegate onErrorDelegate2; - do - { - onErrorDelegate2 = onErrorDelegate; - onErrorDelegate = Interlocked.CompareExchange(ref this.m_OnError, (OnErrorDelegate)Delegate.Combine(onErrorDelegate2, value), onErrorDelegate); - } - while (onErrorDelegate != onErrorDelegate2); - } - remove - { - OnErrorDelegate onErrorDelegate = this.m_OnError; - OnErrorDelegate onErrorDelegate2; - do - { - onErrorDelegate2 = onErrorDelegate; - onErrorDelegate = Interlocked.CompareExchange(ref this.m_OnError, (OnErrorDelegate)Delegate.Remove(onErrorDelegate2, value), onErrorDelegate); - } - while (onErrorDelegate != onErrorDelegate2); - } - } + public event OnErrorDelegate OnError; - public event OnConnectedDelegate OnReconnecting - { - add - { - OnConnectedDelegate onConnectedDelegate = this.m_OnReconnecting; - OnConnectedDelegate onConnectedDelegate2; - do - { - onConnectedDelegate2 = onConnectedDelegate; - onConnectedDelegate = Interlocked.CompareExchange(ref this.m_OnReconnecting, (OnConnectedDelegate)Delegate.Combine(onConnectedDelegate2, value), onConnectedDelegate); - } - while (onConnectedDelegate != onConnectedDelegate2); - } - remove - { - OnConnectedDelegate onConnectedDelegate = this.m_OnReconnecting; - OnConnectedDelegate onConnectedDelegate2; - do - { - onConnectedDelegate2 = onConnectedDelegate; - onConnectedDelegate = Interlocked.CompareExchange(ref this.m_OnReconnecting, (OnConnectedDelegate)Delegate.Remove(onConnectedDelegate2, value), onConnectedDelegate); - } - while (onConnectedDelegate != onConnectedDelegate2); - } - } + public event OnConnectedDelegate OnReconnecting; - public event OnConnectedDelegate OnReconnected - { - add - { - OnConnectedDelegate onConnectedDelegate = this.m_OnReconnected; - OnConnectedDelegate onConnectedDelegate2; - do - { - onConnectedDelegate2 = onConnectedDelegate; - onConnectedDelegate = Interlocked.CompareExchange(ref this.m_OnReconnected, (OnConnectedDelegate)Delegate.Combine(onConnectedDelegate2, value), onConnectedDelegate); - } - while (onConnectedDelegate != onConnectedDelegate2); - } - remove - { - OnConnectedDelegate onConnectedDelegate = this.m_OnReconnected; - OnConnectedDelegate onConnectedDelegate2; - do - { - onConnectedDelegate2 = onConnectedDelegate; - onConnectedDelegate = Interlocked.CompareExchange(ref this.m_OnReconnected, (OnConnectedDelegate)Delegate.Remove(onConnectedDelegate2, value), onConnectedDelegate); - } - while (onConnectedDelegate != onConnectedDelegate2); - } - } + public event OnConnectedDelegate OnReconnected; - public event OnStateChanged OnStateChanged - { - add - { - OnStateChanged onStateChanged = this.m_OnStateChanged; - OnStateChanged onStateChanged2; - do - { - onStateChanged2 = onStateChanged; - onStateChanged = Interlocked.CompareExchange(ref this.m_OnStateChanged, (OnStateChanged)Delegate.Combine(onStateChanged2, value), onStateChanged); - } - while (onStateChanged != onStateChanged2); - } - remove - { - OnStateChanged onStateChanged = this.m_OnStateChanged; - OnStateChanged onStateChanged2; - do - { - onStateChanged2 = onStateChanged; - onStateChanged = Interlocked.CompareExchange(ref this.m_OnStateChanged, (OnStateChanged)Delegate.Remove(onStateChanged2, value), onStateChanged); - } - while (onStateChanged != onStateChanged2); - } - } + public event OnStateChanged OnStateChanged; - public event OnNonHubMessageDelegate OnNonHubMessage - { - add - { - OnNonHubMessageDelegate onNonHubMessageDelegate = this.m_OnNonHubMessage; - OnNonHubMessageDelegate onNonHubMessageDelegate2; - do - { - onNonHubMessageDelegate2 = onNonHubMessageDelegate; - onNonHubMessageDelegate = Interlocked.CompareExchange(ref this.m_OnNonHubMessage, (OnNonHubMessageDelegate)Delegate.Combine(onNonHubMessageDelegate2, value), onNonHubMessageDelegate); - } - while (onNonHubMessageDelegate != onNonHubMessageDelegate2); - } - remove - { - OnNonHubMessageDelegate onNonHubMessageDelegate = this.m_OnNonHubMessage; - OnNonHubMessageDelegate onNonHubMessageDelegate2; - do - { - onNonHubMessageDelegate2 = onNonHubMessageDelegate; - onNonHubMessageDelegate = Interlocked.CompareExchange(ref this.m_OnNonHubMessage, (OnNonHubMessageDelegate)Delegate.Remove(onNonHubMessageDelegate2, value), onNonHubMessageDelegate); - } - while (onNonHubMessageDelegate != onNonHubMessageDelegate2); - } - } + public event OnNonHubMessageDelegate OnNonHubMessage; public Connection(Uri uri, params string[] hubNames) : this(uri) diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/SignalR/Hubs/Hub.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/SignalR/Hubs/Hub.cs index d10a8b6..5baba9a 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/SignalR/Hubs/Hub.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/SignalR/Hubs/Hub.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Text; using System.Threading; using BestHTTP.SignalR.Messages; @@ -12,10 +10,6 @@ namespace BestHTTP.SignalR.Hubs { private Dictionary state; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnMethodCallDelegate m_OnMethodCall; - private Dictionary SentMessages = new Dictionary(); private Dictionary MethodTable = new Dictionary(); @@ -38,31 +32,7 @@ namespace BestHTTP.SignalR.Hubs } } - public event OnMethodCallDelegate OnMethodCall - { - add - { - OnMethodCallDelegate onMethodCallDelegate = this.m_OnMethodCall; - OnMethodCallDelegate onMethodCallDelegate2; - do - { - onMethodCallDelegate2 = onMethodCallDelegate; - onMethodCallDelegate = Interlocked.CompareExchange(ref this.m_OnMethodCall, (OnMethodCallDelegate)Delegate.Combine(onMethodCallDelegate2, value), onMethodCallDelegate); - } - while (onMethodCallDelegate != onMethodCallDelegate2); - } - remove - { - OnMethodCallDelegate onMethodCallDelegate = this.m_OnMethodCall; - OnMethodCallDelegate onMethodCallDelegate2; - do - { - onMethodCallDelegate2 = onMethodCallDelegate; - onMethodCallDelegate = Interlocked.CompareExchange(ref this.m_OnMethodCall, (OnMethodCallDelegate)Delegate.Remove(onMethodCallDelegate2, value), onMethodCallDelegate); - } - while (onMethodCallDelegate != onMethodCallDelegate2); - } - } + public event OnMethodCallDelegate OnMethodCall; public Hub(string name) : this(name, null) diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/SignalR/Transports/TransportBase.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/SignalR/Transports/TransportBase.cs index 9f33d62..1772012 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/SignalR/Transports/TransportBase.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BestHTTP/SignalR/Transports/TransportBase.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using BestHTTP.SignalR.JsonEncoders; using BestHTTP.SignalR.Messages; @@ -14,10 +12,6 @@ namespace BestHTTP.SignalR.Transports public TransportStates _state; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private OnTransportStateChangedDelegate m_OnStateChanged; - public string Name { get; protected set; } public abstract bool SupportsKeepAlive { get; } @@ -43,31 +37,7 @@ namespace BestHTTP.SignalR.Transports } } - public event OnTransportStateChangedDelegate OnStateChanged - { - add - { - OnTransportStateChangedDelegate onTransportStateChangedDelegate = this.m_OnStateChanged; - OnTransportStateChangedDelegate onTransportStateChangedDelegate2; - do - { - onTransportStateChangedDelegate2 = onTransportStateChangedDelegate; - onTransportStateChangedDelegate = Interlocked.CompareExchange(ref this.m_OnStateChanged, (OnTransportStateChangedDelegate)Delegate.Combine(onTransportStateChangedDelegate2, value), onTransportStateChangedDelegate); - } - while (onTransportStateChangedDelegate != onTransportStateChangedDelegate2); - } - remove - { - OnTransportStateChangedDelegate onTransportStateChangedDelegate = this.m_OnStateChanged; - OnTransportStateChangedDelegate onTransportStateChangedDelegate2; - do - { - onTransportStateChangedDelegate2 = onTransportStateChangedDelegate; - onTransportStateChangedDelegate = Interlocked.CompareExchange(ref this.m_OnStateChanged, (OnTransportStateChangedDelegate)Delegate.Remove(onTransportStateChangedDelegate2, value), onTransportStateChangedDelegate); - } - while (onTransportStateChangedDelegate != onTransportStateChangedDelegate2); - } - } + public event OnTransportStateChangedDelegate OnStateChanged; public TransportBase(string name, Connection connection) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BlockColorComparer.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BlockColorComparer.cs index a1858b0..cadab25 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BlockColorComparer.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BlockColorComparer.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.InteropServices; -[StructLayout(0, Size = 1)] +[StructLayout((short)0, Size = 1)] public struct BlockColorComparer : IEqualityComparer { public bool Equals(BlockColor x, BlockColor y) diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelBoard.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelBoard.cs index 12f03e8..9221be5 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelBoard.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelBoard.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.CompilerServices; @@ -43,10 +42,6 @@ public sealed class BloxelBoard : BloxelProject public BlockBounds blockBounds; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleUpdate m_OnUpdate; - public static readonly Color32 BaseBoardDetailLookupColor32 = new Color32(0, 0, 0, byte.MaxValue); public static readonly Color32 TransparentLookupColor32 = new Color32(0, 0, 0, 254); @@ -84,31 +79,7 @@ public sealed class BloxelBoard : BloxelProject } } - public event HandleUpdate OnUpdate - { - add - { - HandleUpdate handleUpdate = this.m_OnUpdate; - HandleUpdate handleUpdate2; - do - { - handleUpdate2 = handleUpdate; - handleUpdate = Interlocked.CompareExchange(ref this.m_OnUpdate, (HandleUpdate)Delegate.Combine(handleUpdate2, value), handleUpdate); - } - while (handleUpdate != handleUpdate2); - } - remove - { - HandleUpdate handleUpdate = this.m_OnUpdate; - HandleUpdate handleUpdate2; - do - { - handleUpdate2 = handleUpdate; - handleUpdate = Interlocked.CompareExchange(ref this.m_OnUpdate, (HandleUpdate)Delegate.Remove(handleUpdate2, value), handleUpdate); - } - while (handleUpdate != handleUpdate2); - } - } + public event HandleUpdate OnUpdate; public BloxelBoard(bool setProjectPath = true) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelCamera.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelCamera.cs index 50feae5..a7ab06b 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelCamera.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelCamera.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -64,10 +62,6 @@ public class BloxelCamera : MonoBehaviour public Vector3 rotationCharacterConfig = new Vector3(0f, 0f, 0f); - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleModeChange m_OnModeChange; - public Tweener blurTween; public Tweener deBlurTween; @@ -84,31 +78,7 @@ public class BloxelCamera : MonoBehaviour public CameraMode mode { get; private set; } - public event HandleModeChange OnModeChange - { - add - { - HandleModeChange handleModeChange = this.m_OnModeChange; - HandleModeChange handleModeChange2; - do - { - handleModeChange2 = handleModeChange; - handleModeChange = Interlocked.CompareExchange(ref this.m_OnModeChange, (HandleModeChange)Delegate.Combine(handleModeChange2, value), handleModeChange); - } - while (handleModeChange != handleModeChange2); - } - remove - { - HandleModeChange handleModeChange = this.m_OnModeChange; - HandleModeChange handleModeChange2; - do - { - handleModeChange2 = handleModeChange; - handleModeChange = Interlocked.CompareExchange(ref this.m_OnModeChange, (HandleModeChange)Delegate.Remove(handleModeChange2, value), handleModeChange); - } - while (handleModeChange != handleModeChange2); - } - } + public event HandleModeChange OnModeChange; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelGame.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelGame.cs index b7c4b2e..5768763 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelGame.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelGame.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.CompilerServices; @@ -44,10 +43,6 @@ public sealed class BloxelGame : BloxelProject public bool gravityOn; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleUpdate m_OnUpdate; - [CompilerGenerated] private static Dictionary _003C_003Ef__switch_0024map9; @@ -73,31 +68,7 @@ public sealed class BloxelGame : BloxelProject } } - public event HandleUpdate OnUpdate - { - add - { - HandleUpdate handleUpdate = this.m_OnUpdate; - HandleUpdate handleUpdate2; - do - { - handleUpdate2 = handleUpdate; - handleUpdate = Interlocked.CompareExchange(ref this.m_OnUpdate, (HandleUpdate)Delegate.Combine(handleUpdate2, value), handleUpdate); - } - while (handleUpdate != handleUpdate2); - } - remove - { - HandleUpdate handleUpdate = this.m_OnUpdate; - HandleUpdate handleUpdate2; - do - { - handleUpdate2 = handleUpdate; - handleUpdate = Interlocked.CompareExchange(ref this.m_OnUpdate, (HandleUpdate)Delegate.Remove(handleUpdate2, value), handleUpdate); - } - while (handleUpdate != handleUpdate2); - } - } + public event HandleUpdate OnUpdate; public BloxelGame(BloxelLevel level, bool shouldSave = true) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelLevelLibrary.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelLevelLibrary.cs index 68e2e1c..3cb498d 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelLevelLibrary.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelLevelLibrary.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -19,10 +17,6 @@ public class BloxelLevelLibrary : BloxelLibraryWindow public List savedLevels = new List(); - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleLevelChange m_OnLevelChange; - public BloxelLevel currentLevel { get @@ -39,31 +33,7 @@ public class BloxelLevelLibrary : BloxelLibraryWindow } } - public event HandleLevelChange OnLevelChange - { - add - { - HandleLevelChange handleLevelChange = this.m_OnLevelChange; - HandleLevelChange handleLevelChange2; - do - { - handleLevelChange2 = handleLevelChange; - handleLevelChange = Interlocked.CompareExchange(ref this.m_OnLevelChange, (HandleLevelChange)Delegate.Combine(handleLevelChange2, value), handleLevelChange); - } - while (handleLevelChange != handleLevelChange2); - } - remove - { - HandleLevelChange handleLevelChange = this.m_OnLevelChange; - HandleLevelChange handleLevelChange2; - do - { - handleLevelChange2 = handleLevelChange; - handleLevelChange = Interlocked.CompareExchange(ref this.m_OnLevelChange, (HandleLevelChange)Delegate.Remove(handleLevelChange2, value), handleLevelChange); - } - while (handleLevelChange != handleLevelChange2); - } - } + public event HandleLevelChange OnLevelChange; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelLibrary.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelLibrary.cs index 47b11ad..709f696 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelLibrary.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelLibrary.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -34,37 +32,9 @@ public class BloxelLibrary : UIMoveable public SavedProject currentSavedProject; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleTabChange m_OnTabChange; - public bool initComplete; - public event HandleTabChange OnTabChange - { - add - { - HandleTabChange handleTabChange = this.m_OnTabChange; - HandleTabChange handleTabChange2; - do - { - handleTabChange2 = handleTabChange; - handleTabChange = Interlocked.CompareExchange(ref this.m_OnTabChange, (HandleTabChange)Delegate.Combine(handleTabChange2, value), handleTabChange); - } - while (handleTabChange != handleTabChange2); - } - remove - { - HandleTabChange handleTabChange = this.m_OnTabChange; - HandleTabChange handleTabChange2; - do - { - handleTabChange2 = handleTabChange; - handleTabChange = Interlocked.CompareExchange(ref this.m_OnTabChange, (HandleTabChange)Delegate.Remove(handleTabChange2, value), handleTabChange); - } - while (handleTabChange != handleTabChange2); - } - } + public event HandleTabChange OnTabChange; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelLibraryWindow.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelLibraryWindow.cs index 9cdb88f..ac68877 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelLibraryWindow.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelLibraryWindow.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -23,215 +21,19 @@ public abstract class BloxelLibraryWindow : MonoBehaviour public SavedProject currentSavedProject; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleProjectSelect m_OnProjectSelect; + public event HandleProjectSelect OnProjectSelect; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDoubleTap m_OnProjectDoubleTap; + public event HandleDoubleTap OnProjectDoubleTap; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDelete m_OnProjectDelete; + public event HandleDelete OnProjectDelete; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleBeginDrag m_OnProjectDragStart; + public event HandleBeginDrag OnProjectDragStart; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleEndDrag m_OnProjectDragEnd; + public event HandleEndDrag OnProjectDragEnd; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDrag m_OnProjectDragging; + public event HandleDrag OnProjectDragging; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleAdd m_OnAddButtonPressed; - - public event HandleProjectSelect OnProjectSelect - { - add - { - HandleProjectSelect handleProjectSelect = this.m_OnProjectSelect; - HandleProjectSelect handleProjectSelect2; - do - { - handleProjectSelect2 = handleProjectSelect; - handleProjectSelect = Interlocked.CompareExchange(ref this.m_OnProjectSelect, (HandleProjectSelect)Delegate.Combine(handleProjectSelect2, value), handleProjectSelect); - } - while (handleProjectSelect != handleProjectSelect2); - } - remove - { - HandleProjectSelect handleProjectSelect = this.m_OnProjectSelect; - HandleProjectSelect handleProjectSelect2; - do - { - handleProjectSelect2 = handleProjectSelect; - handleProjectSelect = Interlocked.CompareExchange(ref this.m_OnProjectSelect, (HandleProjectSelect)Delegate.Remove(handleProjectSelect2, value), handleProjectSelect); - } - while (handleProjectSelect != handleProjectSelect2); - } - } - - public event HandleDoubleTap OnProjectDoubleTap - { - add - { - HandleDoubleTap handleDoubleTap = this.m_OnProjectDoubleTap; - HandleDoubleTap handleDoubleTap2; - do - { - handleDoubleTap2 = handleDoubleTap; - handleDoubleTap = Interlocked.CompareExchange(ref this.m_OnProjectDoubleTap, (HandleDoubleTap)Delegate.Combine(handleDoubleTap2, value), handleDoubleTap); - } - while (handleDoubleTap != handleDoubleTap2); - } - remove - { - HandleDoubleTap handleDoubleTap = this.m_OnProjectDoubleTap; - HandleDoubleTap handleDoubleTap2; - do - { - handleDoubleTap2 = handleDoubleTap; - handleDoubleTap = Interlocked.CompareExchange(ref this.m_OnProjectDoubleTap, (HandleDoubleTap)Delegate.Remove(handleDoubleTap2, value), handleDoubleTap); - } - while (handleDoubleTap != handleDoubleTap2); - } - } - - public event HandleDelete OnProjectDelete - { - add - { - HandleDelete handleDelete = this.m_OnProjectDelete; - HandleDelete handleDelete2; - do - { - handleDelete2 = handleDelete; - handleDelete = Interlocked.CompareExchange(ref this.m_OnProjectDelete, (HandleDelete)Delegate.Combine(handleDelete2, value), handleDelete); - } - while (handleDelete != handleDelete2); - } - remove - { - HandleDelete handleDelete = this.m_OnProjectDelete; - HandleDelete handleDelete2; - do - { - handleDelete2 = handleDelete; - handleDelete = Interlocked.CompareExchange(ref this.m_OnProjectDelete, (HandleDelete)Delegate.Remove(handleDelete2, value), handleDelete); - } - while (handleDelete != handleDelete2); - } - } - - public event HandleBeginDrag OnProjectDragStart - { - add - { - HandleBeginDrag handleBeginDrag = this.m_OnProjectDragStart; - HandleBeginDrag handleBeginDrag2; - do - { - handleBeginDrag2 = handleBeginDrag; - handleBeginDrag = Interlocked.CompareExchange(ref this.m_OnProjectDragStart, (HandleBeginDrag)Delegate.Combine(handleBeginDrag2, value), handleBeginDrag); - } - while (handleBeginDrag != handleBeginDrag2); - } - remove - { - HandleBeginDrag handleBeginDrag = this.m_OnProjectDragStart; - HandleBeginDrag handleBeginDrag2; - do - { - handleBeginDrag2 = handleBeginDrag; - handleBeginDrag = Interlocked.CompareExchange(ref this.m_OnProjectDragStart, (HandleBeginDrag)Delegate.Remove(handleBeginDrag2, value), handleBeginDrag); - } - while (handleBeginDrag != handleBeginDrag2); - } - } - - public event HandleEndDrag OnProjectDragEnd - { - add - { - HandleEndDrag handleEndDrag = this.m_OnProjectDragEnd; - HandleEndDrag handleEndDrag2; - do - { - handleEndDrag2 = handleEndDrag; - handleEndDrag = Interlocked.CompareExchange(ref this.m_OnProjectDragEnd, (HandleEndDrag)Delegate.Combine(handleEndDrag2, value), handleEndDrag); - } - while (handleEndDrag != handleEndDrag2); - } - remove - { - HandleEndDrag handleEndDrag = this.m_OnProjectDragEnd; - HandleEndDrag handleEndDrag2; - do - { - handleEndDrag2 = handleEndDrag; - handleEndDrag = Interlocked.CompareExchange(ref this.m_OnProjectDragEnd, (HandleEndDrag)Delegate.Remove(handleEndDrag2, value), handleEndDrag); - } - while (handleEndDrag != handleEndDrag2); - } - } - - public event HandleDrag OnProjectDragging - { - add - { - HandleDrag handleDrag = this.m_OnProjectDragging; - HandleDrag handleDrag2; - do - { - handleDrag2 = handleDrag; - handleDrag = Interlocked.CompareExchange(ref this.m_OnProjectDragging, (HandleDrag)Delegate.Combine(handleDrag2, value), handleDrag); - } - while (handleDrag != handleDrag2); - } - remove - { - HandleDrag handleDrag = this.m_OnProjectDragging; - HandleDrag handleDrag2; - do - { - handleDrag2 = handleDrag; - handleDrag = Interlocked.CompareExchange(ref this.m_OnProjectDragging, (HandleDrag)Delegate.Remove(handleDrag2, value), handleDrag); - } - while (handleDrag != handleDrag2); - } - } - - public event HandleAdd OnAddButtonPressed - { - add - { - HandleAdd handleAdd = this.m_OnAddButtonPressed; - HandleAdd handleAdd2; - do - { - handleAdd2 = handleAdd; - handleAdd = Interlocked.CompareExchange(ref this.m_OnAddButtonPressed, (HandleAdd)Delegate.Combine(handleAdd2, value), handleAdd); - } - while (handleAdd != handleAdd2); - } - remove - { - HandleAdd handleAdd = this.m_OnAddButtonPressed; - HandleAdd handleAdd2; - do - { - handleAdd2 = handleAdd; - handleAdd = Interlocked.CompareExchange(ref this.m_OnAddButtonPressed, (HandleAdd)Delegate.Remove(handleAdd2, value), handleAdd); - } - while (handleAdd != handleAdd2); - } - } + public event HandleAdd OnAddButtonPressed; public void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelMegaBoard.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelMegaBoard.cs index 178b74d..7de3fe2 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelMegaBoard.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelMegaBoard.cs @@ -1,9 +1,7 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; -using System.Runtime.CompilerServices; using System.Threading; using Newtonsoft.Json; using UnityEngine; @@ -24,35 +22,7 @@ public sealed class BloxelMegaBoard : BloxelProject public Dictionary boards; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnUpdate m_OnUpdate; - - public event HandleOnUpdate OnUpdate - { - add - { - HandleOnUpdate handleOnUpdate = this.m_OnUpdate; - HandleOnUpdate handleOnUpdate2; - do - { - handleOnUpdate2 = handleOnUpdate; - handleOnUpdate = Interlocked.CompareExchange(ref this.m_OnUpdate, (HandleOnUpdate)Delegate.Combine(handleOnUpdate2, value), handleOnUpdate); - } - while (handleOnUpdate != handleOnUpdate2); - } - remove - { - HandleOnUpdate handleOnUpdate = this.m_OnUpdate; - HandleOnUpdate handleOnUpdate2; - do - { - handleOnUpdate2 = handleOnUpdate; - handleOnUpdate = Interlocked.CompareExchange(ref this.m_OnUpdate, (HandleOnUpdate)Delegate.Remove(handleOnUpdate2, value), handleOnUpdate); - } - while (handleOnUpdate != handleOnUpdate2); - } - } + public event HandleOnUpdate OnUpdate; public BloxelMegaBoard(bool setBoardPath = true) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelProject.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelProject.cs index acc91b8..13b8672 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelProject.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelProject.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -156,10 +154,6 @@ public abstract class BloxelProject : IEquatable public bool isDirty; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleTitleChange m_OnTitleChange; - public int localID { get; private set; } public Guid id @@ -176,31 +170,7 @@ public abstract class BloxelProject : IEquatable } } - public event HandleTitleChange OnTitleChange - { - add - { - HandleTitleChange handleTitleChange = this.m_OnTitleChange; - HandleTitleChange handleTitleChange2; - do - { - handleTitleChange2 = handleTitleChange; - handleTitleChange = Interlocked.CompareExchange(ref this.m_OnTitleChange, (HandleTitleChange)Delegate.Combine(handleTitleChange2, value), handleTitleChange); - } - while (handleTitleChange != handleTitleChange2); - } - remove - { - HandleTitleChange handleTitleChange = this.m_OnTitleChange; - HandleTitleChange handleTitleChange2; - do - { - handleTitleChange2 = handleTitleChange; - handleTitleChange = Interlocked.CompareExchange(ref this.m_OnTitleChange, (HandleTitleChange)Delegate.Remove(handleTitleChange2, value), handleTitleChange); - } - while (handleTitleChange != handleTitleChange2); - } - } + public event HandleTitleChange OnTitleChange; public string ID() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelServerInterface.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelServerInterface.cs index 9a42d56..15a4e12 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelServerInterface.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BloxelServerInterface.cs @@ -1,8 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using BestHTTP; using SocketIO; @@ -132,62 +130,6 @@ public class BloxelServerInterface : MonoBehaviour public static List featuredGameIds = new List(6); - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleSquareUpdate m_OnSquareUpdate; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleServerLoginSync m_OnServerLogin; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleCoinsEarned m_OnCoinsEarned; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleUserAccountUpdate m_OnUserAccountUpdate; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleUserFollowed m_OnUserFollowed; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleUserUnFollowed m_OnUserUnFollowed; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleServerMessage m_OnServerMessage; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleServerColors m_OnServerColors; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleNewsItems m_OnNewsItems; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleUpdateNews m_OnUpdateNews; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleStopCoins m_OnStopSendingCoins; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParentApproved m_OnApproved; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleFeaturedGems m_OnFeaturedGems; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleBackDoorMessage m_OnBackDoor; - public static bool initComplete; public bool socketDied; @@ -211,369 +153,33 @@ public class BloxelServerInterface : MonoBehaviour public TextMeshProUGUI envText; - public event HandleSquareUpdate OnSquareUpdate - { - add - { - HandleSquareUpdate handleSquareUpdate = this.m_OnSquareUpdate; - HandleSquareUpdate handleSquareUpdate2; - do - { - handleSquareUpdate2 = handleSquareUpdate; - handleSquareUpdate = Interlocked.CompareExchange(ref this.m_OnSquareUpdate, (HandleSquareUpdate)Delegate.Combine(handleSquareUpdate2, value), handleSquareUpdate); - } - while (handleSquareUpdate != handleSquareUpdate2); - } - remove - { - HandleSquareUpdate handleSquareUpdate = this.m_OnSquareUpdate; - HandleSquareUpdate handleSquareUpdate2; - do - { - handleSquareUpdate2 = handleSquareUpdate; - handleSquareUpdate = Interlocked.CompareExchange(ref this.m_OnSquareUpdate, (HandleSquareUpdate)Delegate.Remove(handleSquareUpdate2, value), handleSquareUpdate); - } - while (handleSquareUpdate != handleSquareUpdate2); - } - } + public event HandleSquareUpdate OnSquareUpdate; - public event HandleServerLoginSync OnServerLogin - { - add - { - HandleServerLoginSync handleServerLoginSync = this.m_OnServerLogin; - HandleServerLoginSync handleServerLoginSync2; - do - { - handleServerLoginSync2 = handleServerLoginSync; - handleServerLoginSync = Interlocked.CompareExchange(ref this.m_OnServerLogin, (HandleServerLoginSync)Delegate.Combine(handleServerLoginSync2, value), handleServerLoginSync); - } - while (handleServerLoginSync != handleServerLoginSync2); - } - remove - { - HandleServerLoginSync handleServerLoginSync = this.m_OnServerLogin; - HandleServerLoginSync handleServerLoginSync2; - do - { - handleServerLoginSync2 = handleServerLoginSync; - handleServerLoginSync = Interlocked.CompareExchange(ref this.m_OnServerLogin, (HandleServerLoginSync)Delegate.Remove(handleServerLoginSync2, value), handleServerLoginSync); - } - while (handleServerLoginSync != handleServerLoginSync2); - } - } + public event HandleServerLoginSync OnServerLogin; - public event HandleCoinsEarned OnCoinsEarned - { - add - { - HandleCoinsEarned handleCoinsEarned = this.m_OnCoinsEarned; - HandleCoinsEarned handleCoinsEarned2; - do - { - handleCoinsEarned2 = handleCoinsEarned; - handleCoinsEarned = Interlocked.CompareExchange(ref this.m_OnCoinsEarned, (HandleCoinsEarned)Delegate.Combine(handleCoinsEarned2, value), handleCoinsEarned); - } - while (handleCoinsEarned != handleCoinsEarned2); - } - remove - { - HandleCoinsEarned handleCoinsEarned = this.m_OnCoinsEarned; - HandleCoinsEarned handleCoinsEarned2; - do - { - handleCoinsEarned2 = handleCoinsEarned; - handleCoinsEarned = Interlocked.CompareExchange(ref this.m_OnCoinsEarned, (HandleCoinsEarned)Delegate.Remove(handleCoinsEarned2, value), handleCoinsEarned); - } - while (handleCoinsEarned != handleCoinsEarned2); - } - } + public event HandleCoinsEarned OnCoinsEarned; - public event HandleUserAccountUpdate OnUserAccountUpdate - { - add - { - HandleUserAccountUpdate handleUserAccountUpdate = this.m_OnUserAccountUpdate; - HandleUserAccountUpdate handleUserAccountUpdate2; - do - { - handleUserAccountUpdate2 = handleUserAccountUpdate; - handleUserAccountUpdate = Interlocked.CompareExchange(ref this.m_OnUserAccountUpdate, (HandleUserAccountUpdate)Delegate.Combine(handleUserAccountUpdate2, value), handleUserAccountUpdate); - } - while (handleUserAccountUpdate != handleUserAccountUpdate2); - } - remove - { - HandleUserAccountUpdate handleUserAccountUpdate = this.m_OnUserAccountUpdate; - HandleUserAccountUpdate handleUserAccountUpdate2; - do - { - handleUserAccountUpdate2 = handleUserAccountUpdate; - handleUserAccountUpdate = Interlocked.CompareExchange(ref this.m_OnUserAccountUpdate, (HandleUserAccountUpdate)Delegate.Remove(handleUserAccountUpdate2, value), handleUserAccountUpdate); - } - while (handleUserAccountUpdate != handleUserAccountUpdate2); - } - } + public event HandleUserAccountUpdate OnUserAccountUpdate; - public event HandleUserFollowed OnUserFollowed - { - add - { - HandleUserFollowed handleUserFollowed = this.m_OnUserFollowed; - HandleUserFollowed handleUserFollowed2; - do - { - handleUserFollowed2 = handleUserFollowed; - handleUserFollowed = Interlocked.CompareExchange(ref this.m_OnUserFollowed, (HandleUserFollowed)Delegate.Combine(handleUserFollowed2, value), handleUserFollowed); - } - while (handleUserFollowed != handleUserFollowed2); - } - remove - { - HandleUserFollowed handleUserFollowed = this.m_OnUserFollowed; - HandleUserFollowed handleUserFollowed2; - do - { - handleUserFollowed2 = handleUserFollowed; - handleUserFollowed = Interlocked.CompareExchange(ref this.m_OnUserFollowed, (HandleUserFollowed)Delegate.Remove(handleUserFollowed2, value), handleUserFollowed); - } - while (handleUserFollowed != handleUserFollowed2); - } - } + public event HandleUserFollowed OnUserFollowed; - public event HandleUserUnFollowed OnUserUnFollowed - { - add - { - HandleUserUnFollowed handleUserUnFollowed = this.m_OnUserUnFollowed; - HandleUserUnFollowed handleUserUnFollowed2; - do - { - handleUserUnFollowed2 = handleUserUnFollowed; - handleUserUnFollowed = Interlocked.CompareExchange(ref this.m_OnUserUnFollowed, (HandleUserUnFollowed)Delegate.Combine(handleUserUnFollowed2, value), handleUserUnFollowed); - } - while (handleUserUnFollowed != handleUserUnFollowed2); - } - remove - { - HandleUserUnFollowed handleUserUnFollowed = this.m_OnUserUnFollowed; - HandleUserUnFollowed handleUserUnFollowed2; - do - { - handleUserUnFollowed2 = handleUserUnFollowed; - handleUserUnFollowed = Interlocked.CompareExchange(ref this.m_OnUserUnFollowed, (HandleUserUnFollowed)Delegate.Remove(handleUserUnFollowed2, value), handleUserUnFollowed); - } - while (handleUserUnFollowed != handleUserUnFollowed2); - } - } + public event HandleUserUnFollowed OnUserUnFollowed; - public event HandleServerMessage OnServerMessage - { - add - { - HandleServerMessage handleServerMessage = this.m_OnServerMessage; - HandleServerMessage handleServerMessage2; - do - { - handleServerMessage2 = handleServerMessage; - handleServerMessage = Interlocked.CompareExchange(ref this.m_OnServerMessage, (HandleServerMessage)Delegate.Combine(handleServerMessage2, value), handleServerMessage); - } - while (handleServerMessage != handleServerMessage2); - } - remove - { - HandleServerMessage handleServerMessage = this.m_OnServerMessage; - HandleServerMessage handleServerMessage2; - do - { - handleServerMessage2 = handleServerMessage; - handleServerMessage = Interlocked.CompareExchange(ref this.m_OnServerMessage, (HandleServerMessage)Delegate.Remove(handleServerMessage2, value), handleServerMessage); - } - while (handleServerMessage != handleServerMessage2); - } - } + public event HandleServerMessage OnServerMessage; - public event HandleServerColors OnServerColors - { - add - { - HandleServerColors handleServerColors = this.m_OnServerColors; - HandleServerColors handleServerColors2; - do - { - handleServerColors2 = handleServerColors; - handleServerColors = Interlocked.CompareExchange(ref this.m_OnServerColors, (HandleServerColors)Delegate.Combine(handleServerColors2, value), handleServerColors); - } - while (handleServerColors != handleServerColors2); - } - remove - { - HandleServerColors handleServerColors = this.m_OnServerColors; - HandleServerColors handleServerColors2; - do - { - handleServerColors2 = handleServerColors; - handleServerColors = Interlocked.CompareExchange(ref this.m_OnServerColors, (HandleServerColors)Delegate.Remove(handleServerColors2, value), handleServerColors); - } - while (handleServerColors != handleServerColors2); - } - } + public event HandleServerColors OnServerColors; - public event HandleNewsItems OnNewsItems - { - add - { - HandleNewsItems handleNewsItems = this.m_OnNewsItems; - HandleNewsItems handleNewsItems2; - do - { - handleNewsItems2 = handleNewsItems; - handleNewsItems = Interlocked.CompareExchange(ref this.m_OnNewsItems, (HandleNewsItems)Delegate.Combine(handleNewsItems2, value), handleNewsItems); - } - while (handleNewsItems != handleNewsItems2); - } - remove - { - HandleNewsItems handleNewsItems = this.m_OnNewsItems; - HandleNewsItems handleNewsItems2; - do - { - handleNewsItems2 = handleNewsItems; - handleNewsItems = Interlocked.CompareExchange(ref this.m_OnNewsItems, (HandleNewsItems)Delegate.Remove(handleNewsItems2, value), handleNewsItems); - } - while (handleNewsItems != handleNewsItems2); - } - } + public event HandleNewsItems OnNewsItems; - public event HandleUpdateNews OnUpdateNews - { - add - { - HandleUpdateNews handleUpdateNews = this.m_OnUpdateNews; - HandleUpdateNews handleUpdateNews2; - do - { - handleUpdateNews2 = handleUpdateNews; - handleUpdateNews = Interlocked.CompareExchange(ref this.m_OnUpdateNews, (HandleUpdateNews)Delegate.Combine(handleUpdateNews2, value), handleUpdateNews); - } - while (handleUpdateNews != handleUpdateNews2); - } - remove - { - HandleUpdateNews handleUpdateNews = this.m_OnUpdateNews; - HandleUpdateNews handleUpdateNews2; - do - { - handleUpdateNews2 = handleUpdateNews; - handleUpdateNews = Interlocked.CompareExchange(ref this.m_OnUpdateNews, (HandleUpdateNews)Delegate.Remove(handleUpdateNews2, value), handleUpdateNews); - } - while (handleUpdateNews != handleUpdateNews2); - } - } + public event HandleUpdateNews OnUpdateNews; - public event HandleStopCoins OnStopSendingCoins - { - add - { - HandleStopCoins handleStopCoins = this.m_OnStopSendingCoins; - HandleStopCoins handleStopCoins2; - do - { - handleStopCoins2 = handleStopCoins; - handleStopCoins = Interlocked.CompareExchange(ref this.m_OnStopSendingCoins, (HandleStopCoins)Delegate.Combine(handleStopCoins2, value), handleStopCoins); - } - while (handleStopCoins != handleStopCoins2); - } - remove - { - HandleStopCoins handleStopCoins = this.m_OnStopSendingCoins; - HandleStopCoins handleStopCoins2; - do - { - handleStopCoins2 = handleStopCoins; - handleStopCoins = Interlocked.CompareExchange(ref this.m_OnStopSendingCoins, (HandleStopCoins)Delegate.Remove(handleStopCoins2, value), handleStopCoins); - } - while (handleStopCoins != handleStopCoins2); - } - } + public event HandleStopCoins OnStopSendingCoins; - public event HandleParentApproved OnApproved - { - add - { - HandleParentApproved handleParentApproved = this.m_OnApproved; - HandleParentApproved handleParentApproved2; - do - { - handleParentApproved2 = handleParentApproved; - handleParentApproved = Interlocked.CompareExchange(ref this.m_OnApproved, (HandleParentApproved)Delegate.Combine(handleParentApproved2, value), handleParentApproved); - } - while (handleParentApproved != handleParentApproved2); - } - remove - { - HandleParentApproved handleParentApproved = this.m_OnApproved; - HandleParentApproved handleParentApproved2; - do - { - handleParentApproved2 = handleParentApproved; - handleParentApproved = Interlocked.CompareExchange(ref this.m_OnApproved, (HandleParentApproved)Delegate.Remove(handleParentApproved2, value), handleParentApproved); - } - while (handleParentApproved != handleParentApproved2); - } - } + public event HandleParentApproved OnApproved; - public event HandleFeaturedGems OnFeaturedGems - { - add - { - HandleFeaturedGems handleFeaturedGems = this.m_OnFeaturedGems; - HandleFeaturedGems handleFeaturedGems2; - do - { - handleFeaturedGems2 = handleFeaturedGems; - handleFeaturedGems = Interlocked.CompareExchange(ref this.m_OnFeaturedGems, (HandleFeaturedGems)Delegate.Combine(handleFeaturedGems2, value), handleFeaturedGems); - } - while (handleFeaturedGems != handleFeaturedGems2); - } - remove - { - HandleFeaturedGems handleFeaturedGems = this.m_OnFeaturedGems; - HandleFeaturedGems handleFeaturedGems2; - do - { - handleFeaturedGems2 = handleFeaturedGems; - handleFeaturedGems = Interlocked.CompareExchange(ref this.m_OnFeaturedGems, (HandleFeaturedGems)Delegate.Remove(handleFeaturedGems2, value), handleFeaturedGems); - } - while (handleFeaturedGems != handleFeaturedGems2); - } - } + public event HandleFeaturedGems OnFeaturedGems; - public event HandleBackDoorMessage OnBackDoor - { - add - { - HandleBackDoorMessage handleBackDoorMessage = this.m_OnBackDoor; - HandleBackDoorMessage handleBackDoorMessage2; - do - { - handleBackDoorMessage2 = handleBackDoorMessage; - handleBackDoorMessage = Interlocked.CompareExchange(ref this.m_OnBackDoor, (HandleBackDoorMessage)Delegate.Combine(handleBackDoorMessage2, value), handleBackDoorMessage); - } - while (handleBackDoorMessage != handleBackDoorMessage2); - } - remove - { - HandleBackDoorMessage handleBackDoorMessage = this.m_OnBackDoor; - HandleBackDoorMessage handleBackDoorMessage2; - do - { - handleBackDoorMessage2 = handleBackDoorMessage; - handleBackDoorMessage = Interlocked.CompareExchange(ref this.m_OnBackDoor, (HandleBackDoorMessage)Delegate.Remove(handleBackDoorMessage2, value), handleBackDoorMessage); - } - while (handleBackDoorMessage != handleBackDoorMessage2); - } - } + public event HandleBackDoorMessage OnBackDoor; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/BoardParserJob.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/BoardParserJob.cs index d100cea..7a9fc34 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/BoardParserJob.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/BoardParserJob.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; public class BoardParserJob : ThreadedJob @@ -13,35 +11,7 @@ public class BoardParserJob : ThreadedJob public BloxelBoard board; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParseComplete m_OnComplete; - - public event HandleParseComplete OnComplete - { - add - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Combine(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - remove - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Remove(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - } + public event HandleParseComplete OnComplete; protected override void ThreadFunction() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/Bullet.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/Bullet.cs index 2866e0f..9e8cec9 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/Bullet.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/Bullet.cs @@ -97,7 +97,7 @@ public sealed class Bullet : PoolableComponent LayerMask layerMask = collision.gameObject.layer; Rigidbody2D rigidbody = collision.rigidbody; BloxelTile bloxelTile = null; - switch (layerMask) + switch ((long)layerMask) { case 10L: bloxelTile = rigidbody.gameObject.GetComponent(); diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/CanvasSquare.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/CanvasSquare.cs index 5f08100..08f0307 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/CanvasSquare.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/CanvasSquare.cs @@ -1,8 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -101,10 +99,6 @@ public sealed class CanvasSquare : MonoBehaviour, IBeginDragHandler, IDragHandle public bool taken; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleStateChange m_OnStateChange; - public static CanvasSquare activeSquare; public CanvasTileInfo.ReadyState state @@ -123,31 +117,7 @@ public sealed class CanvasSquare : MonoBehaviour, IBeginDragHandler, IDragHandle } } - public event HandleStateChange OnStateChange - { - add - { - HandleStateChange handleStateChange = this.m_OnStateChange; - HandleStateChange handleStateChange2; - do - { - handleStateChange2 = handleStateChange; - handleStateChange = Interlocked.CompareExchange(ref this.m_OnStateChange, (HandleStateChange)Delegate.Combine(handleStateChange2, value), handleStateChange); - } - while (handleStateChange != handleStateChange2); - } - remove - { - HandleStateChange handleStateChange = this.m_OnStateChange; - HandleStateChange handleStateChange2; - do - { - handleStateChange2 = handleStateChange; - handleStateChange = Interlocked.CompareExchange(ref this.m_OnStateChange, (HandleStateChange)Delegate.Remove(handleStateChange2, value), handleStateChange); - } - while (handleStateChange != handleStateChange2); - } - } + public event HandleStateChange OnStateChange; public void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/CanvasStreamingInterface.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/CanvasStreamingInterface.cs index ea9e76f..256af4c 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/CanvasStreamingInterface.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/CanvasStreamingInterface.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -73,10 +71,6 @@ public class CanvasStreamingInterface : MonoBehaviour, IBeginDragHandler, IDragH private float idleCoordinateUpdateInterval = 1.5f; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleRowOrColumnShift m_OnRowOrColumnShift; - public Texture2D squareAtlas; public Color32[] blankSpriteColorBuffer; @@ -105,31 +99,7 @@ public class CanvasStreamingInterface : MonoBehaviour, IBeginDragHandler, IDragH public float enlargedSquareScale; - public event HandleRowOrColumnShift OnRowOrColumnShift - { - add - { - HandleRowOrColumnShift handleRowOrColumnShift = this.m_OnRowOrColumnShift; - HandleRowOrColumnShift handleRowOrColumnShift2; - do - { - handleRowOrColumnShift2 = handleRowOrColumnShift; - handleRowOrColumnShift = Interlocked.CompareExchange(ref this.m_OnRowOrColumnShift, (HandleRowOrColumnShift)Delegate.Combine(handleRowOrColumnShift2, value), handleRowOrColumnShift); - } - while (handleRowOrColumnShift != handleRowOrColumnShift2); - } - remove - { - HandleRowOrColumnShift handleRowOrColumnShift = this.m_OnRowOrColumnShift; - HandleRowOrColumnShift handleRowOrColumnShift2; - do - { - handleRowOrColumnShift2 = handleRowOrColumnShift; - handleRowOrColumnShift = Interlocked.CompareExchange(ref this.m_OnRowOrColumnShift, (HandleRowOrColumnShift)Delegate.Remove(handleRowOrColumnShift2, value), handleRowOrColumnShift); - } - while (handleRowOrColumnShift != handleRowOrColumnShift2); - } - } + public event HandleRowOrColumnShift OnRowOrColumnShift; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/CaptureManager.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/CaptureManager.cs index 828c821..d871df9 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/CaptureManager.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/CaptureManager.cs @@ -1,7 +1,5 @@ using System; using System.Collections; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DiscoCapture; using OpenCVForUnity; @@ -44,95 +42,11 @@ public class CaptureManager : MonoBehaviour public static string DataVersion; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleCaptureConfirm m_OnCaptureConfirm; + public event HandleCaptureConfirm OnCaptureConfirm; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDismiss m_OnCaptureDismiss; + public event HandleDismiss OnCaptureDismiss; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleRepeatCapture m_OnCaptureRepeat; - - public event HandleCaptureConfirm OnCaptureConfirm - { - add - { - HandleCaptureConfirm handleCaptureConfirm = this.m_OnCaptureConfirm; - HandleCaptureConfirm handleCaptureConfirm2; - do - { - handleCaptureConfirm2 = handleCaptureConfirm; - handleCaptureConfirm = Interlocked.CompareExchange(ref this.m_OnCaptureConfirm, (HandleCaptureConfirm)Delegate.Combine(handleCaptureConfirm2, value), handleCaptureConfirm); - } - while (handleCaptureConfirm != handleCaptureConfirm2); - } - remove - { - HandleCaptureConfirm handleCaptureConfirm = this.m_OnCaptureConfirm; - HandleCaptureConfirm handleCaptureConfirm2; - do - { - handleCaptureConfirm2 = handleCaptureConfirm; - handleCaptureConfirm = Interlocked.CompareExchange(ref this.m_OnCaptureConfirm, (HandleCaptureConfirm)Delegate.Remove(handleCaptureConfirm2, value), handleCaptureConfirm); - } - while (handleCaptureConfirm != handleCaptureConfirm2); - } - } - - public event HandleDismiss OnCaptureDismiss - { - add - { - HandleDismiss handleDismiss = this.m_OnCaptureDismiss; - HandleDismiss handleDismiss2; - do - { - handleDismiss2 = handleDismiss; - handleDismiss = Interlocked.CompareExchange(ref this.m_OnCaptureDismiss, (HandleDismiss)Delegate.Combine(handleDismiss2, value), handleDismiss); - } - while (handleDismiss != handleDismiss2); - } - remove - { - HandleDismiss handleDismiss = this.m_OnCaptureDismiss; - HandleDismiss handleDismiss2; - do - { - handleDismiss2 = handleDismiss; - handleDismiss = Interlocked.CompareExchange(ref this.m_OnCaptureDismiss, (HandleDismiss)Delegate.Remove(handleDismiss2, value), handleDismiss); - } - while (handleDismiss != handleDismiss2); - } - } - - public event HandleRepeatCapture OnCaptureRepeat - { - add - { - HandleRepeatCapture handleRepeatCapture = this.m_OnCaptureRepeat; - HandleRepeatCapture handleRepeatCapture2; - do - { - handleRepeatCapture2 = handleRepeatCapture; - handleRepeatCapture = Interlocked.CompareExchange(ref this.m_OnCaptureRepeat, (HandleRepeatCapture)Delegate.Combine(handleRepeatCapture2, value), handleRepeatCapture); - } - while (handleRepeatCapture != handleRepeatCapture2); - } - remove - { - HandleRepeatCapture handleRepeatCapture = this.m_OnCaptureRepeat; - HandleRepeatCapture handleRepeatCapture2; - do - { - handleRepeatCapture2 = handleRepeatCapture; - handleRepeatCapture = Interlocked.CompareExchange(ref this.m_OnCaptureRepeat, (HandleRepeatCapture)Delegate.Remove(handleRepeatCapture2, value), handleRepeatCapture); - } - while (handleRepeatCapture != handleRepeatCapture2); - } - } + public event HandleRepeatCapture OnCaptureRepeat; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/CharacterBuilder.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/CharacterBuilder.cs index f22360e..c8b8ef1 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/CharacterBuilder.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/CharacterBuilder.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using DiscoCapture; @@ -32,65 +30,9 @@ public class CharacterBuilder : MonoBehaviour public CharacterPlacementGrid gameGrid; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleStateUpdate m_OnState; + public event HandleStateUpdate OnState; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnPreview m_OnPreview; - - public event HandleStateUpdate OnState - { - add - { - HandleStateUpdate handleStateUpdate = this.m_OnState; - HandleStateUpdate handleStateUpdate2; - do - { - handleStateUpdate2 = handleStateUpdate; - handleStateUpdate = Interlocked.CompareExchange(ref this.m_OnState, (HandleStateUpdate)Delegate.Combine(handleStateUpdate2, value), handleStateUpdate); - } - while (handleStateUpdate != handleStateUpdate2); - } - remove - { - HandleStateUpdate handleStateUpdate = this.m_OnState; - HandleStateUpdate handleStateUpdate2; - do - { - handleStateUpdate2 = handleStateUpdate; - handleStateUpdate = Interlocked.CompareExchange(ref this.m_OnState, (HandleStateUpdate)Delegate.Remove(handleStateUpdate2, value), handleStateUpdate); - } - while (handleStateUpdate != handleStateUpdate2); - } - } - - public event HandleOnPreview OnPreview - { - add - { - HandleOnPreview handleOnPreview = this.m_OnPreview; - HandleOnPreview handleOnPreview2; - do - { - handleOnPreview2 = handleOnPreview; - handleOnPreview = Interlocked.CompareExchange(ref this.m_OnPreview, (HandleOnPreview)Delegate.Combine(handleOnPreview2, value), handleOnPreview); - } - while (handleOnPreview != handleOnPreview2); - } - remove - { - HandleOnPreview handleOnPreview = this.m_OnPreview; - HandleOnPreview handleOnPreview2; - do - { - handleOnPreview2 = handleOnPreview; - handleOnPreview = Interlocked.CompareExchange(ref this.m_OnPreview, (HandleOnPreview)Delegate.Remove(handleOnPreview2, value), handleOnPreview); - } - while (handleOnPreview != handleOnPreview2); - } - } + public event HandleOnPreview OnPreview; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/CharacterBuilderCanvas.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/CharacterBuilderCanvas.cs index ddd993c..8acb2c5 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/CharacterBuilderCanvas.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/CharacterBuilderCanvas.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -26,35 +24,7 @@ public class CharacterBuilderCanvas : UIMoveable [Header("| ========= Tracking ========= |")] private bool initComplete; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleCharacterInit m_OnNewCharacter; - - public event HandleCharacterInit OnNewCharacter - { - add - { - HandleCharacterInit handleCharacterInit = this.m_OnNewCharacter; - HandleCharacterInit handleCharacterInit2; - do - { - handleCharacterInit2 = handleCharacterInit; - handleCharacterInit = Interlocked.CompareExchange(ref this.m_OnNewCharacter, (HandleCharacterInit)Delegate.Combine(handleCharacterInit2, value), handleCharacterInit); - } - while (handleCharacterInit != handleCharacterInit2); - } - remove - { - HandleCharacterInit handleCharacterInit = this.m_OnNewCharacter; - HandleCharacterInit handleCharacterInit2; - do - { - handleCharacterInit2 = handleCharacterInit; - handleCharacterInit = Interlocked.CompareExchange(ref this.m_OnNewCharacter, (HandleCharacterInit)Delegate.Remove(handleCharacterInit2, value), handleCharacterInit); - } - while (handleCharacterInit != handleCharacterInit2); - } - } + public event HandleCharacterInit OnNewCharacter; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/CharacterParserJob.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/CharacterParserJob.cs index 7b1145e..355b380 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/CharacterParserJob.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/CharacterParserJob.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; public class CharacterParserJob : ThreadedJob @@ -13,35 +11,7 @@ public class CharacterParserJob : ThreadedJob public BloxelCharacter character; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParseComplete m_OnComplete; - - public event HandleParseComplete OnComplete - { - add - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Combine(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - remove - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Remove(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - } + public event HandleParseComplete OnComplete; protected override void ThreadFunction() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/CurrentUser.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/CurrentUser.cs index 9774649..2ef3ab4 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/CurrentUser.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/CurrentUser.cs @@ -1,8 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Text; using System.Threading; using BestHTTP; @@ -30,14 +28,6 @@ public class CurrentUser : MonoBehaviour public static bool syncWithGuest; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleStatus m_OnUpdate; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleLoginSuccess m_OnLoginSuccess; - public UserAccount account { get @@ -70,57 +60,9 @@ public class CurrentUser : MonoBehaviour } } - public event HandleStatus OnUpdate - { - add - { - HandleStatus handleStatus = this.m_OnUpdate; - HandleStatus handleStatus2; - do - { - handleStatus2 = handleStatus; - handleStatus = Interlocked.CompareExchange(ref this.m_OnUpdate, (HandleStatus)Delegate.Combine(handleStatus2, value), handleStatus); - } - while (handleStatus != handleStatus2); - } - remove - { - HandleStatus handleStatus = this.m_OnUpdate; - HandleStatus handleStatus2; - do - { - handleStatus2 = handleStatus; - handleStatus = Interlocked.CompareExchange(ref this.m_OnUpdate, (HandleStatus)Delegate.Remove(handleStatus2, value), handleStatus); - } - while (handleStatus != handleStatus2); - } - } + public event HandleStatus OnUpdate; - public event HandleLoginSuccess OnLoginSuccess - { - add - { - HandleLoginSuccess handleLoginSuccess = this.m_OnLoginSuccess; - HandleLoginSuccess handleLoginSuccess2; - do - { - handleLoginSuccess2 = handleLoginSuccess; - handleLoginSuccess = Interlocked.CompareExchange(ref this.m_OnLoginSuccess, (HandleLoginSuccess)Delegate.Combine(handleLoginSuccess2, value), handleLoginSuccess); - } - while (handleLoginSuccess != handleLoginSuccess2); - } - remove - { - HandleLoginSuccess handleLoginSuccess = this.m_OnLoginSuccess; - HandleLoginSuccess handleLoginSuccess2; - do - { - handleLoginSuccess2 = handleLoginSuccess; - handleLoginSuccess = Interlocked.CompareExchange(ref this.m_OnLoginSuccess, (HandleLoginSuccess)Delegate.Remove(handleLoginSuccess2, value), handleLoginSuccess); - } - while (handleLoginSuccess != handleLoginSuccess2); - } - } + public event HandleLoginSuccess OnLoginSuccess; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/DiscoCapture/CaptureController.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/DiscoCapture/CaptureController.cs index 7522272..4a43418 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/DiscoCapture/CaptureController.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/DiscoCapture/CaptureController.cs @@ -1,8 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using OpenCVForUnity; using UnityEngine; @@ -66,34 +64,6 @@ namespace DiscoCapture private Texture2D _captureResultTex; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnEnable m_onEnable; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnDisable m_onDisable; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleBlockClassified m_OnBlockClassified; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleProcessDelegate m_onProcessPass; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleProcessDelegate m_onProcessComplete; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleProcessDelegate m_onClassificationStarted; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleProcessDelegate m_onClassificationComplete; - private HandleProcessDelegate[] _captureEvents; public int cctNotchOffset; @@ -116,187 +86,19 @@ namespace DiscoCapture public int numBlocksToClassifyPerFrame = 4; - public event HandleOnEnable onEnable - { - add - { - HandleOnEnable handleOnEnable = this.m_onEnable; - HandleOnEnable handleOnEnable2; - do - { - handleOnEnable2 = handleOnEnable; - handleOnEnable = Interlocked.CompareExchange(ref this.m_onEnable, (HandleOnEnable)Delegate.Combine(handleOnEnable2, value), handleOnEnable); - } - while (handleOnEnable != handleOnEnable2); - } - remove - { - HandleOnEnable handleOnEnable = this.m_onEnable; - HandleOnEnable handleOnEnable2; - do - { - handleOnEnable2 = handleOnEnable; - handleOnEnable = Interlocked.CompareExchange(ref this.m_onEnable, (HandleOnEnable)Delegate.Remove(handleOnEnable2, value), handleOnEnable); - } - while (handleOnEnable != handleOnEnable2); - } - } + public event HandleOnEnable onEnable; - public event HandleOnDisable onDisable - { - add - { - HandleOnDisable handleOnDisable = this.m_onDisable; - HandleOnDisable handleOnDisable2; - do - { - handleOnDisable2 = handleOnDisable; - handleOnDisable = Interlocked.CompareExchange(ref this.m_onDisable, (HandleOnDisable)Delegate.Combine(handleOnDisable2, value), handleOnDisable); - } - while (handleOnDisable != handleOnDisable2); - } - remove - { - HandleOnDisable handleOnDisable = this.m_onDisable; - HandleOnDisable handleOnDisable2; - do - { - handleOnDisable2 = handleOnDisable; - handleOnDisable = Interlocked.CompareExchange(ref this.m_onDisable, (HandleOnDisable)Delegate.Remove(handleOnDisable2, value), handleOnDisable); - } - while (handleOnDisable != handleOnDisable2); - } - } + public event HandleOnDisable onDisable; - public event HandleBlockClassified OnBlockClassified - { - add - { - HandleBlockClassified handleBlockClassified = this.m_OnBlockClassified; - HandleBlockClassified handleBlockClassified2; - do - { - handleBlockClassified2 = handleBlockClassified; - handleBlockClassified = Interlocked.CompareExchange(ref this.m_OnBlockClassified, (HandleBlockClassified)Delegate.Combine(handleBlockClassified2, value), handleBlockClassified); - } - while (handleBlockClassified != handleBlockClassified2); - } - remove - { - HandleBlockClassified handleBlockClassified = this.m_OnBlockClassified; - HandleBlockClassified handleBlockClassified2; - do - { - handleBlockClassified2 = handleBlockClassified; - handleBlockClassified = Interlocked.CompareExchange(ref this.m_OnBlockClassified, (HandleBlockClassified)Delegate.Remove(handleBlockClassified2, value), handleBlockClassified); - } - while (handleBlockClassified != handleBlockClassified2); - } - } + public event HandleBlockClassified OnBlockClassified; - private event HandleProcessDelegate onProcessPass - { - add - { - HandleProcessDelegate handleProcessDelegate = this.m_onProcessPass; - HandleProcessDelegate handleProcessDelegate2; - do - { - handleProcessDelegate2 = handleProcessDelegate; - handleProcessDelegate = Interlocked.CompareExchange(ref this.m_onProcessPass, (HandleProcessDelegate)Delegate.Combine(handleProcessDelegate2, value), handleProcessDelegate); - } - while (handleProcessDelegate != handleProcessDelegate2); - } - remove - { - HandleProcessDelegate handleProcessDelegate = this.m_onProcessPass; - HandleProcessDelegate handleProcessDelegate2; - do - { - handleProcessDelegate2 = handleProcessDelegate; - handleProcessDelegate = Interlocked.CompareExchange(ref this.m_onProcessPass, (HandleProcessDelegate)Delegate.Remove(handleProcessDelegate2, value), handleProcessDelegate); - } - while (handleProcessDelegate != handleProcessDelegate2); - } - } + private event HandleProcessDelegate onProcessPass; - private event HandleProcessDelegate onProcessComplete - { - add - { - HandleProcessDelegate handleProcessDelegate = this.m_onProcessComplete; - HandleProcessDelegate handleProcessDelegate2; - do - { - handleProcessDelegate2 = handleProcessDelegate; - handleProcessDelegate = Interlocked.CompareExchange(ref this.m_onProcessComplete, (HandleProcessDelegate)Delegate.Combine(handleProcessDelegate2, value), handleProcessDelegate); - } - while (handleProcessDelegate != handleProcessDelegate2); - } - remove - { - HandleProcessDelegate handleProcessDelegate = this.m_onProcessComplete; - HandleProcessDelegate handleProcessDelegate2; - do - { - handleProcessDelegate2 = handleProcessDelegate; - handleProcessDelegate = Interlocked.CompareExchange(ref this.m_onProcessComplete, (HandleProcessDelegate)Delegate.Remove(handleProcessDelegate2, value), handleProcessDelegate); - } - while (handleProcessDelegate != handleProcessDelegate2); - } - } + private event HandleProcessDelegate onProcessComplete; - private event HandleProcessDelegate onClassificationStarted - { - add - { - HandleProcessDelegate handleProcessDelegate = this.m_onClassificationStarted; - HandleProcessDelegate handleProcessDelegate2; - do - { - handleProcessDelegate2 = handleProcessDelegate; - handleProcessDelegate = Interlocked.CompareExchange(ref this.m_onClassificationStarted, (HandleProcessDelegate)Delegate.Combine(handleProcessDelegate2, value), handleProcessDelegate); - } - while (handleProcessDelegate != handleProcessDelegate2); - } - remove - { - HandleProcessDelegate handleProcessDelegate = this.m_onClassificationStarted; - HandleProcessDelegate handleProcessDelegate2; - do - { - handleProcessDelegate2 = handleProcessDelegate; - handleProcessDelegate = Interlocked.CompareExchange(ref this.m_onClassificationStarted, (HandleProcessDelegate)Delegate.Remove(handleProcessDelegate2, value), handleProcessDelegate); - } - while (handleProcessDelegate != handleProcessDelegate2); - } - } + private event HandleProcessDelegate onClassificationStarted; - private event HandleProcessDelegate onClassificationComplete - { - add - { - HandleProcessDelegate handleProcessDelegate = this.m_onClassificationComplete; - HandleProcessDelegate handleProcessDelegate2; - do - { - handleProcessDelegate2 = handleProcessDelegate; - handleProcessDelegate = Interlocked.CompareExchange(ref this.m_onClassificationComplete, (HandleProcessDelegate)Delegate.Combine(handleProcessDelegate2, value), handleProcessDelegate); - } - while (handleProcessDelegate != handleProcessDelegate2); - } - remove - { - HandleProcessDelegate handleProcessDelegate = this.m_onClassificationComplete; - HandleProcessDelegate handleProcessDelegate2; - do - { - handleProcessDelegate2 = handleProcessDelegate; - handleProcessDelegate = Interlocked.CompareExchange(ref this.m_onClassificationComplete, (HandleProcessDelegate)Delegate.Remove(handleProcessDelegate2, value), handleProcessDelegate); - } - while (handleProcessDelegate != handleProcessDelegate2); - } - } + private event HandleProcessDelegate onClassificationComplete; public void Awake() { @@ -590,18 +392,18 @@ namespace DiscoCapture public void AddListener(CaptureEvent type, HandleProcessDelegate action) { - HandleProcessDelegate[] captureEvents; - int num; - (captureEvents = _captureEvents)[num = (int)type] = (HandleProcessDelegate)Delegate.Combine(captureEvents[num], action); + HandleProcessDelegate[] captureEvents = _captureEvents; + int num = (int)type; + captureEvents[num] = (HandleProcessDelegate)Delegate.Combine(captureEvents[num], action); } public void RemoveListener(CaptureEvent type, HandleProcessDelegate action) { if (_captureEvents[(int)type] != null) { - HandleProcessDelegate[] captureEvents; - int num; - (captureEvents = _captureEvents)[num = (int)type] = (HandleProcessDelegate)Delegate.Remove(captureEvents[num], action); + HandleProcessDelegate[] captureEvents = _captureEvents; + int num = (int)type; + captureEvents[num] = (HandleProcessDelegate)Delegate.Combine(captureEvents[num], action); } } diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/DiscoCapture/CaptureImageLoader.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/DiscoCapture/CaptureImageLoader.cs index 2a430ef..08fb339 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/DiscoCapture/CaptureImageLoader.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/DiscoCapture/CaptureImageLoader.cs @@ -1,8 +1,6 @@ using System; using System.Collections; -using System.Diagnostics; using System.IO; -using System.Runtime.CompilerServices; using System.Threading; using OpenCVForUnity; using UnityEngine; @@ -29,35 +27,7 @@ namespace DiscoCapture private int _saveIndex; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDownloadComplete m_OnDownloadComplete; - - public event HandleDownloadComplete OnDownloadComplete - { - add - { - HandleDownloadComplete handleDownloadComplete = this.m_OnDownloadComplete; - HandleDownloadComplete handleDownloadComplete2; - do - { - handleDownloadComplete2 = handleDownloadComplete; - handleDownloadComplete = Interlocked.CompareExchange(ref this.m_OnDownloadComplete, (HandleDownloadComplete)Delegate.Combine(handleDownloadComplete2, value), handleDownloadComplete); - } - while (handleDownloadComplete != handleDownloadComplete2); - } - remove - { - HandleDownloadComplete handleDownloadComplete = this.m_OnDownloadComplete; - HandleDownloadComplete handleDownloadComplete2; - do - { - handleDownloadComplete2 = handleDownloadComplete; - handleDownloadComplete = Interlocked.CompareExchange(ref this.m_OnDownloadComplete, (HandleDownloadComplete)Delegate.Remove(handleDownloadComplete2, value), handleDownloadComplete); - } - while (handleDownloadComplete != handleDownloadComplete2); - } - } + public event HandleDownloadComplete OnDownloadComplete; private void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/DiscoCapture/DeviceCameraController.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/DiscoCapture/DeviceCameraController.cs index 9469d04..5b2a783 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/DiscoCapture/DeviceCameraController.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/DiscoCapture/DeviceCameraController.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using OpenCVForUnity; using UnityEngine; @@ -27,18 +25,6 @@ namespace DiscoCapture public WebCamDevice webCamDevice; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleNatCamPreviewUpdate m_OnPreviewUpdate; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleCameraPropertiesCached m_OnCachedCameraProperties; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleExposureBiasChanged m_OnExposureBiasChanged; - private bool _hasCachedProperties; public static bool CameraStarted; @@ -51,83 +37,11 @@ namespace DiscoCapture private static int _framesToWait = 1; - public event HandleNatCamPreviewUpdate OnPreviewUpdate - { - add - { - HandleNatCamPreviewUpdate handleNatCamPreviewUpdate = this.m_OnPreviewUpdate; - HandleNatCamPreviewUpdate handleNatCamPreviewUpdate2; - do - { - handleNatCamPreviewUpdate2 = handleNatCamPreviewUpdate; - handleNatCamPreviewUpdate = Interlocked.CompareExchange(ref this.m_OnPreviewUpdate, (HandleNatCamPreviewUpdate)Delegate.Combine(handleNatCamPreviewUpdate2, value), handleNatCamPreviewUpdate); - } - while (handleNatCamPreviewUpdate != handleNatCamPreviewUpdate2); - } - remove - { - HandleNatCamPreviewUpdate handleNatCamPreviewUpdate = this.m_OnPreviewUpdate; - HandleNatCamPreviewUpdate handleNatCamPreviewUpdate2; - do - { - handleNatCamPreviewUpdate2 = handleNatCamPreviewUpdate; - handleNatCamPreviewUpdate = Interlocked.CompareExchange(ref this.m_OnPreviewUpdate, (HandleNatCamPreviewUpdate)Delegate.Remove(handleNatCamPreviewUpdate2, value), handleNatCamPreviewUpdate); - } - while (handleNatCamPreviewUpdate != handleNatCamPreviewUpdate2); - } - } + public event HandleNatCamPreviewUpdate OnPreviewUpdate; - public event HandleCameraPropertiesCached OnCachedCameraProperties - { - add - { - HandleCameraPropertiesCached handleCameraPropertiesCached = this.m_OnCachedCameraProperties; - HandleCameraPropertiesCached handleCameraPropertiesCached2; - do - { - handleCameraPropertiesCached2 = handleCameraPropertiesCached; - handleCameraPropertiesCached = Interlocked.CompareExchange(ref this.m_OnCachedCameraProperties, (HandleCameraPropertiesCached)Delegate.Combine(handleCameraPropertiesCached2, value), handleCameraPropertiesCached); - } - while (handleCameraPropertiesCached != handleCameraPropertiesCached2); - } - remove - { - HandleCameraPropertiesCached handleCameraPropertiesCached = this.m_OnCachedCameraProperties; - HandleCameraPropertiesCached handleCameraPropertiesCached2; - do - { - handleCameraPropertiesCached2 = handleCameraPropertiesCached; - handleCameraPropertiesCached = Interlocked.CompareExchange(ref this.m_OnCachedCameraProperties, (HandleCameraPropertiesCached)Delegate.Remove(handleCameraPropertiesCached2, value), handleCameraPropertiesCached); - } - while (handleCameraPropertiesCached != handleCameraPropertiesCached2); - } - } + public event HandleCameraPropertiesCached OnCachedCameraProperties; - public event HandleExposureBiasChanged OnExposureBiasChanged - { - add - { - HandleExposureBiasChanged handleExposureBiasChanged = this.m_OnExposureBiasChanged; - HandleExposureBiasChanged handleExposureBiasChanged2; - do - { - handleExposureBiasChanged2 = handleExposureBiasChanged; - handleExposureBiasChanged = Interlocked.CompareExchange(ref this.m_OnExposureBiasChanged, (HandleExposureBiasChanged)Delegate.Combine(handleExposureBiasChanged2, value), handleExposureBiasChanged); - } - while (handleExposureBiasChanged != handleExposureBiasChanged2); - } - remove - { - HandleExposureBiasChanged handleExposureBiasChanged = this.m_OnExposureBiasChanged; - HandleExposureBiasChanged handleExposureBiasChanged2; - do - { - handleExposureBiasChanged2 = handleExposureBiasChanged; - handleExposureBiasChanged = Interlocked.CompareExchange(ref this.m_OnExposureBiasChanged, (HandleExposureBiasChanged)Delegate.Remove(handleExposureBiasChanged2, value), handleExposureBiasChanged); - } - while (handleExposureBiasChanged != handleExposureBiasChanged2); - } - } + public event HandleExposureBiasChanged OnExposureBiasChanged; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/EnemyLaser.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/EnemyLaser.cs index 31c7c0c..4df5774 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/EnemyLaser.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/EnemyLaser.cs @@ -226,7 +226,7 @@ public sealed class EnemyLaser : PoolableComponent { return; } - switch (layerMask) + switch ((long)layerMask) { case 10L: bloxelTile = attachedRigidbody.gameObject.GetComponent(); diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/FilterableSquares.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/FilterableSquares.cs index 0d0d863..23576e5 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/FilterableSquares.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/FilterableSquares.cs @@ -1,8 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -40,65 +38,9 @@ public class FilterableSquares : MonoBehaviour public UnityEngine.Object simpleSquarePrefab; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleSquareUpdate m_OnSquare; + public event HandleSquareUpdate OnSquare; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandlePopulateComplete m_OnPopulateComplete; - - public event HandleSquareUpdate OnSquare - { - add - { - HandleSquareUpdate handleSquareUpdate = this.m_OnSquare; - HandleSquareUpdate handleSquareUpdate2; - do - { - handleSquareUpdate2 = handleSquareUpdate; - handleSquareUpdate = Interlocked.CompareExchange(ref this.m_OnSquare, (HandleSquareUpdate)Delegate.Combine(handleSquareUpdate2, value), handleSquareUpdate); - } - while (handleSquareUpdate != handleSquareUpdate2); - } - remove - { - HandleSquareUpdate handleSquareUpdate = this.m_OnSquare; - HandleSquareUpdate handleSquareUpdate2; - do - { - handleSquareUpdate2 = handleSquareUpdate; - handleSquareUpdate = Interlocked.CompareExchange(ref this.m_OnSquare, (HandleSquareUpdate)Delegate.Remove(handleSquareUpdate2, value), handleSquareUpdate); - } - while (handleSquareUpdate != handleSquareUpdate2); - } - } - - public event HandlePopulateComplete OnPopulateComplete - { - add - { - HandlePopulateComplete handlePopulateComplete = this.m_OnPopulateComplete; - HandlePopulateComplete handlePopulateComplete2; - do - { - handlePopulateComplete2 = handlePopulateComplete; - handlePopulateComplete = Interlocked.CompareExchange(ref this.m_OnPopulateComplete, (HandlePopulateComplete)Delegate.Combine(handlePopulateComplete2, value), handlePopulateComplete); - } - while (handlePopulateComplete != handlePopulateComplete2); - } - remove - { - HandlePopulateComplete handlePopulateComplete = this.m_OnPopulateComplete; - HandlePopulateComplete handlePopulateComplete2; - do - { - handlePopulateComplete2 = handlePopulateComplete; - handlePopulateComplete = Interlocked.CompareExchange(ref this.m_OnPopulateComplete, (HandlePopulateComplete)Delegate.Remove(handlePopulateComplete2, value), handlePopulateComplete); - } - while (handlePopulateComplete != handlePopulateComplete2); - } - } + public event HandlePopulateComplete OnPopulateComplete; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/GameBuilderCanvas.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/GameBuilderCanvas.cs index f0ddf49..e8aac2c 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/GameBuilderCanvas.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/GameBuilderCanvas.cs @@ -1,9 +1,7 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using TMPro; @@ -103,32 +101,8 @@ public class GameBuilderCanvas : UIMoveable public bool autoCloseLibrary = true; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private GameStart m_onGameStart; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleModeChange m_OnGameBuilderModeChange; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleProjectChange m_OnGameBuilderProjectChange; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleLevelChange m_OnGameBuilderLevelChange; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleNewGame m_OnNewGameInit; - public static ConfigIndicator[,] ConfigIncicators = new ConfigIndicator[13, 13]; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleConfigPressed m_OnConfigSelect; - public GameBuilderMode currentMode { get @@ -181,161 +155,17 @@ public class GameBuilderCanvas : UIMoveable } } - public event GameStart onGameStart - { - add - { - GameStart gameStart = this.m_onGameStart; - GameStart gameStart2; - do - { - gameStart2 = gameStart; - gameStart = Interlocked.CompareExchange(ref this.m_onGameStart, (GameStart)Delegate.Combine(gameStart2, value), gameStart); - } - while (gameStart != gameStart2); - } - remove - { - GameStart gameStart = this.m_onGameStart; - GameStart gameStart2; - do - { - gameStart2 = gameStart; - gameStart = Interlocked.CompareExchange(ref this.m_onGameStart, (GameStart)Delegate.Remove(gameStart2, value), gameStart); - } - while (gameStart != gameStart2); - } - } + public event GameStart onGameStart; - public event HandleModeChange OnGameBuilderModeChange - { - add - { - HandleModeChange handleModeChange = this.m_OnGameBuilderModeChange; - HandleModeChange handleModeChange2; - do - { - handleModeChange2 = handleModeChange; - handleModeChange = Interlocked.CompareExchange(ref this.m_OnGameBuilderModeChange, (HandleModeChange)Delegate.Combine(handleModeChange2, value), handleModeChange); - } - while (handleModeChange != handleModeChange2); - } - remove - { - HandleModeChange handleModeChange = this.m_OnGameBuilderModeChange; - HandleModeChange handleModeChange2; - do - { - handleModeChange2 = handleModeChange; - handleModeChange = Interlocked.CompareExchange(ref this.m_OnGameBuilderModeChange, (HandleModeChange)Delegate.Remove(handleModeChange2, value), handleModeChange); - } - while (handleModeChange != handleModeChange2); - } - } + public event HandleModeChange OnGameBuilderModeChange; - public event HandleProjectChange OnGameBuilderProjectChange - { - add - { - HandleProjectChange handleProjectChange = this.m_OnGameBuilderProjectChange; - HandleProjectChange handleProjectChange2; - do - { - handleProjectChange2 = handleProjectChange; - handleProjectChange = Interlocked.CompareExchange(ref this.m_OnGameBuilderProjectChange, (HandleProjectChange)Delegate.Combine(handleProjectChange2, value), handleProjectChange); - } - while (handleProjectChange != handleProjectChange2); - } - remove - { - HandleProjectChange handleProjectChange = this.m_OnGameBuilderProjectChange; - HandleProjectChange handleProjectChange2; - do - { - handleProjectChange2 = handleProjectChange; - handleProjectChange = Interlocked.CompareExchange(ref this.m_OnGameBuilderProjectChange, (HandleProjectChange)Delegate.Remove(handleProjectChange2, value), handleProjectChange); - } - while (handleProjectChange != handleProjectChange2); - } - } + public event HandleProjectChange OnGameBuilderProjectChange; - public event HandleLevelChange OnGameBuilderLevelChange - { - add - { - HandleLevelChange handleLevelChange = this.m_OnGameBuilderLevelChange; - HandleLevelChange handleLevelChange2; - do - { - handleLevelChange2 = handleLevelChange; - handleLevelChange = Interlocked.CompareExchange(ref this.m_OnGameBuilderLevelChange, (HandleLevelChange)Delegate.Combine(handleLevelChange2, value), handleLevelChange); - } - while (handleLevelChange != handleLevelChange2); - } - remove - { - HandleLevelChange handleLevelChange = this.m_OnGameBuilderLevelChange; - HandleLevelChange handleLevelChange2; - do - { - handleLevelChange2 = handleLevelChange; - handleLevelChange = Interlocked.CompareExchange(ref this.m_OnGameBuilderLevelChange, (HandleLevelChange)Delegate.Remove(handleLevelChange2, value), handleLevelChange); - } - while (handleLevelChange != handleLevelChange2); - } - } + public event HandleLevelChange OnGameBuilderLevelChange; - public event HandleNewGame OnNewGameInit - { - add - { - HandleNewGame handleNewGame = this.m_OnNewGameInit; - HandleNewGame handleNewGame2; - do - { - handleNewGame2 = handleNewGame; - handleNewGame = Interlocked.CompareExchange(ref this.m_OnNewGameInit, (HandleNewGame)Delegate.Combine(handleNewGame2, value), handleNewGame); - } - while (handleNewGame != handleNewGame2); - } - remove - { - HandleNewGame handleNewGame = this.m_OnNewGameInit; - HandleNewGame handleNewGame2; - do - { - handleNewGame2 = handleNewGame; - handleNewGame = Interlocked.CompareExchange(ref this.m_OnNewGameInit, (HandleNewGame)Delegate.Remove(handleNewGame2, value), handleNewGame); - } - while (handleNewGame != handleNewGame2); - } - } + public event HandleNewGame OnNewGameInit; - public event HandleConfigPressed OnConfigSelect - { - add - { - HandleConfigPressed handleConfigPressed = this.m_OnConfigSelect; - HandleConfigPressed handleConfigPressed2; - do - { - handleConfigPressed2 = handleConfigPressed; - handleConfigPressed = Interlocked.CompareExchange(ref this.m_OnConfigSelect, (HandleConfigPressed)Delegate.Combine(handleConfigPressed2, value), handleConfigPressed); - } - while (handleConfigPressed != handleConfigPressed2); - } - remove - { - HandleConfigPressed handleConfigPressed = this.m_OnConfigSelect; - HandleConfigPressed handleConfigPressed2; - do - { - handleConfigPressed2 = handleConfigPressed; - handleConfigPressed = Interlocked.CompareExchange(ref this.m_OnConfigSelect, (HandleConfigPressed)Delegate.Remove(handleConfigPressed2, value), handleConfigPressed); - } - while (handleConfigPressed != handleConfigPressed2); - } - } + public event HandleConfigPressed OnConfigSelect; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/GameParserJob.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/GameParserJob.cs index 430355a..8a708e1 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/GameParserJob.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/GameParserJob.cs @@ -1,7 +1,5 @@ using System; -using System.Diagnostics; using System.IO; -using System.Runtime.CompilerServices; using System.Threading; using Newtonsoft.Json; @@ -15,35 +13,7 @@ public class GameParserJob : ThreadedJob public BloxelGame game; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParseComplete m_OnComplete; - - public event HandleParseComplete OnComplete - { - add - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Combine(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - remove - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Remove(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - } + public event HandleParseComplete OnComplete; protected override void ThreadFunction() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/GameplayController.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/GameplayController.cs index f077b8c..505e390 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/GameplayController.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/GameplayController.cs @@ -1,8 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -67,10 +65,6 @@ public class GameplayController : MonoBehaviour public GameObject checkPointPrefab; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private GameStart m_onGameStart; - public static GameplayController instance; public Mode currentMode; @@ -128,10 +122,6 @@ public class GameplayController : MonoBehaviour public static Dictionary powerupSprites; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleReset m_OnReset; - public Material waterMat { get; private set; } public bool gameplayActive @@ -146,57 +136,9 @@ public class GameplayController : MonoBehaviour } } - public event GameStart onGameStart - { - add - { - GameStart gameStart = this.m_onGameStart; - GameStart gameStart2; - do - { - gameStart2 = gameStart; - gameStart = Interlocked.CompareExchange(ref this.m_onGameStart, (GameStart)Delegate.Combine(gameStart2, value), gameStart); - } - while (gameStart != gameStart2); - } - remove - { - GameStart gameStart = this.m_onGameStart; - GameStart gameStart2; - do - { - gameStart2 = gameStart; - gameStart = Interlocked.CompareExchange(ref this.m_onGameStart, (GameStart)Delegate.Remove(gameStart2, value), gameStart); - } - while (gameStart != gameStart2); - } - } + public event GameStart onGameStart; - public event HandleReset OnReset - { - add - { - HandleReset handleReset = this.m_OnReset; - HandleReset handleReset2; - do - { - handleReset2 = handleReset; - handleReset = Interlocked.CompareExchange(ref this.m_OnReset, (HandleReset)Delegate.Combine(handleReset2, value), handleReset); - } - while (handleReset != handleReset2); - } - remove - { - HandleReset handleReset = this.m_OnReset; - HandleReset handleReset2; - do - { - handleReset2 = handleReset; - handleReset = Interlocked.CompareExchange(ref this.m_OnReset, (HandleReset)Delegate.Remove(handleReset2, value), handleReset); - } - while (handleReset != handleReset2); - } - } + public event HandleReset OnReset; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/GemUnlockable.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/GemUnlockable.cs index f0ca2a3..c0b09fc 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/GemUnlockable.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/GemUnlockable.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -161,35 +159,7 @@ public abstract class GemUnlockable public UIBuyable uiBuyable; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleUnlock m_OnUnlock; - - public event HandleUnlock OnUnlock - { - add - { - HandleUnlock handleUnlock = this.m_OnUnlock; - HandleUnlock handleUnlock2; - do - { - handleUnlock2 = handleUnlock; - handleUnlock = Interlocked.CompareExchange(ref this.m_OnUnlock, (HandleUnlock)Delegate.Combine(handleUnlock2, value), handleUnlock); - } - while (handleUnlock != handleUnlock2); - } - remove - { - HandleUnlock handleUnlock = this.m_OnUnlock; - HandleUnlock handleUnlock2; - do - { - handleUnlock2 = handleUnlock; - handleUnlock = Interlocked.CompareExchange(ref this.m_OnUnlock, (HandleUnlock)Delegate.Remove(handleUnlock2, value), handleUnlock); - } - while (handleUnlock != handleUnlock2); - } - } + public event HandleUnlock OnUnlock; public abstract void Unlock(); diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/HomeMenu.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/HomeMenu.cs index fe246c3..c4b24ba 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/HomeMenu.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/HomeMenu.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using TMPro; @@ -62,35 +60,7 @@ public class HomeMenu : MonoBehaviour [Header("State Tracking")] public bool isVisible; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleVisibility m_OnChange; - - public event HandleVisibility OnChange - { - add - { - HandleVisibility handleVisibility = this.m_OnChange; - HandleVisibility handleVisibility2; - do - { - handleVisibility2 = handleVisibility; - handleVisibility = Interlocked.CompareExchange(ref this.m_OnChange, (HandleVisibility)Delegate.Combine(handleVisibility2, value), handleVisibility); - } - while (handleVisibility != handleVisibility2); - } - remove - { - HandleVisibility handleVisibility = this.m_OnChange; - HandleVisibility handleVisibility2; - do - { - handleVisibility2 = handleVisibility; - handleVisibility = Interlocked.CompareExchange(ref this.m_OnChange, (HandleVisibility)Delegate.Remove(handleVisibility2, value), handleVisibility); - } - while (handleVisibility != handleVisibility2); - } - } + public event HandleVisibility OnChange; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/InternetReachabilityVerifier.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/InternetReachabilityVerifier.cs index e64af5a..26ff88d 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/InternetReachabilityVerifier.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/InternetReachabilityVerifier.cs @@ -1,8 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -46,10 +44,6 @@ public class InternetReachabilityVerifier : MonoBehaviour public bool dontDestroyOnLoad = true; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private StatusChangedDelegate m_statusChangedDelegate; - private float noInternetStartTime; private Status _status; @@ -123,31 +117,7 @@ public class InternetReachabilityVerifier : MonoBehaviour } } - public event StatusChangedDelegate statusChangedDelegate - { - add - { - StatusChangedDelegate statusChangedDelegate = this.m_statusChangedDelegate; - StatusChangedDelegate statusChangedDelegate2; - do - { - statusChangedDelegate2 = statusChangedDelegate; - statusChangedDelegate = Interlocked.CompareExchange(ref this.m_statusChangedDelegate, (StatusChangedDelegate)Delegate.Combine(statusChangedDelegate2, value), statusChangedDelegate); - } - while (statusChangedDelegate != statusChangedDelegate2); - } - remove - { - StatusChangedDelegate statusChangedDelegate = this.m_statusChangedDelegate; - StatusChangedDelegate statusChangedDelegate2; - do - { - statusChangedDelegate2 = statusChangedDelegate; - statusChangedDelegate = Interlocked.CompareExchange(ref this.m_statusChangedDelegate, (StatusChangedDelegate)Delegate.Remove(statusChangedDelegate2, value), statusChangedDelegate); - } - while (statusChangedDelegate != statusChangedDelegate2); - } - } + public event StatusChangedDelegate statusChangedDelegate; public float getTimeWithoutInternetConnection() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/LongPressEventTrigger.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/LongPressEventTrigger.cs index ce29092..6d5b828 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/LongPressEventTrigger.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/LongPressEventTrigger.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; using UnityEngine.EventSystems; @@ -18,35 +16,7 @@ public class LongPressEventTrigger : UIInteractable private float timePressStarted; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleLongPress m_OnLongPress; - - public event HandleLongPress OnLongPress - { - add - { - HandleLongPress handleLongPress = this.m_OnLongPress; - HandleLongPress handleLongPress2; - do - { - handleLongPress2 = handleLongPress; - handleLongPress = Interlocked.CompareExchange(ref this.m_OnLongPress, (HandleLongPress)Delegate.Combine(handleLongPress2, value), handleLongPress); - } - while (handleLongPress != handleLongPress2); - } - remove - { - HandleLongPress handleLongPress = this.m_OnLongPress; - HandleLongPress handleLongPress2; - do - { - handleLongPress2 = handleLongPress; - handleLongPress = Interlocked.CompareExchange(ref this.m_OnLongPress, (HandleLongPress)Delegate.Remove(handleLongPress2, value), handleLongPress); - } - while (handleLongPress != handleLongPress2); - } - } + public event HandleLongPress OnLongPress; private void Update() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/MegaBoardCanvas.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/MegaBoardCanvas.cs index 6b296eb..fc21eb6 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/MegaBoardCanvas.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/MegaBoardCanvas.cs @@ -1,7 +1,5 @@ using System; using System.Collections; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -107,37 +105,9 @@ public class MegaBoardCanvas : UIMoveable public Vector3 dragOffset; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleTileSelect m_OnTileSelect; - private System.Random rand = new System.Random(); - public event HandleTileSelect OnTileSelect - { - add - { - HandleTileSelect handleTileSelect = this.m_OnTileSelect; - HandleTileSelect handleTileSelect2; - do - { - handleTileSelect2 = handleTileSelect; - handleTileSelect = Interlocked.CompareExchange(ref this.m_OnTileSelect, (HandleTileSelect)Delegate.Combine(handleTileSelect2, value), handleTileSelect); - } - while (handleTileSelect != handleTileSelect2); - } - remove - { - HandleTileSelect handleTileSelect = this.m_OnTileSelect; - HandleTileSelect handleTileSelect2; - do - { - handleTileSelect2 = handleTileSelect; - handleTileSelect = Interlocked.CompareExchange(ref this.m_OnTileSelect, (HandleTileSelect)Delegate.Remove(handleTileSelect2, value), handleTileSelect); - } - while (handleTileSelect != handleTileSelect2); - } - } + public event HandleTileSelect OnTileSelect; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/MegaBoardParserJob.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/MegaBoardParserJob.cs index 1d380dc..ea2bcc8 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/MegaBoardParserJob.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/MegaBoardParserJob.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; public class MegaBoardParserJob : ThreadedJob @@ -13,35 +11,7 @@ public class MegaBoardParserJob : ThreadedJob public BloxelMegaBoard megaBoard; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParseComplete m_OnComplete; - - public event HandleParseComplete OnComplete - { - add - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Combine(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - remove - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Remove(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - } + public event HandleParseComplete OnComplete; protected override void ThreadFunction() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/MegaBoardTile.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/MegaBoardTile.cs index c50a49d..51dd32e 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/MegaBoardTile.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/MegaBoardTile.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -59,95 +57,11 @@ public class MegaBoardTile : MonoBehaviour, IPointerDownHandler, IPointerUpHandl private ScrollRect _scrollRect; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleProjectSelect m_OnSelect; + public event HandleProjectSelect OnSelect; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDragStart m_OnDragStart; + public event HandleDragStart OnDragStart; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDragEnd m_OnDragEnd; - - public event HandleProjectSelect OnSelect - { - add - { - HandleProjectSelect handleProjectSelect = this.m_OnSelect; - HandleProjectSelect handleProjectSelect2; - do - { - handleProjectSelect2 = handleProjectSelect; - handleProjectSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleProjectSelect)Delegate.Combine(handleProjectSelect2, value), handleProjectSelect); - } - while (handleProjectSelect != handleProjectSelect2); - } - remove - { - HandleProjectSelect handleProjectSelect = this.m_OnSelect; - HandleProjectSelect handleProjectSelect2; - do - { - handleProjectSelect2 = handleProjectSelect; - handleProjectSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleProjectSelect)Delegate.Remove(handleProjectSelect2, value), handleProjectSelect); - } - while (handleProjectSelect != handleProjectSelect2); - } - } - - public event HandleDragStart OnDragStart - { - add - { - HandleDragStart handleDragStart = this.m_OnDragStart; - HandleDragStart handleDragStart2; - do - { - handleDragStart2 = handleDragStart; - handleDragStart = Interlocked.CompareExchange(ref this.m_OnDragStart, (HandleDragStart)Delegate.Combine(handleDragStart2, value), handleDragStart); - } - while (handleDragStart != handleDragStart2); - } - remove - { - HandleDragStart handleDragStart = this.m_OnDragStart; - HandleDragStart handleDragStart2; - do - { - handleDragStart2 = handleDragStart; - handleDragStart = Interlocked.CompareExchange(ref this.m_OnDragStart, (HandleDragStart)Delegate.Remove(handleDragStart2, value), handleDragStart); - } - while (handleDragStart != handleDragStart2); - } - } - - public event HandleDragEnd OnDragEnd - { - add - { - HandleDragEnd handleDragEnd = this.m_OnDragEnd; - HandleDragEnd handleDragEnd2; - do - { - handleDragEnd2 = handleDragEnd; - handleDragEnd = Interlocked.CompareExchange(ref this.m_OnDragEnd, (HandleDragEnd)Delegate.Combine(handleDragEnd2, value), handleDragEnd); - } - while (handleDragEnd != handleDragEnd2); - } - remove - { - HandleDragEnd handleDragEnd = this.m_OnDragEnd; - HandleDragEnd handleDragEnd2; - do - { - handleDragEnd2 = handleDragEnd; - handleDragEnd = Interlocked.CompareExchange(ref this.m_OnDragEnd, (HandleDragEnd)Delegate.Remove(handleDragEnd2, value), handleDragEnd); - } - while (handleDragEnd != handleDragEnd2); - } - } + public event HandleDragEnd OnDragEnd; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/Newtonsoft/Json/JsonSerializer.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/Newtonsoft/Json/JsonSerializer.cs index 551b665..8262206 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/Newtonsoft/Json/JsonSerializer.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/Newtonsoft/Json/JsonSerializer.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; -using System.Runtime.CompilerServices; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters; using System.Threading; diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/Newtonsoft/Json/JsonValidatingReader.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/Newtonsoft/Json/JsonValidatingReader.cs index aa7594f..b379d3a 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/Newtonsoft/Json/JsonValidatingReader.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/Newtonsoft/Json/JsonValidatingReader.cs @@ -80,10 +80,6 @@ namespace Newtonsoft.Json private SchemaScope _currentScope; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private ValidationEventHandler m_ValidationEventHandler; - int IJsonLineInfo.LineNumber { get @@ -260,31 +256,7 @@ namespace Newtonsoft.Json } } - public event ValidationEventHandler ValidationEventHandler - { - add - { - ValidationEventHandler validationEventHandler = this.m_ValidationEventHandler; - ValidationEventHandler validationEventHandler2; - do - { - validationEventHandler2 = validationEventHandler; - validationEventHandler = Interlocked.CompareExchange(ref this.m_ValidationEventHandler, (ValidationEventHandler)Delegate.Combine(validationEventHandler2, value), validationEventHandler); - } - while (validationEventHandler != validationEventHandler2); - } - remove - { - ValidationEventHandler validationEventHandler = this.m_ValidationEventHandler; - ValidationEventHandler validationEventHandler2; - do - { - validationEventHandler2 = validationEventHandler; - validationEventHandler = Interlocked.CompareExchange(ref this.m_ValidationEventHandler, (ValidationEventHandler)Delegate.Remove(validationEventHandler2, value), validationEventHandler); - } - while (validationEventHandler != validationEventHandler2); - } - } + public event ValidationEventHandler ValidationEventHandler; public JsonValidatingReader(JsonReader reader) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/Newtonsoft/Json/Linq/JObject.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/Newtonsoft/Json/Linq/JObject.cs index 74915f6..eeafd7c 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/Newtonsoft/Json/Linq/JObject.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/Newtonsoft/Json/Linq/JObject.cs @@ -3,11 +3,9 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; -using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; -using System.Runtime.CompilerServices; using System.Threading; using Newtonsoft.Json.Utilities; @@ -50,10 +48,6 @@ namespace Newtonsoft.Json.Linq private JPropertKeyedCollection _properties = new JPropertKeyedCollection(StringComparer.Ordinal); - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private PropertyChangedEventHandler m_PropertyChanged; - ICollection IDictionary.Keys { get @@ -139,31 +133,7 @@ namespace Newtonsoft.Json.Linq } } - public event PropertyChangedEventHandler PropertyChanged - { - add - { - PropertyChangedEventHandler propertyChangedEventHandler = this.m_PropertyChanged; - PropertyChangedEventHandler propertyChangedEventHandler2; - do - { - propertyChangedEventHandler2 = propertyChangedEventHandler; - propertyChangedEventHandler = Interlocked.CompareExchange(ref this.m_PropertyChanged, (PropertyChangedEventHandler)Delegate.Combine(propertyChangedEventHandler2, value), propertyChangedEventHandler); - } - while (propertyChangedEventHandler != propertyChangedEventHandler2); - } - remove - { - PropertyChangedEventHandler propertyChangedEventHandler = this.m_PropertyChanged; - PropertyChangedEventHandler propertyChangedEventHandler2; - do - { - propertyChangedEventHandler2 = propertyChangedEventHandler; - propertyChangedEventHandler = Interlocked.CompareExchange(ref this.m_PropertyChanged, (PropertyChangedEventHandler)Delegate.Remove(propertyChangedEventHandler2, value), propertyChangedEventHandler); - } - while (propertyChangedEventHandler != propertyChangedEventHandler2); - } - } + public event PropertyChangedEventHandler PropertyChanged; public JObject() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/PPInputController.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/PPInputController.cs index 7d04a8c..af537d2 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/PPInputController.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/PPInputController.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -72,38 +70,6 @@ public class PPInputController : MonoBehaviour public static PPInputController instance; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static KeyboardInput m_OnKeyboard; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ButtonInput m_OnButton; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static ButtonInput m_OnButtonReleased; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static AxisInput m_OnAxisL; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static AxisInput m_OnAxisR; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static SwipeInput m_OnSwipeL; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static SwipeInput m_OnSwipeR; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private static SchemeChanged m_OnSchemeChanged; - public GameObject canvasUIBase1024Object; public RectTransform canvasTransfromUIBase1024; @@ -178,213 +144,21 @@ public class PPInputController : MonoBehaviour public static Direction currentInputSwipeR; - public static event KeyboardInput OnKeyboard - { - add - { - KeyboardInput keyboardInput = PPInputController.m_OnKeyboard; - KeyboardInput keyboardInput2; - do - { - keyboardInput2 = keyboardInput; - keyboardInput = Interlocked.CompareExchange(ref PPInputController.m_OnKeyboard, (KeyboardInput)Delegate.Combine(keyboardInput2, value), keyboardInput); - } - while (keyboardInput != keyboardInput2); - } - remove - { - KeyboardInput keyboardInput = PPInputController.m_OnKeyboard; - KeyboardInput keyboardInput2; - do - { - keyboardInput2 = keyboardInput; - keyboardInput = Interlocked.CompareExchange(ref PPInputController.m_OnKeyboard, (KeyboardInput)Delegate.Remove(keyboardInput2, value), keyboardInput); - } - while (keyboardInput != keyboardInput2); - } - } + public static event KeyboardInput OnKeyboard; - public static event ButtonInput OnButton - { - add - { - ButtonInput buttonInput = PPInputController.m_OnButton; - ButtonInput buttonInput2; - do - { - buttonInput2 = buttonInput; - buttonInput = Interlocked.CompareExchange(ref PPInputController.m_OnButton, (ButtonInput)Delegate.Combine(buttonInput2, value), buttonInput); - } - while (buttonInput != buttonInput2); - } - remove - { - ButtonInput buttonInput = PPInputController.m_OnButton; - ButtonInput buttonInput2; - do - { - buttonInput2 = buttonInput; - buttonInput = Interlocked.CompareExchange(ref PPInputController.m_OnButton, (ButtonInput)Delegate.Remove(buttonInput2, value), buttonInput); - } - while (buttonInput != buttonInput2); - } - } + public static event ButtonInput OnButton; - public static event ButtonInput OnButtonReleased - { - add - { - ButtonInput buttonInput = PPInputController.m_OnButtonReleased; - ButtonInput buttonInput2; - do - { - buttonInput2 = buttonInput; - buttonInput = Interlocked.CompareExchange(ref PPInputController.m_OnButtonReleased, (ButtonInput)Delegate.Combine(buttonInput2, value), buttonInput); - } - while (buttonInput != buttonInput2); - } - remove - { - ButtonInput buttonInput = PPInputController.m_OnButtonReleased; - ButtonInput buttonInput2; - do - { - buttonInput2 = buttonInput; - buttonInput = Interlocked.CompareExchange(ref PPInputController.m_OnButtonReleased, (ButtonInput)Delegate.Remove(buttonInput2, value), buttonInput); - } - while (buttonInput != buttonInput2); - } - } + public static event ButtonInput OnButtonReleased; - public static event AxisInput OnAxisL - { - add - { - AxisInput axisInput = PPInputController.m_OnAxisL; - AxisInput axisInput2; - do - { - axisInput2 = axisInput; - axisInput = Interlocked.CompareExchange(ref PPInputController.m_OnAxisL, (AxisInput)Delegate.Combine(axisInput2, value), axisInput); - } - while (axisInput != axisInput2); - } - remove - { - AxisInput axisInput = PPInputController.m_OnAxisL; - AxisInput axisInput2; - do - { - axisInput2 = axisInput; - axisInput = Interlocked.CompareExchange(ref PPInputController.m_OnAxisL, (AxisInput)Delegate.Remove(axisInput2, value), axisInput); - } - while (axisInput != axisInput2); - } - } + public static event AxisInput OnAxisL; - public static event AxisInput OnAxisR - { - add - { - AxisInput axisInput = PPInputController.m_OnAxisR; - AxisInput axisInput2; - do - { - axisInput2 = axisInput; - axisInput = Interlocked.CompareExchange(ref PPInputController.m_OnAxisR, (AxisInput)Delegate.Combine(axisInput2, value), axisInput); - } - while (axisInput != axisInput2); - } - remove - { - AxisInput axisInput = PPInputController.m_OnAxisR; - AxisInput axisInput2; - do - { - axisInput2 = axisInput; - axisInput = Interlocked.CompareExchange(ref PPInputController.m_OnAxisR, (AxisInput)Delegate.Remove(axisInput2, value), axisInput); - } - while (axisInput != axisInput2); - } - } + public static event AxisInput OnAxisR; - public static event SwipeInput OnSwipeL - { - add - { - SwipeInput swipeInput = PPInputController.m_OnSwipeL; - SwipeInput swipeInput2; - do - { - swipeInput2 = swipeInput; - swipeInput = Interlocked.CompareExchange(ref PPInputController.m_OnSwipeL, (SwipeInput)Delegate.Combine(swipeInput2, value), swipeInput); - } - while (swipeInput != swipeInput2); - } - remove - { - SwipeInput swipeInput = PPInputController.m_OnSwipeL; - SwipeInput swipeInput2; - do - { - swipeInput2 = swipeInput; - swipeInput = Interlocked.CompareExchange(ref PPInputController.m_OnSwipeL, (SwipeInput)Delegate.Remove(swipeInput2, value), swipeInput); - } - while (swipeInput != swipeInput2); - } - } + public static event SwipeInput OnSwipeL; - public static event SwipeInput OnSwipeR - { - add - { - SwipeInput swipeInput = PPInputController.m_OnSwipeR; - SwipeInput swipeInput2; - do - { - swipeInput2 = swipeInput; - swipeInput = Interlocked.CompareExchange(ref PPInputController.m_OnSwipeR, (SwipeInput)Delegate.Combine(swipeInput2, value), swipeInput); - } - while (swipeInput != swipeInput2); - } - remove - { - SwipeInput swipeInput = PPInputController.m_OnSwipeR; - SwipeInput swipeInput2; - do - { - swipeInput2 = swipeInput; - swipeInput = Interlocked.CompareExchange(ref PPInputController.m_OnSwipeR, (SwipeInput)Delegate.Remove(swipeInput2, value), swipeInput); - } - while (swipeInput != swipeInput2); - } - } + public static event SwipeInput OnSwipeR; - public static event SchemeChanged OnSchemeChanged - { - add - { - SchemeChanged schemeChanged = PPInputController.m_OnSchemeChanged; - SchemeChanged schemeChanged2; - do - { - schemeChanged2 = schemeChanged; - schemeChanged = Interlocked.CompareExchange(ref PPInputController.m_OnSchemeChanged, (SchemeChanged)Delegate.Combine(schemeChanged2, value), schemeChanged); - } - while (schemeChanged != schemeChanged2); - } - remove - { - SchemeChanged schemeChanged = PPInputController.m_OnSchemeChanged; - SchemeChanged schemeChanged2; - do - { - schemeChanged2 = schemeChanged; - schemeChanged = Interlocked.CompareExchange(ref PPInputController.m_OnSchemeChanged, (SchemeChanged)Delegate.Remove(schemeChanged2, value), schemeChanged); - } - while (schemeChanged != schemeChanged2); - } - } + public static event SchemeChanged OnSchemeChanged; private void OnDestroy() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelEditorController.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelEditorController.cs index 5723ab9..d0c60ab 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelEditorController.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelEditorController.cs @@ -1,7 +1,5 @@ using System; using System.Collections; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -53,10 +51,6 @@ public class PixelEditorController : MonoBehaviour public bool isHoldingShift; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleEditorModeChange m_OnEditorModeChange; - public UIButton uiButtonAddItem; public Button uiButtonHelp; @@ -71,31 +65,7 @@ public class PixelEditorController : MonoBehaviour public UnityEngine.Object challengePrefab; - public event HandleEditorModeChange OnEditorModeChange - { - add - { - HandleEditorModeChange handleEditorModeChange = this.m_OnEditorModeChange; - HandleEditorModeChange handleEditorModeChange2; - do - { - handleEditorModeChange2 = handleEditorModeChange; - handleEditorModeChange = Interlocked.CompareExchange(ref this.m_OnEditorModeChange, (HandleEditorModeChange)Delegate.Combine(handleEditorModeChange2, value), handleEditorModeChange); - } - while (handleEditorModeChange != handleEditorModeChange2); - } - remove - { - HandleEditorModeChange handleEditorModeChange = this.m_OnEditorModeChange; - HandleEditorModeChange handleEditorModeChange2; - do - { - handleEditorModeChange2 = handleEditorModeChange; - handleEditorModeChange = Interlocked.CompareExchange(ref this.m_OnEditorModeChange, (HandleEditorModeChange)Delegate.Remove(handleEditorModeChange2, value), handleEditorModeChange); - } - while (handleEditorModeChange != handleEditorModeChange2); - } - } + public event HandleEditorModeChange OnEditorModeChange; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelEditorPaintBoard.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelEditorPaintBoard.cs index 21c54cf..e7a1eac 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelEditorPaintBoard.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelEditorPaintBoard.cs @@ -1,7 +1,5 @@ using System; using System.Collections; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -116,46 +114,6 @@ public class PixelEditorPaintBoard : UIMoveable public UILineRenderer boundaryLeft; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleBoardChange m_OnBoardChange; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleFlipBlocks m_OnFlip; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleShiftBlocks m_OnShift; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnPointerClick m_OnTilePointerClick; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnDrag m_OnTileDrag; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnBeginDrag m_OnTileBeginDrag; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnEndDrag m_OnTileEndDrag; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnPointerEnter m_OnTilePointerEnter; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnPointerExit m_OnTilePointerExit; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnPixelTileChange m_OnPixelTileChange; - public BloxelBoard currentBloxelBoard { get @@ -172,265 +130,25 @@ public class PixelEditorPaintBoard : UIMoveable } } - public event HandleBoardChange OnBoardChange - { - add - { - HandleBoardChange handleBoardChange = this.m_OnBoardChange; - HandleBoardChange handleBoardChange2; - do - { - handleBoardChange2 = handleBoardChange; - handleBoardChange = Interlocked.CompareExchange(ref this.m_OnBoardChange, (HandleBoardChange)Delegate.Combine(handleBoardChange2, value), handleBoardChange); - } - while (handleBoardChange != handleBoardChange2); - } - remove - { - HandleBoardChange handleBoardChange = this.m_OnBoardChange; - HandleBoardChange handleBoardChange2; - do - { - handleBoardChange2 = handleBoardChange; - handleBoardChange = Interlocked.CompareExchange(ref this.m_OnBoardChange, (HandleBoardChange)Delegate.Remove(handleBoardChange2, value), handleBoardChange); - } - while (handleBoardChange != handleBoardChange2); - } - } + public event HandleBoardChange OnBoardChange; - public event HandleFlipBlocks OnFlip - { - add - { - HandleFlipBlocks handleFlipBlocks = this.m_OnFlip; - HandleFlipBlocks handleFlipBlocks2; - do - { - handleFlipBlocks2 = handleFlipBlocks; - handleFlipBlocks = Interlocked.CompareExchange(ref this.m_OnFlip, (HandleFlipBlocks)Delegate.Combine(handleFlipBlocks2, value), handleFlipBlocks); - } - while (handleFlipBlocks != handleFlipBlocks2); - } - remove - { - HandleFlipBlocks handleFlipBlocks = this.m_OnFlip; - HandleFlipBlocks handleFlipBlocks2; - do - { - handleFlipBlocks2 = handleFlipBlocks; - handleFlipBlocks = Interlocked.CompareExchange(ref this.m_OnFlip, (HandleFlipBlocks)Delegate.Remove(handleFlipBlocks2, value), handleFlipBlocks); - } - while (handleFlipBlocks != handleFlipBlocks2); - } - } + public event HandleFlipBlocks OnFlip; - public event HandleShiftBlocks OnShift - { - add - { - HandleShiftBlocks handleShiftBlocks = this.m_OnShift; - HandleShiftBlocks handleShiftBlocks2; - do - { - handleShiftBlocks2 = handleShiftBlocks; - handleShiftBlocks = Interlocked.CompareExchange(ref this.m_OnShift, (HandleShiftBlocks)Delegate.Combine(handleShiftBlocks2, value), handleShiftBlocks); - } - while (handleShiftBlocks != handleShiftBlocks2); - } - remove - { - HandleShiftBlocks handleShiftBlocks = this.m_OnShift; - HandleShiftBlocks handleShiftBlocks2; - do - { - handleShiftBlocks2 = handleShiftBlocks; - handleShiftBlocks = Interlocked.CompareExchange(ref this.m_OnShift, (HandleShiftBlocks)Delegate.Remove(handleShiftBlocks2, value), handleShiftBlocks); - } - while (handleShiftBlocks != handleShiftBlocks2); - } - } + public event HandleShiftBlocks OnShift; - public event HandleOnPointerClick OnTilePointerClick - { - add - { - HandleOnPointerClick handleOnPointerClick = this.m_OnTilePointerClick; - HandleOnPointerClick handleOnPointerClick2; - do - { - handleOnPointerClick2 = handleOnPointerClick; - handleOnPointerClick = Interlocked.CompareExchange(ref this.m_OnTilePointerClick, (HandleOnPointerClick)Delegate.Combine(handleOnPointerClick2, value), handleOnPointerClick); - } - while (handleOnPointerClick != handleOnPointerClick2); - } - remove - { - HandleOnPointerClick handleOnPointerClick = this.m_OnTilePointerClick; - HandleOnPointerClick handleOnPointerClick2; - do - { - handleOnPointerClick2 = handleOnPointerClick; - handleOnPointerClick = Interlocked.CompareExchange(ref this.m_OnTilePointerClick, (HandleOnPointerClick)Delegate.Remove(handleOnPointerClick2, value), handleOnPointerClick); - } - while (handleOnPointerClick != handleOnPointerClick2); - } - } + public event HandleOnPointerClick OnTilePointerClick; - public event HandleOnDrag OnTileDrag - { - add - { - HandleOnDrag handleOnDrag = this.m_OnTileDrag; - HandleOnDrag handleOnDrag2; - do - { - handleOnDrag2 = handleOnDrag; - handleOnDrag = Interlocked.CompareExchange(ref this.m_OnTileDrag, (HandleOnDrag)Delegate.Combine(handleOnDrag2, value), handleOnDrag); - } - while (handleOnDrag != handleOnDrag2); - } - remove - { - HandleOnDrag handleOnDrag = this.m_OnTileDrag; - HandleOnDrag handleOnDrag2; - do - { - handleOnDrag2 = handleOnDrag; - handleOnDrag = Interlocked.CompareExchange(ref this.m_OnTileDrag, (HandleOnDrag)Delegate.Remove(handleOnDrag2, value), handleOnDrag); - } - while (handleOnDrag != handleOnDrag2); - } - } + public event HandleOnDrag OnTileDrag; - public event HandleOnBeginDrag OnTileBeginDrag - { - add - { - HandleOnBeginDrag handleOnBeginDrag = this.m_OnTileBeginDrag; - HandleOnBeginDrag handleOnBeginDrag2; - do - { - handleOnBeginDrag2 = handleOnBeginDrag; - handleOnBeginDrag = Interlocked.CompareExchange(ref this.m_OnTileBeginDrag, (HandleOnBeginDrag)Delegate.Combine(handleOnBeginDrag2, value), handleOnBeginDrag); - } - while (handleOnBeginDrag != handleOnBeginDrag2); - } - remove - { - HandleOnBeginDrag handleOnBeginDrag = this.m_OnTileBeginDrag; - HandleOnBeginDrag handleOnBeginDrag2; - do - { - handleOnBeginDrag2 = handleOnBeginDrag; - handleOnBeginDrag = Interlocked.CompareExchange(ref this.m_OnTileBeginDrag, (HandleOnBeginDrag)Delegate.Remove(handleOnBeginDrag2, value), handleOnBeginDrag); - } - while (handleOnBeginDrag != handleOnBeginDrag2); - } - } + public event HandleOnBeginDrag OnTileBeginDrag; - public event HandleOnEndDrag OnTileEndDrag - { - add - { - HandleOnEndDrag handleOnEndDrag = this.m_OnTileEndDrag; - HandleOnEndDrag handleOnEndDrag2; - do - { - handleOnEndDrag2 = handleOnEndDrag; - handleOnEndDrag = Interlocked.CompareExchange(ref this.m_OnTileEndDrag, (HandleOnEndDrag)Delegate.Combine(handleOnEndDrag2, value), handleOnEndDrag); - } - while (handleOnEndDrag != handleOnEndDrag2); - } - remove - { - HandleOnEndDrag handleOnEndDrag = this.m_OnTileEndDrag; - HandleOnEndDrag handleOnEndDrag2; - do - { - handleOnEndDrag2 = handleOnEndDrag; - handleOnEndDrag = Interlocked.CompareExchange(ref this.m_OnTileEndDrag, (HandleOnEndDrag)Delegate.Remove(handleOnEndDrag2, value), handleOnEndDrag); - } - while (handleOnEndDrag != handleOnEndDrag2); - } - } + public event HandleOnEndDrag OnTileEndDrag; - public event HandleOnPointerEnter OnTilePointerEnter - { - add - { - HandleOnPointerEnter handleOnPointerEnter = this.m_OnTilePointerEnter; - HandleOnPointerEnter handleOnPointerEnter2; - do - { - handleOnPointerEnter2 = handleOnPointerEnter; - handleOnPointerEnter = Interlocked.CompareExchange(ref this.m_OnTilePointerEnter, (HandleOnPointerEnter)Delegate.Combine(handleOnPointerEnter2, value), handleOnPointerEnter); - } - while (handleOnPointerEnter != handleOnPointerEnter2); - } - remove - { - HandleOnPointerEnter handleOnPointerEnter = this.m_OnTilePointerEnter; - HandleOnPointerEnter handleOnPointerEnter2; - do - { - handleOnPointerEnter2 = handleOnPointerEnter; - handleOnPointerEnter = Interlocked.CompareExchange(ref this.m_OnTilePointerEnter, (HandleOnPointerEnter)Delegate.Remove(handleOnPointerEnter2, value), handleOnPointerEnter); - } - while (handleOnPointerEnter != handleOnPointerEnter2); - } - } + public event HandleOnPointerEnter OnTilePointerEnter; - public event HandleOnPointerExit OnTilePointerExit - { - add - { - HandleOnPointerExit handleOnPointerExit = this.m_OnTilePointerExit; - HandleOnPointerExit handleOnPointerExit2; - do - { - handleOnPointerExit2 = handleOnPointerExit; - handleOnPointerExit = Interlocked.CompareExchange(ref this.m_OnTilePointerExit, (HandleOnPointerExit)Delegate.Combine(handleOnPointerExit2, value), handleOnPointerExit); - } - while (handleOnPointerExit != handleOnPointerExit2); - } - remove - { - HandleOnPointerExit handleOnPointerExit = this.m_OnTilePointerExit; - HandleOnPointerExit handleOnPointerExit2; - do - { - handleOnPointerExit2 = handleOnPointerExit; - handleOnPointerExit = Interlocked.CompareExchange(ref this.m_OnTilePointerExit, (HandleOnPointerExit)Delegate.Remove(handleOnPointerExit2, value), handleOnPointerExit); - } - while (handleOnPointerExit != handleOnPointerExit2); - } - } + public event HandleOnPointerExit OnTilePointerExit; - public event HandleOnPixelTileChange OnPixelTileChange - { - add - { - HandleOnPixelTileChange handleOnPixelTileChange = this.m_OnPixelTileChange; - HandleOnPixelTileChange handleOnPixelTileChange2; - do - { - handleOnPixelTileChange2 = handleOnPixelTileChange; - handleOnPixelTileChange = Interlocked.CompareExchange(ref this.m_OnPixelTileChange, (HandleOnPixelTileChange)Delegate.Combine(handleOnPixelTileChange2, value), handleOnPixelTileChange); - } - while (handleOnPixelTileChange != handleOnPixelTileChange2); - } - remove - { - HandleOnPixelTileChange handleOnPixelTileChange = this.m_OnPixelTileChange; - HandleOnPixelTileChange handleOnPixelTileChange2; - do - { - handleOnPixelTileChange2 = handleOnPixelTileChange; - handleOnPixelTileChange = Interlocked.CompareExchange(ref this.m_OnPixelTileChange, (HandleOnPixelTileChange)Delegate.Remove(handleOnPixelTileChange2, value), handleOnPixelTileChange); - } - while (handleOnPixelTileChange != handleOnPixelTileChange2); - } - } + public event HandleOnPixelTileChange OnPixelTileChange; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelEditorTile.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelEditorTile.cs index b0b5f67..5f972e4 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelEditorTile.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelEditorTile.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; using UnityEngine.EventSystems; @@ -22,34 +20,6 @@ public class PixelEditorTile : MonoBehaviour, IPointerEnterHandler, IPointerExit public delegate void HandleTileChange(PixelEditorTile tile); - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnPointerClick m_OnTilePointerClick; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnDrag m_OnTileDrag; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnBeginDrag m_OnTileBeginDrag; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnEndDrag m_OnTileEndDrag; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnPointerEnter m_OnTilePointerEnter; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnPointerExit m_OnTilePointerExit; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleTileChange m_OnTileChange; - [HideInInspector] [SerializeField] private BlockColor _currentColor; @@ -81,187 +51,19 @@ public class PixelEditorTile : MonoBehaviour, IPointerEnterHandler, IPointerExit } } - public event HandleOnPointerClick OnTilePointerClick - { - add - { - HandleOnPointerClick handleOnPointerClick = this.m_OnTilePointerClick; - HandleOnPointerClick handleOnPointerClick2; - do - { - handleOnPointerClick2 = handleOnPointerClick; - handleOnPointerClick = Interlocked.CompareExchange(ref this.m_OnTilePointerClick, (HandleOnPointerClick)Delegate.Combine(handleOnPointerClick2, value), handleOnPointerClick); - } - while (handleOnPointerClick != handleOnPointerClick2); - } - remove - { - HandleOnPointerClick handleOnPointerClick = this.m_OnTilePointerClick; - HandleOnPointerClick handleOnPointerClick2; - do - { - handleOnPointerClick2 = handleOnPointerClick; - handleOnPointerClick = Interlocked.CompareExchange(ref this.m_OnTilePointerClick, (HandleOnPointerClick)Delegate.Remove(handleOnPointerClick2, value), handleOnPointerClick); - } - while (handleOnPointerClick != handleOnPointerClick2); - } - } + public event HandleOnPointerClick OnTilePointerClick; - public event HandleOnDrag OnTileDrag - { - add - { - HandleOnDrag handleOnDrag = this.m_OnTileDrag; - HandleOnDrag handleOnDrag2; - do - { - handleOnDrag2 = handleOnDrag; - handleOnDrag = Interlocked.CompareExchange(ref this.m_OnTileDrag, (HandleOnDrag)Delegate.Combine(handleOnDrag2, value), handleOnDrag); - } - while (handleOnDrag != handleOnDrag2); - } - remove - { - HandleOnDrag handleOnDrag = this.m_OnTileDrag; - HandleOnDrag handleOnDrag2; - do - { - handleOnDrag2 = handleOnDrag; - handleOnDrag = Interlocked.CompareExchange(ref this.m_OnTileDrag, (HandleOnDrag)Delegate.Remove(handleOnDrag2, value), handleOnDrag); - } - while (handleOnDrag != handleOnDrag2); - } - } + public event HandleOnDrag OnTileDrag; - public event HandleOnBeginDrag OnTileBeginDrag - { - add - { - HandleOnBeginDrag handleOnBeginDrag = this.m_OnTileBeginDrag; - HandleOnBeginDrag handleOnBeginDrag2; - do - { - handleOnBeginDrag2 = handleOnBeginDrag; - handleOnBeginDrag = Interlocked.CompareExchange(ref this.m_OnTileBeginDrag, (HandleOnBeginDrag)Delegate.Combine(handleOnBeginDrag2, value), handleOnBeginDrag); - } - while (handleOnBeginDrag != handleOnBeginDrag2); - } - remove - { - HandleOnBeginDrag handleOnBeginDrag = this.m_OnTileBeginDrag; - HandleOnBeginDrag handleOnBeginDrag2; - do - { - handleOnBeginDrag2 = handleOnBeginDrag; - handleOnBeginDrag = Interlocked.CompareExchange(ref this.m_OnTileBeginDrag, (HandleOnBeginDrag)Delegate.Remove(handleOnBeginDrag2, value), handleOnBeginDrag); - } - while (handleOnBeginDrag != handleOnBeginDrag2); - } - } + public event HandleOnBeginDrag OnTileBeginDrag; - public event HandleOnEndDrag OnTileEndDrag - { - add - { - HandleOnEndDrag handleOnEndDrag = this.m_OnTileEndDrag; - HandleOnEndDrag handleOnEndDrag2; - do - { - handleOnEndDrag2 = handleOnEndDrag; - handleOnEndDrag = Interlocked.CompareExchange(ref this.m_OnTileEndDrag, (HandleOnEndDrag)Delegate.Combine(handleOnEndDrag2, value), handleOnEndDrag); - } - while (handleOnEndDrag != handleOnEndDrag2); - } - remove - { - HandleOnEndDrag handleOnEndDrag = this.m_OnTileEndDrag; - HandleOnEndDrag handleOnEndDrag2; - do - { - handleOnEndDrag2 = handleOnEndDrag; - handleOnEndDrag = Interlocked.CompareExchange(ref this.m_OnTileEndDrag, (HandleOnEndDrag)Delegate.Remove(handleOnEndDrag2, value), handleOnEndDrag); - } - while (handleOnEndDrag != handleOnEndDrag2); - } - } + public event HandleOnEndDrag OnTileEndDrag; - public event HandleOnPointerEnter OnTilePointerEnter - { - add - { - HandleOnPointerEnter handleOnPointerEnter = this.m_OnTilePointerEnter; - HandleOnPointerEnter handleOnPointerEnter2; - do - { - handleOnPointerEnter2 = handleOnPointerEnter; - handleOnPointerEnter = Interlocked.CompareExchange(ref this.m_OnTilePointerEnter, (HandleOnPointerEnter)Delegate.Combine(handleOnPointerEnter2, value), handleOnPointerEnter); - } - while (handleOnPointerEnter != handleOnPointerEnter2); - } - remove - { - HandleOnPointerEnter handleOnPointerEnter = this.m_OnTilePointerEnter; - HandleOnPointerEnter handleOnPointerEnter2; - do - { - handleOnPointerEnter2 = handleOnPointerEnter; - handleOnPointerEnter = Interlocked.CompareExchange(ref this.m_OnTilePointerEnter, (HandleOnPointerEnter)Delegate.Remove(handleOnPointerEnter2, value), handleOnPointerEnter); - } - while (handleOnPointerEnter != handleOnPointerEnter2); - } - } + public event HandleOnPointerEnter OnTilePointerEnter; - public event HandleOnPointerExit OnTilePointerExit - { - add - { - HandleOnPointerExit handleOnPointerExit = this.m_OnTilePointerExit; - HandleOnPointerExit handleOnPointerExit2; - do - { - handleOnPointerExit2 = handleOnPointerExit; - handleOnPointerExit = Interlocked.CompareExchange(ref this.m_OnTilePointerExit, (HandleOnPointerExit)Delegate.Combine(handleOnPointerExit2, value), handleOnPointerExit); - } - while (handleOnPointerExit != handleOnPointerExit2); - } - remove - { - HandleOnPointerExit handleOnPointerExit = this.m_OnTilePointerExit; - HandleOnPointerExit handleOnPointerExit2; - do - { - handleOnPointerExit2 = handleOnPointerExit; - handleOnPointerExit = Interlocked.CompareExchange(ref this.m_OnTilePointerExit, (HandleOnPointerExit)Delegate.Remove(handleOnPointerExit2, value), handleOnPointerExit); - } - while (handleOnPointerExit != handleOnPointerExit2); - } - } + public event HandleOnPointerExit OnTilePointerExit; - public event HandleTileChange OnTileChange - { - add - { - HandleTileChange handleTileChange = this.m_OnTileChange; - HandleTileChange handleTileChange2; - do - { - handleTileChange2 = handleTileChange; - handleTileChange = Interlocked.CompareExchange(ref this.m_OnTileChange, (HandleTileChange)Delegate.Combine(handleTileChange2, value), handleTileChange); - } - while (handleTileChange != handleTileChange2); - } - remove - { - HandleTileChange handleTileChange = this.m_OnTileChange; - HandleTileChange handleTileChange2; - do - { - handleTileChange2 = handleTileChange; - handleTileChange = Interlocked.CompareExchange(ref this.m_OnTileChange, (HandleTileChange)Delegate.Remove(handleTileChange2, value), handleTileChange); - } - while (handleTileChange != handleTileChange2); - } - } + public event HandleTileChange OnTileChange; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelPlayerController.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelPlayerController.cs index 04ee6de..10b0e13 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelPlayerController.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelPlayerController.cs @@ -1,8 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using Prime31; @@ -85,14 +83,6 @@ public class PixelPlayerController : CharacterController2D public float projectileSpeed = 3f; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandlePlayerDeath m_OnDeath; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnReady m_OnReadyForGameplay; - public bool button1Pressed; public bool button2Pressed; @@ -168,57 +158,9 @@ public class PixelPlayerController : CharacterController2D public bool isUsingShrinkPotion { get; private set; } - public event HandlePlayerDeath OnDeath - { - add - { - HandlePlayerDeath handlePlayerDeath = this.m_OnDeath; - HandlePlayerDeath handlePlayerDeath2; - do - { - handlePlayerDeath2 = handlePlayerDeath; - handlePlayerDeath = Interlocked.CompareExchange(ref this.m_OnDeath, (HandlePlayerDeath)Delegate.Combine(handlePlayerDeath2, value), handlePlayerDeath); - } - while (handlePlayerDeath != handlePlayerDeath2); - } - remove - { - HandlePlayerDeath handlePlayerDeath = this.m_OnDeath; - HandlePlayerDeath handlePlayerDeath2; - do - { - handlePlayerDeath2 = handlePlayerDeath; - handlePlayerDeath = Interlocked.CompareExchange(ref this.m_OnDeath, (HandlePlayerDeath)Delegate.Remove(handlePlayerDeath2, value), handlePlayerDeath); - } - while (handlePlayerDeath != handlePlayerDeath2); - } - } + public event HandlePlayerDeath OnDeath; - public event HandleOnReady OnReadyForGameplay - { - add - { - HandleOnReady handleOnReady = this.m_OnReadyForGameplay; - HandleOnReady handleOnReady2; - do - { - handleOnReady2 = handleOnReady; - handleOnReady = Interlocked.CompareExchange(ref this.m_OnReadyForGameplay, (HandleOnReady)Delegate.Combine(handleOnReady2, value), handleOnReady); - } - while (handleOnReady != handleOnReady2); - } - remove - { - HandleOnReady handleOnReady = this.m_OnReadyForGameplay; - HandleOnReady handleOnReady2; - do - { - handleOnReady2 = handleOnReady; - handleOnReady = Interlocked.CompareExchange(ref this.m_OnReadyForGameplay, (HandleOnReady)Delegate.Remove(handleOnReady2, value), handleOnReady); - } - while (handleOnReady != handleOnReady2); - } - } + public event HandleOnReady OnReadyForGameplay; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelToolPalette.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelToolPalette.cs index 37f495d..8726752 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelToolPalette.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/PixelToolPalette.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -84,10 +82,6 @@ public class PixelToolPalette : MonoBehaviour private bool _locked; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnChange m_OnChange; - public bool locked { get @@ -108,31 +102,7 @@ public class PixelToolPalette : MonoBehaviour } } - public event HandleOnChange OnChange - { - add - { - HandleOnChange handleOnChange = this.m_OnChange; - HandleOnChange handleOnChange2; - do - { - handleOnChange2 = handleOnChange; - handleOnChange = Interlocked.CompareExchange(ref this.m_OnChange, (HandleOnChange)Delegate.Combine(handleOnChange2, value), handleOnChange); - } - while (handleOnChange != handleOnChange2); - } - remove - { - HandleOnChange handleOnChange = this.m_OnChange; - HandleOnChange handleOnChange2; - do - { - handleOnChange2 = handleOnChange; - handleOnChange = Interlocked.CompareExchange(ref this.m_OnChange, (HandleOnChange)Delegate.Remove(handleOnChange2, value), handleOnChange); - } - while (handleOnChange != handleOnChange2); - } - } + public event HandleOnChange OnChange; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/PlatformSupport/Collections/ObjectModel/ObservableDictionary.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/PlatformSupport/Collections/ObjectModel/ObservableDictionary.cs index a3a01d7..f8ecd6c 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/PlatformSupport/Collections/ObjectModel/ObservableDictionary.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/PlatformSupport/Collections/ObjectModel/ObservableDictionary.cs @@ -72,57 +72,9 @@ namespace PlatformSupport.Collections.ObjectModel } } - public event NotifyCollectionChangedEventHandler CollectionChanged - { - add - { - NotifyCollectionChangedEventHandler notifyCollectionChangedEventHandler = this.CollectionChanged; - NotifyCollectionChangedEventHandler notifyCollectionChangedEventHandler2; - do - { - notifyCollectionChangedEventHandler2 = notifyCollectionChangedEventHandler; - notifyCollectionChangedEventHandler = Interlocked.CompareExchange(ref this.CollectionChanged, (NotifyCollectionChangedEventHandler)Delegate.Combine(notifyCollectionChangedEventHandler2, value), notifyCollectionChangedEventHandler); - } - while (notifyCollectionChangedEventHandler != notifyCollectionChangedEventHandler2); - } - remove - { - NotifyCollectionChangedEventHandler notifyCollectionChangedEventHandler = this.CollectionChanged; - NotifyCollectionChangedEventHandler notifyCollectionChangedEventHandler2; - do - { - notifyCollectionChangedEventHandler2 = notifyCollectionChangedEventHandler; - notifyCollectionChangedEventHandler = Interlocked.CompareExchange(ref this.CollectionChanged, (NotifyCollectionChangedEventHandler)Delegate.Remove(notifyCollectionChangedEventHandler2, value), notifyCollectionChangedEventHandler); - } - while (notifyCollectionChangedEventHandler != notifyCollectionChangedEventHandler2); - } - } + public event NotifyCollectionChangedEventHandler CollectionChanged; - public event PropertyChangedEventHandler PropertyChanged - { - add - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - PropertyChangedEventHandler propertyChangedEventHandler2; - do - { - propertyChangedEventHandler2 = propertyChangedEventHandler; - propertyChangedEventHandler = Interlocked.CompareExchange(ref this.PropertyChanged, (PropertyChangedEventHandler)Delegate.Combine(propertyChangedEventHandler2, value), propertyChangedEventHandler); - } - while (propertyChangedEventHandler != propertyChangedEventHandler2); - } - remove - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - PropertyChangedEventHandler propertyChangedEventHandler2; - do - { - propertyChangedEventHandler2 = propertyChangedEventHandler; - propertyChangedEventHandler = Interlocked.CompareExchange(ref this.PropertyChanged, (PropertyChangedEventHandler)Delegate.Remove(propertyChangedEventHandler2, value), propertyChangedEventHandler); - } - while (propertyChangedEventHandler != propertyChangedEventHandler2); - } - } + public event PropertyChangedEventHandler PropertyChanged; public ObservableDictionary() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/PlayerBankManager.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/PlayerBankManager.cs index 13d3540..d9c3036 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/PlayerBankManager.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/PlayerBankManager.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -23,65 +21,9 @@ public class PlayerBankManager : MonoBehaviour public bool shouldUpdateServer = true; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleNewCoinCount m_OnCoinUpdate; + public event HandleNewCoinCount OnCoinUpdate; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleGemCount m_OnGemUpdate; - - public event HandleNewCoinCount OnCoinUpdate - { - add - { - HandleNewCoinCount handleNewCoinCount = this.m_OnCoinUpdate; - HandleNewCoinCount handleNewCoinCount2; - do - { - handleNewCoinCount2 = handleNewCoinCount; - handleNewCoinCount = Interlocked.CompareExchange(ref this.m_OnCoinUpdate, (HandleNewCoinCount)Delegate.Combine(handleNewCoinCount2, value), handleNewCoinCount); - } - while (handleNewCoinCount != handleNewCoinCount2); - } - remove - { - HandleNewCoinCount handleNewCoinCount = this.m_OnCoinUpdate; - HandleNewCoinCount handleNewCoinCount2; - do - { - handleNewCoinCount2 = handleNewCoinCount; - handleNewCoinCount = Interlocked.CompareExchange(ref this.m_OnCoinUpdate, (HandleNewCoinCount)Delegate.Remove(handleNewCoinCount2, value), handleNewCoinCount); - } - while (handleNewCoinCount != handleNewCoinCount2); - } - } - - public event HandleGemCount OnGemUpdate - { - add - { - HandleGemCount handleGemCount = this.m_OnGemUpdate; - HandleGemCount handleGemCount2; - do - { - handleGemCount2 = handleGemCount; - handleGemCount = Interlocked.CompareExchange(ref this.m_OnGemUpdate, (HandleGemCount)Delegate.Combine(handleGemCount2, value), handleGemCount); - } - while (handleGemCount != handleGemCount2); - } - remove - { - HandleGemCount handleGemCount = this.m_OnGemUpdate; - HandleGemCount handleGemCount2; - do - { - handleGemCount2 = handleGemCount; - handleGemCount = Interlocked.CompareExchange(ref this.m_OnGemUpdate, (HandleGemCount)Delegate.Remove(handleGemCount2, value), handleGemCount); - } - while (handleGemCount != handleGemCount2); - } - } + public event HandleGemCount OnGemUpdate; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/PrefsManager.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/PrefsManager.cs index 67aeb23..b1be884 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/PrefsManager.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/PrefsManager.cs @@ -1,8 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -12,10 +10,6 @@ public class PrefsManager : MonoBehaviour public static PrefsManager instance; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleUpdateNews m_OnUpdateNews; - private const string prefsPassword = "cRE4)&RuB.2LxL`FwDf9z58rV_*4'g"; private const string keyFor_iWallWarpLocation = "iWallWarpLocation"; @@ -720,31 +714,7 @@ public class PrefsManager : MonoBehaviour } } - public event HandleUpdateNews OnUpdateNews - { - add - { - HandleUpdateNews handleUpdateNews = this.m_OnUpdateNews; - HandleUpdateNews handleUpdateNews2; - do - { - handleUpdateNews2 = handleUpdateNews; - handleUpdateNews = Interlocked.CompareExchange(ref this.m_OnUpdateNews, (HandleUpdateNews)Delegate.Combine(handleUpdateNews2, value), handleUpdateNews); - } - while (handleUpdateNews != handleUpdateNews2); - } - remove - { - HandleUpdateNews handleUpdateNews = this.m_OnUpdateNews; - HandleUpdateNews handleUpdateNews2; - do - { - handleUpdateNews2 = handleUpdateNews; - handleUpdateNews = Interlocked.CompareExchange(ref this.m_OnUpdateNews, (HandleUpdateNews)Delegate.Remove(handleUpdateNews2, value), handleUpdateNews); - } - while (handleUpdateNews != handleUpdateNews2); - } - } + public event HandleUpdateNews OnUpdateNews; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/Prime31/CharacterController2D.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/Prime31/CharacterController2D.cs index 985675f..a5b23c9 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/Prime31/CharacterController2D.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/Prime31/CharacterController2D.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -55,18 +54,6 @@ namespace Prime31 } } - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private Action m_onControllerCollidedEvent; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private Action m_onTriggerEnterEvent; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private Action m_onTriggerExitEvent; - public bool ignoreOneWayPlatformsThisFrame; [SerializeField] @@ -160,83 +147,11 @@ namespace Prime31 } } - public event Action onControllerCollidedEvent - { - add - { - Action action = this.m_onControllerCollidedEvent; - Action action2; - do - { - action2 = action; - action = Interlocked.CompareExchange(ref this.m_onControllerCollidedEvent, (Action)Delegate.Combine(action2, value), action); - } - while (action != action2); - } - remove - { - Action action = this.m_onControllerCollidedEvent; - Action action2; - do - { - action2 = action; - action = Interlocked.CompareExchange(ref this.m_onControllerCollidedEvent, (Action)Delegate.Remove(action2, value), action); - } - while (action != action2); - } - } + public event Action onControllerCollidedEvent; - public event Action onTriggerEnterEvent - { - add - { - Action action = this.m_onTriggerEnterEvent; - Action action2; - do - { - action2 = action; - action = Interlocked.CompareExchange(ref this.m_onTriggerEnterEvent, (Action)Delegate.Combine(action2, value), action); - } - while (action != action2); - } - remove - { - Action action = this.m_onTriggerEnterEvent; - Action action2; - do - { - action2 = action; - action = Interlocked.CompareExchange(ref this.m_onTriggerEnterEvent, (Action)Delegate.Remove(action2, value), action); - } - while (action != action2); - } - } + public event Action onTriggerEnterEvent; - public event Action onTriggerExitEvent - { - add - { - Action action = this.m_onTriggerExitEvent; - Action action2; - do - { - action2 = action; - action = Interlocked.CompareExchange(ref this.m_onTriggerExitEvent, (Action)Delegate.Combine(action2, value), action); - } - while (action != action2); - } - remove - { - Action action = this.m_onTriggerExitEvent; - Action action2; - do - { - action2 = action; - action = Interlocked.CompareExchange(ref this.m_onTriggerExitEvent, (Action)Delegate.Remove(action2, value), action); - } - while (action != action2); - } - } + public event Action onTriggerExitEvent; public void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/ReflectedBullet.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/ReflectedBullet.cs index 2e110a6..5c6efb8 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/ReflectedBullet.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/ReflectedBullet.cs @@ -97,7 +97,7 @@ public class ReflectedBullet : PoolableComponent LayerMask layerMask = collision.gameObject.layer; Rigidbody2D rigidbody = collision.rigidbody; BloxelTile bloxelTile = null; - switch (layerMask) + switch ((long)layerMask) { case 10L: bloxelTile = rigidbody.gameObject.GetComponent(); diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/RegisterUsername.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/RegisterUsername.cs index 046cf1d..cd83eee 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/RegisterUsername.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/RegisterUsername.cs @@ -1,7 +1,5 @@ using System; using System.Collections; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using TMPro; using UnityEngine; @@ -19,35 +17,7 @@ public class RegisterUsername : RegisterMenu [Range(0f, 2f)] public float inputTimer = 1f; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleAvatarChange m_OnAvatarChange; - - public event HandleAvatarChange OnAvatarChange - { - add - { - HandleAvatarChange handleAvatarChange = this.m_OnAvatarChange; - HandleAvatarChange handleAvatarChange2; - do - { - handleAvatarChange2 = handleAvatarChange; - handleAvatarChange = Interlocked.CompareExchange(ref this.m_OnAvatarChange, (HandleAvatarChange)Delegate.Combine(handleAvatarChange2, value), handleAvatarChange); - } - while (handleAvatarChange != handleAvatarChange2); - } - remove - { - HandleAvatarChange handleAvatarChange = this.m_OnAvatarChange; - HandleAvatarChange handleAvatarChange2; - do - { - handleAvatarChange2 = handleAvatarChange; - handleAvatarChange = Interlocked.CompareExchange(ref this.m_OnAvatarChange, (HandleAvatarChange)Delegate.Remove(handleAvatarChange2, value), handleAvatarChange); - } - while (handleAvatarChange != handleAvatarChange2); - } - } + public event HandleAvatarChange OnAvatarChange; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/RegistrationController.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/RegistrationController.cs index e3ab020..ef320f1 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/RegistrationController.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/RegistrationController.cs @@ -1,8 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Text.RegularExpressions; using System.Threading; using TMPro; @@ -62,10 +60,6 @@ public class RegistrationController : MonoBehaviour private string _parentEmail; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParentEmail m_OnParentEmail; - public string parentEmail { get @@ -82,31 +76,7 @@ public class RegistrationController : MonoBehaviour } } - public event HandleParentEmail OnParentEmail - { - add - { - HandleParentEmail handleParentEmail = this.m_OnParentEmail; - HandleParentEmail handleParentEmail2; - do - { - handleParentEmail2 = handleParentEmail; - handleParentEmail = Interlocked.CompareExchange(ref this.m_OnParentEmail, (HandleParentEmail)Delegate.Combine(handleParentEmail2, value), handleParentEmail); - } - while (handleParentEmail != handleParentEmail2); - } - remove - { - HandleParentEmail handleParentEmail = this.m_OnParentEmail; - HandleParentEmail handleParentEmail2; - do - { - handleParentEmail2 = handleParentEmail; - handleParentEmail = Interlocked.CompareExchange(ref this.m_OnParentEmail, (HandleParentEmail)Delegate.Remove(handleParentEmail2, value), handleParentEmail); - } - while (handleParentEmail != handleParentEmail2); - } - } + public event HandleParentEmail OnParentEmail; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/SavedProject.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/SavedProject.cs index 4ae8cdd..b1cc927 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/SavedProject.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/SavedProject.cs @@ -1,7 +1,5 @@ using System; using System.Collections; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -42,189 +40,21 @@ public class SavedProject : MonoBehaviour, IBeginDragHandler, IDragHandler, IEnd private bool isScrolling; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleProjectSelect m_OnSelect; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDoubleTap m_OnDoubleTap; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDelete m_OnDelete; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleBeginDrag m_OnDragStart; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleEndDrag m_OnDragEnd; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDrag m_OnDragging; - private bool initComplete; public UnityEngine.Object libraryItemPrefab; - public event HandleProjectSelect OnSelect - { - add - { - HandleProjectSelect handleProjectSelect = this.m_OnSelect; - HandleProjectSelect handleProjectSelect2; - do - { - handleProjectSelect2 = handleProjectSelect; - handleProjectSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleProjectSelect)Delegate.Combine(handleProjectSelect2, value), handleProjectSelect); - } - while (handleProjectSelect != handleProjectSelect2); - } - remove - { - HandleProjectSelect handleProjectSelect = this.m_OnSelect; - HandleProjectSelect handleProjectSelect2; - do - { - handleProjectSelect2 = handleProjectSelect; - handleProjectSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleProjectSelect)Delegate.Remove(handleProjectSelect2, value), handleProjectSelect); - } - while (handleProjectSelect != handleProjectSelect2); - } - } + public event HandleProjectSelect OnSelect; - public event HandleDoubleTap OnDoubleTap - { - add - { - HandleDoubleTap handleDoubleTap = this.m_OnDoubleTap; - HandleDoubleTap handleDoubleTap2; - do - { - handleDoubleTap2 = handleDoubleTap; - handleDoubleTap = Interlocked.CompareExchange(ref this.m_OnDoubleTap, (HandleDoubleTap)Delegate.Combine(handleDoubleTap2, value), handleDoubleTap); - } - while (handleDoubleTap != handleDoubleTap2); - } - remove - { - HandleDoubleTap handleDoubleTap = this.m_OnDoubleTap; - HandleDoubleTap handleDoubleTap2; - do - { - handleDoubleTap2 = handleDoubleTap; - handleDoubleTap = Interlocked.CompareExchange(ref this.m_OnDoubleTap, (HandleDoubleTap)Delegate.Remove(handleDoubleTap2, value), handleDoubleTap); - } - while (handleDoubleTap != handleDoubleTap2); - } - } + public event HandleDoubleTap OnDoubleTap; - public event HandleDelete OnDelete - { - add - { - HandleDelete handleDelete = this.m_OnDelete; - HandleDelete handleDelete2; - do - { - handleDelete2 = handleDelete; - handleDelete = Interlocked.CompareExchange(ref this.m_OnDelete, (HandleDelete)Delegate.Combine(handleDelete2, value), handleDelete); - } - while (handleDelete != handleDelete2); - } - remove - { - HandleDelete handleDelete = this.m_OnDelete; - HandleDelete handleDelete2; - do - { - handleDelete2 = handleDelete; - handleDelete = Interlocked.CompareExchange(ref this.m_OnDelete, (HandleDelete)Delegate.Remove(handleDelete2, value), handleDelete); - } - while (handleDelete != handleDelete2); - } - } + public event HandleDelete OnDelete; - public event HandleBeginDrag OnDragStart - { - add - { - HandleBeginDrag handleBeginDrag = this.m_OnDragStart; - HandleBeginDrag handleBeginDrag2; - do - { - handleBeginDrag2 = handleBeginDrag; - handleBeginDrag = Interlocked.CompareExchange(ref this.m_OnDragStart, (HandleBeginDrag)Delegate.Combine(handleBeginDrag2, value), handleBeginDrag); - } - while (handleBeginDrag != handleBeginDrag2); - } - remove - { - HandleBeginDrag handleBeginDrag = this.m_OnDragStart; - HandleBeginDrag handleBeginDrag2; - do - { - handleBeginDrag2 = handleBeginDrag; - handleBeginDrag = Interlocked.CompareExchange(ref this.m_OnDragStart, (HandleBeginDrag)Delegate.Remove(handleBeginDrag2, value), handleBeginDrag); - } - while (handleBeginDrag != handleBeginDrag2); - } - } + public event HandleBeginDrag OnDragStart; - public event HandleEndDrag OnDragEnd - { - add - { - HandleEndDrag handleEndDrag = this.m_OnDragEnd; - HandleEndDrag handleEndDrag2; - do - { - handleEndDrag2 = handleEndDrag; - handleEndDrag = Interlocked.CompareExchange(ref this.m_OnDragEnd, (HandleEndDrag)Delegate.Combine(handleEndDrag2, value), handleEndDrag); - } - while (handleEndDrag != handleEndDrag2); - } - remove - { - HandleEndDrag handleEndDrag = this.m_OnDragEnd; - HandleEndDrag handleEndDrag2; - do - { - handleEndDrag2 = handleEndDrag; - handleEndDrag = Interlocked.CompareExchange(ref this.m_OnDragEnd, (HandleEndDrag)Delegate.Remove(handleEndDrag2, value), handleEndDrag); - } - while (handleEndDrag != handleEndDrag2); - } - } + public event HandleEndDrag OnDragEnd; - public event HandleDrag OnDragging - { - add - { - HandleDrag handleDrag = this.m_OnDragging; - HandleDrag handleDrag2; - do - { - handleDrag2 = handleDrag; - handleDrag = Interlocked.CompareExchange(ref this.m_OnDragging, (HandleDrag)Delegate.Combine(handleDrag2, value), handleDrag); - } - while (handleDrag != handleDrag2); - } - remove - { - HandleDrag handleDrag = this.m_OnDragging; - HandleDrag handleDrag2; - do - { - handleDrag2 = handleDrag; - handleDrag = Interlocked.CompareExchange(ref this.m_OnDragging, (HandleDrag)Delegate.Remove(handleDrag2, value), handleDrag); - } - while (handleDrag != handleDrag2); - } - } + public event HandleDrag OnDragging; public void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/ScrollSnap.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/ScrollSnap.cs index 97dd3ca..f197dc9 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/ScrollSnap.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/ScrollSnap.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; using UnityEngine.UI; @@ -32,35 +30,7 @@ public class ScrollSnap : MonoBehaviour [Tooltip("Snap vertically")] public bool snapInV = true; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleSnap m_OnSnap; - - public event HandleSnap OnSnap - { - add - { - HandleSnap handleSnap = this.m_OnSnap; - HandleSnap handleSnap2; - do - { - handleSnap2 = handleSnap; - handleSnap = Interlocked.CompareExchange(ref this.m_OnSnap, (HandleSnap)Delegate.Combine(handleSnap2, value), handleSnap); - } - while (handleSnap != handleSnap2); - } - remove - { - HandleSnap handleSnap = this.m_OnSnap; - HandleSnap handleSnap2; - do - { - handleSnap2 = handleSnap; - handleSnap = Interlocked.CompareExchange(ref this.m_OnSnap, (HandleSnap)Delegate.Remove(handleSnap2, value), handleSnap); - } - while (handleSnap != handleSnap2); - } - } + public event HandleSnap OnSnap; private void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/SequentialMenu.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/SequentialMenu.cs index c133c89..7d4a305 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/SequentialMenu.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/SequentialMenu.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -25,35 +23,7 @@ public class SequentialMenu : MonoBehaviour public bool canProgress; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleAnimation m_OnAnimationEnd; - - public event HandleAnimation OnAnimationEnd - { - add - { - HandleAnimation handleAnimation = this.m_OnAnimationEnd; - HandleAnimation handleAnimation2; - do - { - handleAnimation2 = handleAnimation; - handleAnimation = Interlocked.CompareExchange(ref this.m_OnAnimationEnd, (HandleAnimation)Delegate.Combine(handleAnimation2, value), handleAnimation); - } - while (handleAnimation != handleAnimation2); - } - remove - { - HandleAnimation handleAnimation = this.m_OnAnimationEnd; - HandleAnimation handleAnimation2; - do - { - handleAnimation2 = handleAnimation; - handleAnimation = Interlocked.CompareExchange(ref this.m_OnAnimationEnd, (HandleAnimation)Delegate.Remove(handleAnimation2, value), handleAnimation); - } - while (handleAnimation != handleAnimation2); - } - } + public event HandleAnimation OnAnimationEnd; public void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/ThemeBuilderJob.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/ThemeBuilderJob.cs index 3a80df2..66d9b0c 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/ThemeBuilderJob.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/ThemeBuilderJob.cs @@ -16,35 +16,7 @@ public class ThemeBuilderJob : ThreadedJob public Dictionary[] themes; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleParseComplete m_OnComplete; - - public event HandleParseComplete OnComplete - { - add - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Combine(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - remove - { - HandleParseComplete handleParseComplete = this.m_OnComplete; - HandleParseComplete handleParseComplete2; - do - { - handleParseComplete2 = handleParseComplete; - handleParseComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleParseComplete)Delegate.Remove(handleParseComplete2, value), handleParseComplete); - } - while (handleParseComplete != handleParseComplete2); - } - } + public event HandleParseComplete OnComplete; protected override void ThreadFunction() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/ThreadAction.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/ThreadAction.cs index 96d1ce6..3675103 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/ThreadAction.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/ThreadAction.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; public class ThreadAction : ThreadedJob @@ -11,35 +9,7 @@ public class ThreadAction : ThreadedJob public Action action; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleComplete m_OnComplete; - - public event HandleComplete OnComplete - { - add - { - HandleComplete handleComplete = this.m_OnComplete; - HandleComplete handleComplete2; - do - { - handleComplete2 = handleComplete; - handleComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleComplete)Delegate.Combine(handleComplete2, value), handleComplete); - } - while (handleComplete != handleComplete2); - } - remove - { - HandleComplete handleComplete = this.m_OnComplete; - HandleComplete handleComplete2; - do - { - handleComplete2 = handleComplete; - handleComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleComplete)Delegate.Remove(handleComplete2, value), handleComplete); - } - while (handleComplete != handleComplete2); - } - } + public event HandleComplete OnComplete; public ThreadAction(Action _action) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIAnimationFrameRate.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIAnimationFrameRate.cs index 17b8635..e90d37e 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIAnimationFrameRate.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIAnimationFrameRate.cs @@ -1,7 +1,5 @@ using System; using System.Collections; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -13,37 +11,9 @@ public class UIAnimationFrameRate : UIValueAdjust private static string _saveDelayName = "FrameRateSaveDelay"; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleRateChange m_OnChange; - public bool hasSetFrameRate; - public event HandleRateChange OnChange - { - add - { - HandleRateChange handleRateChange = this.m_OnChange; - HandleRateChange handleRateChange2; - do - { - handleRateChange2 = handleRateChange; - handleRateChange = Interlocked.CompareExchange(ref this.m_OnChange, (HandleRateChange)Delegate.Combine(handleRateChange2, value), handleRateChange); - } - while (handleRateChange != handleRateChange2); - } - remove - { - HandleRateChange handleRateChange = this.m_OnChange; - HandleRateChange handleRateChange2; - do - { - handleRateChange2 = handleRateChange; - handleRateChange = Interlocked.CompareExchange(ref this.m_OnChange, (HandleRateChange)Delegate.Remove(handleRateChange2, value), handleRateChange); - } - while (handleRateChange != handleRateChange2); - } - } + public event HandleRateChange OnChange; private new void OnEnable() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIAvatarSelector.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIAvatarSelector.cs index 3d0eeee..29c252e 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIAvatarSelector.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIAvatarSelector.cs @@ -1,7 +1,5 @@ using System; using System.Collections; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -28,35 +26,7 @@ public class UIAvatarSelector : MonoBehaviour private CoverBoard _cover; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleToggle m_OnToggle; - - public event HandleToggle OnToggle - { - add - { - HandleToggle handleToggle = this.m_OnToggle; - HandleToggle handleToggle2; - do - { - handleToggle2 = handleToggle; - handleToggle = Interlocked.CompareExchange(ref this.m_OnToggle, (HandleToggle)Delegate.Combine(handleToggle2, value), handleToggle); - } - while (handleToggle != handleToggle2); - } - remove - { - HandleToggle handleToggle = this.m_OnToggle; - HandleToggle handleToggle2; - do - { - handleToggle2 = handleToggle; - handleToggle = Interlocked.CompareExchange(ref this.m_OnToggle, (HandleToggle)Delegate.Remove(handleToggle2, value), handleToggle); - } - while (handleToggle != handleToggle2); - } - } + public event HandleToggle OnToggle; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIBrain.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIBrain.cs index 7bd3359..ef5b579 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIBrain.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIBrain.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -24,95 +22,11 @@ public class UIBrain : UIDraggable public bool isVisible; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleBrainDragStart m_OnBrainDragStart; + public event HandleBrainDragStart OnBrainDragStart; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleBrainDragEnd m_OnBrainDragEnd; + public event HandleBrainDragEnd OnBrainDragEnd; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleBrainDragDrop m_OnBrainDragDrop; - - public event HandleBrainDragStart OnBrainDragStart - { - add - { - HandleBrainDragStart handleBrainDragStart = this.m_OnBrainDragStart; - HandleBrainDragStart handleBrainDragStart2; - do - { - handleBrainDragStart2 = handleBrainDragStart; - handleBrainDragStart = Interlocked.CompareExchange(ref this.m_OnBrainDragStart, (HandleBrainDragStart)Delegate.Combine(handleBrainDragStart2, value), handleBrainDragStart); - } - while (handleBrainDragStart != handleBrainDragStart2); - } - remove - { - HandleBrainDragStart handleBrainDragStart = this.m_OnBrainDragStart; - HandleBrainDragStart handleBrainDragStart2; - do - { - handleBrainDragStart2 = handleBrainDragStart; - handleBrainDragStart = Interlocked.CompareExchange(ref this.m_OnBrainDragStart, (HandleBrainDragStart)Delegate.Remove(handleBrainDragStart2, value), handleBrainDragStart); - } - while (handleBrainDragStart != handleBrainDragStart2); - } - } - - public event HandleBrainDragEnd OnBrainDragEnd - { - add - { - HandleBrainDragEnd handleBrainDragEnd = this.m_OnBrainDragEnd; - HandleBrainDragEnd handleBrainDragEnd2; - do - { - handleBrainDragEnd2 = handleBrainDragEnd; - handleBrainDragEnd = Interlocked.CompareExchange(ref this.m_OnBrainDragEnd, (HandleBrainDragEnd)Delegate.Combine(handleBrainDragEnd2, value), handleBrainDragEnd); - } - while (handleBrainDragEnd != handleBrainDragEnd2); - } - remove - { - HandleBrainDragEnd handleBrainDragEnd = this.m_OnBrainDragEnd; - HandleBrainDragEnd handleBrainDragEnd2; - do - { - handleBrainDragEnd2 = handleBrainDragEnd; - handleBrainDragEnd = Interlocked.CompareExchange(ref this.m_OnBrainDragEnd, (HandleBrainDragEnd)Delegate.Remove(handleBrainDragEnd2, value), handleBrainDragEnd); - } - while (handleBrainDragEnd != handleBrainDragEnd2); - } - } - - public event HandleBrainDragDrop OnBrainDragDrop - { - add - { - HandleBrainDragDrop handleBrainDragDrop = this.m_OnBrainDragDrop; - HandleBrainDragDrop handleBrainDragDrop2; - do - { - handleBrainDragDrop2 = handleBrainDragDrop; - handleBrainDragDrop = Interlocked.CompareExchange(ref this.m_OnBrainDragDrop, (HandleBrainDragDrop)Delegate.Combine(handleBrainDragDrop2, value), handleBrainDragDrop); - } - while (handleBrainDragDrop != handleBrainDragDrop2); - } - remove - { - HandleBrainDragDrop handleBrainDragDrop = this.m_OnBrainDragDrop; - HandleBrainDragDrop handleBrainDragDrop2; - do - { - handleBrainDragDrop2 = handleBrainDragDrop; - handleBrainDragDrop = Interlocked.CompareExchange(ref this.m_OnBrainDragDrop, (HandleBrainDragDrop)Delegate.Remove(handleBrainDragDrop2, value), handleBrainDragDrop); - } - while (handleBrainDragDrop != handleBrainDragDrop2); - } - } + public event HandleBrainDragDrop OnBrainDragDrop; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIBrainDisplay.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIBrainDisplay.cs index 24f54b1..49eeb4e 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIBrainDisplay.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIBrainDisplay.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -14,35 +12,7 @@ public class UIBrainDisplay : MonoBehaviour public UIButton uiButton; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleSelect m_OnSelect; - - public event HandleSelect OnSelect - { - add - { - HandleSelect handleSelect = this.m_OnSelect; - HandleSelect handleSelect2; - do - { - handleSelect2 = handleSelect; - handleSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleSelect)Delegate.Combine(handleSelect2, value), handleSelect); - } - while (handleSelect != handleSelect2); - } - remove - { - HandleSelect handleSelect = this.m_OnSelect; - HandleSelect handleSelect2; - do - { - handleSelect2 = handleSelect; - handleSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleSelect)Delegate.Remove(handleSelect2, value), handleSelect); - } - while (handleSelect != handleSelect2); - } - } + public event HandleSelect OnSelect; private void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIButton.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIButton.cs index a875a4f..80ff3d1 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIButton.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIButton.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using TMPro; @@ -78,34 +76,6 @@ public class UIButton : MonoBehaviour, IPointerDownHandler, IPointerEnterHandler [Header("Gem Lock")] public UIGemLock uiGemLock; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleClick m_OnClick; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleEnter m_OnEnter; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleExit m_OnExit; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDown m_OnDown; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleUp m_OnUp; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleToggle m_OnToggle; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleGemLock m_OnGemLock; - public bool interactable { get @@ -130,187 +100,19 @@ public class UIButton : MonoBehaviour, IPointerDownHandler, IPointerEnterHandler } } - public event HandleClick OnClick - { - add - { - HandleClick handleClick = this.m_OnClick; - HandleClick handleClick2; - do - { - handleClick2 = handleClick; - handleClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleClick)Delegate.Combine(handleClick2, value), handleClick); - } - while (handleClick != handleClick2); - } - remove - { - HandleClick handleClick = this.m_OnClick; - HandleClick handleClick2; - do - { - handleClick2 = handleClick; - handleClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleClick)Delegate.Remove(handleClick2, value), handleClick); - } - while (handleClick != handleClick2); - } - } + public event HandleClick OnClick; - public event HandleEnter OnEnter - { - add - { - HandleEnter handleEnter = this.m_OnEnter; - HandleEnter handleEnter2; - do - { - handleEnter2 = handleEnter; - handleEnter = Interlocked.CompareExchange(ref this.m_OnEnter, (HandleEnter)Delegate.Combine(handleEnter2, value), handleEnter); - } - while (handleEnter != handleEnter2); - } - remove - { - HandleEnter handleEnter = this.m_OnEnter; - HandleEnter handleEnter2; - do - { - handleEnter2 = handleEnter; - handleEnter = Interlocked.CompareExchange(ref this.m_OnEnter, (HandleEnter)Delegate.Remove(handleEnter2, value), handleEnter); - } - while (handleEnter != handleEnter2); - } - } + public event HandleEnter OnEnter; - public event HandleExit OnExit - { - add - { - HandleExit handleExit = this.m_OnExit; - HandleExit handleExit2; - do - { - handleExit2 = handleExit; - handleExit = Interlocked.CompareExchange(ref this.m_OnExit, (HandleExit)Delegate.Combine(handleExit2, value), handleExit); - } - while (handleExit != handleExit2); - } - remove - { - HandleExit handleExit = this.m_OnExit; - HandleExit handleExit2; - do - { - handleExit2 = handleExit; - handleExit = Interlocked.CompareExchange(ref this.m_OnExit, (HandleExit)Delegate.Remove(handleExit2, value), handleExit); - } - while (handleExit != handleExit2); - } - } + public event HandleExit OnExit; - public event HandleDown OnDown - { - add - { - HandleDown handleDown = this.m_OnDown; - HandleDown handleDown2; - do - { - handleDown2 = handleDown; - handleDown = Interlocked.CompareExchange(ref this.m_OnDown, (HandleDown)Delegate.Combine(handleDown2, value), handleDown); - } - while (handleDown != handleDown2); - } - remove - { - HandleDown handleDown = this.m_OnDown; - HandleDown handleDown2; - do - { - handleDown2 = handleDown; - handleDown = Interlocked.CompareExchange(ref this.m_OnDown, (HandleDown)Delegate.Remove(handleDown2, value), handleDown); - } - while (handleDown != handleDown2); - } - } + public event HandleDown OnDown; - public event HandleUp OnUp - { - add - { - HandleUp handleUp = this.m_OnUp; - HandleUp handleUp2; - do - { - handleUp2 = handleUp; - handleUp = Interlocked.CompareExchange(ref this.m_OnUp, (HandleUp)Delegate.Combine(handleUp2, value), handleUp); - } - while (handleUp != handleUp2); - } - remove - { - HandleUp handleUp = this.m_OnUp; - HandleUp handleUp2; - do - { - handleUp2 = handleUp; - handleUp = Interlocked.CompareExchange(ref this.m_OnUp, (HandleUp)Delegate.Remove(handleUp2, value), handleUp); - } - while (handleUp != handleUp2); - } - } + public event HandleUp OnUp; - public event HandleToggle OnToggle - { - add - { - HandleToggle handleToggle = this.m_OnToggle; - HandleToggle handleToggle2; - do - { - handleToggle2 = handleToggle; - handleToggle = Interlocked.CompareExchange(ref this.m_OnToggle, (HandleToggle)Delegate.Combine(handleToggle2, value), handleToggle); - } - while (handleToggle != handleToggle2); - } - remove - { - HandleToggle handleToggle = this.m_OnToggle; - HandleToggle handleToggle2; - do - { - handleToggle2 = handleToggle; - handleToggle = Interlocked.CompareExchange(ref this.m_OnToggle, (HandleToggle)Delegate.Remove(handleToggle2, value), handleToggle); - } - while (handleToggle != handleToggle2); - } - } + public event HandleToggle OnToggle; - public event HandleGemLock OnGemLock - { - add - { - HandleGemLock handleGemLock = this.m_OnGemLock; - HandleGemLock handleGemLock2; - do - { - handleGemLock2 = handleGemLock; - handleGemLock = Interlocked.CompareExchange(ref this.m_OnGemLock, (HandleGemLock)Delegate.Combine(handleGemLock2, value), handleGemLock); - } - while (handleGemLock != handleGemLock2); - } - remove - { - HandleGemLock handleGemLock = this.m_OnGemLock; - HandleGemLock handleGemLock2; - do - { - handleGemLock2 = handleGemLock; - handleGemLock = Interlocked.CompareExchange(ref this.m_OnGemLock, (HandleGemLock)Delegate.Remove(handleGemLock2, value), handleGemLock); - } - while (handleGemLock != handleGemLock2); - } - } + public event HandleGemLock OnGemLock; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIButtonGroup.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIButtonGroup.cs index 7f5766f..84bdbd7 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIButtonGroup.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIButtonGroup.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -14,35 +12,7 @@ public class UIButtonGroup : MonoBehaviour public int startingIndex; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleChange m_OnChange; - - public event HandleChange OnChange - { - add - { - HandleChange handleChange = this.m_OnChange; - HandleChange handleChange2; - do - { - handleChange2 = handleChange; - handleChange = Interlocked.CompareExchange(ref this.m_OnChange, (HandleChange)Delegate.Combine(handleChange2, value), handleChange); - } - while (handleChange != handleChange2); - } - remove - { - HandleChange handleChange = this.m_OnChange; - HandleChange handleChange2; - do - { - handleChange2 = handleChange; - handleChange = Interlocked.CompareExchange(ref this.m_OnChange, (HandleChange)Delegate.Remove(handleChange2, value), handleChange); - } - while (handleChange != handleChange2); - } - } + public event HandleChange OnChange; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UICaptureFlipToggle.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UICaptureFlipToggle.cs index 6a1d62d..4ddfd30 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UICaptureFlipToggle.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UICaptureFlipToggle.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; using UnityEngine.EventSystems; @@ -20,35 +18,7 @@ public class UICaptureFlipToggle : MonoBehaviour, IPointerDownHandler, IEventSys private UIButton _uiButtonHandle; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleToggle m_OnToggle; - - public event HandleToggle OnToggle - { - add - { - HandleToggle handleToggle = this.m_OnToggle; - HandleToggle handleToggle2; - do - { - handleToggle2 = handleToggle; - handleToggle = Interlocked.CompareExchange(ref this.m_OnToggle, (HandleToggle)Delegate.Combine(handleToggle2, value), handleToggle); - } - while (handleToggle != handleToggle2); - } - remove - { - HandleToggle handleToggle = this.m_OnToggle; - HandleToggle handleToggle2; - do - { - handleToggle2 = handleToggle; - handleToggle = Interlocked.CompareExchange(ref this.m_OnToggle, (HandleToggle)Delegate.Remove(handleToggle2, value), handleToggle); - } - while (handleToggle != handleToggle2); - } - } + public event HandleToggle OnToggle; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UICaptureModeToggle.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UICaptureModeToggle.cs index c0692c5..1546191 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UICaptureModeToggle.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UICaptureModeToggle.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -31,35 +29,7 @@ public class UICaptureModeToggle : MonoBehaviour, IPointerDownHandler, IEventSys private UIButton _uiButtonHandle; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleToggle m_OnToggle; - - public event HandleToggle OnToggle - { - add - { - HandleToggle handleToggle = this.m_OnToggle; - HandleToggle handleToggle2; - do - { - handleToggle2 = handleToggle; - handleToggle = Interlocked.CompareExchange(ref this.m_OnToggle, (HandleToggle)Delegate.Combine(handleToggle2, value), handleToggle); - } - while (handleToggle != handleToggle2); - } - remove - { - HandleToggle handleToggle = this.m_OnToggle; - HandleToggle handleToggle2; - do - { - handleToggle2 = handleToggle; - handleToggle = Interlocked.CompareExchange(ref this.m_OnToggle, (HandleToggle)Delegate.Remove(handleToggle2, value), handleToggle); - } - while (handleToggle != handleToggle2); - } - } + public event HandleToggle OnToggle; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIChallengeHeader.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIChallengeHeader.cs index d6168e4..726cd90 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIChallengeHeader.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIChallengeHeader.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using TMPro; @@ -37,65 +35,9 @@ public class UIChallengeHeader : MonoBehaviour public ParticleSystem ps; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnQuit m_OnQuit; + public event HandleOnQuit OnQuit; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleInfo m_OnInfo; - - public event HandleOnQuit OnQuit - { - add - { - HandleOnQuit handleOnQuit = this.m_OnQuit; - HandleOnQuit handleOnQuit2; - do - { - handleOnQuit2 = handleOnQuit; - handleOnQuit = Interlocked.CompareExchange(ref this.m_OnQuit, (HandleOnQuit)Delegate.Combine(handleOnQuit2, value), handleOnQuit); - } - while (handleOnQuit != handleOnQuit2); - } - remove - { - HandleOnQuit handleOnQuit = this.m_OnQuit; - HandleOnQuit handleOnQuit2; - do - { - handleOnQuit2 = handleOnQuit; - handleOnQuit = Interlocked.CompareExchange(ref this.m_OnQuit, (HandleOnQuit)Delegate.Remove(handleOnQuit2, value), handleOnQuit); - } - while (handleOnQuit != handleOnQuit2); - } - } - - public event HandleInfo OnInfo - { - add - { - HandleInfo handleInfo = this.m_OnInfo; - HandleInfo handleInfo2; - do - { - handleInfo2 = handleInfo; - handleInfo = Interlocked.CompareExchange(ref this.m_OnInfo, (HandleInfo)Delegate.Combine(handleInfo2, value), handleInfo); - } - while (handleInfo != handleInfo2); - } - remove - { - HandleInfo handleInfo = this.m_OnInfo; - HandleInfo handleInfo2; - do - { - handleInfo2 = handleInfo; - handleInfo = Interlocked.CompareExchange(ref this.m_OnInfo, (HandleInfo)Delegate.Remove(handleInfo2, value), handleInfo); - } - while (handleInfo != handleInfo2); - } - } + public event HandleInfo OnInfo; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIChallengeItem.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIChallengeItem.cs index 37293ed..3cc1021 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIChallengeItem.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIChallengeItem.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using TMPro; @@ -24,38 +22,10 @@ public class UIChallengeItem : MonoBehaviour private Image _uiImageBadge; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleSelect m_OnSelect; - [Header("State Tracking")] public bool interactable; - public event HandleSelect OnSelect - { - add - { - HandleSelect handleSelect = this.m_OnSelect; - HandleSelect handleSelect2; - do - { - handleSelect2 = handleSelect; - handleSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleSelect)Delegate.Combine(handleSelect2, value), handleSelect); - } - while (handleSelect != handleSelect2); - } - remove - { - HandleSelect handleSelect = this.m_OnSelect; - HandleSelect handleSelect2; - do - { - handleSelect2 = handleSelect; - handleSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleSelect)Delegate.Remove(handleSelect2, value), handleSelect); - } - while (handleSelect != handleSelect2); - } - } + public event HandleSelect OnSelect; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UICharacterStateSelect.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UICharacterStateSelect.cs index aadd37e..5fb78b4 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UICharacterStateSelect.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UICharacterStateSelect.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; using UnityEngine.UI; @@ -19,35 +17,7 @@ public class UICharacterStateSelect : MonoBehaviour public Color inactiveColor; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleStateSelect m_OnSelect; - - public event HandleStateSelect OnSelect - { - add - { - HandleStateSelect handleStateSelect = this.m_OnSelect; - HandleStateSelect handleStateSelect2; - do - { - handleStateSelect2 = handleStateSelect; - handleStateSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleStateSelect)Delegate.Combine(handleStateSelect2, value), handleStateSelect); - } - while (handleStateSelect != handleStateSelect2); - } - remove - { - HandleStateSelect handleStateSelect = this.m_OnSelect; - HandleStateSelect handleStateSelect2; - do - { - handleStateSelect2 = handleStateSelect; - handleStateSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleStateSelect)Delegate.Remove(handleStateSelect2, value), handleStateSelect); - } - while (handleStateSelect != handleStateSelect2); - } - } + public event HandleStateSelect OnSelect; private void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIColorBlock.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIColorBlock.cs index 5883da2..d12cd15 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIColorBlock.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIColorBlock.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine.UI; @@ -16,35 +14,7 @@ public class UIColorBlock : UIInteractable public PaletteColor paletteColor; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleClick m_OnPress; - - public event HandleClick OnPress - { - add - { - HandleClick handleClick = this.m_OnPress; - HandleClick handleClick2; - do - { - handleClick2 = handleClick; - handleClick = Interlocked.CompareExchange(ref this.m_OnPress, (HandleClick)Delegate.Combine(handleClick2, value), handleClick); - } - while (handleClick != handleClick2); - } - remove - { - HandleClick handleClick = this.m_OnPress; - HandleClick handleClick2; - do - { - handleClick2 = handleClick; - handleClick = Interlocked.CompareExchange(ref this.m_OnPress, (HandleClick)Delegate.Remove(handleClick2, value), handleClick); - } - while (handleClick != handleClick2); - } - } + public event HandleClick OnPress; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIColorPicker.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIColorPicker.cs index c734d99..6f4f9c3 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIColorPicker.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIColorPicker.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; -using System.Runtime.CompilerServices; using System.Threading; using EnhancedUI.EnhancedScroller; using UnityEngine; @@ -19,35 +17,7 @@ public class UIColorPicker : UIScrollTipController, IEnhancedScrollerDelegate private UIPopupGemUnlock _popup; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleColorSelect m_OnColorSelect; - - public event HandleColorSelect OnColorSelect - { - add - { - HandleColorSelect handleColorSelect = this.m_OnColorSelect; - HandleColorSelect handleColorSelect2; - do - { - handleColorSelect2 = handleColorSelect; - handleColorSelect = Interlocked.CompareExchange(ref this.m_OnColorSelect, (HandleColorSelect)Delegate.Combine(handleColorSelect2, value), handleColorSelect); - } - while (handleColorSelect != handleColorSelect2); - } - remove - { - HandleColorSelect handleColorSelect = this.m_OnColorSelect; - HandleColorSelect handleColorSelect2; - do - { - handleColorSelect2 = handleColorSelect; - handleColorSelect = Interlocked.CompareExchange(ref this.m_OnColorSelect, (HandleColorSelect)Delegate.Remove(handleColorSelect2, value), handleColorSelect); - } - while (handleColorSelect != handleColorSelect2); - } - } + public event HandleColorSelect OnColorSelect; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIColorScrollElement.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIColorScrollElement.cs index 2e9c187..8fe6d41 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIColorScrollElement.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIColorScrollElement.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using EnhancedUI.EnhancedScroller; @@ -23,35 +21,7 @@ public class UIColorScrollElement : EnhancedScrollerCellView public Image uiImageLogo; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnClick m_OnClick; - - public event HandleOnClick OnClick - { - add - { - HandleOnClick handleOnClick = this.m_OnClick; - HandleOnClick handleOnClick2; - do - { - handleOnClick2 = handleOnClick; - handleOnClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleOnClick)Delegate.Combine(handleOnClick2, value), handleOnClick); - } - while (handleOnClick != handleOnClick2); - } - remove - { - HandleOnClick handleOnClick = this.m_OnClick; - HandleOnClick handleOnClick2; - do - { - handleOnClick2 = handleOnClick; - handleOnClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleOnClick)Delegate.Remove(handleOnClick2, value), handleOnClick); - } - while (handleOnClick != handleOnClick2); - } - } + public event HandleOnClick OnClick; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIDraggable.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIDraggable.cs index 708c46f..b75cccc 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIDraggable.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIDraggable.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; using UnityEngine.EventSystems; @@ -19,125 +17,13 @@ public class UIDraggable : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndD public bool isDragging; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleBeginDrag m_OnDragStart; + public event HandleBeginDrag OnDragStart; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleEndDrag m_OnDragEnd; + public event HandleEndDrag OnDragEnd; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDrag m_OnDragging; + public event HandleDrag OnDragging; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDrop m_OnDropped; - - public event HandleBeginDrag OnDragStart - { - add - { - HandleBeginDrag handleBeginDrag = this.m_OnDragStart; - HandleBeginDrag handleBeginDrag2; - do - { - handleBeginDrag2 = handleBeginDrag; - handleBeginDrag = Interlocked.CompareExchange(ref this.m_OnDragStart, (HandleBeginDrag)Delegate.Combine(handleBeginDrag2, value), handleBeginDrag); - } - while (handleBeginDrag != handleBeginDrag2); - } - remove - { - HandleBeginDrag handleBeginDrag = this.m_OnDragStart; - HandleBeginDrag handleBeginDrag2; - do - { - handleBeginDrag2 = handleBeginDrag; - handleBeginDrag = Interlocked.CompareExchange(ref this.m_OnDragStart, (HandleBeginDrag)Delegate.Remove(handleBeginDrag2, value), handleBeginDrag); - } - while (handleBeginDrag != handleBeginDrag2); - } - } - - public event HandleEndDrag OnDragEnd - { - add - { - HandleEndDrag handleEndDrag = this.m_OnDragEnd; - HandleEndDrag handleEndDrag2; - do - { - handleEndDrag2 = handleEndDrag; - handleEndDrag = Interlocked.CompareExchange(ref this.m_OnDragEnd, (HandleEndDrag)Delegate.Combine(handleEndDrag2, value), handleEndDrag); - } - while (handleEndDrag != handleEndDrag2); - } - remove - { - HandleEndDrag handleEndDrag = this.m_OnDragEnd; - HandleEndDrag handleEndDrag2; - do - { - handleEndDrag2 = handleEndDrag; - handleEndDrag = Interlocked.CompareExchange(ref this.m_OnDragEnd, (HandleEndDrag)Delegate.Remove(handleEndDrag2, value), handleEndDrag); - } - while (handleEndDrag != handleEndDrag2); - } - } - - public event HandleDrag OnDragging - { - add - { - HandleDrag handleDrag = this.m_OnDragging; - HandleDrag handleDrag2; - do - { - handleDrag2 = handleDrag; - handleDrag = Interlocked.CompareExchange(ref this.m_OnDragging, (HandleDrag)Delegate.Combine(handleDrag2, value), handleDrag); - } - while (handleDrag != handleDrag2); - } - remove - { - HandleDrag handleDrag = this.m_OnDragging; - HandleDrag handleDrag2; - do - { - handleDrag2 = handleDrag; - handleDrag = Interlocked.CompareExchange(ref this.m_OnDragging, (HandleDrag)Delegate.Remove(handleDrag2, value), handleDrag); - } - while (handleDrag != handleDrag2); - } - } - - public event HandleDrop OnDropped - { - add - { - HandleDrop handleDrop = this.m_OnDropped; - HandleDrop handleDrop2; - do - { - handleDrop2 = handleDrop; - handleDrop = Interlocked.CompareExchange(ref this.m_OnDropped, (HandleDrop)Delegate.Combine(handleDrop2, value), handleDrop); - } - while (handleDrop != handleDrop2); - } - remove - { - HandleDrop handleDrop = this.m_OnDropped; - HandleDrop handleDrop2; - do - { - handleDrop2 = handleDrop; - handleDrop = Interlocked.CompareExchange(ref this.m_OnDropped, (HandleDrop)Delegate.Remove(handleDrop2, value), handleDrop); - } - while (handleDrop != handleDrop2); - } - } + public event HandleDrop OnDropped; public void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIDropdownList.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIDropdownList.cs index 5a2ff52..5e4748a 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIDropdownList.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIDropdownList.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using TMPro; @@ -42,10 +40,6 @@ public class UIDropdownList : UIInteractable public List itemList; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleValueChange m_OnValueChange; - public int value { get @@ -58,31 +52,7 @@ public class UIDropdownList : UIInteractable } } - public event HandleValueChange OnValueChange - { - add - { - HandleValueChange handleValueChange = this.m_OnValueChange; - HandleValueChange handleValueChange2; - do - { - handleValueChange2 = handleValueChange; - handleValueChange = Interlocked.CompareExchange(ref this.m_OnValueChange, (HandleValueChange)Delegate.Combine(handleValueChange2, value), handleValueChange); - } - while (handleValueChange != handleValueChange2); - } - remove - { - HandleValueChange handleValueChange = this.m_OnValueChange; - HandleValueChange handleValueChange2; - do - { - handleValueChange2 = handleValueChange; - handleValueChange = Interlocked.CompareExchange(ref this.m_OnValueChange, (HandleValueChange)Delegate.Remove(handleValueChange2, value), handleValueChange); - } - while (handleValueChange != handleValueChange2); - } - } + public event HandleValueChange OnValueChange; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIGameBuilderSecondaryMode.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIGameBuilderSecondaryMode.cs index ff4a6ad..d32588d 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIGameBuilderSecondaryMode.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIGameBuilderSecondaryMode.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -23,10 +21,6 @@ public class UIGameBuilderSecondaryMode : MonoBehaviour, IPointerClickHandler, I public bool isOn; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnClick m_OnClick; - private RectTransform rect; public bool isVisible = true; @@ -37,31 +31,7 @@ public class UIGameBuilderSecondaryMode : MonoBehaviour, IPointerClickHandler, I private bool hasDeterminedPosition; - public event HandleOnClick OnClick - { - add - { - HandleOnClick handleOnClick = this.m_OnClick; - HandleOnClick handleOnClick2; - do - { - handleOnClick2 = handleOnClick; - handleOnClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleOnClick)Delegate.Combine(handleOnClick2, value), handleOnClick); - } - while (handleOnClick != handleOnClick2); - } - remove - { - HandleOnClick handleOnClick = this.m_OnClick; - HandleOnClick handleOnClick2; - do - { - handleOnClick2 = handleOnClick; - handleOnClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleOnClick)Delegate.Remove(handleOnClick2, value), handleOnClick); - } - while (handleOnClick != handleOnClick2); - } - } + public event HandleOnClick OnClick; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIGemLock.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIGemLock.cs index eb50196..be3f9c7 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIGemLock.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIGemLock.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -22,35 +20,7 @@ public class UIGemLock : MonoBehaviour private float _startingScale; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleGemUnlock m_OnUnlock; - - public event HandleGemUnlock OnUnlock - { - add - { - HandleGemUnlock handleGemUnlock = this.m_OnUnlock; - HandleGemUnlock handleGemUnlock2; - do - { - handleGemUnlock2 = handleGemUnlock; - handleGemUnlock = Interlocked.CompareExchange(ref this.m_OnUnlock, (HandleGemUnlock)Delegate.Combine(handleGemUnlock2, value), handleGemUnlock); - } - while (handleGemUnlock != handleGemUnlock2); - } - remove - { - HandleGemUnlock handleGemUnlock = this.m_OnUnlock; - HandleGemUnlock handleGemUnlock2; - do - { - handleGemUnlock2 = handleGemUnlock; - handleGemUnlock = Interlocked.CompareExchange(ref this.m_OnUnlock, (HandleGemUnlock)Delegate.Remove(handleGemUnlock2, value), handleGemUnlock); - } - while (handleGemUnlock != handleGemUnlock2); - } - } + public event HandleGemUnlock OnUnlock; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIHeroDisplay.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIHeroDisplay.cs index 3c3ee4c..fb0f479 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIHeroDisplay.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIHeroDisplay.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -14,35 +12,7 @@ public class UIHeroDisplay : MonoBehaviour public UIButton uiButton; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleSelect m_OnSelect; - - public event HandleSelect OnSelect - { - add - { - HandleSelect handleSelect = this.m_OnSelect; - HandleSelect handleSelect2; - do - { - handleSelect2 = handleSelect; - handleSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleSelect)Delegate.Combine(handleSelect2, value), handleSelect); - } - while (handleSelect != handleSelect2); - } - remove - { - HandleSelect handleSelect = this.m_OnSelect; - HandleSelect handleSelect2; - do - { - handleSelect2 = handleSelect; - handleSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleSelect)Delegate.Remove(handleSelect2, value), handleSelect); - } - while (handleSelect != handleSelect2); - } - } + public event HandleSelect OnSelect; private void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIInteractable.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIInteractable.cs index 92bef20..3b0196e 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIInteractable.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIInteractable.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; using UnityEngine.EventSystems; @@ -21,185 +19,17 @@ public class UIInteractable : MonoBehaviour, IPointerEnterHandler, IPointerExitH public RectTransform rectTransform; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleClick m_OnClick; + public event HandleClick OnClick; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleEnter m_OnEnter; + public event HandleEnter OnEnter; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleExit m_OnExit; + public event HandleExit OnExit; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDown m_OnDown; + public event HandleDown OnDown; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleUp m_OnUp; + public event HandleUp OnUp; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleSelect m_onSelect; - - public event HandleClick OnClick - { - add - { - HandleClick handleClick = this.m_OnClick; - HandleClick handleClick2; - do - { - handleClick2 = handleClick; - handleClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleClick)Delegate.Combine(handleClick2, value), handleClick); - } - while (handleClick != handleClick2); - } - remove - { - HandleClick handleClick = this.m_OnClick; - HandleClick handleClick2; - do - { - handleClick2 = handleClick; - handleClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleClick)Delegate.Remove(handleClick2, value), handleClick); - } - while (handleClick != handleClick2); - } - } - - public event HandleEnter OnEnter - { - add - { - HandleEnter handleEnter = this.m_OnEnter; - HandleEnter handleEnter2; - do - { - handleEnter2 = handleEnter; - handleEnter = Interlocked.CompareExchange(ref this.m_OnEnter, (HandleEnter)Delegate.Combine(handleEnter2, value), handleEnter); - } - while (handleEnter != handleEnter2); - } - remove - { - HandleEnter handleEnter = this.m_OnEnter; - HandleEnter handleEnter2; - do - { - handleEnter2 = handleEnter; - handleEnter = Interlocked.CompareExchange(ref this.m_OnEnter, (HandleEnter)Delegate.Remove(handleEnter2, value), handleEnter); - } - while (handleEnter != handleEnter2); - } - } - - public event HandleExit OnExit - { - add - { - HandleExit handleExit = this.m_OnExit; - HandleExit handleExit2; - do - { - handleExit2 = handleExit; - handleExit = Interlocked.CompareExchange(ref this.m_OnExit, (HandleExit)Delegate.Combine(handleExit2, value), handleExit); - } - while (handleExit != handleExit2); - } - remove - { - HandleExit handleExit = this.m_OnExit; - HandleExit handleExit2; - do - { - handleExit2 = handleExit; - handleExit = Interlocked.CompareExchange(ref this.m_OnExit, (HandleExit)Delegate.Remove(handleExit2, value), handleExit); - } - while (handleExit != handleExit2); - } - } - - public event HandleDown OnDown - { - add - { - HandleDown handleDown = this.m_OnDown; - HandleDown handleDown2; - do - { - handleDown2 = handleDown; - handleDown = Interlocked.CompareExchange(ref this.m_OnDown, (HandleDown)Delegate.Combine(handleDown2, value), handleDown); - } - while (handleDown != handleDown2); - } - remove - { - HandleDown handleDown = this.m_OnDown; - HandleDown handleDown2; - do - { - handleDown2 = handleDown; - handleDown = Interlocked.CompareExchange(ref this.m_OnDown, (HandleDown)Delegate.Remove(handleDown2, value), handleDown); - } - while (handleDown != handleDown2); - } - } - - public event HandleUp OnUp - { - add - { - HandleUp handleUp = this.m_OnUp; - HandleUp handleUp2; - do - { - handleUp2 = handleUp; - handleUp = Interlocked.CompareExchange(ref this.m_OnUp, (HandleUp)Delegate.Combine(handleUp2, value), handleUp); - } - while (handleUp != handleUp2); - } - remove - { - HandleUp handleUp = this.m_OnUp; - HandleUp handleUp2; - do - { - handleUp2 = handleUp; - handleUp = Interlocked.CompareExchange(ref this.m_OnUp, (HandleUp)Delegate.Remove(handleUp2, value), handleUp); - } - while (handleUp != handleUp2); - } - } - - public event HandleSelect onSelect - { - add - { - HandleSelect handleSelect = this.m_onSelect; - HandleSelect handleSelect2; - do - { - handleSelect2 = handleSelect; - handleSelect = Interlocked.CompareExchange(ref this.m_onSelect, (HandleSelect)Delegate.Combine(handleSelect2, value), handleSelect); - } - while (handleSelect != handleSelect2); - } - remove - { - HandleSelect handleSelect = this.m_onSelect; - HandleSelect handleSelect2; - do - { - handleSelect2 = handleSelect; - handleSelect = Interlocked.CompareExchange(ref this.m_onSelect, (HandleSelect)Delegate.Remove(handleSelect2, value), handleSelect); - } - while (handleSelect != handleSelect2); - } - } + public event HandleSelect onSelect; public void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIMenuPanel.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIMenuPanel.cs index 3c53306..cb41ad5 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIMenuPanel.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIMenuPanel.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -28,35 +26,7 @@ public class UIMenuPanel : MonoBehaviour private bool _overrideDismiss; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleInit m_OnInit; - - public event HandleInit OnInit - { - add - { - HandleInit handleInit = this.m_OnInit; - HandleInit handleInit2; - do - { - handleInit2 = handleInit; - handleInit = Interlocked.CompareExchange(ref this.m_OnInit, (HandleInit)Delegate.Combine(handleInit2, value), handleInit); - } - while (handleInit != handleInit2); - } - remove - { - HandleInit handleInit = this.m_OnInit; - HandleInit handleInit2; - do - { - handleInit2 = handleInit; - handleInit = Interlocked.CompareExchange(ref this.m_OnInit, (HandleInit)Delegate.Remove(handleInit2, value), handleInit); - } - while (handleInit != handleInit2); - } - } + public event HandleInit OnInit; public void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIMoveable.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIMoveable.cs index cebdf42..25cd348 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIMoveable.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIMoveable.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -18,35 +16,7 @@ public class UIMoveable : MonoBehaviour public bool isVisible; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleVisibilityChange m_OnVisibilityChange; - - public event HandleVisibilityChange OnVisibilityChange - { - add - { - HandleVisibilityChange handleVisibilityChange = this.m_OnVisibilityChange; - HandleVisibilityChange handleVisibilityChange2; - do - { - handleVisibilityChange2 = handleVisibilityChange; - handleVisibilityChange = Interlocked.CompareExchange(ref this.m_OnVisibilityChange, (HandleVisibilityChange)Delegate.Combine(handleVisibilityChange2, value), handleVisibilityChange); - } - while (handleVisibilityChange != handleVisibilityChange2); - } - remove - { - HandleVisibilityChange handleVisibilityChange = this.m_OnVisibilityChange; - HandleVisibilityChange handleVisibilityChange2; - do - { - handleVisibilityChange2 = handleVisibilityChange; - handleVisibilityChange = Interlocked.CompareExchange(ref this.m_OnVisibilityChange, (HandleVisibilityChange)Delegate.Remove(handleVisibilityChange2, value), handleVisibilityChange); - } - while (handleVisibilityChange != handleVisibilityChange2); - } - } + public event HandleVisibilityChange OnVisibilityChange; public void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIMusicChoice.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIMusicChoice.cs index 684228d..f9729d5 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIMusicChoice.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIMusicChoice.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; using UnityEngine.UI; @@ -21,10 +19,6 @@ public class UIMusicChoice : MonoBehaviour public MusicChoice choice; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandlePreview m_OnPreview; - public bool isPlaying { get @@ -41,31 +35,7 @@ public class UIMusicChoice : MonoBehaviour } } - public event HandlePreview OnPreview - { - add - { - HandlePreview handlePreview = this.m_OnPreview; - HandlePreview handlePreview2; - do - { - handlePreview2 = handlePreview; - handlePreview = Interlocked.CompareExchange(ref this.m_OnPreview, (HandlePreview)Delegate.Combine(handlePreview2, value), handlePreview); - } - while (handlePreview != handlePreview2); - } - remove - { - HandlePreview handlePreview = this.m_OnPreview; - HandlePreview handlePreview2; - do - { - handlePreview2 = handlePreview; - handlePreview = Interlocked.CompareExchange(ref this.m_OnPreview, (HandlePreview)Delegate.Remove(handlePreview2, value), handlePreview); - } - while (handlePreview != handlePreview2); - } - } + public event HandlePreview OnPreview; private void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIOverlayNavMenu.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIOverlayNavMenu.cs index 1996871..54b2f0d 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIOverlayNavMenu.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIOverlayNavMenu.cs @@ -1,8 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -48,39 +46,11 @@ public class UIOverlayNavMenu : MonoBehaviour private Dictionary buttonPositions; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDestroy m_onDestroy; - public GameObject earnPoultryPanicGemsLabels; public GameObject earnFeaturedGemsLabels; - public event HandleDestroy onDestroy - { - add - { - HandleDestroy handleDestroy = this.m_onDestroy; - HandleDestroy handleDestroy2; - do - { - handleDestroy2 = handleDestroy; - handleDestroy = Interlocked.CompareExchange(ref this.m_onDestroy, (HandleDestroy)Delegate.Combine(handleDestroy2, value), handleDestroy); - } - while (handleDestroy != handleDestroy2); - } - remove - { - HandleDestroy handleDestroy = this.m_onDestroy; - HandleDestroy handleDestroy2; - do - { - handleDestroy2 = handleDestroy; - handleDestroy = Interlocked.CompareExchange(ref this.m_onDestroy, (HandleDestroy)Delegate.Remove(handleDestroy2, value), handleDestroy); - } - while (handleDestroy != handleDestroy2); - } - } + public event HandleDestroy onDestroy; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopup.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopup.cs index 2cfdfe7..9a51c69 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopup.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopup.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -24,35 +22,7 @@ public class UIPopup : MonoBehaviour public RawImage overlay; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDestroy m_onDestroy; - - public event HandleDestroy onDestroy - { - add - { - HandleDestroy handleDestroy = this.m_onDestroy; - HandleDestroy handleDestroy2; - do - { - handleDestroy2 = handleDestroy; - handleDestroy = Interlocked.CompareExchange(ref this.m_onDestroy, (HandleDestroy)Delegate.Combine(handleDestroy2, value), handleDestroy); - } - while (handleDestroy != handleDestroy2); - } - remove - { - HandleDestroy handleDestroy = this.m_onDestroy; - HandleDestroy handleDestroy2; - do - { - handleDestroy2 = handleDestroy; - handleDestroy = Interlocked.CompareExchange(ref this.m_onDestroy, (HandleDestroy)Delegate.Remove(handleDestroy2, value), handleDestroy); - } - while (handleDestroy != handleDestroy2); - } - } + public event HandleDestroy onDestroy; public void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupAccount.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupAccount.cs index f8c46af..5d24422 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupAccount.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupAccount.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -20,95 +18,11 @@ public class UIPopupAccount : UIPopupMenu [Header("Guest")] public ContinueAsGuest guestMenu; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleRegisterSuccess m_OnRegisterSuccess; + public event HandleRegisterSuccess OnRegisterSuccess; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleLoginSuccess m_OnLoginSuccess; + public event HandleLoginSuccess OnLoginSuccess; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleGuestLogin m_OnGuestLogin; - - public event HandleRegisterSuccess OnRegisterSuccess - { - add - { - HandleRegisterSuccess handleRegisterSuccess = this.m_OnRegisterSuccess; - HandleRegisterSuccess handleRegisterSuccess2; - do - { - handleRegisterSuccess2 = handleRegisterSuccess; - handleRegisterSuccess = Interlocked.CompareExchange(ref this.m_OnRegisterSuccess, (HandleRegisterSuccess)Delegate.Combine(handleRegisterSuccess2, value), handleRegisterSuccess); - } - while (handleRegisterSuccess != handleRegisterSuccess2); - } - remove - { - HandleRegisterSuccess handleRegisterSuccess = this.m_OnRegisterSuccess; - HandleRegisterSuccess handleRegisterSuccess2; - do - { - handleRegisterSuccess2 = handleRegisterSuccess; - handleRegisterSuccess = Interlocked.CompareExchange(ref this.m_OnRegisterSuccess, (HandleRegisterSuccess)Delegate.Remove(handleRegisterSuccess2, value), handleRegisterSuccess); - } - while (handleRegisterSuccess != handleRegisterSuccess2); - } - } - - public event HandleLoginSuccess OnLoginSuccess - { - add - { - HandleLoginSuccess handleLoginSuccess = this.m_OnLoginSuccess; - HandleLoginSuccess handleLoginSuccess2; - do - { - handleLoginSuccess2 = handleLoginSuccess; - handleLoginSuccess = Interlocked.CompareExchange(ref this.m_OnLoginSuccess, (HandleLoginSuccess)Delegate.Combine(handleLoginSuccess2, value), handleLoginSuccess); - } - while (handleLoginSuccess != handleLoginSuccess2); - } - remove - { - HandleLoginSuccess handleLoginSuccess = this.m_OnLoginSuccess; - HandleLoginSuccess handleLoginSuccess2; - do - { - handleLoginSuccess2 = handleLoginSuccess; - handleLoginSuccess = Interlocked.CompareExchange(ref this.m_OnLoginSuccess, (HandleLoginSuccess)Delegate.Remove(handleLoginSuccess2, value), handleLoginSuccess); - } - while (handleLoginSuccess != handleLoginSuccess2); - } - } - - public event HandleGuestLogin OnGuestLogin - { - add - { - HandleGuestLogin handleGuestLogin = this.m_OnGuestLogin; - HandleGuestLogin handleGuestLogin2; - do - { - handleGuestLogin2 = handleGuestLogin; - handleGuestLogin = Interlocked.CompareExchange(ref this.m_OnGuestLogin, (HandleGuestLogin)Delegate.Combine(handleGuestLogin2, value), handleGuestLogin); - } - while (handleGuestLogin != handleGuestLogin2); - } - remove - { - HandleGuestLogin handleGuestLogin = this.m_OnGuestLogin; - HandleGuestLogin handleGuestLogin2; - do - { - handleGuestLogin2 = handleGuestLogin; - handleGuestLogin = Interlocked.CompareExchange(ref this.m_OnGuestLogin, (HandleGuestLogin)Delegate.Remove(handleGuestLogin2, value), handleGuestLogin); - } - while (handleGuestLogin != handleGuestLogin2); - } - } + public event HandleGuestLogin OnGuestLogin; private new void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupBoardActivation.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupBoardActivation.cs index 1ad9d80..2c4eae6 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupBoardActivation.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupBoardActivation.cs @@ -1,7 +1,5 @@ using System; using System.Collections; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using DiscoCapture; @@ -23,10 +21,6 @@ public class UIPopupBoardActivation : MonoBehaviour public RawImage overlay; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDestroy m_onDestroy; - public static BloxelBoard boardConstant; public RectTransform panelTransform; @@ -65,31 +59,7 @@ public class UIPopupBoardActivation : MonoBehaviour public bool dismissedCapture; - public event HandleDestroy onDestroy - { - add - { - HandleDestroy handleDestroy = this.m_onDestroy; - HandleDestroy handleDestroy2; - do - { - handleDestroy2 = handleDestroy; - handleDestroy = Interlocked.CompareExchange(ref this.m_onDestroy, (HandleDestroy)Delegate.Combine(handleDestroy2, value), handleDestroy); - } - while (handleDestroy != handleDestroy2); - } - remove - { - HandleDestroy handleDestroy = this.m_onDestroy; - HandleDestroy handleDestroy2; - do - { - handleDestroy2 = handleDestroy; - handleDestroy = Interlocked.CompareExchange(ref this.m_onDestroy, (HandleDestroy)Delegate.Remove(handleDestroy2, value), handleDestroy); - } - while (handleDestroy != handleDestroy2); - } - } + public event HandleDestroy onDestroy; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupBuildLayout.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupBuildLayout.cs index 20e6f97..cf1550d 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupBuildLayout.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupBuildLayout.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using TMPro; @@ -35,35 +33,7 @@ public class UIPopupBuildLayout : UIPopupMenu private string _helperString; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleCompete m_OnComplete; - - public event HandleCompete OnComplete - { - add - { - HandleCompete handleCompete = this.m_OnComplete; - HandleCompete handleCompete2; - do - { - handleCompete2 = handleCompete; - handleCompete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleCompete)Delegate.Combine(handleCompete2, value), handleCompete); - } - while (handleCompete != handleCompete2); - } - remove - { - HandleCompete handleCompete = this.m_OnComplete; - HandleCompete handleCompete2; - do - { - handleCompete2 = handleCompete; - handleCompete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleCompete)Delegate.Remove(handleCompete2, value), handleCompete); - } - while (handleCompete != handleCompete2); - } - } + public event HandleCompete OnComplete; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupChallengeComplete.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupChallengeComplete.cs index e7c5db8..8e84cde 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupChallengeComplete.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupChallengeComplete.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using TMPro; @@ -47,35 +45,7 @@ public class UIPopupChallengeComplete : UIPopupMenu public ParticleSystem ps; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleCompete m_OnComplete; - - public event HandleCompete OnComplete - { - add - { - HandleCompete handleCompete = this.m_OnComplete; - HandleCompete handleCompete2; - do - { - handleCompete2 = handleCompete; - handleCompete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleCompete)Delegate.Combine(handleCompete2, value), handleCompete); - } - while (handleCompete != handleCompete2); - } - remove - { - HandleCompete handleCompete = this.m_OnComplete; - HandleCompete handleCompete2; - do - { - handleCompete2 = handleCompete; - handleCompete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleCompete)Delegate.Remove(handleCompete2, value), handleCompete); - } - while (handleCompete != handleCompete2); - } - } + public event HandleCompete OnComplete; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupChallengeInfo.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupChallengeInfo.cs index 8f478fa..b8354ed 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupChallengeInfo.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupChallengeInfo.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using TMPro; @@ -25,35 +23,7 @@ public class UIPopupChallengeInfo : UIPopupMenu private string _descriptionString; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleCompete m_OnComplete; - - public event HandleCompete OnComplete - { - add - { - HandleCompete handleCompete = this.m_OnComplete; - HandleCompete handleCompete2; - do - { - handleCompete2 = handleCompete; - handleCompete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleCompete)Delegate.Combine(handleCompete2, value), handleCompete); - } - while (handleCompete != handleCompete2); - } - remove - { - HandleCompete handleCompete = this.m_OnComplete; - HandleCompete handleCompete2; - do - { - handleCompete2 = handleCompete; - handleCompete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleCompete)Delegate.Remove(handleCompete2, value), handleCompete); - } - while (handleCompete != handleCompete2); - } - } + public event HandleCompete OnComplete; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupGemUnlock.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupGemUnlock.cs index 08f1749..391b0eb 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupGemUnlock.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupGemUnlock.cs @@ -1,7 +1,5 @@ using System; using System.Collections; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using TMPro; @@ -58,95 +56,11 @@ public class UIPopupGemUnlock : UIPopupMenu public GameObject parent; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleSiblingDismiss m_OnSiblingDismiss; + public event HandleSiblingDismiss OnSiblingDismiss; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleUnlock m_OnUnlock; + public event HandleUnlock OnUnlock; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleBulkRooms m_OnBulkRooms; - - public event HandleSiblingDismiss OnSiblingDismiss - { - add - { - HandleSiblingDismiss handleSiblingDismiss = this.m_OnSiblingDismiss; - HandleSiblingDismiss handleSiblingDismiss2; - do - { - handleSiblingDismiss2 = handleSiblingDismiss; - handleSiblingDismiss = Interlocked.CompareExchange(ref this.m_OnSiblingDismiss, (HandleSiblingDismiss)Delegate.Combine(handleSiblingDismiss2, value), handleSiblingDismiss); - } - while (handleSiblingDismiss != handleSiblingDismiss2); - } - remove - { - HandleSiblingDismiss handleSiblingDismiss = this.m_OnSiblingDismiss; - HandleSiblingDismiss handleSiblingDismiss2; - do - { - handleSiblingDismiss2 = handleSiblingDismiss; - handleSiblingDismiss = Interlocked.CompareExchange(ref this.m_OnSiblingDismiss, (HandleSiblingDismiss)Delegate.Remove(handleSiblingDismiss2, value), handleSiblingDismiss); - } - while (handleSiblingDismiss != handleSiblingDismiss2); - } - } - - public event HandleUnlock OnUnlock - { - add - { - HandleUnlock handleUnlock = this.m_OnUnlock; - HandleUnlock handleUnlock2; - do - { - handleUnlock2 = handleUnlock; - handleUnlock = Interlocked.CompareExchange(ref this.m_OnUnlock, (HandleUnlock)Delegate.Combine(handleUnlock2, value), handleUnlock); - } - while (handleUnlock != handleUnlock2); - } - remove - { - HandleUnlock handleUnlock = this.m_OnUnlock; - HandleUnlock handleUnlock2; - do - { - handleUnlock2 = handleUnlock; - handleUnlock = Interlocked.CompareExchange(ref this.m_OnUnlock, (HandleUnlock)Delegate.Remove(handleUnlock2, value), handleUnlock); - } - while (handleUnlock != handleUnlock2); - } - } - - public event HandleBulkRooms OnBulkRooms - { - add - { - HandleBulkRooms handleBulkRooms = this.m_OnBulkRooms; - HandleBulkRooms handleBulkRooms2; - do - { - handleBulkRooms2 = handleBulkRooms; - handleBulkRooms = Interlocked.CompareExchange(ref this.m_OnBulkRooms, (HandleBulkRooms)Delegate.Combine(handleBulkRooms2, value), handleBulkRooms); - } - while (handleBulkRooms != handleBulkRooms2); - } - remove - { - HandleBulkRooms handleBulkRooms = this.m_OnBulkRooms; - HandleBulkRooms handleBulkRooms2; - do - { - handleBulkRooms2 = handleBulkRooms; - handleBulkRooms = Interlocked.CompareExchange(ref this.m_OnBulkRooms, (HandleBulkRooms)Delegate.Remove(handleBulkRooms2, value), handleBulkRooms); - } - while (handleBulkRooms != handleBulkRooms2); - } - } + public event HandleBulkRooms OnBulkRooms; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupHelpMenu.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupHelpMenu.cs index 2a08a14..837ba8a 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupHelpMenu.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupHelpMenu.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; using UnityEngine.UI; @@ -53,38 +51,10 @@ public class UIPopupHelpMenu : UIPopupMenu new UrlAndText("gamebuilder134", "All", PPUtilities.Link_tutorialAll) }; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleCompete m_OnComplete; - [Header("| ========= Data ========= |")] private List onlineHelpOptions = new List(); - public event HandleCompete OnComplete - { - add - { - HandleCompete handleCompete = this.m_OnComplete; - HandleCompete handleCompete2; - do - { - handleCompete2 = handleCompete; - handleCompete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleCompete)Delegate.Combine(handleCompete2, value), handleCompete); - } - while (handleCompete != handleCompete2); - } - remove - { - HandleCompete handleCompete = this.m_OnComplete; - HandleCompete handleCompete2; - do - { - handleCompete2 = handleCompete; - handleCompete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleCompete)Delegate.Remove(handleCompete2, value), handleCompete); - } - while (handleCompete != handleCompete2); - } - } + public event HandleCompete OnComplete; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupMenu.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupMenu.cs index ab3e0ae..c6e4a1e 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupMenu.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupMenu.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -17,67 +15,11 @@ public class UIPopupMenu : MonoBehaviour [Tooltip("Reference populated programmatically")] public RawImage overlay; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDismiss m_OnDismiss; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleInit m_OnInit; - public bool isAnimating; - public event HandleDismiss OnDismiss - { - add - { - HandleDismiss handleDismiss = this.m_OnDismiss; - HandleDismiss handleDismiss2; - do - { - handleDismiss2 = handleDismiss; - handleDismiss = Interlocked.CompareExchange(ref this.m_OnDismiss, (HandleDismiss)Delegate.Combine(handleDismiss2, value), handleDismiss); - } - while (handleDismiss != handleDismiss2); - } - remove - { - HandleDismiss handleDismiss = this.m_OnDismiss; - HandleDismiss handleDismiss2; - do - { - handleDismiss2 = handleDismiss; - handleDismiss = Interlocked.CompareExchange(ref this.m_OnDismiss, (HandleDismiss)Delegate.Remove(handleDismiss2, value), handleDismiss); - } - while (handleDismiss != handleDismiss2); - } - } + public event HandleDismiss OnDismiss; - public event HandleInit OnInit - { - add - { - HandleInit handleInit = this.m_OnInit; - HandleInit handleInit2; - do - { - handleInit2 = handleInit; - handleInit = Interlocked.CompareExchange(ref this.m_OnInit, (HandleInit)Delegate.Combine(handleInit2, value), handleInit); - } - while (handleInit != handleInit2); - } - remove - { - HandleInit handleInit = this.m_OnInit; - HandleInit handleInit2; - do - { - handleInit2 = handleInit; - handleInit = Interlocked.CompareExchange(ref this.m_OnInit, (HandleInit)Delegate.Remove(handleInit2, value), handleInit); - } - while (handleInit != handleInit2); - } - } + public event HandleInit OnInit; public void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupNPCConfig.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupNPCConfig.cs index 2f51e31..6b33a0d 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupNPCConfig.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupNPCConfig.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -28,35 +26,7 @@ public class UIPopupNPCConfig : UIConfigItem private UIProjectCover _powerupVisual; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleFlagChange m_OnFlagChange; - - public event HandleFlagChange OnFlagChange - { - add - { - HandleFlagChange handleFlagChange = this.m_OnFlagChange; - HandleFlagChange handleFlagChange2; - do - { - handleFlagChange2 = handleFlagChange; - handleFlagChange = Interlocked.CompareExchange(ref this.m_OnFlagChange, (HandleFlagChange)Delegate.Combine(handleFlagChange2, value), handleFlagChange); - } - while (handleFlagChange != handleFlagChange2); - } - remove - { - HandleFlagChange handleFlagChange = this.m_OnFlagChange; - HandleFlagChange handleFlagChange2; - do - { - handleFlagChange2 = handleFlagChange; - handleFlagChange = Interlocked.CompareExchange(ref this.m_OnFlagChange, (HandleFlagChange)Delegate.Remove(handleFlagChange2, value), handleFlagChange); - } - while (handleFlagChange != handleFlagChange2); - } - } + public event HandleFlagChange OnFlagChange; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupPowerupConfig.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupPowerupConfig.cs index 1bb83ea..cef6dd2 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupPowerupConfig.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupPowerupConfig.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -40,35 +38,7 @@ public class UIPopupPowerupConfig : UIConfigItem private UIProjectCover _powerupVisual; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleConfigure m_OnConfigure; - - public event HandleConfigure OnConfigure - { - add - { - HandleConfigure handleConfigure = this.m_OnConfigure; - HandleConfigure handleConfigure2; - do - { - handleConfigure2 = handleConfigure; - handleConfigure = Interlocked.CompareExchange(ref this.m_OnConfigure, (HandleConfigure)Delegate.Combine(handleConfigure2, value), handleConfigure); - } - while (handleConfigure != handleConfigure2); - } - remove - { - HandleConfigure handleConfigure = this.m_OnConfigure; - HandleConfigure handleConfigure2; - do - { - handleConfigure2 = handleConfigure; - handleConfigure = Interlocked.CompareExchange(ref this.m_OnConfigure, (HandleConfigure)Delegate.Remove(handleConfigure2, value), handleConfigure); - } - while (handleConfigure != handleConfigure2); - } - } + public event HandleConfigure OnConfigure; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupStateChange.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupStateChange.cs index 58c43e7..02f94ac 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupStateChange.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupStateChange.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; using UnityEngine.UI; @@ -19,35 +17,7 @@ public class UIPopupStateChange : UIPopupMenu public Text uiTextDescription; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleChoice m_OnChoice; - - public event HandleChoice OnChoice - { - add - { - HandleChoice handleChoice = this.m_OnChoice; - HandleChoice handleChoice2; - do - { - handleChoice2 = handleChoice; - handleChoice = Interlocked.CompareExchange(ref this.m_OnChoice, (HandleChoice)Delegate.Combine(handleChoice2, value), handleChoice); - } - while (handleChoice != handleChoice2); - } - remove - { - HandleChoice handleChoice = this.m_OnChoice; - HandleChoice handleChoice2; - do - { - handleChoice2 = handleChoice; - handleChoice = Interlocked.CompareExchange(ref this.m_OnChoice, (HandleChoice)Delegate.Remove(handleChoice2, value), handleChoice); - } - while (handleChoice != handleChoice2); - } - } + public event HandleChoice OnChoice; private new void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupUploadGame.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupUploadGame.cs index adad511..9a5298e 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupUploadGame.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIPopupUploadGame.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -10,35 +8,7 @@ public class UIPopupUploadGame : UIPopupMenu public UIButton uiButtonConfirm; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleConfirm m_onConfirm; - - public event HandleConfirm onConfirm - { - add - { - HandleConfirm handleConfirm = this.m_onConfirm; - HandleConfirm handleConfirm2; - do - { - handleConfirm2 = handleConfirm; - handleConfirm = Interlocked.CompareExchange(ref this.m_onConfirm, (HandleConfirm)Delegate.Combine(handleConfirm2, value), handleConfirm); - } - while (handleConfirm != handleConfirm2); - } - remove - { - HandleConfirm handleConfirm = this.m_onConfirm; - HandleConfirm handleConfirm2; - do - { - handleConfirm2 = handleConfirm; - handleConfirm = Interlocked.CompareExchange(ref this.m_onConfirm, (HandleConfirm)Delegate.Remove(handleConfirm2, value), handleConfirm); - } - while (handleConfirm != handleConfirm2); - } - } + public event HandleConfirm onConfirm; public new void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIProgressBar.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIProgressBar.cs index 0329c94..ceea6a1 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIProgressBar.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIProgressBar.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -23,35 +21,7 @@ public class UIProgressBar : MonoBehaviour public bool auto; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnComplete m_OnComplete; - - public event HandleOnComplete OnComplete - { - add - { - HandleOnComplete handleOnComplete = this.m_OnComplete; - HandleOnComplete handleOnComplete2; - do - { - handleOnComplete2 = handleOnComplete; - handleOnComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleOnComplete)Delegate.Combine(handleOnComplete2, value), handleOnComplete); - } - while (handleOnComplete != handleOnComplete2); - } - remove - { - HandleOnComplete handleOnComplete = this.m_OnComplete; - HandleOnComplete handleOnComplete2; - do - { - handleOnComplete2 = handleOnComplete; - handleOnComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleOnComplete)Delegate.Remove(handleOnComplete2, value), handleOnComplete); - } - while (handleOnComplete != handleOnComplete2); - } - } + public event HandleOnComplete OnComplete; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIProjectPicker.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIProjectPicker.cs index 6e0657d..838367a 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIProjectPicker.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIProjectPicker.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using EnhancedUI.EnhancedScroller; using UnityEngine; @@ -18,35 +16,7 @@ public abstract class UIProjectPicker : UIScrollTipController, IEnhancedScroller [Header("Prefabs")] public EnhancedScrollerCellView scrollElementPrefab; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleProjectSelect m_OnProjectSelect; - - public event HandleProjectSelect OnProjectSelect - { - add - { - HandleProjectSelect handleProjectSelect = this.m_OnProjectSelect; - HandleProjectSelect handleProjectSelect2; - do - { - handleProjectSelect2 = handleProjectSelect; - handleProjectSelect = Interlocked.CompareExchange(ref this.m_OnProjectSelect, (HandleProjectSelect)Delegate.Combine(handleProjectSelect2, value), handleProjectSelect); - } - while (handleProjectSelect != handleProjectSelect2); - } - remove - { - HandleProjectSelect handleProjectSelect = this.m_OnProjectSelect; - HandleProjectSelect handleProjectSelect2; - do - { - handleProjectSelect2 = handleProjectSelect; - handleProjectSelect = Interlocked.CompareExchange(ref this.m_OnProjectSelect, (HandleProjectSelect)Delegate.Remove(handleProjectSelect2, value), handleProjectSelect); - } - while (handleProjectSelect != handleProjectSelect2); - } - } + public event HandleProjectSelect OnProjectSelect; public int GetNumberOfCells(EnhancedScroller scroller) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIProjectScrollElement.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIProjectScrollElement.cs index e0bb92a..ea1c7da 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIProjectScrollElement.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIProjectScrollElement.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using EnhancedUI.EnhancedScroller; @@ -22,35 +20,7 @@ public class UIProjectScrollElement : EnhancedScrollerCellView public Color uiFillColor = BloxelBoard.baseUIBoardColor; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnClick m_OnClick; - - public event HandleOnClick OnClick - { - add - { - HandleOnClick handleOnClick = this.m_OnClick; - HandleOnClick handleOnClick2; - do - { - handleOnClick2 = handleOnClick; - handleOnClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleOnClick)Delegate.Combine(handleOnClick2, value), handleOnClick); - } - while (handleOnClick != handleOnClick2); - } - remove - { - HandleOnClick handleOnClick = this.m_OnClick; - HandleOnClick handleOnClick2; - do - { - handleOnClick2 = handleOnClick; - handleOnClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleOnClick)Delegate.Remove(handleOnClick2, value), handleOnClick); - } - while (handleOnClick != handleOnClick2); - } - } + public event HandleOnClick OnClick; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRadioButton.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRadioButton.cs index e7cfe78..dfa6361 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRadioButton.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRadioButton.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine.EventSystems; using UnityEngine.UI; @@ -11,35 +9,7 @@ public class UIRadioButton : Toggle public int groupIndex; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleClick m_OnClick; - - public event HandleClick OnClick - { - add - { - HandleClick handleClick = this.m_OnClick; - HandleClick handleClick2; - do - { - handleClick2 = handleClick; - handleClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleClick)Delegate.Combine(handleClick2, value), handleClick); - } - while (handleClick != handleClick2); - } - remove - { - HandleClick handleClick = this.m_OnClick; - HandleClick handleClick2; - do - { - handleClick2 = handleClick; - handleClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleClick)Delegate.Remove(handleClick2, value), handleClick); - } - while (handleClick != handleClick2); - } - } + public event HandleClick OnClick; public void SetActive() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRadioGroup.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRadioGroup.cs index b1235e6..11b14b4 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRadioGroup.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRadioGroup.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -12,35 +10,7 @@ public class UIRadioGroup : MonoBehaviour public UIRadioButton activeButton; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleActiveChange m_OnChange; - - public event HandleActiveChange OnChange - { - add - { - HandleActiveChange handleActiveChange = this.m_OnChange; - HandleActiveChange handleActiveChange2; - do - { - handleActiveChange2 = handleActiveChange; - handleActiveChange = Interlocked.CompareExchange(ref this.m_OnChange, (HandleActiveChange)Delegate.Combine(handleActiveChange2, value), handleActiveChange); - } - while (handleActiveChange != handleActiveChange2); - } - remove - { - HandleActiveChange handleActiveChange = this.m_OnChange; - HandleActiveChange handleActiveChange2; - do - { - handleActiveChange2 = handleActiveChange; - handleActiveChange = Interlocked.CompareExchange(ref this.m_OnChange, (HandleActiveChange)Delegate.Remove(handleActiveChange2, value), handleActiveChange); - } - while (handleActiveChange != handleActiveChange2); - } - } + public event HandleActiveChange OnChange; private void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRectangle.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRectangle.cs index 9c6f250..d2e0a75 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRectangle.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRectangle.cs @@ -1,7 +1,5 @@ using System; using System.Collections; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -26,35 +24,7 @@ public class UIRectangle : MonoBehaviour, IPointerClickHandler, IEventSystemHand public Vector2 startSize; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOnClick m_OnClick; - - public event HandleOnClick OnClick - { - add - { - HandleOnClick handleOnClick = this.m_OnClick; - HandleOnClick handleOnClick2; - do - { - handleOnClick2 = handleOnClick; - handleOnClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleOnClick)Delegate.Combine(handleOnClick2, value), handleOnClick); - } - while (handleOnClick != handleOnClick2); - } - remove - { - HandleOnClick handleOnClick = this.m_OnClick; - HandleOnClick handleOnClick2; - do - { - handleOnClick2 = handleOnClick; - handleOnClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleOnClick)Delegate.Remove(handleOnClick2, value), handleOnClick); - } - while (handleOnClick != handleOnClick2); - } - } + public event HandleOnClick OnClick; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRoomDisplay.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRoomDisplay.cs index fc8514f..caead6d 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRoomDisplay.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIRoomDisplay.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; @@ -14,35 +12,7 @@ public class UIRoomDisplay : MonoBehaviour public UIButton uiButton; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleSelect m_OnSelect; - - public event HandleSelect OnSelect - { - add - { - HandleSelect handleSelect = this.m_OnSelect; - HandleSelect handleSelect2; - do - { - handleSelect2 = handleSelect; - handleSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleSelect)Delegate.Combine(handleSelect2, value), handleSelect); - } - while (handleSelect != handleSelect2); - } - remove - { - HandleSelect handleSelect = this.m_OnSelect; - HandleSelect handleSelect2; - do - { - handleSelect2 = handleSelect; - handleSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleSelect)Delegate.Remove(handleSelect2, value), handleSelect); - } - while (handleSelect != handleSelect2); - } - } + public event HandleSelect OnSelect; private void Start() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UISelectableItem.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UISelectableItem.cs index e7a49d5..a4860cc 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UISelectableItem.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UISelectableItem.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using TMPro; using UnityEngine; @@ -19,35 +17,7 @@ public class UISelectableItem : UIInteractable public bool isActive; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private new HandleSelect m_OnSelect; - - public new event HandleSelect OnSelect - { - add - { - HandleSelect handleSelect = this.m_OnSelect; - HandleSelect handleSelect2; - do - { - handleSelect2 = handleSelect; - handleSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleSelect)Delegate.Combine(handleSelect2, value), handleSelect); - } - while (handleSelect != handleSelect2); - } - remove - { - HandleSelect handleSelect = this.m_OnSelect; - HandleSelect handleSelect2; - do - { - handleSelect2 = handleSelect; - handleSelect = Interlocked.CompareExchange(ref this.m_OnSelect, (HandleSelect)Delegate.Remove(handleSelect2, value), handleSelect); - } - while (handleSelect != handleSelect2); - } - } + public new event HandleSelect OnSelect; private new void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UISimpleSquare.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UISimpleSquare.cs index 34e9f2c..9f574bf 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UISimpleSquare.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UISimpleSquare.cs @@ -1,7 +1,5 @@ using System; using System.Collections; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using UnityEngine; using UnityEngine.EventSystems; @@ -25,10 +23,6 @@ public class UISimpleSquare : MonoBehaviour, IPointerClickHandler, IEventSystemH private Texture2D _texture; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleTextureUpdate m_OnTextureUpdate; - public Texture2D texture { get @@ -47,31 +41,7 @@ public class UISimpleSquare : MonoBehaviour, IPointerClickHandler, IEventSystemH } } - public event HandleTextureUpdate OnTextureUpdate - { - add - { - HandleTextureUpdate handleTextureUpdate = this.m_OnTextureUpdate; - HandleTextureUpdate handleTextureUpdate2; - do - { - handleTextureUpdate2 = handleTextureUpdate; - handleTextureUpdate = Interlocked.CompareExchange(ref this.m_OnTextureUpdate, (HandleTextureUpdate)Delegate.Combine(handleTextureUpdate2, value), handleTextureUpdate); - } - while (handleTextureUpdate != handleTextureUpdate2); - } - remove - { - HandleTextureUpdate handleTextureUpdate = this.m_OnTextureUpdate; - HandleTextureUpdate handleTextureUpdate2; - do - { - handleTextureUpdate2 = handleTextureUpdate; - handleTextureUpdate = Interlocked.CompareExchange(ref this.m_OnTextureUpdate, (HandleTextureUpdate)Delegate.Remove(handleTextureUpdate2, value), handleTextureUpdate); - } - while (handleTextureUpdate != handleTextureUpdate2); - } - } + public event HandleTextureUpdate OnTextureUpdate; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UITag.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UITag.cs index 77b0e54..08a48a9 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UITag.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UITag.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -25,65 +23,9 @@ public class UITag : MonoBehaviour, IPointerClickHandler, IEventSystemHandler public bool generatedByUser; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleTagClick m_OnClick; + public event HandleTagClick OnClick; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleTagRemove m_OnRemove; - - public event HandleTagClick OnClick - { - add - { - HandleTagClick handleTagClick = this.m_OnClick; - HandleTagClick handleTagClick2; - do - { - handleTagClick2 = handleTagClick; - handleTagClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleTagClick)Delegate.Combine(handleTagClick2, value), handleTagClick); - } - while (handleTagClick != handleTagClick2); - } - remove - { - HandleTagClick handleTagClick = this.m_OnClick; - HandleTagClick handleTagClick2; - do - { - handleTagClick2 = handleTagClick; - handleTagClick = Interlocked.CompareExchange(ref this.m_OnClick, (HandleTagClick)Delegate.Remove(handleTagClick2, value), handleTagClick); - } - while (handleTagClick != handleTagClick2); - } - } - - public event HandleTagRemove OnRemove - { - add - { - HandleTagRemove handleTagRemove = this.m_OnRemove; - HandleTagRemove handleTagRemove2; - do - { - handleTagRemove2 = handleTagRemove; - handleTagRemove = Interlocked.CompareExchange(ref this.m_OnRemove, (HandleTagRemove)Delegate.Combine(handleTagRemove2, value), handleTagRemove); - } - while (handleTagRemove != handleTagRemove2); - } - remove - { - HandleTagRemove handleTagRemove = this.m_OnRemove; - HandleTagRemove handleTagRemove2; - do - { - handleTagRemove2 = handleTagRemove; - handleTagRemove = Interlocked.CompareExchange(ref this.m_OnRemove, (HandleTagRemove)Delegate.Remove(handleTagRemove2, value), handleTagRemove); - } - while (handleTagRemove != handleTagRemove2); - } - } + public event HandleTagRemove OnRemove; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UITip.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UITip.cs index 5da3df4..14525db 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UITip.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UITip.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -40,35 +38,7 @@ public class UITip : MonoBehaviour public UITipVisual visual; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleComplete m_OnComplete; - - public event HandleComplete OnComplete - { - add - { - HandleComplete handleComplete = this.m_OnComplete; - HandleComplete handleComplete2; - do - { - handleComplete2 = handleComplete; - handleComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleComplete)Delegate.Combine(handleComplete2, value), handleComplete); - } - while (handleComplete != handleComplete2); - } - remove - { - HandleComplete handleComplete = this.m_OnComplete; - HandleComplete handleComplete2; - do - { - handleComplete2 = handleComplete; - handleComplete = Interlocked.CompareExchange(ref this.m_OnComplete, (HandleComplete)Delegate.Remove(handleComplete2, value), handleComplete); - } - while (handleComplete != handleComplete2); - } - } + public event HandleComplete OnComplete; private void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIToggleDropdown.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIToggleDropdown.cs index 90b8290..76ecbd5 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UIToggleDropdown.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UIToggleDropdown.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -21,35 +19,7 @@ public class UIToggleDropdown : MonoBehaviour, IPointerClickHandler, IEventSyste public bool isOpen; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleChange m_OnChange; - - public event HandleChange OnChange - { - add - { - HandleChange handleChange = this.m_OnChange; - HandleChange handleChange2; - do - { - handleChange2 = handleChange; - handleChange = Interlocked.CompareExchange(ref this.m_OnChange, (HandleChange)Delegate.Combine(handleChange2, value), handleChange); - } - while (handleChange != handleChange2); - } - remove - { - HandleChange handleChange = this.m_OnChange; - HandleChange handleChange2; - do - { - handleChange2 = handleChange; - handleChange = Interlocked.CompareExchange(ref this.m_OnChange, (HandleChange)Delegate.Remove(handleChange2, value), handleChange); - } - while (handleChange != handleChange2); - } - } + public event HandleChange OnChange; public void Awake() { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/UITrashCan.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/UITrashCan.cs index 61af2a6..f224592 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/UITrashCan.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/UITrashCan.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Threading; using DG.Tweening; using UnityEngine; @@ -27,159 +25,19 @@ public class UITrashCan : MonoBehaviour, IPointerEnterHandler, IPointerExitHandl public Sprite spriteClosed; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOpen m_OnOpen; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleOpen m_OnClose; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleVisible m_OnVisible; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleHidden m_OnHidden; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private HandleDelete m_OnDelete; - public bool isVisible; public bool isOpen; - public event HandleOpen OnOpen - { - add - { - HandleOpen handleOpen = this.m_OnOpen; - HandleOpen handleOpen2; - do - { - handleOpen2 = handleOpen; - handleOpen = Interlocked.CompareExchange(ref this.m_OnOpen, (HandleOpen)Delegate.Combine(handleOpen2, value), handleOpen); - } - while (handleOpen != handleOpen2); - } - remove - { - HandleOpen handleOpen = this.m_OnOpen; - HandleOpen handleOpen2; - do - { - handleOpen2 = handleOpen; - handleOpen = Interlocked.CompareExchange(ref this.m_OnOpen, (HandleOpen)Delegate.Remove(handleOpen2, value), handleOpen); - } - while (handleOpen != handleOpen2); - } - } + public event HandleOpen OnOpen; - public event HandleOpen OnClose - { - add - { - HandleOpen handleOpen = this.m_OnClose; - HandleOpen handleOpen2; - do - { - handleOpen2 = handleOpen; - handleOpen = Interlocked.CompareExchange(ref this.m_OnClose, (HandleOpen)Delegate.Combine(handleOpen2, value), handleOpen); - } - while (handleOpen != handleOpen2); - } - remove - { - HandleOpen handleOpen = this.m_OnClose; - HandleOpen handleOpen2; - do - { - handleOpen2 = handleOpen; - handleOpen = Interlocked.CompareExchange(ref this.m_OnClose, (HandleOpen)Delegate.Remove(handleOpen2, value), handleOpen); - } - while (handleOpen != handleOpen2); - } - } + public event HandleOpen OnClose; - public event HandleVisible OnVisible - { - add - { - HandleVisible handleVisible = this.m_OnVisible; - HandleVisible handleVisible2; - do - { - handleVisible2 = handleVisible; - handleVisible = Interlocked.CompareExchange(ref this.m_OnVisible, (HandleVisible)Delegate.Combine(handleVisible2, value), handleVisible); - } - while (handleVisible != handleVisible2); - } - remove - { - HandleVisible handleVisible = this.m_OnVisible; - HandleVisible handleVisible2; - do - { - handleVisible2 = handleVisible; - handleVisible = Interlocked.CompareExchange(ref this.m_OnVisible, (HandleVisible)Delegate.Remove(handleVisible2, value), handleVisible); - } - while (handleVisible != handleVisible2); - } - } + public event HandleVisible OnVisible; - public event HandleHidden OnHidden - { - add - { - HandleHidden handleHidden = this.m_OnHidden; - HandleHidden handleHidden2; - do - { - handleHidden2 = handleHidden; - handleHidden = Interlocked.CompareExchange(ref this.m_OnHidden, (HandleHidden)Delegate.Combine(handleHidden2, value), handleHidden); - } - while (handleHidden != handleHidden2); - } - remove - { - HandleHidden handleHidden = this.m_OnHidden; - HandleHidden handleHidden2; - do - { - handleHidden2 = handleHidden; - handleHidden = Interlocked.CompareExchange(ref this.m_OnHidden, (HandleHidden)Delegate.Remove(handleHidden2, value), handleHidden); - } - while (handleHidden != handleHidden2); - } - } + public event HandleHidden OnHidden; - public event HandleDelete OnDelete - { - add - { - HandleDelete handleDelete = this.m_OnDelete; - HandleDelete handleDelete2; - do - { - handleDelete2 = handleDelete; - handleDelete = Interlocked.CompareExchange(ref this.m_OnDelete, (HandleDelete)Delegate.Combine(handleDelete2, value), handleDelete); - } - while (handleDelete != handleDelete2); - } - remove - { - HandleDelete handleDelete = this.m_OnDelete; - HandleDelete handleDelete2; - do - { - handleDelete2 = handleDelete; - handleDelete = Interlocked.CompareExchange(ref this.m_OnDelete, (HandleDelete)Delegate.Remove(handleDelete2, value), handleDelete); - } - while (handleDelete != handleDelete2); - } - } + public event HandleDelete OnDelete; public void Init(bool visible, bool open) { diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/WebSocketSharp/Server/HttpServer.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/WebSocketSharp/Server/HttpServer.cs index a70f85a..629a42a 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/WebSocketSharp/Server/HttpServer.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/WebSocketSharp/Server/HttpServer.cs @@ -1,7 +1,5 @@ using System; -using System.Diagnostics; using System.IO; -using System.Runtime.CompilerServices; using System.Security.Principal; using System.Threading; using WebSocketSharp.Net; @@ -35,42 +33,6 @@ namespace WebSocketSharp.Server private bool _windows; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnConnect; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnDelete; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnGet; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnHead; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnOptions; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnPatch; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnPost; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnPut; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnTrace; - public System.Net.IPAddress Address { get @@ -279,239 +241,23 @@ namespace WebSocketSharp.Server } } - public event EventHandler OnConnect - { - add - { - EventHandler eventHandler = this.m_OnConnect; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnConnect, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnConnect; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnConnect, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnConnect; - public event EventHandler OnDelete - { - add - { - EventHandler eventHandler = this.m_OnDelete; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnDelete, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnDelete; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnDelete, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnDelete; - public event EventHandler OnGet - { - add - { - EventHandler eventHandler = this.m_OnGet; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnGet, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnGet; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnGet, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnGet; - public event EventHandler OnHead - { - add - { - EventHandler eventHandler = this.m_OnHead; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnHead, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnHead; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnHead, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnHead; - public event EventHandler OnOptions - { - add - { - EventHandler eventHandler = this.m_OnOptions; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnOptions, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnOptions; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnOptions, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnOptions; - public event EventHandler OnPatch - { - add - { - EventHandler eventHandler = this.m_OnPatch; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnPatch, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnPatch; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnPatch, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnPatch; - public event EventHandler OnPost - { - add - { - EventHandler eventHandler = this.m_OnPost; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnPost, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnPost; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnPost, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnPost; - public event EventHandler OnPut - { - add - { - EventHandler eventHandler = this.m_OnPut; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnPut, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnPut; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnPut, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnPut; - public event EventHandler OnTrace - { - add - { - EventHandler eventHandler = this.m_OnTrace; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnTrace, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnTrace; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnTrace, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnTrace; public HttpServer() { @@ -540,7 +286,7 @@ namespace WebSocketSharp.Server throw new ArgumentException(message, "url"); } string dnsSafeHost = result.DnsSafeHost; - System.Net.IPAddress address = dnsSafeHost.ToSystem.Net.IPAddress(); + System.Net.IPAddress address = dnsSafeHost.ToIPAddress(); if (!address.IsLocal()) { throw new ArgumentException("The host part isn't a local host name: " + url, "url"); diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/WebSocketSharp/Server/WebSocketServer.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/WebSocketSharp/Server/WebSocketServer.cs index d8b2a21..064419d 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/WebSocketSharp/Server/WebSocketServer.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/WebSocketSharp/Server/WebSocketServer.cs @@ -256,7 +256,7 @@ namespace WebSocketSharp.Server throw new ArgumentException(message, "url"); } string dnsSafeHost = result.DnsSafeHost; - System.Net.IPAddress address = dnsSafeHost.ToSystem.Net.IPAddress(); + System.Net.IPAddress address = dnsSafeHost.ToIPAddress(); if (!address.IsLocal()) { throw new ArgumentException("The host part isn't a local host name: " + url, "url"); diff --git a/ExportedProject/Assets/Scripts/Assembly-CSharp/WebSocketSharp/WebSocket.cs b/ExportedProject/Assets/Scripts/Assembly-CSharp/WebSocketSharp/WebSocket.cs index 04c5150..320790f 100644 --- a/ExportedProject/Assets/Scripts/Assembly-CSharp/WebSocketSharp/WebSocket.cs +++ b/ExportedProject/Assets/Scripts/Assembly-CSharp/WebSocketSharp/WebSocket.cs @@ -2,11 +2,9 @@ using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; -using System.Diagnostics; using System.IO; using System.Net.Security; using System.Net.Sockets; -using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using System.Threading; @@ -105,22 +103,6 @@ namespace WebSocketSharp internal static readonly RandomNumberGenerator RandomNumber; - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnClose; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnError; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnMessage; - - [CompilerGenerated] - [DebuggerBrowsable(DebuggerBrowsableState.Never)] - private EventHandler m_OnOpen; - internal CookieCollection CookieCollection { get @@ -405,109 +387,13 @@ namespace WebSocketSharp } } - public event EventHandler OnClose - { - add - { - EventHandler eventHandler = this.m_OnClose; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnClose, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnClose; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnClose, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnClose; - public event EventHandler OnError - { - add - { - EventHandler eventHandler = this.m_OnError; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnError, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnError; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnError, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnError; - public event EventHandler OnMessage - { - add - { - EventHandler eventHandler = this.m_OnMessage; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnMessage, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnMessage; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnMessage, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnMessage; - public event EventHandler OnOpen - { - add - { - EventHandler eventHandler = this.m_OnOpen; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnOpen, (EventHandler)Delegate.Combine(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - remove - { - EventHandler eventHandler = this.m_OnOpen; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - eventHandler = Interlocked.CompareExchange(ref this.m_OnOpen, (EventHandler)Delegate.Remove(eventHandler2, value), eventHandler); - } - while (eventHandler != eventHandler2); - } - } + public event EventHandler OnOpen; static WebSocket() { diff --git a/ExportedProject/Assets/Scripts/DOTween/DG/Tweening/Plugins/Options/NoOptions.cs b/ExportedProject/Assets/Scripts/DOTween/DG/Tweening/Plugins/Options/NoOptions.cs index c1b1df8..ea8ec97 100644 --- a/ExportedProject/Assets/Scripts/DOTween/DG/Tweening/Plugins/Options/NoOptions.cs +++ b/ExportedProject/Assets/Scripts/DOTween/DG/Tweening/Plugins/Options/NoOptions.cs @@ -2,7 +2,7 @@ using System.Runtime.InteropServices; namespace DG.Tweening.Plugins.Options { - [StructLayout(0, Size = 1)] + [StructLayout((short)0, Size = 1)] public struct NoOptions { }