< Summary

Class:NotificationScriptableObjects
Assembly:ScriptableObjects
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/ScriptableObject/CommonScriptableObjects.cs
Covered lines:2
Uncovered lines:1
Coverable lines:3
Total lines:210
Line coverage:66.6% (2 of 3)
Covered branches:0
Total branches:0

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/ScriptableObject/CommonScriptableObjects.cs

#LineLine coverage
 1using UnityEngine;
 2
 3public static class NotificationScriptableObjects
 4{
 5    private static FloatVariable newApprovedFriendsValue;
 226    public static FloatVariable newApprovedFriends => CommonScriptableObjects.GetOrLoad(ref newApprovedFriendsValue, "Sc
 7
 8    private static FloatVariable pendingChatMessagesValue;
 09    public static FloatVariable pendingChatMessages => CommonScriptableObjects.GetOrLoad(ref pendingChatMessagesValue, "
 10
 11    private static FloatVariable pendingFriendRequestsValue;
 2212    public static FloatVariable pendingFriendRequests => CommonScriptableObjects.GetOrLoad(ref pendingFriendRequestsValu
 13}
 14
 15public static class AudioScriptableObjects
 16{
 17    // Builder
 18
 19    private static AudioEvent builderEnterEvent;
 20    public static AudioEvent builderEnter => CommonScriptableObjects.GetOrLoad(ref builderEnterEvent, "ScriptableObjects
 21
 22    private static AudioEvent builderReadyEvent;
 23    public static AudioEvent builderReady => CommonScriptableObjects.GetOrLoad(ref builderReadyEvent, "ScriptableObjects
 24
 25    // Common UI
 26
 27    private static AudioEvent cameraFadeInEvent;
 28    public static AudioEvent cameraFadeIn => CommonScriptableObjects.GetOrLoad(ref cameraFadeInEvent, "ScriptableObjects
 29
 30    private static AudioEvent cameraFadeOutEvent;
 31    public static AudioEvent cameraFadeOut => CommonScriptableObjects.GetOrLoad(ref cameraFadeOutEvent, "ScriptableObjec
 32
 33    private static AudioEvent buttonHoverEvent;
 34    public static AudioEvent buttonHover => CommonScriptableObjects.GetOrLoad(ref buttonHoverEvent, "ScriptableObjects/A
 35
 36    private static AudioEvent buttonClickEvent;
 37    public static AudioEvent buttonClick => CommonScriptableObjects.GetOrLoad(ref buttonClickEvent, "ScriptableObjects/A
 38
 39    private static AudioEvent buttonReleaseEvent;
 40    public static AudioEvent buttonRelease => CommonScriptableObjects.GetOrLoad(ref buttonReleaseEvent, "ScriptableObjec
 41
 42    private static AudioEvent cancelEvent;
 43    public static AudioEvent cancel => CommonScriptableObjects.GetOrLoad(ref cancelEvent, "ScriptableObjects/AudioEvents
 44
 45    private static AudioEvent confirmEvent;
 46    public static AudioEvent confirm => CommonScriptableObjects.GetOrLoad(ref confirmEvent, "ScriptableObjects/AudioEven
 47
 48    private static AudioEvent dialogOpenEvent;
 49    public static AudioEvent dialogOpen => CommonScriptableObjects.GetOrLoad(ref dialogOpenEvent, "ScriptableObjects/Aud
 50
 51    private static AudioEvent dialogCloseEvent;
 52    public static AudioEvent dialogClose => CommonScriptableObjects.GetOrLoad(ref dialogCloseEvent, "ScriptableObjects/A
 53
 54    private static AudioEvent enableEvent;
 55    public static AudioEvent enable => CommonScriptableObjects.GetOrLoad(ref enableEvent, "ScriptableObjects/AudioEvents
 56
 57    private static AudioEvent errorEvent;
 58    public static AudioEvent error => CommonScriptableObjects.GetOrLoad(ref errorEvent, "ScriptableObjects/AudioEvents/H
 59
 60    private static AudioEvent disableEvent;
 61    public static AudioEvent disable => CommonScriptableObjects.GetOrLoad(ref disableEvent, "ScriptableObjects/AudioEven
 62
 63    private static AudioEvent fadeInEvent;
 64    public static AudioEvent fadeIn => CommonScriptableObjects.GetOrLoad(ref fadeInEvent, "ScriptableObjects/AudioEvents
 65
 66    private static AudioEvent fadeOutEvent;
 67    public static AudioEvent fadeOut => CommonScriptableObjects.GetOrLoad(ref fadeOutEvent, "ScriptableObjects/AudioEven
 68
 69    private static AudioEvent_WithPitchIncrement listItemAppearEvent;
 70    public static AudioEvent_WithPitchIncrement listItemAppear => CommonScriptableObjects.GetOrLoad(ref listItemAppearEv
 71
 72    private static AudioEvent chatReceiveGlobalEvent;
 73    public static AudioEvent chatReceiveGlobal => CommonScriptableObjects.GetOrLoad(ref chatReceiveGlobalEvent, "Scripta
 74
 75    private static AudioEvent chatReceivePrivateEvent;
 76    public static AudioEvent chatReceivePrivate => CommonScriptableObjects.GetOrLoad(ref chatReceivePrivateEvent, "Scrip
 77
 78    private static AudioEvent chatSendEvent;
 79    public static AudioEvent chatSend => CommonScriptableObjects.GetOrLoad(ref chatSendEvent, "ScriptableObjects/AudioEv
 80
 81    private static AudioEvent notificationEvent;
 82    public static AudioEvent notification => CommonScriptableObjects.GetOrLoad(ref notificationEvent, "ScriptableObjects
 83
 84    private static AudioEvent sliderValueChangeEvent;
 85    public static AudioEvent sliderValueChange => CommonScriptableObjects.GetOrLoad(ref sliderValueChangeEvent, "Scripta
 86
 87    private static AudioEvent inputFieldFocusEvent;
 88    public static AudioEvent inputFieldFocus => CommonScriptableObjects.GetOrLoad(ref inputFieldFocusEvent, "ScriptableO
 89
 90    private static AudioEvent inputFieldUnfocusEvent;
 91    public static AudioEvent inputFieldUnfocus => CommonScriptableObjects.GetOrLoad(ref inputFieldUnfocusEvent, "Scripta
 92
 93    private static AudioEvent UIHideEvent;
 94    public static AudioEvent UIHide => CommonScriptableObjects.GetOrLoad(ref UIHideEvent, "ScriptableObjects/AudioEvents
 95
 96    private static AudioEvent UIShowEvent;
 97    public static AudioEvent UIShow => CommonScriptableObjects.GetOrLoad(ref UIShowEvent, "ScriptableObjects/AudioEvents
 98
 99    private static AudioEvent tooltipPopupEvent;
 100    public static AudioEvent tooltipPopup => CommonScriptableObjects.GetOrLoad(ref tooltipPopupEvent, "ScriptableObjects
 101}
 102
 103public static class CommonScriptableObjects
 104{
 105    private static Vector3Variable playerUnityPositionValue;
 106    public static Vector3Variable playerUnityPosition => GetOrLoad(ref playerUnityPositionValue, "ScriptableObjects/Play
 107
 108    private static Vector3Variable playerWorldPositionValue;
 109    public static Vector3Variable playerWorldPosition => GetOrLoad(ref playerWorldPositionValue, "ScriptableObjects/Play
 110
 111    private static Vector3Variable playerUnityEulerAnglesValue;
 112    public static Vector3Variable playerUnityEulerAngles => GetOrLoad(ref playerUnityEulerAnglesValue, "ScriptableObject
 113
 114    private static Vector3Variable worldOffsetValue;
 115    public static Vector3Variable worldOffset => GetOrLoad(ref worldOffsetValue, "ScriptableObjects/WorldOffset");
 116
 117    private static Vector2IntVariable playerCoordsValue;
 118    public static Vector2IntVariable playerCoords => GetOrLoad(ref playerCoordsValue, "ScriptableObjects/PlayerCoords");
 119
 120    private static BooleanVariable playerIsOnMovingPlatformValue;
 121    public static BooleanVariable playerIsOnMovingPlatform => GetOrLoad(ref playerIsOnMovingPlatformValue, "ScriptableOb
 122
 123    private static QuaternionVariable movingPlatformRotationDeltaValue;
 124    public static QuaternionVariable movingPlatformRotationDelta => GetOrLoad(ref movingPlatformRotationDeltaValue, "Scr
 125
 126    private static StringVariable sceneIDValue;
 127    public static StringVariable sceneID => GetOrLoad(ref sceneIDValue, "ScriptableObjects/SceneID");
 128
 129    private static FloatVariable minimapZoomValue;
 130    public static FloatVariable minimapZoom => GetOrLoad(ref minimapZoomValue, "ScriptableObjects/MinimapZoom");
 131
 132    private static Vector3NullableVariable characterForwardValue;
 133    public static Vector3NullableVariable characterForward => GetOrLoad(ref characterForwardValue, "ScriptableObjects/Ch
 134
 135    private static Vector3Variable cameraForwardValue;
 136    public static Vector3Variable cameraForward => GetOrLoad(ref cameraForwardValue, "ScriptableObjects/CameraForward");
 137
 138    private static Vector3Variable cameraPositionValue;
 139    public static Vector3Variable cameraPosition => GetOrLoad(ref cameraPositionValue, "ScriptableObjects/CameraPosition
 140
 141    private static Vector3Variable cameraRightValue;
 142    public static Vector3Variable cameraRight => GetOrLoad(ref cameraRightValue, "ScriptableObjects/CameraRight");
 143
 144    private static BooleanVariable cameraIsBlendingValue;
 145    public static BooleanVariable cameraIsBlending => GetOrLoad(ref cameraIsBlendingValue, "ScriptableObjects/CameraIsBl
 146
 147    private static BooleanVariable cameraBlockedValue;
 148    public static BooleanVariable cameraBlocked => GetOrLoad(ref cameraBlockedValue, "ScriptableObjects/CameraBlocked");
 149
 150    private static BooleanVariable playerInfoCardVisibleStateValue;
 151    public static BooleanVariable playerInfoCardVisibleState => GetOrLoad(ref playerInfoCardVisibleStateValue, "Scriptab
 152
 153    public static RendererState rendererState => GetOrLoad(ref rendererStateValue, "ScriptableObjects/RendererState");
 154    private static RendererState rendererStateValue;
 155
 156    public static BooleanVariable focusState => GetOrLoad(ref focusStateValue, "ScriptableObjects/FocusState");
 157    private static BooleanVariable focusStateValue;
 158
 159    private static ReadMessagesDictionary lastReadChatMessagesDictionary;
 160    public static ReadMessagesDictionary lastReadChatMessages => GetOrLoad(ref lastReadChatMessagesDictionary, "Scriptab
 161
 162    private static LongVariable lastReadChatMessagesValue;
 163    public static LongVariable lastReadWorldChatMessages => GetOrLoad(ref lastReadChatMessagesValue, "ScriptableObjects/
 164
 165    private static BooleanVariable allUIHiddenValue;
 166    public static BooleanVariable allUIHidden => GetOrLoad(ref allUIHiddenValue, "ScriptableObjects/AllUIHidden");
 167
 168    private static BooleanVariable builderInWorldNotNecessaryUIVisibilityStatusValue;
 169    public static BooleanVariable builderInWorldNotNecessaryUIVisibilityStatus => GetOrLoad(ref builderInWorldNotNecessa
 170
 171    private static LatestOpenChatsList latestOpenChatsValue;
 172    public static LatestOpenChatsList latestOpenChats => GetOrLoad(ref latestOpenChatsValue, "ScriptableObjects/LatestOp
 173
 174    private static CameraMode cameraModeValue;
 175    public static CameraMode cameraMode => GetOrLoad(ref cameraModeValue, "ScriptableObjects/CameraMode");
 176
 177    private static BooleanVariable isProfileHUDOpenValue;
 178    public static BooleanVariable isProfileHUDOpen => GetOrLoad(ref isProfileHUDOpenValue, "ScriptableObjects/IsProfileH
 179
 180    private static BooleanVariable isFullscreenHUDOpenValue;
 181    public static BooleanVariable isFullscreenHUDOpen => GetOrLoad(ref isFullscreenHUDOpenValue, "ScriptableObjects/IsAv
 182
 183    private static BooleanVariable isTaskbarHUDInitializedValue;
 184    public static BooleanVariable isTaskbarHUDInitialized => GetOrLoad(ref isTaskbarHUDInitializedValue, "ScriptableObje
 185
 186    private static BooleanVariable tutorialActiveValue;
 187    public static BooleanVariable tutorialActive => GetOrLoad(ref tutorialActiveValue, "ScriptableObjects/TutorialActive
 188
 189    private static BooleanVariable featureKeyTriggersBlockedValue;
 190    public static BooleanVariable featureKeyTriggersBlocked => GetOrLoad(ref featureKeyTriggersBlockedValue, "Scriptable
 191
 192    private static BooleanVariable motdActiveValue;
 193    public static BooleanVariable motdActive => GetOrLoad(ref motdActiveValue, "ScriptableObjects/MOTDActive");
 194
 195    private static BooleanVariable emailPromptActiveValue;
 196    public static BooleanVariable emailPromptActive => GetOrLoad(ref emailPromptActiveValue, "ScriptableObjects/EmailPro
 197
 198    private static BooleanVariable voiceChatDisabledValue;
 199    public static BooleanVariable voiceChatDisabled => GetOrLoad(ref voiceChatDisabledValue, "ScriptableObjects/VoiceCha
 200
 201    public static T GetOrLoad<T>(ref T variable, string path) where T : Object
 202    {
 203        if (variable == null)
 204        {
 205            variable = Resources.Load<T>(path);
 206        }
 207
 208        return variable;
 209    }
 210}