From 9e4749efd3353ff1c6c3ad08ca8b1937ddf2275a Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 10 Sep 2024 20:36:02 +0100 Subject: [PATCH] :construction: Ifdefs for notion data added again --- .../Auto Download All/DownloadAllHandler.cs | 8 +++-- .../Creator Tool/NotionDataAssetCreator.cs | 8 +++-- .../Editors/Drawer/NotionWrapperEditor.cs | 8 +++-- .../PropertyDrawerNotionSortProperty.cs | 8 +++-- .../Inspectors/NotionDataAssetEditor.cs | 8 +++-- .../Api Version/NotionApiReleaseVersion.cs | 8 +++-- .../Api Version/NotionApiVersion.cs | 31 +++++++++++++++++-- .../Api Version/NotionApiVersionHelper.cs | 8 +++-- .../Download Result/NotionDownloadParser.cs | 8 +++-- .../Notion Api/Meta Data/NotionMetaData.cs | 8 +++-- .../INotionDatabasePropertyParser.cs | 8 +++-- .../NotionDatabasePropertyParserCheckbox.cs | 8 +++-- .../NotionDatabasePropertyParserDate.cs | 8 +++-- ...NotionDatabasePropertyParserMultiSelect.cs | 8 +++-- .../NotionDatabasePropertyParserNumber.cs | 8 +++-- .../NotionDatabasePropertyParserRichText.cs | 8 +++-- .../NotionDatabasePropertyParserSelect.cs | 8 +++-- .../NotionDatabasePropertyParserTitle.cs | 8 +++-- .../Notion Api/NotionApiRequestHandler.cs | 8 +++-- .../Request Data/NotionRequestData.cs | 8 +++-- .../Request Data/NotionRequestError.cs | 8 +++-- .../Request Data/NotionRequestResult.cs | 8 +++-- .../Secret Key/NotionSecretKeyValidator.cs | 8 +++-- .../NotionSortPropertyHelper.cs | 8 +++-- .../Editor/Utility/BuildHandlerSecretKeys.cs | 8 +++-- .../Notion/Data Assets/NotionDataAsset.cs | 8 +++-- .../NotionArrayWrapper.cs | 8 +++-- .../NotionDatabaseProperty.cs | 8 +++-- .../NotionDatabaseQueryResult.cs | 8 +++-- .../NotionDatabaseRow.cs | 8 +++-- .../DateTime/SerializableDateTime.cs | 8 +++-- .../Sort Properties/NotionSortProperty.cs | 8 +++-- .../Notion/Wrappers/NotionDataWrapper.cs | 8 +++-- .../Wrappers/NotionDataWrapperAudioClip.cs | 8 +++-- .../Wrappers/NotionDataWrapperPrefab.cs | 8 +++-- .../Wrappers/NotionDataWrapperSprite.cs | 8 +++-- 36 files changed, 239 insertions(+), 72 deletions(-) diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Auto Download All/DownloadAllHandler.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Auto Download All/DownloadAllHandler.cs index cc97ba2e..c92b499c 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Auto Download All/DownloadAllHandler.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Auto Download All/DownloadAllHandler.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -208,4 +210,6 @@ private static void OnAllDownloadCompleted() } } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Creator Tool/NotionDataAssetCreator.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Creator Tool/NotionDataAssetCreator.cs index c440dd2e..0d7f7a7d 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Creator Tool/NotionDataAssetCreator.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Creator Tool/NotionDataAssetCreator.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -155,4 +157,6 @@ private void CreateDataFile() EditorUtility.SetDirty(AssetDatabase.LoadAssetAtPath(pathToTextFile)); } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Drawer/NotionWrapperEditor.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Drawer/NotionWrapperEditor.cs index 48b21fc3..46f7a212 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Drawer/NotionWrapperEditor.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Drawer/NotionWrapperEditor.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -48,4 +50,6 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten EditorGUI.EndProperty(); } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Drawer/PropertyDrawerNotionSortProperty.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Drawer/PropertyDrawerNotionSortProperty.cs index b8ed3cba..cb8e64f4 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Drawer/PropertyDrawerNotionSortProperty.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Drawer/PropertyDrawerNotionSortProperty.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -60,4 +62,6 @@ public override float GetPropertyHeight(SerializedProperty property, GUIContent return EditorGUIUtility.singleLineHeight; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Inspectors/NotionDataAssetEditor.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Inspectors/NotionDataAssetEditor.cs index f6668c85..05e5b8e6 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Inspectors/NotionDataAssetEditor.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Editors/Inspectors/NotionDataAssetEditor.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -153,4 +155,6 @@ private void OnErrorReceived(NotionRequestError error) serializedObject.Update(); } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Api Version/NotionApiReleaseVersion.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Api Version/NotionApiReleaseVersion.cs index af6e7124..51467d34 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Api Version/NotionApiReleaseVersion.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Api Version/NotionApiReleaseVersion.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -32,4 +34,6 @@ public enum NotionApiReleaseVersion { [InspectorName("2022-06-28")] NotionApi20220628 = 0, } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Api Version/NotionApiVersion.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Api Version/NotionApiVersion.cs index 3453ce30..e782dc91 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Api Version/NotionApiVersion.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Api Version/NotionApiVersion.cs @@ -1,4 +1,29 @@ -using UnityEngine; +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* + * Copyright (c) 2024 Carter Games + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +using UnityEngine; namespace CarterGames.Cart.Modules.NotionData.Editor { @@ -9,4 +34,6 @@ public enum NotionApiVersion { [InspectorName("V1 (Default)")] V1 = 0, } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Api Version/NotionApiVersionHelper.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Api Version/NotionApiVersionHelper.cs index 20885314..a7a1c621 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Api Version/NotionApiVersionHelper.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Api Version/NotionApiVersionHelper.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -37,4 +39,6 @@ public static string ToVersionString(this NotionApiReleaseVersion apiReleaseVers }; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Download Result/NotionDownloadParser.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Download Result/NotionDownloadParser.cs index c9c67aab..9150e5f5 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Download Result/NotionDownloadParser.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Download Result/NotionDownloadParser.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -133,4 +135,6 @@ private static string GetValueForType(string type, JSONNode element) return DatabasePropertyParserLookup[type].GetJsonValue(element); } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Meta Data/NotionMetaData.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Meta Data/NotionMetaData.cs index 87a62cdd..38206a73 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Meta Data/NotionMetaData.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Meta Data/NotionMetaData.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -62,4 +64,6 @@ public static class NotionMetaData "Link to database:", "The link to the page with the database on that you want to download."); } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/INotionDatabasePropertyParser.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/INotionDatabasePropertyParser.cs index d703e5c2..c9ba5589 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/INotionDatabasePropertyParser.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/INotionDatabasePropertyParser.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -30,4 +32,6 @@ public interface INotionDatabasePropertyParser string PropertyIdentifier { get; } string GetJsonValue(JSONNode json); } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserCheckbox.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserCheckbox.cs index 52f9a50d..96081a2d 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserCheckbox.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserCheckbox.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -35,4 +37,6 @@ public string GetJsonValue(JSONNode json) return json["checkbox"].Value; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserDate.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserDate.cs index 814671d6..ca2c23e0 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserDate.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserDate.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -65,4 +67,6 @@ public string GetJsonValue(JSONNode json) return JsonUtility.ToJson(new SerializableDateTime(dateTime)); } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserMultiSelect.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserMultiSelect.cs index 59495971..64510999 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserMultiSelect.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserMultiSelect.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -42,4 +44,6 @@ public string GetJsonValue(JSONNode json) return elements.ToString(); } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserNumber.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserNumber.cs index 22225a0a..337d0e0e 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserNumber.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserNumber.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -35,4 +37,6 @@ public string GetJsonValue(JSONNode json) return json["number"].Value; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserRichText.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserRichText.cs index 5caf15d7..d4b37a54 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserRichText.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserRichText.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -35,4 +37,6 @@ public string GetJsonValue(JSONNode json) return json["rich_text"][0]["text"]["content"].Value; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserSelect.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserSelect.cs index 8c934f4c..fa8f83b3 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserSelect.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserSelect.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -35,4 +37,6 @@ public string GetJsonValue(JSONNode json) return json["select"]["name"] == null ? null : json["select"]["name"].Value; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserTitle.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserTitle.cs index b34154f4..13515490 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserTitle.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Notion Property Parsers/NotionDatabasePropertyParserTitle.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -35,4 +37,6 @@ public string GetJsonValue(JSONNode json) return json["title"][0]["text"]["content"].Value; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/NotionApiRequestHandler.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/NotionApiRequestHandler.cs index bac4e166..36f44d16 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/NotionApiRequestHandler.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/NotionApiRequestHandler.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -227,4 +229,6 @@ public static void ResetRequestData() requestData = null; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Request Data/NotionRequestData.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Request Data/NotionRequestData.cs index d8ca58ef..60e53488 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Request Data/NotionRequestData.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Request Data/NotionRequestData.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -123,4 +125,6 @@ public void AppendResultData(List> data) } } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Request Data/NotionRequestError.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Request Data/NotionRequestError.cs index 108deb19..f77fc112 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Request Data/NotionRequestError.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Request Data/NotionRequestError.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -87,4 +89,6 @@ public NotionRequestError(DataAsset asset, JSONNode errorJson) message = errorJson["message"]; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Request Data/NotionRequestResult.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Request Data/NotionRequestResult.cs index 28d8c98d..6928fac5 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Request Data/NotionRequestResult.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Request Data/NotionRequestResult.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -73,4 +75,6 @@ public NotionRequestResult(List> data, bool silen SilentResponse = silentResponse; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Secret Key/NotionSecretKeyValidator.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Secret Key/NotionSecretKeyValidator.cs index 242a855d..ef9c5d15 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Secret Key/NotionSecretKeyValidator.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Secret Key/NotionSecretKeyValidator.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -52,4 +54,6 @@ public static bool IsKeyValid(string key) key.Substring(0, key.Length - APIKeyPrefix.Length).Length.Equals(APIKeySuffixLength); } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Sort Properties/NotionSortPropertyHelper.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Sort Properties/NotionSortPropertyHelper.cs index 4ec93c49..d5c0337f 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Sort Properties/NotionSortPropertyHelper.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Notion/Notion Api/Sort Properties/NotionSortPropertyHelper.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -87,4 +89,6 @@ public static JSONArray ToJsonArray(this NotionSortProperty[] sortProperties) return array; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Editor/Utility/BuildHandlerSecretKeys.cs b/Carter Games/The Cart/Modules/Notion/Code/Editor/Utility/BuildHandlerSecretKeys.cs index 4b2dc612..450f850e 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Editor/Utility/BuildHandlerSecretKeys.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Editor/Utility/BuildHandlerSecretKeys.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -69,4 +71,6 @@ public void OnPostprocessBuild(BuildReport report) } } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Data Assets/NotionDataAsset.cs b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Data Assets/NotionDataAsset.cs index b42ba7ff..1d533008 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Data Assets/NotionDataAsset.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Data Assets/NotionDataAsset.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -117,4 +119,6 @@ private void Apply(NotionDatabaseQueryResult result) protected virtual void PostDataDownloaded() { } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionArrayWrapper.cs b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionArrayWrapper.cs index bbd2d20c..9228e660 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionArrayWrapper.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionArrayWrapper.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -31,4 +33,6 @@ public class NotionArrayWrapper { public List list; } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionDatabaseProperty.cs b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionDatabaseProperty.cs index f2f90a13..be363dea 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionDatabaseProperty.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionDatabaseProperty.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -313,4 +315,6 @@ private bool TryParseAsList(Type fieldType, out object result) return result != null; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionDatabaseQueryResult.cs b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionDatabaseQueryResult.cs index 5e1dbc43..5f0fd33b 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionDatabaseQueryResult.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionDatabaseQueryResult.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -63,4 +65,6 @@ public NotionDatabaseQueryResult(List data) dataDownloaded = data.AsEnumerable().ToList(); } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionDatabaseRow.cs b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionDatabaseRow.cs index 9bc05468..8e008aaf 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionDatabaseRow.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Notion Database Handling/NotionDatabaseRow.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -61,4 +63,6 @@ public NotionDatabaseRow(SerializableDictionary this.data = data; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Serialization/DateTime/SerializableDateTime.cs b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Serialization/DateTime/SerializableDateTime.cs index a99d0c8d..e30b0481 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Serialization/DateTime/SerializableDateTime.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Serialization/DateTime/SerializableDateTime.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -186,4 +188,6 @@ public static implicit operator DateTime(SerializableDateTime serializableDateTi ); } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Sort Properties/NotionSortProperty.cs b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Sort Properties/NotionSortProperty.cs index 84063da3..e6dc8e55 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Sort Properties/NotionSortProperty.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Sort Properties/NotionSortProperty.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -69,4 +71,6 @@ public NotionSortProperty(string property, bool sortAscending) ascending = sortAscending; } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapper.cs b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapper.cs index 7513141e..ad28a05c 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapper.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapper.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -120,4 +122,6 @@ public static implicit operator NotionDataWrapper(T reference) return new NotionDataWrapper(reference.name); } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapperAudioClip.cs b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapperAudioClip.cs index de5f0224..3fbb9b16 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapperAudioClip.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapperAudioClip.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -34,4 +36,6 @@ public class NotionDataWrapperAudioClip : NotionDataWrapper { public NotionDataWrapperAudioClip(string id) : base(id) { } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapperPrefab.cs b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapperPrefab.cs index f2d86d76..6305607b 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapperPrefab.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapperPrefab.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -34,4 +36,6 @@ public class NotionDataWrapperPrefab : NotionDataWrapper { public NotionDataWrapperPrefab(string id) : base(id) { } } -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapperSprite.cs b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapperSprite.cs index 546ce557..18aae250 100644 --- a/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapperSprite.cs +++ b/Carter Games/The Cart/Modules/Notion/Code/Runtime/Notion/Wrappers/NotionDataWrapperSprite.cs @@ -1,4 +1,6 @@ -/* +#if CARTERGAMES_CART_MODULE_NOTIONDATA + +/* * Copyright (c) 2024 Carter Games * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -34,4 +36,6 @@ public class NotionDataWrapperSprite : NotionDataWrapper { public NotionDataWrapperSprite(string id) : base(id) { } } -} \ No newline at end of file +} + +#endif \ No newline at end of file