From 236a7ae4db79665aad580297b3d5cdd6efb4cadb Mon Sep 17 00:00:00 2001 From: Hertzole Date: Thu, 29 Apr 2021 20:11:23 +0200 Subject: [PATCH] Revert "Added development." This reverts commit 418bd876d99ef0e60f22586a3d1dc9a2ab6490d7. --- .github/workflows/ci.yml | 21 + .github/workflows/development.yml | 27 - .github/workflows/publish.yml | 27 - .github/workflows/tests.yml | 35 - .gitignore | 14 +- Assets/Editor.meta | 8 - Assets/Editor/TempEditor.cs | 65 -- Assets/Editor/TempEditor.cs.meta | 11 - Assets/GC1Tester.cs | 14 - Assets/GC1Tester.cs.meta | 11 - Assets/GC2Tester.cs | 9 - Assets/GC2Tester.cs.meta | 11 - Assets/GetComponentTester.cs | 45 - Assets/GetComponentTester.cs.meta | 11 - Assets/LogTester.cs | 150 --- Assets/LogTester.cs.meta | 11 - Assets/Parent Renderer.prefab | 241 ---- Assets/Parent Renderer.prefab.meta | 7 - Assets/ResetStaticTest.cs | 164 --- Assets/ResetStaticTest.cs.meta | 11 - Assets/Scenes.meta | 8 - Assets/Scenes/SampleScene.unity | 466 -------- Assets/Scenes/SampleScene.unity.meta | 7 - Assets/Temp.cs | 80 -- Assets/Temp.cs.meta | 11 - Assets/TimedTest.cs | 89 -- Assets/TimedTest.cs.meta | 11 - .../CHANGELOG.md => CHANGELOG.md | 0 .../CHANGELOG.md.meta => CHANGELOG.md.meta | 0 .../Editor.meta => Editor.meta | 0 .../Editor => Editor}/Data.meta | 0 .../Editor => Editor}/Data/MemberData.cs | 34 +- .../Editor => Editor}/Data/MemberData.cs.meta | 0 .../Editor => Editor}/Helpers.meta | 0 .../Helpers/StringExtensions.cs | 0 .../Helpers/StringExtensions.cs.meta | 0 .../Hertzole.CecilAttributes.Editor.asmdef | 0 ...ertzole.CecilAttributes.Editor.asmdef.meta | 0 .../Editor => Editor}/Processors.meta | 0 .../Processors/BaseProcessor.cs | 0 .../Processors/BaseProcessor.cs.meta | 0 .../Processors/FindPropertyProcessor.cs | 0 .../Processors/FindPropertyProcessor.cs.meta | 0 .../Processors/LogCalledProcessor.cs | 40 +- .../Processors/LogCalledProcessor.cs.meta | 0 .../Processors/MarkInProfilerProcessor.cs | 0 .../MarkInProfilerProcessor.cs.meta | 0 Editor/Processors/OnChangeProcessor.cs | 112 ++ .../Processors/OnChangeProcessor.cs.meta | 0 .../Processors/ResetStaticProcessor.cs | 2 +- .../Processors/ResetStaticProcessor.cs.meta | 0 .../Processors/TimedProcessor.cs | 0 .../Processors/TimedProcessor.cs.meta | 0 .../Editor => Editor}/Settings.meta | 0 .../Settings/CecilAttributesSettings.cs | 0 .../Settings/CecilAttributesSettings.cs.meta | 0 .../Settings/CecilAttributesSettingsGUI.cs | 0 .../CecilAttributesSettingsGUI.cs.meta | 0 .../CecilAttributesSettingsProvider.cs | 0 .../CecilAttributesSettingsProvider.cs.meta | 0 .../Editor => Editor}/Weaver.meta | 0 .../Editor => Editor}/Weaver/CompileHook.cs | 0 .../Weaver/CompileHook.cs.meta | 0 .../Editor => Editor}/Weaver/Extensions.meta | 0 .../Weaver/Extensions/AttributeExtensions.cs | 14 - .../Extensions/AttributeExtensions.cs.meta | 0 .../Weaver/Extensions/FieldExtensions.cs | 0 .../Weaver/Extensions/FieldExtensions.cs.meta | 0 .../Weaver/Extensions/MethodExtensions.cs | 54 - .../Extensions/MethodExtensions.cs.meta | 0 .../Weaver/Extensions/PropertyExtensions.cs | 28 +- .../Extensions/PropertyExtensions.cs.meta | 0 .../Weaver/Extensions/TypeExtensions.cs | 0 .../Weaver/Extensions/TypeExtensions.cs.meta | 0 .../Editor => Editor}/Weaver/PlayModeCheck.cs | 0 .../Weaver/PlayModeCheck.cs.meta | 0 .../Editor => Editor}/Weaver/Weaver.cs | 0 .../Editor => Editor}/Weaver/Weaver.cs.meta | 0 .../Weaver/WeaverAttributes.cs | 8 +- .../Weaver/WeaverAttributes.cs.meta | 0 .../Weaver/WeaverConstants.cs | 0 .../Weaver/WeaverConstants.cs.meta | 0 .../Editor => Editor}/Weaver/WeaverHelpers.cs | 0 .../Weaver/WeaverHelpers.cs.meta | 0 .../LICENSE => LICENSE | 0 .../LICENSE.meta => LICENSE.meta | 0 Packages/manifest.json | 53 - Packages/packages-lock.json | 346 ------ .../se.hertzole.cecil-attributes/.gitignore | 60 - .../Processors/GetComponentProcessor.cs | 142 --- .../Processors/GetComponentProcessor.cs.meta | 11 - .../Editor/Processors/ILExtensions.cs | 42 - .../Editor/Processors/ILExtensions.cs.meta | 11 - .../Editor/Processors/OnChangeProcessor.cs | 233 ---- .../se.hertzole.cecil-attributes/README.md | 88 -- .../Attributes/GetComponentAttribute.cs | 12 - .../Attributes/GetComponentAttribute.cs.meta | 11 - .../se.hertzole.cecil-attributes/Tests.meta | 8 - .../Hertzole.CecilAttributes.Tests.asmdef | 22 - ...Hertzole.CecilAttributes.Tests.asmdef.meta | 7 - .../Tests/LogCalledTests.cs | 1031 ----------------- .../Tests/LogCalledTests.cs.meta | 11 - ProjectSettings/ACTkSettings.asset | 20 - ProjectSettings/AudioManager.asset | 19 - ProjectSettings/ClusterInputManager.asset | 6 - ProjectSettings/DynamicsManager.asset | 34 - ProjectSettings/EditorBuildSettings.asset | 11 - ProjectSettings/EditorSettings.asset | 40 - ProjectSettings/GraphicsSettings.asset | 63 - ProjectSettings/InputManager.asset | 295 ----- ProjectSettings/NavMeshAreas.asset | 91 -- ProjectSettings/PackageManagerSettings.asset | 57 - .../CecilAttributesSettings.asset | 29 - ProjectSettings/Physics2DSettings.asset | 56 - ProjectSettings/PresetManager.asset | 7 - ProjectSettings/ProjectSettings.asset | 671 ----------- ProjectSettings/ProjectVersion.txt | 2 - ProjectSettings/QualitySettings.asset | 232 ---- ProjectSettings/SceneTemplateSettings.json | 167 --- ProjectSettings/TagManager.asset | 43 - ProjectSettings/TimeManager.asset | 9 - ProjectSettings/TimelineSettings.asset | 15 - ProjectSettings/UnityConnectSettings.asset | 34 - ProjectSettings/VFXManager.asset | 12 - ProjectSettings/VersionControlSettings.asset | 8 - ProjectSettings/XRSettings.asset | 10 - .../README.md.meta => README.md.meta | 0 .../Runtime.meta => Runtime.meta | 0 .../Runtime => Runtime}/Attributes.meta | 0 .../CecilAttributesProcessedAttribute.cs | 0 .../CecilAttributesProcessedAttribute.cs.meta | 0 .../Attributes/FindProperty.cs | 0 .../Attributes/FindProperty.cs.meta | 0 .../Attributes/LogCalledAttribute.cs | 0 .../Attributes/LogCalledAttribute.cs.meta | 0 .../Attributes/MarkInProfilerAttribute.cs | 0 .../MarkInProfilerAttribute.cs.meta | 0 .../Attributes/OnChangeAttribute.cs | 10 +- .../Attributes/OnChangeAttribute.cs.meta | 0 .../Attributes/ResetStaticAttribute.cs | 0 .../Attributes/ResetStaticAttribute.cs.meta | 0 .../Attributes/TimedAttribute.cs | 0 .../Attributes/TimedAttribute.cs.meta | 0 .../Hertzole.CecilAttributes.asmdef | 0 .../Hertzole.CecilAttributes.asmdef.meta | 0 .../package.json => package.json | 0 .../package.json.meta => package.json.meta | 0 147 files changed, 164 insertions(+), 5722 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/development.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/tests.yml delete mode 100644 Assets/Editor.meta delete mode 100644 Assets/Editor/TempEditor.cs delete mode 100644 Assets/Editor/TempEditor.cs.meta delete mode 100644 Assets/GC1Tester.cs delete mode 100644 Assets/GC1Tester.cs.meta delete mode 100644 Assets/GC2Tester.cs delete mode 100644 Assets/GC2Tester.cs.meta delete mode 100644 Assets/GetComponentTester.cs delete mode 100644 Assets/GetComponentTester.cs.meta delete mode 100644 Assets/LogTester.cs delete mode 100644 Assets/LogTester.cs.meta delete mode 100644 Assets/Parent Renderer.prefab delete mode 100644 Assets/Parent Renderer.prefab.meta delete mode 100644 Assets/ResetStaticTest.cs delete mode 100644 Assets/ResetStaticTest.cs.meta delete mode 100644 Assets/Scenes.meta delete mode 100644 Assets/Scenes/SampleScene.unity delete mode 100644 Assets/Scenes/SampleScene.unity.meta delete mode 100644 Assets/Temp.cs delete mode 100644 Assets/Temp.cs.meta delete mode 100644 Assets/TimedTest.cs delete mode 100644 Assets/TimedTest.cs.meta rename Packages/se.hertzole.cecil-attributes/CHANGELOG.md => CHANGELOG.md (100%) rename Packages/se.hertzole.cecil-attributes/CHANGELOG.md.meta => CHANGELOG.md.meta (100%) rename Packages/se.hertzole.cecil-attributes/Editor.meta => Editor.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Data.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Data/MemberData.cs (71%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Data/MemberData.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Helpers.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Helpers/StringExtensions.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Helpers/StringExtensions.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Hertzole.CecilAttributes.Editor.asmdef (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Hertzole.CecilAttributes.Editor.asmdef.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors/BaseProcessor.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors/BaseProcessor.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors/FindPropertyProcessor.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors/FindPropertyProcessor.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors/LogCalledProcessor.cs (92%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors/LogCalledProcessor.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors/MarkInProfilerProcessor.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors/MarkInProfilerProcessor.cs.meta (100%) create mode 100644 Editor/Processors/OnChangeProcessor.cs rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors/OnChangeProcessor.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors/ResetStaticProcessor.cs (99%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors/ResetStaticProcessor.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors/TimedProcessor.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Processors/TimedProcessor.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Settings.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Settings/CecilAttributesSettings.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Settings/CecilAttributesSettings.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Settings/CecilAttributesSettingsGUI.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Settings/CecilAttributesSettingsGUI.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Settings/CecilAttributesSettingsProvider.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Settings/CecilAttributesSettingsProvider.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/CompileHook.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/CompileHook.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/Extensions.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/Extensions/AttributeExtensions.cs (93%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/Extensions/AttributeExtensions.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/Extensions/FieldExtensions.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/Extensions/FieldExtensions.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/Extensions/MethodExtensions.cs (63%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/Extensions/MethodExtensions.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/Extensions/PropertyExtensions.cs (64%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/Extensions/PropertyExtensions.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/Extensions/TypeExtensions.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/Extensions/TypeExtensions.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/PlayModeCheck.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/PlayModeCheck.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/Weaver.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/Weaver.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/WeaverAttributes.cs (88%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/WeaverAttributes.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/WeaverConstants.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/WeaverConstants.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/WeaverHelpers.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Editor => Editor}/Weaver/WeaverHelpers.cs.meta (100%) rename Packages/se.hertzole.cecil-attributes/LICENSE => LICENSE (100%) rename Packages/se.hertzole.cecil-attributes/LICENSE.meta => LICENSE.meta (100%) delete mode 100644 Packages/manifest.json delete mode 100644 Packages/packages-lock.json delete mode 100644 Packages/se.hertzole.cecil-attributes/.gitignore delete mode 100644 Packages/se.hertzole.cecil-attributes/Editor/Processors/GetComponentProcessor.cs delete mode 100644 Packages/se.hertzole.cecil-attributes/Editor/Processors/GetComponentProcessor.cs.meta delete mode 100644 Packages/se.hertzole.cecil-attributes/Editor/Processors/ILExtensions.cs delete mode 100644 Packages/se.hertzole.cecil-attributes/Editor/Processors/ILExtensions.cs.meta delete mode 100644 Packages/se.hertzole.cecil-attributes/Editor/Processors/OnChangeProcessor.cs delete mode 100644 Packages/se.hertzole.cecil-attributes/README.md delete mode 100644 Packages/se.hertzole.cecil-attributes/Runtime/Attributes/GetComponentAttribute.cs delete mode 100644 Packages/se.hertzole.cecil-attributes/Runtime/Attributes/GetComponentAttribute.cs.meta delete mode 100644 Packages/se.hertzole.cecil-attributes/Tests.meta delete mode 100644 Packages/se.hertzole.cecil-attributes/Tests/Hertzole.CecilAttributes.Tests.asmdef delete mode 100644 Packages/se.hertzole.cecil-attributes/Tests/Hertzole.CecilAttributes.Tests.asmdef.meta delete mode 100644 Packages/se.hertzole.cecil-attributes/Tests/LogCalledTests.cs delete mode 100644 Packages/se.hertzole.cecil-attributes/Tests/LogCalledTests.cs.meta delete mode 100644 ProjectSettings/ACTkSettings.asset delete mode 100644 ProjectSettings/AudioManager.asset delete mode 100644 ProjectSettings/ClusterInputManager.asset delete mode 100644 ProjectSettings/DynamicsManager.asset delete mode 100644 ProjectSettings/EditorBuildSettings.asset delete mode 100644 ProjectSettings/EditorSettings.asset delete mode 100644 ProjectSettings/GraphicsSettings.asset delete mode 100644 ProjectSettings/InputManager.asset delete mode 100644 ProjectSettings/NavMeshAreas.asset delete mode 100644 ProjectSettings/PackageManagerSettings.asset delete mode 100644 ProjectSettings/Packages/se.hertzole.cecilattributes/CecilAttributesSettings.asset delete mode 100644 ProjectSettings/Physics2DSettings.asset delete mode 100644 ProjectSettings/PresetManager.asset delete mode 100644 ProjectSettings/ProjectSettings.asset delete mode 100644 ProjectSettings/ProjectVersion.txt delete mode 100644 ProjectSettings/QualitySettings.asset delete mode 100644 ProjectSettings/SceneTemplateSettings.json delete mode 100644 ProjectSettings/TagManager.asset delete mode 100644 ProjectSettings/TimeManager.asset delete mode 100644 ProjectSettings/TimelineSettings.asset delete mode 100644 ProjectSettings/UnityConnectSettings.asset delete mode 100644 ProjectSettings/VFXManager.asset delete mode 100644 ProjectSettings/VersionControlSettings.asset delete mode 100644 ProjectSettings/XRSettings.asset rename Packages/se.hertzole.cecil-attributes/README.md.meta => README.md.meta (100%) rename Packages/se.hertzole.cecil-attributes/Runtime.meta => Runtime.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/CecilAttributesProcessedAttribute.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/CecilAttributesProcessedAttribute.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/FindProperty.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/FindProperty.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/LogCalledAttribute.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/LogCalledAttribute.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/MarkInProfilerAttribute.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/MarkInProfilerAttribute.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/OnChangeAttribute.cs (53%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/OnChangeAttribute.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/ResetStaticAttribute.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/ResetStaticAttribute.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/TimedAttribute.cs (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Attributes/TimedAttribute.cs.meta (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Hertzole.CecilAttributes.asmdef (100%) rename {Packages/se.hertzole.cecil-attributes/Runtime => Runtime}/Hertzole.CecilAttributes.asmdef.meta (100%) rename Packages/se.hertzole.cecil-attributes/package.json => package.json (100%) rename Packages/se.hertzole.cecil-attributes/package.json.meta => package.json.meta (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dad22b0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: UPM +on: + release: + types: + - published +jobs: + release: + name: Update Master Package + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Merge develop + run: | + git config --global user.name 'github-bot' + git config --global user.email 'github-bot@users.noreply.github.com' + git checkout master + git pull origin master + git merge origin/develop + git push -f -u origin master \ No newline at end of file diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml deleted file mode 100644 index 1ea6e84..0000000 --- a/.github/workflows/development.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Push to develop -on: - push: - branches: - - development -jobs: - release: - name: Update develop package - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Create develop package branch - run: | - git branch -d develop &> /dev/null || echo develop branch not found - git subtree split -P "$PKG_ROOT" -b develop - mv README.md /tmp/README.md - git checkout develop - mv /tmp/README.md README.md - git add README.md - git config --global user.name 'github-bot' - git config --global user.email 'github-bot@users.noreply.github.com' - git commit -am "Packaged project" - git push -f -u origin develop - env: - PKG_ROOT: Packages/se.hertzole.cecil-attributes/ \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 017dceb..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Publish to master -on: - release: - types: - - published -jobs: - release: - name: Update master package - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Create master package branch - run: | - git branch -d master &> /dev/null || echo master branch not found - git subtree split -P "$PKG_ROOT" -b master - mv README.md /tmp/README.md - git checkout master - mv /tmp/README.md README.md - git add README.md - git config --global user.name 'github-bot' - git config --global user.email 'github-bot@users.noreply.github.com' - git commit -am "Packaged project" - git push -f -u origin master - env: - PKG_ROOT: Packages/se.hertzole.cecil-attributes/ \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index f629e5f..0000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Tests -on: - push: - branch: - - master - -env: - UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} - -jobs: - build: - name: Run Unity tests - runs-on: ubuntu-latest - steps: - # Checkout - - name: Checkout repository - uses: actions/checkout@v2 - with: - lfs: true - - # Cache - - uses: actions/cache@v2.1.4 - with: - path: Library - key: Library - - - name: Run tests 2019.4 - uses: game-ci/unity-test-runner@v2 - with: - unityVersion: "2019.4.20f1" - - - name: Run tests 2020.3 - uses: game-ci/unity-test-runner@v2 - with: - unityVersion: "2020.3.6f1" \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2d5b201..8af868e 100644 --- a/.gitignore +++ b/.gitignore @@ -8,10 +8,6 @@ /[Bb]uild/ /[Bb]uilds/ /[Ll]ogs/ -/[Uu]ser[Ss]ettings/ - -# MemoryCaptures can get excessive in size. -# They also could contain extremely sensitive data /[Mm]emoryCaptures/ # Asset meta data should only be ignored when the corresponding asset is also ignored @@ -21,11 +17,10 @@ # /[Aa]ssets/AssetStoreTools* # Autogenerated Jetbrains Rider plugin -/[Aa]ssets/Plugins/Editor/JetBrains* +[Aa]ssets/Plugins/Editor/JetBrains* # Visual Studio cache directory .vs/ -.idea/ # Gradle cache directory .gradle/ @@ -58,15 +53,8 @@ sysinfo.txt # Builds *.apk -*.aab *.unitypackage # Crashlytics generated file crashlytics-build.properties -# Packed Addressables -/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* - -# Temporary auto-generated Android Assets -/[Aa]ssets/[Ss]treamingAssets/aa.meta -/[Aa]ssets/[Ss]treamingAssets/aa/* diff --git a/Assets/Editor.meta b/Assets/Editor.meta deleted file mode 100644 index 5a9b74a..0000000 --- a/Assets/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b3d61ee5998750e43a02b6882e0df8d7 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Editor/TempEditor.cs b/Assets/Editor/TempEditor.cs deleted file mode 100644 index 3fdabaf..0000000 --- a/Assets/Editor/TempEditor.cs +++ /dev/null @@ -1,65 +0,0 @@ -using Hertzole.CecilAttributes; -using UnityEditor; -using UnityEngine; - -//[CustomEditor(typeof(Temp))] -public class TempEditor : Editor -{ - [FindProperty] - private SerializedProperty test; - [FindProperty] - private SerializedProperty lel; - [FindProperty("cantRememberMe/lol")] - private SerializedProperty test2; - [FindProperty("customName")] - private SerializedProperty thatName; - - [FindProperty("test")] - private SerializedProperty Test { get; set; } - - private SerializedProperty template1; - private SerializedProperty template2; - private SerializedProperty template3; - private SerializedProperty TemplateProperty { get; set; } - - public override void OnInspectorGUI() - { - serializedObject.Update(); - - EditorGUILayout.PropertyField(test); - EditorGUILayout.PropertyField(lel); - EditorGUILayout.PropertyField(test2); - EditorGUILayout.PropertyField(thatName); - - serializedObject.ApplyModifiedProperties(); - } - - //private void OnEnable() - //{ - - //} - - private void OnEnable() - { - Debug.Log("I'm a farthead"); - } - - //private void OnEnable() - //{ - // if (serializedObject.FindProperty("fuck") == null) - // { - // Debug.LogError($"There's no property called 'fuck' on {target}."); - // return; - // } - - // if (serializedObject.FindProperty("fuck").FindPropertyRelative("fuck2") == null) - // { - // Debug.LogError($"There's no property called 'fuck2' on {target}."); - // return; - // } - // template1 = serializedObject.FindProperty("test"); - // template2 = serializedObject.FindProperty("lel"); - // template3 = serializedObject.FindProperty("lel").FindPropertyRelative("lol"); - // TemplateProperty = serializedObject.FindProperty("test"); - //} -} diff --git a/Assets/Editor/TempEditor.cs.meta b/Assets/Editor/TempEditor.cs.meta deleted file mode 100644 index ded3b62..0000000 --- a/Assets/Editor/TempEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fb5acddcc61c7e148a2c1d17833a0a6f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/GC1Tester.cs b/Assets/GC1Tester.cs deleted file mode 100644 index a7e52a5..0000000 --- a/Assets/GC1Tester.cs +++ /dev/null @@ -1,14 +0,0 @@ -using UnityEngine; - -public class GC1Tester : MonoBehaviour -{ - private void Reset() - { - Debug.Log("Reset"); - } - - private void OnValidate() - { - Debug.Log("OnValidate"); - } -} diff --git a/Assets/GC1Tester.cs.meta b/Assets/GC1Tester.cs.meta deleted file mode 100644 index a3bbce6..0000000 --- a/Assets/GC1Tester.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 54e70125837fefd4987a35eb91ad1916 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/GC2Tester.cs b/Assets/GC2Tester.cs deleted file mode 100644 index e5f60f9..0000000 --- a/Assets/GC2Tester.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Hertzole.CecilAttributes; -using UnityEngine; - -public class GC2Tester : GC1Tester -{ - [SerializeField] - [GetComponent] - private Transform trs = null; -} diff --git a/Assets/GC2Tester.cs.meta b/Assets/GC2Tester.cs.meta deleted file mode 100644 index 7f255fe..0000000 --- a/Assets/GC2Tester.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5be0124ff99ba044c89a92514a902431 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/GetComponentTester.cs b/Assets/GetComponentTester.cs deleted file mode 100644 index 299a788..0000000 --- a/Assets/GetComponentTester.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Hertzole.CecilAttributes; -using UnityEngine; - -public class GetComponentTester : MonoBehaviour -{ - [SerializeField] - [GetComponent] - private Transform trs = null; - [SerializeField] - [GetComponent(target = GetComponentTarget.Children)] - private BoxCollider childBox = null; - [SerializeField] - [GetComponent(target = GetComponentTarget.Parent)] - private MeshRenderer parentRenderer = null; - [SerializeField] - private int test = 12; - - private void Template() - { - if (ReferenceEquals(trs, null)) - { - trs = GetComponent(); - } - - if (ReferenceEquals(childBox, null)) - { - childBox = GetComponentInChildren(); - } - } - - private void Reset() - { - Debug.Log("Reset"); - } - - private void OnValidate() - { - Debug.Log("OnValidate"); - } - - private void Test() - { - Template(); - } -} diff --git a/Assets/GetComponentTester.cs.meta b/Assets/GetComponentTester.cs.meta deleted file mode 100644 index 91ea681..0000000 --- a/Assets/GetComponentTester.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c7b0f65d6265882478571ab32e0cdc45 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/LogTester.cs b/Assets/LogTester.cs deleted file mode 100644 index 571cf96..0000000 --- a/Assets/LogTester.cs +++ /dev/null @@ -1,150 +0,0 @@ -using Hertzole.CecilAttributes; -using System.Collections.Generic; -using UnityEngine; - -public class LogTester : MonoBehaviour -{ - private enum TestEnum { Value1, Value3 }; - - private string testField; - - [LogCalled] - public int PropertyTest { get; set; } - - private int temp = 5; - - [LogCalled] - public int PropertyTest2 { get { return temp; } set { temp = value; } } - - [LogCalled(logPropertyGet: true, logPropertySet: false)] - public int OnlyGetMessage { get; set; } = 10; - - [LogCalled(logPropertyGet: false, logPropertySet: true)] - public int OnlySetMessage { get; set; } = 5; - - [LogCalled] - public string PropertyString { get; set; } = "Hello"; - - public int TemplateProperty - { - get - { - Debug.Log($"TemplateProperty Get (temp: {temp})"); - return temp; - } - set - { - int old = temp; - Debug.Log($"TemplateProperty Set (Old: {old}, New: {value})"); - temp = value; - } - } - - int x; - string y = "Y is for why"; - Vector3 z; - - // Start is called before the first frame update - [LogCalled] - void Start() - { - int x = OnlyGetMessage; - OnlySetMessage = 5; - - PropertyTest = 10; - PropertyTest2 = PropertyTest2 + 15; - PropertyString = "World"; - - Test1("This is test", TestEnum.Value1); - Test2(69, 6.66f, "lel"); - ExtremeTest(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 10000); - OutTest(10, out x, 20); - InTest(42, "hello world", Vector3.up, 69, 666, this, TestEnum.Value3); - RefTest(ref x, ref y, ref z); - } - - [LogCalled] - private void Test1(string param1, TestEnum e) - { - } - - [LogCalled] - private static void StaticTest(Animator temp) - { - temps.Add(temp); - } - - private static void StaticTestTemplate(Animator temp, Animator test2, Animator test3, Animator test4) - { - Debug.Log($"StaticTestTemplate {temp} {test2} {test3} {test4}"); - temps.Add(temp); - } - - private static List temps = new List(); - - private void Test1Template(string param1, int x) - { - Debug.Log($"Test1Template {param1}, {x}"); - } - - [LogCalled] - private void Test2(int p1, float p3, string lol) - { - } - - private void Test2Template(int p1, float p3, string lol, LogTester teser) - { - Debug.Log($"Test2Template ({p1}, {lol}, {p3}, {teser})"); - } - - [LogCalled] - private void ExtremeTest(int p1, int p2, int p3, int p4, int p5, int p6, int p7, int p8, int p9, int p10, int p11, int p12, int p13, int p14, int p15) - { - } - - [LogCalled] - private void OutTest(int y, out int x, int z) - { - x = 10; - } - - [LogCalled] - private void InTest(in int x, in string temp, in Vector3 lul, in int y, in int z, in LogTester tes, in TestEnum e) - { - } - - [LogCalled] - private void RefTest(ref int x, ref string y, ref Vector3 z) - { - - } - - private void RefTestTemplate(ref int x, ref string y, ref Vector3 z) - { - Debug.Log($"RefTestTemplate {x}, {y}, {z}"); - } - - private void InTemplate(in int x, in string temp, in Vector3 lul, in int y, in int z, in LogTester tes, in TestEnum e) - { - Debug.Log($"InTemplate {x} {temp} {lul} {y} {z} {tes} {e}"); - } - - private void OutTemplate(out int x) - { - //Debug.Log(string.Format("OutTemplate {0}", x)); - x = 10; - Debug.Log($"OutTemplate {x}"); - } - - private void FormatTest() - { - int x = 15; - - Debug.Log($"{x}"); - Debug.Log($"{x} {x}"); - Debug.Log($"{x} {x} {x}"); - Debug.Log($"{x} {x} {x} {x}"); - Debug.Log($"{x} {x} {x} {x} {x}"); - Debug.Log($"{x} {x} {x} {x} {x} {x}"); - } -} diff --git a/Assets/LogTester.cs.meta b/Assets/LogTester.cs.meta deleted file mode 100644 index b1cbf1f..0000000 --- a/Assets/LogTester.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ee09838e11dbc1d42aee5aea8adbaba2 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Parent Renderer.prefab b/Assets/Parent Renderer.prefab deleted file mode 100644 index 121f88c..0000000 --- a/Assets/Parent Renderer.prefab +++ /dev/null @@ -1,241 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &4680990466085682617 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4680990466085682613} - - component: {fileID: 4680990466085682612} - - component: {fileID: 4680990466085682615} - - component: {fileID: 4680990466085682614} - m_Layer: 0 - m_Name: Parent Renderer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4680990466085682613 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4680990466085682617} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 4680990467151361929} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &4680990466085682612 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4680990466085682617} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!23 &4680990466085682615 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4680990466085682617} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &4680990466085682614 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4680990466085682617} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!1 &4680990466132250264 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4680990466132250265} - - component: {fileID: 4680990466132250260} - - component: {fileID: 4680990466132250263} - - component: {fileID: 4680990466132250262} - m_Layer: 0 - m_Name: Child Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4680990466132250265 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4680990466132250264} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 4680990467151361929} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &4680990466132250260 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4680990466132250264} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!23 &4680990466132250263 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4680990466132250264} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &4680990466132250262 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4680990466132250264} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!1 &4680990467151361928 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4680990467151361929} - - component: {fileID: 5039025769576640096} - m_Layer: 0 - m_Name: Main - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4680990467151361929 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4680990467151361928} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 4680990466132250265} - m_Father: {fileID: 4680990466085682613} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &5039025769576640096 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4680990467151361928} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c7b0f65d6265882478571ab32e0cdc45, type: 3} - m_Name: - m_EditorClassIdentifier: - trs: {fileID: 4680990467151361929} - childBox: {fileID: 4680990466132250262} - parentRenderer: {fileID: 0} - test: -10 diff --git a/Assets/Parent Renderer.prefab.meta b/Assets/Parent Renderer.prefab.meta deleted file mode 100644 index 0c0ddd6..0000000 --- a/Assets/Parent Renderer.prefab.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 786ce6071edef6e44a17e9a4ff31667b -PrefabImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/ResetStaticTest.cs b/Assets/ResetStaticTest.cs deleted file mode 100644 index b5efd58..0000000 --- a/Assets/ResetStaticTest.cs +++ /dev/null @@ -1,164 +0,0 @@ -using Hertzole.CecilAttributes; -using UnityEngine; - -#pragma warning disable CS0414 - -public class ResetStaticTest : MonoBehaviour -{ - private bool changeTester = true; - - private bool changeTest2 = false; - - [ResetStatic] - private static int defaultTest; - - [ResetStatic] - private static int myCustomDefault = 69; - - [ResetStatic] - private static byte byteTest; - [ResetStatic] - private static byte sbyteTest; - [ResetStatic] - private static short shortTest; - [ResetStatic] - private static ushort ushortTest; - [ResetStatic] - private static int intTest; - [ResetStatic] - private static uint uintTest; - [ResetStatic] - private static long longTest; - [ResetStatic] - private static ulong ulongTest; - [ResetStatic] - private static float floatTest; - [ResetStatic] - private static double doubleTest; - [ResetStatic] - private static decimal decimalTest; - [ResetStatic] - private static bool boolTest; - [ResetStatic] - private static string stringTest; - [ResetStatic] - private static Vector3 vector3Test; - [ResetStatic] - private static Vector3 Vector3Test { get; set; } - [ResetStatic] - private static Vector2 Vector2Test { get; set; } - [ResetStatic] - private static Vector4 Vector4Test { get; set; } - [ResetStatic] - private static Vector2Int Vector2IntTest { get; set; } - [ResetStatic] - private static Vector3Int Vector3IntTest { get; set; } - [ResetStatic] - private static Matrix4x4 MatrixTestNeo { get; set; } - [ResetStatic] - private static ResetStaticTest classTest; - [ResetStatic] - private static ResetStaticTest ClassTest { get; set; } - - public static Vector3 vec = new Vector3(10, 10, 10); - - public static Vector3Int v3 = Vector3Int.zero; - - private static int propField = 666; - - private static string Foor = $"Foorbar {propField}"; - - public static bool test1 = false; - public static bool test2 = true; - public static bool test3 = false; - - public static int StaticProp { get; set; } = 5; - public static event System.Action OnTestEvent; - - public static int PropField - { - get - { - return propField; - } - set { propField = value; } - } - - private bool changeTemplate = false; - public bool ChangeTemplate - { - get { return changeTemplate; } - set - { - if (!changeTemplate.Equals(value)) - { - bool oldValue = changeTemplate; - changeTemplate = value; - OnChangeTemplateChanged(oldValue, changeTemplate); - } - } - } - - public static ResetStaticTest Instance { get; private set; } - - private static void DummyMethod() - { - floatTest = 0; - doubleTest = 0; - decimalTest = 0; - vector3Test = new Vector3(); - Vector3Test = new Vector3(); - Vector2Test = new Vector2(); - Vector4Test = new Vector4(); - Vector2IntTest = new Vector2Int(); - Vector3IntTest = new Vector3Int(); - MatrixTestNeo = new Matrix4x4(); - StaticProp = 0; - } - - private void OnChangeTemplateChanged(bool oldValue, bool newValue) - { - Debug.Log("On Change Template changed " + oldValue + " | " + newValue); - } - - private void Awake() - { - Instance = this; - - Debug.Log(defaultTest); - } - - // Start is called before the first frame update - void Start() - { - changeTester = changeTest2; - - OnTestEvent?.Invoke(); - - vec = new Vector3(10, 10, 10); - } - - // Update is called once per frame - void Update() - { - } - - private void OnTesterChange() - { - Debug.Log("OnTester Changed"); - } - - private void OnTest2Change() - { - float x = transform.position.x; - x += transform.position.y; - - Debug.Log(x); - } - - private static int Test() - { - return 5; - } -} -#pragma warning restore CS0414 diff --git a/Assets/ResetStaticTest.cs.meta b/Assets/ResetStaticTest.cs.meta deleted file mode 100644 index 9f2d045..0000000 --- a/Assets/ResetStaticTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 87e0bb3afb931ff4bbeab14bbe2fc8ab -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Scenes.meta b/Assets/Scenes.meta deleted file mode 100644 index 4f640cf..0000000 --- a/Assets/Scenes.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: eba6e46d48c7bbd41aacd4e22ec692c4 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity deleted file mode 100644 index 6c152a0..0000000 --- a/Assets/Scenes/SampleScene.unity +++ /dev/null @@ -1,466 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 705507994} - m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 12 - m_GIWorkflowMode: 1 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 0 - m_LightmapEditorSettings: - serializedVersion: 12 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_ExtractAmbientOcclusion: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVREnvironmentSampleCount: 500 - m_PVREnvironmentReferencePointCount: 2048 - m_PVRFilteringMode: 2 - m_PVRDenoiserTypeDirect: 0 - m_PVRDenoiserTypeIndirect: 0 - m_PVRDenoiserTypeAO: 0 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVREnvironmentMIS: 0 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ExportTrainingData: 0 - m_TrainingDataDestination: TrainingData - m_LightProbeSampleCountMultiplier: 4 - m_LightingDataAsset: {fileID: 0} - m_LightingSettings: {fileID: 0} ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - maxJobWorkers: 0 - preserveTilesOutsideBounds: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &705507993 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 705507995} - - component: {fileID: 705507994} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &705507994 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 705507993} - m_Enabled: 1 - serializedVersion: 10 - m_Type: 1 - m_Shape: 0 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_InnerSpotAngle: 21.80208 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_CullingMatrixOverride: - e00: 1 - e01: 0 - e02: 0 - e03: 0 - e10: 0 - e11: 1 - e12: 0 - e13: 0 - e20: 0 - e21: 0 - e22: 1 - e23: 0 - e30: 0 - e31: 0 - e32: 0 - e33: 1 - m_UseCullingMatrixOverride: 0 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingLayerMask: 1 - m_Lightmapping: 1 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} - m_UseBoundingSphereOverride: 0 - m_UseViewFrustumForShadowCasterCull: 1 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &705507995 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 705507993} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &963194225 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 963194228} - - component: {fileID: 963194227} - - component: {fileID: 963194226} - - component: {fileID: 963194229} - - component: {fileID: 963194230} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &963194226 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 963194225} - m_Enabled: 1 ---- !u!20 &963194227 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 963194225} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_projectionMatrixMode: 1 - m_GateFitMode: 2 - m_FOVAxisMode: 0 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &963194228 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 963194225} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &963194229 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 963194225} - m_Enabled: 0 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ee09838e11dbc1d42aee5aea8adbaba2, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &963194230 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 963194225} - m_Enabled: 0 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 87e0bb3afb931ff4bbeab14bbe2fc8ab, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1723169397 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1723169402} - - component: {fileID: 1723169401} - - component: {fileID: 1723169400} - - component: {fileID: 1723169399} - - component: {fileID: 1723169398} - - component: {fileID: 1723169403} - m_Layer: 0 - m_Name: Temp - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1723169398 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1723169397} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: df3dbc7d1050f07499a5d24eabec38e0, type: 3} - m_Name: - m_EditorClassIdentifier: - test: fuck - lel: - lol: 0 - test: - cantRememberMe: - lol: 0 - test: - customName: 0 - testList: - - lol: 0 - test: - - lol: 0 - test: - - lol: 0 - test: - - lol: 0 - test: ---- !u!65 &1723169399 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1723169397} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &1723169400 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1723169397} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1723169401 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1723169397} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1723169402 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1723169397} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1723169403 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1723169397} - m_Enabled: 0 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d545347c13287f1498c886b8e2469063, type: 3} - m_Name: - m_EditorClassIdentifier: - test: 54 diff --git a/Assets/Scenes/SampleScene.unity.meta b/Assets/Scenes/SampleScene.unity.meta deleted file mode 100644 index 952bd1e..0000000 --- a/Assets/Scenes/SampleScene.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 9fc0d4010bbf28b4594072e72b8655ab -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Temp.cs b/Assets/Temp.cs deleted file mode 100644 index b9216a7..0000000 --- a/Assets/Temp.cs +++ /dev/null @@ -1,80 +0,0 @@ -using Hertzole.CecilAttributes; -using System; -using UnityEngine; - -public class Temp : MonoBehaviour -{ -#pragma warning disable CS0414 - [Serializable] - public struct TestClass - { - public int lol; - public string test; - } - - [SerializeField] - private string test = null; - [SerializeField] - private TestClass lel = new TestClass(); - [SerializeField] - private TestClass cantRememberMe = new TestClass(); - [SerializeField] - private int customName = 0; - - [SerializeField] - private TestClass[] testList = null; - - [OnChange(hook = nameof(OnChangedTestChanged))] - private int changedTest; - [OnChange(hook = nameof(OnChangedTestChanged), equalCheck = false)] - private int noEquals; - [OnChange(hook = nameof(OnChangedTestPropertyChanged))] - private int ChangedTest { get; set; } - - private int changeTemplate = 10; - - private int ChangeTemplate - { - get { return changeTemplate; } - set - { - if (changeTemplate != value) - { - int oldValue = changeTemplate; - changeTemplate = value; - OnChangedTestChanged(oldValue, value); - } - } - } - - public int ChangeTemplate2 - { - set - { - int oldValue = changeTemplate; - changeTemplate = value; - OnChangedTestChanged(oldValue, value); - } - } - - private void Start() - { - Debug.Log("This is a message with " + test + " " + lel.lol + " " + cantRememberMe.lol + " " + customName + " " + (customName + 2).ToString()); - Debug.Log($"This is a message with {test} {lel.lol} {cantRememberMe.lol} {customName} {customName + 2}"); - - changedTest = 10; - noEquals = 30; - ChangedTest = 40; - } -#pragma warning restore CS0414 - - private void OnChangedTestChanged(int oldVal, int newVal) - { - Debug.Log("OnChangedTest changed from " + oldVal + " to " + newVal); - } - - private void OnChangedTestPropertyChanged(int oldVal, int newVal) - { - Debug.Log("OnChangedTestProperty changed from " + oldVal + " to " + newVal); - } -} diff --git a/Assets/Temp.cs.meta b/Assets/Temp.cs.meta deleted file mode 100644 index 764b525..0000000 --- a/Assets/Temp.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: df3dbc7d1050f07499a5d24eabec38e0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/TimedTest.cs b/Assets/TimedTest.cs deleted file mode 100644 index 95793ba..0000000 --- a/Assets/TimedTest.cs +++ /dev/null @@ -1,89 +0,0 @@ -using Hertzole.CecilAttributes; -using System.Threading; -using UnityEngine; -using UnityEngine.Profiling; - -namespace My.Fucking.Namespace -{ - public class TimedTest : MonoBehaviour - { - [SerializeField] - private int test = 54; - - [Timed] - public int TestProperty { get; set; } = 12; - - // Start is called before the first frame update - [Timed] - void Start() - { - Thread.Sleep(500); - OtherMethod(); - - ProfilerDummy(); - ProfilerTest(); - } - - private void OtherMethod() - { - float result = Mathf.Pow(10, 50); - TestProperty = 10; - Timed(); - } - - [Timed] - private void Timed() - { - int result = 10 + test; - - Debug.Log("This is a test " + (result + TestProperty + ReturnTest())); - } - - [Timed] - private int ReturnTest() - { - return test + TestProperty; - } - - [MarkInProfiler] - private int ReturnTestProfiler() - { - return test + TestProperty; - } - - private void TimedTemplate() - { - int result = 10 + test; - System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch(); - watch.Start(); - - Debug.Log("This is a test " + result); - - watch.Stop(); - - Debug.Log($"TimedTemplate took {watch.ElapsedMilliseconds} ticks {watch.ElapsedTicks}."); - } - - private void ProfilerDummy() - { - Profiler.BeginSample("ProfilerDummy"); - - Debug.Log("ProiflerDummy"); - - Profiler.EndSample(); - } - - [MarkInProfiler] - private void ProfilerTest() - { - Debug.Log("ProfilerTest"); - } - - // Update is called once per frame - void Update() - { - - } - } - -} diff --git a/Assets/TimedTest.cs.meta b/Assets/TimedTest.cs.meta deleted file mode 100644 index 404e2f1..0000000 --- a/Assets/TimedTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d545347c13287f1498c886b8e2469063 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/se.hertzole.cecil-attributes/CHANGELOG.md b/CHANGELOG.md similarity index 100% rename from Packages/se.hertzole.cecil-attributes/CHANGELOG.md rename to CHANGELOG.md diff --git a/Packages/se.hertzole.cecil-attributes/CHANGELOG.md.meta b/CHANGELOG.md.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/CHANGELOG.md.meta rename to CHANGELOG.md.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor.meta b/Editor.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor.meta rename to Editor.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Data.meta b/Editor/Data.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Data.meta rename to Editor/Data.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Data/MemberData.cs b/Editor/Data/MemberData.cs similarity index 71% rename from Packages/se.hertzole.cecil-attributes/Editor/Data/MemberData.cs rename to Editor/Data/MemberData.cs index 4653e7b..e696991 100644 --- a/Packages/se.hertzole.cecil-attributes/Editor/Data/MemberData.cs +++ b/Editor/Data/MemberData.cs @@ -1,10 +1,9 @@ using Mono.Cecil; using System; -using System.Collections.Generic; namespace Hertzole.CecilAttributes.Editor { - public struct MemberData : IEquatable + public struct MemberData { public FieldDefinition field; public PropertyDefinition property; @@ -123,36 +122,5 @@ public CustomAttribute GetAttribute() where T : Attribute return eventDef.GetAttribute(); } } - - public override bool Equals(object obj) - { - return obj is MemberData data && Equals(data); - } - - public bool Equals(MemberData other) - { - return EqualityComparer.Default.Equals(field, other.field) && - EqualityComparer.Default.Equals(property, other.property) && - EqualityComparer.Default.Equals(eventDef, other.eventDef); - } - - public override int GetHashCode() - { - int hashCode = 1130756317; - hashCode = hashCode * -1521134295 + EqualityComparer.Default.GetHashCode(field); - hashCode = hashCode * -1521134295 + EqualityComparer.Default.GetHashCode(property); - hashCode = hashCode * -1521134295 + EqualityComparer.Default.GetHashCode(eventDef); - return hashCode; - } - - public static bool operator ==(MemberData left, MemberData right) - { - return left.Equals(right); - } - - public static bool operator !=(MemberData left, MemberData right) - { - return !(left == right); - } } } diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Data/MemberData.cs.meta b/Editor/Data/MemberData.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Data/MemberData.cs.meta rename to Editor/Data/MemberData.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Helpers.meta b/Editor/Helpers.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Helpers.meta rename to Editor/Helpers.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Helpers/StringExtensions.cs b/Editor/Helpers/StringExtensions.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Helpers/StringExtensions.cs rename to Editor/Helpers/StringExtensions.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Helpers/StringExtensions.cs.meta b/Editor/Helpers/StringExtensions.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Helpers/StringExtensions.cs.meta rename to Editor/Helpers/StringExtensions.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Hertzole.CecilAttributes.Editor.asmdef b/Editor/Hertzole.CecilAttributes.Editor.asmdef similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Hertzole.CecilAttributes.Editor.asmdef rename to Editor/Hertzole.CecilAttributes.Editor.asmdef diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Hertzole.CecilAttributes.Editor.asmdef.meta b/Editor/Hertzole.CecilAttributes.Editor.asmdef.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Hertzole.CecilAttributes.Editor.asmdef.meta rename to Editor/Hertzole.CecilAttributes.Editor.asmdef.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors.meta b/Editor/Processors.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors.meta rename to Editor/Processors.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/BaseProcessor.cs b/Editor/Processors/BaseProcessor.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors/BaseProcessor.cs rename to Editor/Processors/BaseProcessor.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/BaseProcessor.cs.meta b/Editor/Processors/BaseProcessor.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors/BaseProcessor.cs.meta rename to Editor/Processors/BaseProcessor.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/FindPropertyProcessor.cs b/Editor/Processors/FindPropertyProcessor.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors/FindPropertyProcessor.cs rename to Editor/Processors/FindPropertyProcessor.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/FindPropertyProcessor.cs.meta b/Editor/Processors/FindPropertyProcessor.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors/FindPropertyProcessor.cs.meta rename to Editor/Processors/FindPropertyProcessor.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/LogCalledProcessor.cs b/Editor/Processors/LogCalledProcessor.cs similarity index 92% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors/LogCalledProcessor.cs rename to Editor/Processors/LogCalledProcessor.cs index bbd9041..ca1d82e 100644 --- a/Packages/se.hertzole.cecil-attributes/Editor/Processors/LogCalledProcessor.cs +++ b/Editor/Processors/LogCalledProcessor.cs @@ -44,7 +44,17 @@ public override bool IsValidClass(TypeDefinition type) public override (bool success, bool dirty) ProcessClass(ModuleDefinition module, TypeDefinition type) { - bool dirty = ProcessMethods(type, module) || ProcessProperties(type, module); + bool dirty = false; + + if (ProcessMethods(type, module)) + { + dirty = true; + } + + if (ProcessProperties(type, module)) + { + dirty = true; + } return (true, dirty); } @@ -191,7 +201,6 @@ private static bool ProcessProperties(TypeDefinition type, ModuleDefinition modu continue; } - bool isStatic = property.IsStatic(); if (logGet && property.GetMethod != null) { instructions.Clear(); @@ -200,14 +209,9 @@ private static bool ProcessProperties(TypeDefinition type, ModuleDefinition modu string message = propertyGetFormat.FormatMessageLogCalled(type, property.GetMethod, null, null, property, false); - instructions.Add(Instruction.Create(OpCodes.Ldstr, message)); - if (!isStatic) - { - instructions.Add(Instruction.Create(OpCodes.Ldarg_0)); - } - - instructions.Add(Instruction.Create(isStatic ? OpCodes.Ldsfld : OpCodes.Ldfld, loadField)); + instructions.Add(Instruction.Create(OpCodes.Ldarg_0)); + instructions.Add(Instruction.Create(OpCodes.Ldfld, loadField)); if (loadField.FieldType.IsValueType) { @@ -238,12 +242,8 @@ private static bool ProcessProperties(TypeDefinition type, ModuleDefinition modu string message = propertySetFormat.FormatMessageLogCalled(type, property.SetMethod, null, null, property, true); - if (!isStatic) - { - instructions.Add(Instruction.Create(OpCodes.Ldarg_0)); - } - - instructions.Add(Instruction.Create(isStatic ? OpCodes.Ldsfld : OpCodes.Ldfld, loadField)); + instructions.Add(Instruction.Create(OpCodes.Ldarg_0)); + instructions.Add(Instruction.Create(OpCodes.Ldfld, loadField)); instructions.Add(Instruction.Create(OpCodes.Stloc_0)); instructions.Add(Instruction.Create(OpCodes.Ldstr, message)); instructions.Add(Instruction.Create(OpCodes.Ldloc_0)); @@ -251,15 +251,7 @@ private static bool ProcessProperties(TypeDefinition type, ModuleDefinition modu { instructions.Add(Instruction.Create(OpCodes.Box, module.ImportReference(loadField.FieldType))); } - if (isStatic) - { - instructions.Add(Instruction.Create(OpCodes.Ldarg_0)); - } - else - { - instructions.Add(Instruction.Create(OpCodes.Ldarg_1)); - } - + instructions.Add(Instruction.Create(OpCodes.Ldarg_1)); if (loadField.FieldType.IsValueType) { instructions.Add(Instruction.Create(OpCodes.Box, module.ImportReference(loadField.FieldType))); diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/LogCalledProcessor.cs.meta b/Editor/Processors/LogCalledProcessor.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors/LogCalledProcessor.cs.meta rename to Editor/Processors/LogCalledProcessor.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/MarkInProfilerProcessor.cs b/Editor/Processors/MarkInProfilerProcessor.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors/MarkInProfilerProcessor.cs rename to Editor/Processors/MarkInProfilerProcessor.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/MarkInProfilerProcessor.cs.meta b/Editor/Processors/MarkInProfilerProcessor.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors/MarkInProfilerProcessor.cs.meta rename to Editor/Processors/MarkInProfilerProcessor.cs.meta diff --git a/Editor/Processors/OnChangeProcessor.cs b/Editor/Processors/OnChangeProcessor.cs new file mode 100644 index 0000000..b7becdb --- /dev/null +++ b/Editor/Processors/OnChangeProcessor.cs @@ -0,0 +1,112 @@ +//using Mono.Cecil; +//using Mono.Collections.Generic; +//using System.Collections.Generic; +//using UnityEngine; + +//namespace Hertzole.CecilAttributes.Editor +//{ +// public class OnChangeProcessor : BaseProcessor +// { +// private const string FIELD_PREFIX = "cecilOnChangeField_"; + +// public override string Name { get { return "OnChange"; } } + +// public override bool NeedsMonoBehaviour { get { return false; } } +// public override bool AllowEditor { get { return true; } } + +// public override bool IsValidClass(TypeDefinition type) +// { +// if (type.HasFields) +// { +// foreach (FieldDefinition field in type.Fields) +// { +// if (field.TryGetAttribute(out _)) +// { +// return true; +// } +// } +// } + +// if (type.HasProperties) +// { +// foreach (PropertyDefinition property in type.Properties) +// { +// if (property.TryGetAttribute(out _)) +// { +// return true; +// } +// } +// } + +// return false; +// } + +// //TODO: Make work with multiple attributes. +// public override (bool success, bool dirty) ProcessClass(ModuleDefinition module, TypeDefinition type) +// { +// bool dirty = false; + +// if (type.HasFields) +// { +// // Create a new collection because we're adding fields in the loop and we don't ned to account for those. +// Collection fields = new Collection(type.Fields); + +// Debug.Log(fields.Count); + +// List fieldsToRemove = new List(); +// List fieldsToAdd = new List(); +// List propertiesToAdd = new List(); + +// for (int i = 0; i < fields.Count; i++) +// { +// if (fields[i].TryGetAttribute(out CustomAttribute attribute)) +// { +// string targetMethod = attribute.GetConstructorArgument(0, string.Empty); +// if (string.IsNullOrEmpty(targetMethod)) +// { +// Debug.LogError(fields[i].Name + " does not have a target method to hook into the change event."); +// return (false, false); +// } + +// if (type.TryGetMethod(targetMethod, out MethodDefinition method)) +// { + +// } +// else +// { +// Debug.LogError("The method given to " + fields[i].Name + " does not exist in " + type.FullName + "."); +// return (false, false); +// } + +// string fieldName = FIELD_PREFIX + fields[i].Name; +// fieldsToAdd.Add(new FieldDefinition(fieldName, FieldAttributes.Private, fields[i].FieldType)); + +// PropertyDefinition fieldProperty = new PropertyDefinition(fields[i].Name, PropertyAttributes.None, fields[i].FieldType); + +// fieldsToRemove.Add(i); +// propertiesToAdd.Add(fieldProperty); + +// dirty = true; +// } +// } + +// for (int i = 0; i < fieldsToRemove.Count; i++) +// { +// type.Fields.RemoveAt(fieldsToRemove[i]); +// } + +// for (int i = 0; i < fieldsToAdd.Count; i++) +// { +// type.Fields.Add(fieldsToAdd[i]); +// } + +// for (int i = 0; i < propertiesToAdd.Count; i++) +// { +// type.Properties.Add(propertiesToAdd[i]); +// } +// } + +// return (true, dirty); +// } +// } +//} diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/OnChangeProcessor.cs.meta b/Editor/Processors/OnChangeProcessor.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors/OnChangeProcessor.cs.meta rename to Editor/Processors/OnChangeProcessor.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/ResetStaticProcessor.cs b/Editor/Processors/ResetStaticProcessor.cs similarity index 99% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors/ResetStaticProcessor.cs rename to Editor/Processors/ResetStaticProcessor.cs index be39fb4..6fff362 100644 --- a/Packages/se.hertzole.cecil-attributes/Editor/Processors/ResetStaticProcessor.cs +++ b/Editor/Processors/ResetStaticProcessor.cs @@ -196,7 +196,7 @@ public override (bool success, bool dirty) ProcessClass(ModuleDefinition module, if (!fields[i].IsEvent) { - (List instructions, bool valueType) = GetStaticSet(type, fields[i].IsProperty ? fields[i].property.GetBackingField() : fields[i].field); + (List instructions, bool valueType) = GetStaticSet(type, fields[i].IsProperty ? fields[i].property.GetStaticBackingField() : fields[i].field); if (instructions != null) { diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/ResetStaticProcessor.cs.meta b/Editor/Processors/ResetStaticProcessor.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors/ResetStaticProcessor.cs.meta rename to Editor/Processors/ResetStaticProcessor.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/TimedProcessor.cs b/Editor/Processors/TimedProcessor.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors/TimedProcessor.cs rename to Editor/Processors/TimedProcessor.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/TimedProcessor.cs.meta b/Editor/Processors/TimedProcessor.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Processors/TimedProcessor.cs.meta rename to Editor/Processors/TimedProcessor.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Settings.meta b/Editor/Settings.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Settings.meta rename to Editor/Settings.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Settings/CecilAttributesSettings.cs b/Editor/Settings/CecilAttributesSettings.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Settings/CecilAttributesSettings.cs rename to Editor/Settings/CecilAttributesSettings.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Settings/CecilAttributesSettings.cs.meta b/Editor/Settings/CecilAttributesSettings.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Settings/CecilAttributesSettings.cs.meta rename to Editor/Settings/CecilAttributesSettings.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Settings/CecilAttributesSettingsGUI.cs b/Editor/Settings/CecilAttributesSettingsGUI.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Settings/CecilAttributesSettingsGUI.cs rename to Editor/Settings/CecilAttributesSettingsGUI.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Settings/CecilAttributesSettingsGUI.cs.meta b/Editor/Settings/CecilAttributesSettingsGUI.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Settings/CecilAttributesSettingsGUI.cs.meta rename to Editor/Settings/CecilAttributesSettingsGUI.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Settings/CecilAttributesSettingsProvider.cs b/Editor/Settings/CecilAttributesSettingsProvider.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Settings/CecilAttributesSettingsProvider.cs rename to Editor/Settings/CecilAttributesSettingsProvider.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Settings/CecilAttributesSettingsProvider.cs.meta b/Editor/Settings/CecilAttributesSettingsProvider.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Settings/CecilAttributesSettingsProvider.cs.meta rename to Editor/Settings/CecilAttributesSettingsProvider.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver.meta b/Editor/Weaver.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver.meta rename to Editor/Weaver.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/CompileHook.cs b/Editor/Weaver/CompileHook.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/CompileHook.cs rename to Editor/Weaver/CompileHook.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/CompileHook.cs.meta b/Editor/Weaver/CompileHook.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/CompileHook.cs.meta rename to Editor/Weaver/CompileHook.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions.meta b/Editor/Weaver/Extensions.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions.meta rename to Editor/Weaver/Extensions.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/AttributeExtensions.cs b/Editor/Weaver/Extensions/AttributeExtensions.cs similarity index 93% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/AttributeExtensions.cs rename to Editor/Weaver/Extensions/AttributeExtensions.cs index 49ab881..8f4578f 100644 --- a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/AttributeExtensions.cs +++ b/Editor/Weaver/Extensions/AttributeExtensions.cs @@ -207,19 +207,5 @@ private static bool TryGetAttribute(Collection attributes, o attribute = null; return false; } - - // https://github.com/vis2k/Mirror/blob/master/Assets/Mirror/Editor/Weaver/Extensions.cs#L198 - public static T GetField(this CustomAttribute ca, string field, T defaultValue) - { - foreach (CustomAttributeNamedArgument customField in ca.Fields) - { - if (customField.Name == field) - { - return (T)customField.Argument.Value; - } - } - - return defaultValue; - } } } diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/AttributeExtensions.cs.meta b/Editor/Weaver/Extensions/AttributeExtensions.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/AttributeExtensions.cs.meta rename to Editor/Weaver/Extensions/AttributeExtensions.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/FieldExtensions.cs b/Editor/Weaver/Extensions/FieldExtensions.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/FieldExtensions.cs rename to Editor/Weaver/Extensions/FieldExtensions.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/FieldExtensions.cs.meta b/Editor/Weaver/Extensions/FieldExtensions.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/FieldExtensions.cs.meta rename to Editor/Weaver/Extensions/FieldExtensions.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/MethodExtensions.cs b/Editor/Weaver/Extensions/MethodExtensions.cs similarity index 63% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/MethodExtensions.cs rename to Editor/Weaver/Extensions/MethodExtensions.cs index 94658ec..3e91175 100644 --- a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/MethodExtensions.cs +++ b/Editor/Weaver/Extensions/MethodExtensions.cs @@ -61,49 +61,6 @@ public static bool TryGetMethodInBaseType(this TypeDefinition type, string metho return false; } - public static bool TryGetMethodInBaseType(this TypeDefinition type, string methodName, out MethodDefinition method, params TypeReference[] parameterTypes) - { - TypeDefinition typedef = type; - method = null; - while (typedef != null) - { - for (int i = 0; i < typedef.Methods.Count; i++) - { - if (typedef.Methods[i].Name == methodName && typedef.Methods[i].Parameters.Count == parameterTypes.Length) - { - bool validParamaters = true; - - for (int j = 0; j < parameterTypes.Length; j++) - { - if (typedef.Methods[i].Parameters[j].ParameterType != parameterTypes[j]) - { - validParamaters = false; - break; - } - } - - if (validParamaters) - { - method = typedef.Methods[i]; - return true; - } - } - } - - try - { - TypeReference parent = typedef.BaseType; - typedef = parent?.Resolve(); - } - catch (AssemblyResolutionException) - { - break; - } - } - - return false; - } - public static MethodDefinition GetMethod(this TypeDefinition type, string methodName) { if (!type.HasMethods) @@ -151,16 +108,5 @@ public static T GetConstructorArgument(this CustomAttribute attribute, int in return (T)attribute.ConstructorArguments[index].Value; } - - public static GenericInstanceMethod MakeGenericMethod(this MethodReference self, params TypeReference[] genericTypes) - { - GenericInstanceMethod result = new GenericInstanceMethod(self); - foreach (TypeReference argument in genericTypes) - { - result.GenericArguments.Add(argument); - } - - return result; - } } } diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/MethodExtensions.cs.meta b/Editor/Weaver/Extensions/MethodExtensions.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/MethodExtensions.cs.meta rename to Editor/Weaver/Extensions/MethodExtensions.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/PropertyExtensions.cs b/Editor/Weaver/Extensions/PropertyExtensions.cs similarity index 64% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/PropertyExtensions.cs rename to Editor/Weaver/Extensions/PropertyExtensions.cs index b70593a..8cd24d9 100644 --- a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/PropertyExtensions.cs +++ b/Editor/Weaver/Extensions/PropertyExtensions.cs @@ -30,22 +30,22 @@ public static PropertyDefinition GetProperty(this CustomAttribute attribute, str return attribute.AttributeType.Resolve().GetProperty(name); } - public static FieldDefinition GetBackingField(this PropertyDefinition property) + public static FieldDefinition GetStaticBackingField(this PropertyDefinition property) { - bool isStatic = property.IsStatic(); - - return GetBackingField(property, isStatic ? OpCodes.Ldsfld : OpCodes.Ldfld, isStatic ? OpCodes.Stsfld : OpCodes.Stfld); + return GetBackingField(property, OpCodes.Ldsfld); } - private static FieldDefinition GetBackingField(PropertyDefinition property, OpCode ldfld, OpCode stfld) + public static FieldDefinition GetBackingField(this PropertyDefinition property) { - MethodDefinition m = property.GetMethod ?? property.SetMethod; - bool isSet = property.GetMethod == null; + return GetBackingField(property, OpCodes.Ldfld); + } - Collection instructions = m.Body.Instructions; + private static FieldDefinition GetBackingField(PropertyDefinition property, OpCode opCode) + { + Collection instructions = property.GetMethod.Body.Instructions; for (int i = instructions.Count - 1; i >= 0; i--) { - if ((isSet && instructions[i].OpCode == stfld) || (!isSet && instructions[i].OpCode == ldfld)) + if (instructions[i].OpCode == opCode) { return (FieldDefinition)instructions[i].Operand; } @@ -53,15 +53,5 @@ private static FieldDefinition GetBackingField(PropertyDefinition property, OpCo throw new NullReferenceException(property.FullName + " doesn't have a return field."); } - - public static bool IsStatic(this PropertyDefinition property) - { - if ((property.GetMethod != null && property.GetMethod.IsStatic) || (property.SetMethod != null && property.SetMethod.IsStatic)) - { - return true; - } - - return false; - } } } diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/PropertyExtensions.cs.meta b/Editor/Weaver/Extensions/PropertyExtensions.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/PropertyExtensions.cs.meta rename to Editor/Weaver/Extensions/PropertyExtensions.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/TypeExtensions.cs b/Editor/Weaver/Extensions/TypeExtensions.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/TypeExtensions.cs rename to Editor/Weaver/Extensions/TypeExtensions.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/TypeExtensions.cs.meta b/Editor/Weaver/Extensions/TypeExtensions.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/Extensions/TypeExtensions.cs.meta rename to Editor/Weaver/Extensions/TypeExtensions.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/PlayModeCheck.cs b/Editor/Weaver/PlayModeCheck.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/PlayModeCheck.cs rename to Editor/Weaver/PlayModeCheck.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/PlayModeCheck.cs.meta b/Editor/Weaver/PlayModeCheck.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/PlayModeCheck.cs.meta rename to Editor/Weaver/PlayModeCheck.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Weaver.cs b/Editor/Weaver/Weaver.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/Weaver.cs rename to Editor/Weaver/Weaver.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/Weaver.cs.meta b/Editor/Weaver/Weaver.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/Weaver.cs.meta rename to Editor/Weaver/Weaver.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/WeaverAttributes.cs b/Editor/Weaver/WeaverAttributes.cs similarity index 88% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/WeaverAttributes.cs rename to Editor/Weaver/WeaverAttributes.cs index 2f1e990..223994e 100644 --- a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/WeaverAttributes.cs +++ b/Editor/Weaver/WeaverAttributes.cs @@ -1,6 +1,5 @@ using Mono.Cecil; using System; -using System.Collections.Generic; using UnityEditor; using UnityEngine; @@ -14,14 +13,9 @@ public static partial class Weaver new ResetStaticProcessor(), new FindPropertyProcessor(), new TimedProcessor(), - new MarkInProfilerProcessor(), - //new OnChangeProcessor(), - new GetComponentProcessor() + new MarkInProfilerProcessor() }; - public static Dictionary replacementSetters = new Dictionary(); - public static Dictionary replacementGetters = new Dictionary(); - public static (bool success, bool dirty) ProcessAssembly(AssemblyDefinition assembly, bool isEditor) { bool dirty = false; diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/WeaverAttributes.cs.meta b/Editor/Weaver/WeaverAttributes.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/WeaverAttributes.cs.meta rename to Editor/Weaver/WeaverAttributes.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/WeaverConstants.cs b/Editor/Weaver/WeaverConstants.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/WeaverConstants.cs rename to Editor/Weaver/WeaverConstants.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/WeaverConstants.cs.meta b/Editor/Weaver/WeaverConstants.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/WeaverConstants.cs.meta rename to Editor/Weaver/WeaverConstants.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/WeaverHelpers.cs b/Editor/Weaver/WeaverHelpers.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/WeaverHelpers.cs rename to Editor/Weaver/WeaverHelpers.cs diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Weaver/WeaverHelpers.cs.meta b/Editor/Weaver/WeaverHelpers.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Editor/Weaver/WeaverHelpers.cs.meta rename to Editor/Weaver/WeaverHelpers.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/LICENSE b/LICENSE similarity index 100% rename from Packages/se.hertzole.cecil-attributes/LICENSE rename to LICENSE diff --git a/Packages/se.hertzole.cecil-attributes/LICENSE.meta b/LICENSE.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/LICENSE.meta rename to LICENSE.meta diff --git a/Packages/manifest.json b/Packages/manifest.json deleted file mode 100644 index fd533ea..0000000 --- a/Packages/manifest.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "dependencies": { - "com.unity.ide.rider": "2.0.7", - "com.unity.ide.visualstudio": "2.0.7", - "com.unity.ide.vscode": "1.2.3", - "com.unity.test-framework": "1.1.24", - "com.unity.textmeshpro": "3.0.1", - "com.unity.timeline": "1.4.7", - "com.unity.ugui": "1.0.0", - "com.unity.modules.ai": "1.0.0", - "com.unity.modules.androidjni": "1.0.0", - "com.unity.modules.animation": "1.0.0", - "com.unity.modules.assetbundle": "1.0.0", - "com.unity.modules.audio": "1.0.0", - "com.unity.modules.cloth": "1.0.0", - "com.unity.modules.director": "1.0.0", - "com.unity.modules.imageconversion": "1.0.0", - "com.unity.modules.imgui": "1.0.0", - "com.unity.modules.jsonserialize": "1.0.0", - "com.unity.modules.particlesystem": "1.0.0", - "com.unity.modules.physics": "1.0.0", - "com.unity.modules.physics2d": "1.0.0", - "com.unity.modules.screencapture": "1.0.0", - "com.unity.modules.terrain": "1.0.0", - "com.unity.modules.terrainphysics": "1.0.0", - "com.unity.modules.tilemap": "1.0.0", - "com.unity.modules.ui": "1.0.0", - "com.unity.modules.uielements": "1.0.0", - "com.unity.modules.umbra": "1.0.0", - "com.unity.modules.unityanalytics": "1.0.0", - "com.unity.modules.unitywebrequest": "1.0.0", - "com.unity.modules.unitywebrequestassetbundle": "1.0.0", - "com.unity.modules.unitywebrequestaudio": "1.0.0", - "com.unity.modules.unitywebrequesttexture": "1.0.0", - "com.unity.modules.unitywebrequestwww": "1.0.0", - "com.unity.modules.vehicles": "1.0.0", - "com.unity.modules.video": "1.0.0", - "com.unity.modules.vr": "1.0.0", - "com.unity.modules.wind": "1.0.0", - "com.unity.modules.xr": "1.0.0" - }, - "scopedRegistries": [ - { - "name": "OpenUPM", - "url": "https://package.openupm.com", - "scopes": [ - "com.cysharp.unitask", - "com.mirrorng.mirrorng", - "com.openupm" - ] - } - ] -} diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json deleted file mode 100644 index 16cb981..0000000 --- a/Packages/packages-lock.json +++ /dev/null @@ -1,346 +0,0 @@ -{ - "dependencies": { - "com.unity.ext.nunit": { - "version": "1.0.6", - "depth": 1, - "source": "registry", - "dependencies": {}, - "url": "https://packages.unity.com" - }, - "com.unity.ide.rider": { - "version": "2.0.7", - "depth": 0, - "source": "registry", - "dependencies": { - "com.unity.test-framework": "1.1.1" - }, - "url": "https://packages.unity.com" - }, - "com.unity.ide.visualstudio": { - "version": "2.0.7", - "depth": 0, - "source": "registry", - "dependencies": { - "com.unity.test-framework": "1.1.9" - }, - "url": "https://packages.unity.com" - }, - "com.unity.ide.vscode": { - "version": "1.2.3", - "depth": 0, - "source": "registry", - "dependencies": {}, - "url": "https://packages.unity.com" - }, - "com.unity.nuget.mono-cecil": { - "version": "1.10.1", - "depth": 1, - "source": "registry", - "dependencies": {}, - "url": "https://packages.unity.com" - }, - "com.unity.test-framework": { - "version": "1.1.24", - "depth": 0, - "source": "registry", - "dependencies": { - "com.unity.ext.nunit": "1.0.6", - "com.unity.modules.imgui": "1.0.0", - "com.unity.modules.jsonserialize": "1.0.0" - }, - "url": "https://packages.unity.com" - }, - "com.unity.textmeshpro": { - "version": "3.0.1", - "depth": 0, - "source": "registry", - "dependencies": { - "com.unity.ugui": "1.0.0" - }, - "url": "https://packages.unity.com" - }, - "com.unity.timeline": { - "version": "1.4.7", - "depth": 0, - "source": "registry", - "dependencies": { - "com.unity.modules.director": "1.0.0", - "com.unity.modules.animation": "1.0.0", - "com.unity.modules.audio": "1.0.0", - "com.unity.modules.particlesystem": "1.0.0" - }, - "url": "https://packages.unity.com" - }, - "com.unity.ugui": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.ui": "1.0.0", - "com.unity.modules.imgui": "1.0.0" - } - }, - "se.hertzole.cecil-attributes": { - "version": "file:se.hertzole.cecil-attributes", - "depth": 0, - "source": "embedded", - "dependencies": { - "com.unity.nuget.mono-cecil": "1.10.1" - } - }, - "com.unity.modules.ai": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.androidjni": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.animation": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.assetbundle": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.audio": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.cloth": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.physics": "1.0.0" - } - }, - "com.unity.modules.director": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.audio": "1.0.0", - "com.unity.modules.animation": "1.0.0" - } - }, - "com.unity.modules.imageconversion": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.imgui": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.jsonserialize": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.particlesystem": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.physics": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.physics2d": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.screencapture": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.imageconversion": "1.0.0" - } - }, - "com.unity.modules.subsystems": { - "version": "1.0.0", - "depth": 1, - "source": "builtin", - "dependencies": { - "com.unity.modules.jsonserialize": "1.0.0" - } - }, - "com.unity.modules.terrain": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.terrainphysics": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.physics": "1.0.0", - "com.unity.modules.terrain": "1.0.0" - } - }, - "com.unity.modules.tilemap": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.physics2d": "1.0.0" - } - }, - "com.unity.modules.ui": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.uielements": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.ui": "1.0.0", - "com.unity.modules.imgui": "1.0.0", - "com.unity.modules.jsonserialize": "1.0.0", - "com.unity.modules.uielementsnative": "1.0.0" - } - }, - "com.unity.modules.uielementsnative": { - "version": "1.0.0", - "depth": 1, - "source": "builtin", - "dependencies": { - "com.unity.modules.ui": "1.0.0", - "com.unity.modules.imgui": "1.0.0", - "com.unity.modules.jsonserialize": "1.0.0" - } - }, - "com.unity.modules.umbra": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.unityanalytics": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.unitywebrequest": "1.0.0", - "com.unity.modules.jsonserialize": "1.0.0" - } - }, - "com.unity.modules.unitywebrequest": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.unitywebrequestassetbundle": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.assetbundle": "1.0.0", - "com.unity.modules.unitywebrequest": "1.0.0" - } - }, - "com.unity.modules.unitywebrequestaudio": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.unitywebrequest": "1.0.0", - "com.unity.modules.audio": "1.0.0" - } - }, - "com.unity.modules.unitywebrequesttexture": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.unitywebrequest": "1.0.0", - "com.unity.modules.imageconversion": "1.0.0" - } - }, - "com.unity.modules.unitywebrequestwww": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.unitywebrequest": "1.0.0", - "com.unity.modules.unitywebrequestassetbundle": "1.0.0", - "com.unity.modules.unitywebrequestaudio": "1.0.0", - "com.unity.modules.audio": "1.0.0", - "com.unity.modules.assetbundle": "1.0.0", - "com.unity.modules.imageconversion": "1.0.0" - } - }, - "com.unity.modules.vehicles": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.physics": "1.0.0" - } - }, - "com.unity.modules.video": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.audio": "1.0.0", - "com.unity.modules.ui": "1.0.0", - "com.unity.modules.unitywebrequest": "1.0.0" - } - }, - "com.unity.modules.vr": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.jsonserialize": "1.0.0", - "com.unity.modules.physics": "1.0.0", - "com.unity.modules.xr": "1.0.0" - } - }, - "com.unity.modules.wind": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": {} - }, - "com.unity.modules.xr": { - "version": "1.0.0", - "depth": 0, - "source": "builtin", - "dependencies": { - "com.unity.modules.physics": "1.0.0", - "com.unity.modules.jsonserialize": "1.0.0", - "com.unity.modules.subsystems": "1.0.0" - } - } - } -} diff --git a/Packages/se.hertzole.cecil-attributes/.gitignore b/Packages/se.hertzole.cecil-attributes/.gitignore deleted file mode 100644 index 8af868e..0000000 --- a/Packages/se.hertzole.cecil-attributes/.gitignore +++ /dev/null @@ -1,60 +0,0 @@ -# This .gitignore file should be placed at the root of your Unity project directory -# -# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore -# -/[Ll]ibrary/ -/[Tt]emp/ -/[Oo]bj/ -/[Bb]uild/ -/[Bb]uilds/ -/[Ll]ogs/ -/[Mm]emoryCaptures/ - -# Asset meta data should only be ignored when the corresponding asset is also ignored -!/[Aa]ssets/**/*.meta - -# Uncomment this line if you wish to ignore the asset store tools plugin -# /[Aa]ssets/AssetStoreTools* - -# Autogenerated Jetbrains Rider plugin -[Aa]ssets/Plugins/Editor/JetBrains* - -# Visual Studio cache directory -.vs/ - -# Gradle cache directory -.gradle/ - -# Autogenerated VS/MD/Consulo solution and project files -ExportedObj/ -.consulo/ -*.csproj -*.unityproj -*.sln -*.suo -*.tmp -*.user -*.userprefs -*.pidb -*.booproj -*.svd -*.pdb -*.mdb -*.opendb -*.VC.db - -# Unity3D generated meta files -*.pidb.meta -*.pdb.meta -*.mdb.meta - -# Unity3D generated file on crash reports -sysinfo.txt - -# Builds -*.apk -*.unitypackage - -# Crashlytics generated file -crashlytics-build.properties - diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/GetComponentProcessor.cs b/Packages/se.hertzole.cecil-attributes/Editor/Processors/GetComponentProcessor.cs deleted file mode 100644 index 9a85362..0000000 --- a/Packages/se.hertzole.cecil-attributes/Editor/Processors/GetComponentProcessor.cs +++ /dev/null @@ -1,142 +0,0 @@ -using Mono.Cecil; -using Mono.Cecil.Cil; -using System; -using System.Collections.Generic; -using UnityEngine; - -namespace Hertzole.CecilAttributes.Editor -{ - public class GetComponentProcessor : BaseProcessor - { - public override string Name { get { return nameof(GetComponentProcessor); } } - public override bool NeedsMonoBehaviour { get { return true; } } - public override bool AllowEditor { get { return true; } } - public override bool IncludeInBuild { get { return false; } } - - public override bool IsValidClass(TypeDefinition type) - { - if (type.HasFields) - { - for (int i = 0; i < type.Fields.Count; i++) - { - if (type.Fields[i].HasAttribute()) - { - return true; - } - } - } - - return false; - } - - public override (bool success, bool dirty) ProcessClass(ModuleDefinition module, TypeDefinition type) - { - ILProcessor il = null; - - if (type.TryGetMethodInBaseType("Reset", out MethodDefinition resetMethod, Array.Empty())) - { - //TODO: Check if base type - } - else - { - resetMethod = new MethodDefinition("Reset", MethodAttributes.Private | MethodAttributes.HideBySig, module.ImportReference(typeof(void))); - il = resetMethod.Body.GetILProcessor(); - il.Emit(OpCodes.Ret); - type.Methods.Add(resetMethod); - } - - if (type.TryGetMethodInBaseType("OnValidate", out MethodDefinition validateMethod, Array.Empty())) - { - //TODO: Check if base type - - } - else - { - validateMethod = new MethodDefinition("OnValidate", MethodAttributes.Private | MethodAttributes.HideBySig, module.ImportReference(typeof(void))); - il = validateMethod.Body.GetILProcessor(); - il.Emit(OpCodes.Ret); - type.Methods.Add(validateMethod); - } - - MethodDefinition getComponentsMethod = CreateGetComponentMethod(module, type); - type.Methods.Add(getComponentsMethod); - - InsertCallToMethod(resetMethod, getComponentsMethod); - InsertCallToMethod(validateMethod, getComponentsMethod); - - return (true, true); - } - - private MethodDefinition CreateGetComponentMethod(ModuleDefinition module, TypeDefinition type) - { - MethodDefinition m = new MethodDefinition($"CecilAttributes__Generated__Get__Standard__Components__{type.Name}", - MethodAttributes.Private | MethodAttributes.HideBySig, module.ImportReference(typeof(void))); - - ILProcessor il = m.Body.GetILProcessor(); - - Instruction ret = Instruction.Create(OpCodes.Ret); - - List ifStarts = new List(); - List fields = new List(); - - for (int i = 0; i < type.Fields.Count; i++) - { - if (type.Fields[i].HasAttribute()) - { - ifStarts.Add(Instruction.Create(OpCodes.Ldarg_0)); - fields.Add(type.Fields[i]); - } - } - - for (int i = 0; i < fields.Count; i++) - { - WriteField(fields[i], module, il, ifStarts[i], i == fields.Count - 1 ? ret : ifStarts[i + 1]); - } - - il.Append(ret); - - return m; - } - - private void WriteField(FieldDefinition field, ModuleDefinition module, ILProcessor il, Instruction start, Instruction next) - { - GetComponentTarget target = field.GetAttribute().GetField("target", GetComponentTarget.Self); - - MethodReference getComponentCall = null; - - switch (target) - { - case GetComponentTarget.Self: - getComponentCall = module.ImportReference(typeof(Component).GetMethod("GetComponent", Type.EmptyTypes)).MakeGenericMethod(field.FieldType); - break; - case GetComponentTarget.Parent: - getComponentCall = module.ImportReference(typeof(Component).GetMethod("GetComponentInParent", Type.EmptyTypes)).MakeGenericMethod(field.FieldType); - break; - case GetComponentTarget.Children: - getComponentCall = module.ImportReference(typeof(Component).GetMethod("GetComponentInChildren", Type.EmptyTypes)).MakeGenericMethod(field.FieldType); - break; - } - - il.Append(start); - il.Emit(OpCodes.Ldfld, field); - il.Emit(OpCodes.Brtrue_S, next); - - il.Emit(OpCodes.Ldarg_0); - il.Emit(OpCodes.Ldarg_0); - il.Emit(OpCodes.Call, getComponentCall); - il.Emit(OpCodes.Stfld, field); - } - - private void InsertCallToMethod(MethodDefinition targetMethod, MethodDefinition methodToInsert) - { - ILProcessor il = targetMethod.Body.GetILProcessor(); - Instruction[] instructions = new Instruction[] - { - Instruction.Create(OpCodes.Ldarg_0), - Instruction.Create(OpCodes.Call, methodToInsert) - }; - - il.InsertBefore(il.Body.Instructions[0], instructions); - } - } -} diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/GetComponentProcessor.cs.meta b/Packages/se.hertzole.cecil-attributes/Editor/Processors/GetComponentProcessor.cs.meta deleted file mode 100644 index 94ddf1a..0000000 --- a/Packages/se.hertzole.cecil-attributes/Editor/Processors/GetComponentProcessor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2c051c34b47ebbf428fd9a6b0c830b23 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/ILExtensions.cs b/Packages/se.hertzole.cecil-attributes/Editor/Processors/ILExtensions.cs deleted file mode 100644 index 41ea13a..0000000 --- a/Packages/se.hertzole.cecil-attributes/Editor/Processors/ILExtensions.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Mono.Cecil.Cil; -using Mono.Collections.Generic; -using System.Collections.Generic; -using System.Linq; - -namespace Hertzole.CecilAttributes.Editor -{ - public static partial class WeaverExtensions - { - public static void AddRange(this Collection collection, IEnumerable items) - { - foreach (T item in items) - { - collection.Add(item); - } - } - - public static void InsertAfter(this ILProcessor il, Instruction target, IEnumerable instructions) - { - Instruction previous = target; - - foreach (Instruction i in instructions) - { - il.InsertAfter(previous, i); - previous = i; - } - } - - public static void InsertBefore(this ILProcessor il, Instruction target, IEnumerable instructions) - { - Instruction previous = target; - - Instruction[] a = instructions.ToArray(); - - for (int i = a.Length - 1; i >= 0; i--) - { - il.InsertBefore(previous, a[i]); - previous = a[i]; - } - } - } -} diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/ILExtensions.cs.meta b/Packages/se.hertzole.cecil-attributes/Editor/Processors/ILExtensions.cs.meta deleted file mode 100644 index d1d7684..0000000 --- a/Packages/se.hertzole.cecil-attributes/Editor/Processors/ILExtensions.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0f05a14d58cdf1e4eb1f04fe35acc9fe -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/se.hertzole.cecil-attributes/Editor/Processors/OnChangeProcessor.cs b/Packages/se.hertzole.cecil-attributes/Editor/Processors/OnChangeProcessor.cs deleted file mode 100644 index fdbbb0a..0000000 --- a/Packages/se.hertzole.cecil-attributes/Editor/Processors/OnChangeProcessor.cs +++ /dev/null @@ -1,233 +0,0 @@ -using Mono.Cecil; -using Mono.Cecil.Cil; -using System.Collections.Generic; -using UnityEngine; - -namespace Hertzole.CecilAttributes.Editor -{ - public class OnChangeProcessor : BaseProcessor - { - private List fields = new List(); - private Dictionary originalTypes = new Dictionary(); - - private const string FIELD_PREFIX = "CecilOnChangedProperty_"; - - public override string Name { get { return "OnChange"; } } - - public override bool NeedsMonoBehaviour { get { return false; } } - public override bool AllowEditor { get { return true; } } - - public override bool IsValidClass(TypeDefinition type) - { - if (type.HasFields) - { - foreach (FieldDefinition field in type.Fields) - { - if (field.TryGetAttribute(out _)) - { - return true; - } - } - } - - if (type.HasProperties) - { - foreach (PropertyDefinition property in type.Properties) - { - if (property.TryGetAttribute(out _)) - { - return true; - } - } - } - - return false; - } - - //TODO: Make work with multiple attributes. - public override (bool success, bool dirty) ProcessClass(ModuleDefinition module, TypeDefinition type) - { - fields.Clear(); - originalTypes.Clear(); - - if (type.HasFields) - { - for (int i = 0; i < type.Fields.Count; i++) - { - if (type.Fields[i].HasAttribute()) - { - fields.Add(new MemberData(type.Fields[i])); - } - } - } - - if (type.HasProperties) - { - for (int i = 0; i < type.Properties.Count; i++) - { - if (type.Properties[i].HasAttribute()) - { - fields.Add(new MemberData(type.Properties[i])); - } - } - } - - if (fields.Count == 0) - { - return (true, false); - } - - for (int i = 0; i < fields.Count; i++) - { - if (!ProcessField(fields[i])) - { - return (false, false); - } - } - - return (true, true); - } - - private bool ProcessField(MemberData data) - { - string originalName = data.Name; - TypeReference originalType = data.Type; - - originalTypes[data] = originalType; - - string hookName = data.GetAttribute().GetField("hook", null); - bool equalsCheck = data.GetAttribute().GetField("equalCheck", true); - - if (data.IsProperty) - { - - } - else - { - MethodDefinition get = GenerateGetter(data.field, originalName, originalType); - MethodDefinition set = GenerateSetter(data.field, originalName, originalType, hookName, equalsCheck); - - if (set == null) - { - return false; - } - - data.field.DeclaringType.Methods.Add(get); - data.field.DeclaringType.Methods.Add(set); - - PropertyDefinition property = new PropertyDefinition(FIELD_PREFIX + originalName, PropertyAttributes.None, originalType) - { - GetMethod = get, - SetMethod = set - }; - - property.DeclaringType = data.field.DeclaringType; - property.DeclaringType.Properties.Add(property); - } - - return true; - } - - private MethodDefinition GenerateGetter(FieldDefinition field, string name, TypeReference type) - { - MethodDefinition method = new MethodDefinition($"get_{FIELD_PREFIX}{name}", GetAccessorFromField(field) | MethodAttributes.HideBySig | MethodAttributes.SpecialName, type); - ILProcessor il = method.Body.GetILProcessor(); - - il.Emit(OpCodes.Ldarg_0); - il.Emit(OpCodes.Ldfld, field); - il.Emit(OpCodes.Ret); - - method.SemanticsAttributes = MethodSemanticsAttributes.Getter; - - return method; - } - - private MethodDefinition GenerateSetter(FieldDefinition field, string name, TypeReference type, string hookName, bool equalsCheck) - { - MethodDefinition method = new MethodDefinition($"set_{FIELD_PREFIX}{name}", GetAccessorFromField(field) | MethodAttributes.HideBySig | MethodAttributes.SpecialName, field.Module.ImportReference(typeof(void))); - - method.Parameters.Add(new ParameterDefinition(type)); - method.Body.Variables.Add(new VariableDefinition(type)); - - MethodDefinition hookMethod = GetHookMethod(hookName, field.DeclaringType, type); - if (hookMethod == null) - { - return null; - } - - ILProcessor il = method.Body.GetILProcessor(); - - Instruction ret = Instruction.Create(OpCodes.Ret); - - if (equalsCheck) - { - il.Emit(OpCodes.Ldarg_0); - il.Emit(OpCodes.Ldfld, field); - il.Emit(OpCodes.Ldarg_1); - il.Emit(OpCodes.Beq_S, ret); - } - - il.Emit(OpCodes.Ldarg_0); - il.Emit(OpCodes.Ldfld, field); - il.Emit(OpCodes.Stloc_0); - - il.Emit(OpCodes.Ldarg_0); - il.Emit(OpCodes.Ldarg_1); - il.Emit(OpCodes.Stfld, field); - - il.Emit(OpCodes.Ldarg_0); - il.Emit(OpCodes.Ldloc_0); - il.Emit(OpCodes.Ldarg_1); - il.Emit(OpCodes.Call, hookMethod); - - il.Append(ret); - - method.SemanticsAttributes = MethodSemanticsAttributes.Setter; - - return method; - } - - private MethodDefinition GetHookMethod(string hookName, TypeDefinition parent, TypeReference type) - { - if (string.IsNullOrWhiteSpace(hookName)) - { - return null; - } - - for (int i = 0; i < parent.Methods.Count; i++) - { - if (parent.Methods[i].Name == hookName) - { - if (parent.Methods[i].Parameters.Count != 2) - { - //Debug.LogError($"Could not ") - } - else - { - //TODO: Make sure types match. - return parent.Methods[i]; - } - } - } - - Debug.LogError("Couldn't find a method with the name " + hookName + " to hook into."); - return null; - } - - public MethodAttributes GetAccessorFromField(FieldDefinition field) - { - if (field.Attributes.HasFlag(FieldAttributes.Public)) - { - return MethodAttributes.Public; - } - else if (field.Attributes.HasFlag(FieldAttributes.Private)) - { - return MethodAttributes.Private; - } - else - { - return MethodAttributes.Private; - } - } - } -} diff --git a/Packages/se.hertzole.cecil-attributes/README.md b/Packages/se.hertzole.cecil-attributes/README.md deleted file mode 100644 index 297b88f..0000000 --- a/Packages/se.hertzole.cecil-attributes/README.md +++ /dev/null @@ -1,88 +0,0 @@ -# Cecil Attributes -### A set of Unity attributes to automate your workflow. - -## Installation -1. Open up the Unity package manager -2. Click on the plus icon in the top left and "Add package from git url" -3. Paste in `https://github.com/Hertzole/cecil-attributes.git` - -Unity should now resolve the packages. - -## The Attributes - -### Reset Static -**Applies to classes, fields, properties, and events** - -Reset static will automatically reset your statics to their default value when the game starts. The default value can be either a value you've specified (the default assign value) or just the default value for that type. This is extremely useful for when you have fast enter play mode settings on without domain reload. Putting it on a class will reset all static fields/properties/events in that class. - -Usage: -```cs -[ResetStatic] -public static int testValue = 10; -``` - -### Log Called -**Applies to methods and properties** - -Log called will automatically put a Debug.Log message in your methods/properties to see when they are called. -In methods it will display all the parameters along with the name of the method. -In properties it will display the property name, Get/Set and the value. If it's a get it will show the return value. If it's a set it will show the old value and the new value. You can also turn off logging for both get/set per attribute. - -Usage: -```cs -[LogCalled(logPropertyGet: true, logPropertySet: true)] -public int MyProperty { get; set; } - -[LogCalled] -public void MyMethod(int para1, string para2) -{ - // Will log "MyMethod (para1: , para2: ) -} -``` - -### Find Property -**Applies to fields and properties** - -Find property will automatically find serialized properties for you and make sure they exist. By default it searches with the same name as the field/property in your editor script, but a custom name/path can be specified to make it search with another name or within another serialized property. - -Usage: -```cs -[FindProperty] -private SerializedProperty myProperty; // Will look for a property called 'myProperty'. -[FindProperty("customName")] -private SerializedProperty notMyName; // Will look for a property called 'customName'. -[FindProperty("firstProperty/secondProperty")] -private SerializedProperty nested; // Will first look for a property called 'firstProperty' and then 'secondProperty' on the first property. -``` - -### Timed -**Applies to methods and properties** - -Timed will automatically put your entire method inside a stopwatch and log at the end of the method how long it took to execute in both milliseconds and ticks. - -Usage: -```cs -[Timed] -private void MyMethod() -{ - //TODO: Code - // Will log 'MyMethod took milliseconds ( ticks)' -} -``` - -### Mark In Profiler -**Applies to methods** - -Mark in profiler will put your method inside a big Profiler.BeginSample() and Profiler.EndSample to make it show up in the Unity profiler. - -Usage: -```cs -[MarkInProfiler] -private void MyMethod() // This will show up in the Unity profiler. -{ - //TODO: My code -} -``` - -## License -MIT - Basically do whatever, I'm just not liable if it causes any damages. diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/GetComponentAttribute.cs b/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/GetComponentAttribute.cs deleted file mode 100644 index 58ea937..0000000 --- a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/GetComponentAttribute.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; - -namespace Hertzole.CecilAttributes -{ - public enum GetComponentTarget { Self = 0, Parent = 1, Children = 2 } - - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)] - public sealed class GetComponentAttribute : Attribute - { - public GetComponentTarget target = GetComponentTarget.Self; - } -} diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/GetComponentAttribute.cs.meta b/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/GetComponentAttribute.cs.meta deleted file mode 100644 index 05f3877..0000000 --- a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/GetComponentAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 06f54a8589d8ebd47b9ce503fe46ff3a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/se.hertzole.cecil-attributes/Tests.meta b/Packages/se.hertzole.cecil-attributes/Tests.meta deleted file mode 100644 index 8c0c7b4..0000000 --- a/Packages/se.hertzole.cecil-attributes/Tests.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8c4439905f427b649a19db055c168284 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/se.hertzole.cecil-attributes/Tests/Hertzole.CecilAttributes.Tests.asmdef b/Packages/se.hertzole.cecil-attributes/Tests/Hertzole.CecilAttributes.Tests.asmdef deleted file mode 100644 index adfe9db..0000000 --- a/Packages/se.hertzole.cecil-attributes/Tests/Hertzole.CecilAttributes.Tests.asmdef +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "Hertzole.CecilAttributes.Tests", - "rootNamespace": "", - "references": [ - "UnityEngine.TestRunner", - "UnityEditor.TestRunner", - "Hertzole.CecilAttributes" - ], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": true, - "precompiledReferences": [ - "nunit.framework.dll" - ], - "autoReferenced": false, - "defineConstraints": [ - "UNITY_INCLUDE_TESTS" - ], - "versionDefines": [], - "noEngineReferences": false -} \ No newline at end of file diff --git a/Packages/se.hertzole.cecil-attributes/Tests/Hertzole.CecilAttributes.Tests.asmdef.meta b/Packages/se.hertzole.cecil-attributes/Tests/Hertzole.CecilAttributes.Tests.asmdef.meta deleted file mode 100644 index 8f8b0ea..0000000 --- a/Packages/se.hertzole.cecil-attributes/Tests/Hertzole.CecilAttributes.Tests.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 0be7eb960b21c9a449d9dec6a4083fe6 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/se.hertzole.cecil-attributes/Tests/LogCalledTests.cs b/Packages/se.hertzole.cecil-attributes/Tests/LogCalledTests.cs deleted file mode 100644 index 82e96dc..0000000 --- a/Packages/se.hertzole.cecil-attributes/Tests/LogCalledTests.cs +++ /dev/null @@ -1,1031 +0,0 @@ -using NUnit.Framework; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Hertzole.CecilAttributes.Tests -{ - public class LogCalledTests - { - private class TestClass - { - [LogCalled] public int TestProperty { get; set; } - [LogCalled(true, false)] public int TestPropertyGet { get; set; } - [LogCalled(false, true)] public int TestPropertySet { get; set; } - public int TestPropertyGetDirect { [LogCalled] get; set; } - public int TestPropertySetDirect { get; [LogCalled] set; } - [LogCalled] public int TestPropertyGetOnly { get; } - - private int testField; - - [LogCalled] public int TestPropertyField { get { return testField; } set { testField = value; } } - [LogCalled(true, false)] public int TestPropertyFieldGet { get { return testField; } set { testField = value; } } - [LogCalled(false, true)] public int TestPropertyFieldSet { get { return testField; } set { testField = value; } } - public int TestPropertyFieldGetDirect { [LogCalled] get { return testField; } set { testField = value; } } - public int TestPropertyFieldSetDirect { get { return testField; } [LogCalled] set { testField = value; } } - [LogCalled] public int TestPropertyFieldGetOnly { get { return testField; } } - [LogCalled] public int TestPropertyFieldSetOnly { set { testField = value; } } - - [LogCalled] public static int StaticTestProperty { get; set; } - [LogCalled(true, false)] public static int StaticTestPropertyGet { get; set; } - [LogCalled(false, true)] public static int StaticTestPropertySet { get; set; } - public static int StaticTestPropertyGetDirect { [LogCalled] get; set; } - public static int StaticTestPropertySetDirect { get; [LogCalled] set; } - [LogCalled] public static int StaticTestPropertyGetOnly { get; } - - private static int staticField; - - [LogCalled] public static int StaticTestPropertyField { get { return staticField; } set { staticField = value; } } - [LogCalled(true, false)] public static int StaticTestPropertyFieldGet { get { return staticField; } set { staticField = value; } } - [LogCalled(false, true)] public static int StaticTestPropertyFieldSet { get { return staticField; } set { staticField = value; } } - public static int StaticTestPropertyFieldGetDirect { [LogCalled] get { return staticField; } set { staticField = value; } } - public static int StaticTestPropertyFieldSetDirect { get { return staticField; } [LogCalled] set { staticField = value; } } - [LogCalled] public static int StaticTestPropertyFieldGetOnly { get { return staticField; } } - [LogCalled] public static int StaticTestPropertyFieldSetOnly { set { staticField = value; } } - - [LogCalled] public Vector3 TestValueTypeProperty { get; set; } - [LogCalled(true, false)] public Vector3 TestValueTypePropertyGet { get; set; } - [LogCalled(false, true)] public Vector3 TestValueTypePropertySet { get; set; } - public Vector3 TestValueTypePropertyGetDirect { [LogCalled] get; set; } - public Vector3 TestValueTypePropertySetDirect { get; [LogCalled] set; } - [LogCalled] public Vector3 TestValueTypePropertyGetOnly { get; } - - private Vector3 valueTypeField; - - [LogCalled] public Vector3 TestValueTypePropertyField { get { return valueTypeField; } set { valueTypeField = value; } } - [LogCalled(true, false)] public Vector3 TestValueTypePropertyFieldGet { get { return valueTypeField; } set { valueTypeField = value; } } - [LogCalled(false, true)] public Vector3 TestValueTypePropertyFieldSet { get { return valueTypeField; } set { valueTypeField = value; } } - public Vector3 TestValueTypePropertyFieldGetDirect { [LogCalled] get { return valueTypeField; } set { valueTypeField = value; } } - public Vector3 TestValueTypePropertyFieldSetDirect { get { return valueTypeField; } [LogCalled] set { valueTypeField = value; } } - [LogCalled] public Vector3 TestValueTypePropertyFieldGetOnly { get { return valueTypeField; } } - [LogCalled] public Vector3 TestValueTypePropertyFieldSetOnly { set { valueTypeField = value; } } - - [LogCalled] public static Vector3 StaticTestValueTypeProperty { get; set; } - [LogCalled(true, false)] public static Vector3 StaticTestValueTypePropertyGet { get; set; } - [LogCalled(false, true)] public static Vector3 StaticTestValueTypePropertySet { get; set; } - public static Vector3 StaticTestValueTypePropertyGetDirect { [LogCalled] get; set; } - public static Vector3 StaticTestValueTypePropertySetDirect { get; [LogCalled] set; } - [LogCalled] public static Vector3 StaticTestValueTypePropertyGetOnly { get; } - - private static Vector3 staticValueTypeField; - - [LogCalled] public static Vector3 StaticTestValueTypePropertyField { get { return staticValueTypeField; } set { staticValueTypeField = value; } } - [LogCalled(true, false)] public static Vector3 StaticTestValueTypePropertyFieldGet { get { return staticValueTypeField; } set { staticValueTypeField = value; } } - [LogCalled(false, true)] public static Vector3 StaticTestValueTypePropertyFieldSet { get { return staticValueTypeField; } set { staticValueTypeField = value; } } - public static Vector3 StaticTestValueTypePropertyFieldGetDirect { [LogCalled] get { return staticValueTypeField; } set { staticValueTypeField = value; } } - public static Vector3 StaticTestValueTypePropertyFieldSetDirect { get { return staticValueTypeField; } [LogCalled] set { staticValueTypeField = value; } } - [LogCalled] public static Vector3 StaticTestValueTypePropertyFieldGetOnly { get { return staticValueTypeField; } } - [LogCalled] public static Vector3 StaticTestValueTypePropertyFieldSetOnly { set { staticValueTypeField = value; } } - - [LogCalled] public string TestStringProperty { get; set; } - [LogCalled(true, false)] public string TestStringPropertyGet { get; set; } - [LogCalled(false, true)] public string TestStringPropertySet { get; set; } - public string TestStringPropertyGetDirect { [LogCalled] get; set; } - public string TestStringPropertySetDirect { get; [LogCalled] set; } - [LogCalled] public string TestStringPropertyGetOnly { get; } - - private string stringField; - - [LogCalled] public string TestStringPropertyField { get { return stringField; } set { stringField = value; } } - [LogCalled(true, false)] public string TestStringPropertyFieldGet { get { return stringField; } set { stringField = value; } } - [LogCalled(false, true)] public string TestStringPropertyFieldSet { get { return stringField; } set { stringField = value; } } - public string TestStringPropertyFieldGetDirect { [LogCalled] get { return stringField; } set { stringField = value; } } - public string TestStringPropertyFieldSetDirect { get { return stringField; } [LogCalled] set { stringField = value; } } - [LogCalled] public string TestStringPropertyFieldGetOnly { get { return stringField; } } - [LogCalled] public string TestStringPropertyFieldSetOnly { set { stringField = value; } } - - [LogCalled] public static string StaticTestStringProperty { get; set; } - [LogCalled(true, false)] public static string StaticTestStringPropertyGet { get; set; } - [LogCalled(false, true)] public static string StaticTestStringPropertySet { get; set; } - public static string StaticTestStringPropertyGetDirect { [LogCalled] get; set; } - public static string StaticTestStringPropertySetDirect { get; [LogCalled] set; } - [LogCalled] public static string StaticTestStringPropertyGetOnly { get; } - - private static string staticStringField; - - [LogCalled] public static string StaticTestStringPropertyField { get { return staticStringField; } set { staticStringField = value; } } - [LogCalled(true, false)] public static string StaticTestStringPropertyFieldGet { get { return staticStringField; } set { staticStringField = value; } } - [LogCalled(false, true)] public static string StaticTestStringPropertyFieldSet { get { return staticStringField; } set { staticStringField = value; } } - public static string StaticTestStringPropertyFieldGetDirect { [LogCalled] get { return staticStringField; } set { staticStringField = value; } } - public static string StaticTestStringPropertyFieldSetDirect { get { return staticStringField; } [LogCalled] set { staticStringField = value; } } - [LogCalled] public static string StaticTestStringPropertyFieldGetOnly { get { return staticStringField; } } - [LogCalled] public static string StaticTestStringPropertyFieldSetOnly { set { staticStringField = value; } } - - private static int templateField; - - public static int Template - { - get - { - Debug.Log($"Get template field {templateField}"); - return templateField; - } - set - { - int oldValue = templateField; - Debug.Log($"Set template field. Old {oldValue} New {value}"); - - templateField = value; - } - } - } - - private class TestGenericClass - { - [LogCalled] public T TestProperty { get; set; } - [LogCalled(true, false)] public T TestPropertyGet { get; set; } - [LogCalled(false, true)] public T TestPropertySet { get; set; } - public T TestPropertyGetDirect { [LogCalled] get; set; } - public T TestPropertySetDirect { get; [LogCalled] set; } - [LogCalled] public T TestPropertyGetOnly { get; } - - private T testField; - - [LogCalled] public T TestPropertyField { get { return testField; } set { testField = value; } } - [LogCalled(true, false)] public T TestPropertyFieldGet { get { return testField; } set { testField = value; } } - [LogCalled(false, true)] public T TestPropertyFieldSet { get { return testField; } set { testField = value; } } - public T TestPropertyFieldGetDirect { [LogCalled] get { return testField; } set { testField = value; } } - public T TestPropertyFieldSetDirect { get { return testField; } [LogCalled] set { testField = value; } } - [LogCalled] public T TestPropertyFieldGetOnly { get { return testField; } } - [LogCalled] public T TestPropertyFieldSetOnly { set { testField = value; } } - - [LogCalled] public static T StaticTestProperty { get; set; } - [LogCalled(true, false)] public static T StaticTestPropertyGet { get; set; } - [LogCalled(false, true)] public static T StaticTestPropertySet { get; set; } - public static T StaticTestPropertyGetDirect { [LogCalled] get; set; } - public static T StaticTestPropertySetDirect { get; [LogCalled] set; } - [LogCalled] public static T StaticTestPropertyGetOnly { get; } - - private static T staticField; - - [LogCalled] public static T StaticTestPropertyField { get { return staticField; } set { staticField = value; } } - [LogCalled(true, false)] public static T StaticTestPropertyFieldGet { get { return staticField; } set { staticField = value; } } - [LogCalled(false, true)] public static T StaticTestPropertyFieldSet { get { return staticField; } set { staticField = value; } } - public static T StaticTestPropertyFieldGetDirect { [LogCalled] get { return staticField; } set { staticField = value; } } - public static T StaticTestPropertyFieldSetDirect { get { return staticField; } [LogCalled] set { staticField = value; } } - [LogCalled] public static T StaticTestPropertyFieldGetOnly { get { return staticField; } } - [LogCalled] public static T StaticTestPropertyFieldSetOnly { set { staticField = value; } } - - private static T templateField; - - public static T Template - { - get - { - Debug.Log($"Get template field {templateField}"); - return templateField; - } - set - { - T oldValue = templateField; - Debug.Log($"Set template field. Old {oldValue} New {value}"); - - templateField = value; - } - } - } - - private TestClass test; - private TestGenericClass testGeneric; - - [SetUp] - public void SetUp() - { - test = new TestClass(); - testGeneric = new TestGenericClass(); - } - - #region Normal properties - [Test] - public void TestProperty() - { - int val = test.TestProperty; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestProperty)} Get {val}"); - test.TestProperty = 10; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestProperty)} Set (Old: {val}, New: {test.TestProperty})"); - test.TestProperty = default; - } - - [Test] - public void TestPropertyGet() - { - int val = test.TestPropertyGet; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestPropertyGet)} Get {val}"); - } - - [Test] - public void TestPropertyGetOnly() - { - int val = test.TestPropertyGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestPropertyGetOnly)} Get {val}"); - } - - [Test] - public void TestPropertySet() - { - test.TestPropertySet = 10; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestPropertySet)} Set (Old: {default(int)}, New: {test.TestPropertySet})"); - test.TestPropertySet = default; - } - - [Test] - public void TestPropertyGetDirect() - { - int val = test.TestPropertyGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(test.TestPropertyGetDirect)} ()"); - } - - [Test] - public void TestPropertySetDirect() - { - test.TestPropertySetDirect = 10; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(test.TestPropertySetDirect)} (value: {test.TestPropertySetDirect})"); - test.TestPropertySetDirect = default; - } - - [Test] - public void TestPropertyField() - { - int val = test.TestPropertyField; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestPropertyField)} Get {val}"); - test.TestPropertyField = 10; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestPropertyField)} Set (Old: {val}, New: {test.TestPropertyField})"); - test.TestPropertyField = default; - } - - [Test] - public void TestPropertyFieldGet() - { - int val = test.TestPropertyFieldGet; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestPropertyFieldGet)} Get {val}"); - } - - [Test] - public void TestPropertyFieldGetOnly() - { - int val = test.TestPropertyFieldGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestPropertyFieldGetOnly)} Get {val}"); - } - - [Test] - public void TestPropertyFieldSet() - { - test.TestPropertyFieldSet = 10; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestPropertyFieldSet)} Set (Old: {default(int)}, New: {test.TestPropertyFieldSet})"); - test.TestPropertyFieldSet = default; - } - - [Test] - public void TestPropertyFieldSetOnly() - { - test.TestPropertyFieldSetOnly = 10; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestPropertyFieldSetOnly)} Set (Old: {default(int)}, New: {10})"); - test.TestPropertyFieldSetOnly = default; - } - - [Test] - public void TestPropertyFieldGetDirect() - { - int val = test.TestPropertyFieldGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(test.TestPropertyFieldGetDirect)} ()"); - } - - [Test] - public void TestPropertyFieldSetDirect() - { - test.TestPropertyFieldSetDirect = 10; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(test.TestPropertyFieldSetDirect)} (value: {test.TestPropertyFieldSetDirect})"); - test.TestPropertyFieldSetDirect = default; - } - #endregion - - #region Static properties - [Test] - public void TestStaticProperty() - { - int val = TestClass.StaticTestProperty; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestProperty)} Get {val}"); - TestClass.StaticTestProperty = 10; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestProperty)} Set (Old: {val}, New: {TestClass.StaticTestProperty})"); - TestClass.StaticTestProperty = default; - } - - [Test] - public void TestStaticPropertyGet() - { - int val = TestClass.StaticTestPropertyGet; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestPropertyGet)} Get {val}"); - } - - [Test] - public void TestStaticPropertyGetOnly() - { - int val = TestClass.StaticTestPropertyGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestPropertyGetOnly)} Get {val}"); - } - - [Test] - public void TestStaticPropertySet() - { - TestClass.StaticTestPropertySet = 10; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestPropertySet)} Set (Old: {default(int)}, New: {TestClass.StaticTestPropertySet})"); - TestClass.StaticTestPropertySet = default; - } - - [Test] - public void TestStaticPropertyGetDirect() - { - int val = TestClass.StaticTestPropertyGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(TestClass.StaticTestPropertyGetDirect)} ()"); - } - - [Test] - public void TestStaticPropertySetDirect() - { - TestClass.StaticTestPropertySetDirect = 10; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(TestClass.StaticTestPropertySetDirect)} (value: {TestClass.StaticTestPropertySetDirect})"); - TestClass.StaticTestPropertySetDirect = default; - } - - [Test] - public void TestStaticPropertyField() - { - int val = TestClass.StaticTestPropertyField; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestPropertyField)} Get {val}"); - TestClass.StaticTestPropertyField = 10; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestPropertyField)} Set (Old: {val}, New: {TestClass.StaticTestPropertyField})"); - TestClass.StaticTestPropertyField = default; - } - - [Test] - public void TestStaticPropertyFieldGet() - { - int val = TestClass.StaticTestPropertyFieldGet; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestPropertyFieldGet)} Get {val}"); - } - - [Test] - public void TestStaticPropertyFieldGetOnly() - { - int val = TestClass.StaticTestPropertyFieldGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestPropertyFieldGetOnly)} Get {val}"); - } - - [Test] - public void TestStaticPropertyFieldSet() - { - TestClass.StaticTestPropertyFieldSet = 10; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestPropertyFieldSet)} Set (Old: {default(int)}, New: {TestClass.StaticTestPropertyFieldSet})"); - TestClass.StaticTestPropertyFieldSet = default; - } - - [Test] - public void TestStaticPropertyFieldSetOnly() - { - TestClass.StaticTestPropertyFieldSetOnly = 10; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestPropertyFieldSetOnly)} Set (Old: {default(int)}, New: {10})"); - TestClass.StaticTestPropertyFieldSetOnly = default; - } - - [Test] - public void TestStaticPropertyFieldGetDirect() - { - int val = TestClass.StaticTestPropertyFieldGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(TestClass.StaticTestPropertyFieldGetDirect)} ()"); - } - - [Test] - public void TestStaticPropertyFieldSetDirect() - { - TestClass.StaticTestPropertyFieldSetDirect = 10; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(TestClass.StaticTestPropertyFieldSetDirect)} (value: {TestClass.StaticTestPropertyFieldSetDirect})"); - TestClass.StaticTestPropertyFieldSetDirect = default; - } - #endregion - - #region Value type properties - [Test] - public void TestValueTypeProperty() - { - Vector3 val = test.TestValueTypeProperty; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestValueTypeProperty)} Get {val}"); - test.TestValueTypeProperty = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(test.TestValueTypeProperty)} Set (Old: {val}, New: {test.TestValueTypeProperty})"); - test.TestValueTypeProperty = default; - } - - [Test] - public void TestValueTypePropertyGet() - { - Vector3 val = test.TestValueTypePropertyGet; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestValueTypePropertyGet)} Get {val}"); - } - - [Test] - public void TestValueTypePropertyGetOnly() - { - Vector3 val = test.TestValueTypePropertyGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestValueTypePropertyGetOnly)} Get {val}"); - } - - [Test] - public void TestValueTypePropertySet() - { - test.TestValueTypePropertySet = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(test.TestValueTypePropertySet)} Set (Old: {default(Vector3)}, New: {test.TestValueTypePropertySet})"); - test.TestValueTypePropertySet = default; - } - - [Test] - public void TestValueTypePropertyGetDirect() - { - Vector3 val = test.TestValueTypePropertyGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(test.TestValueTypePropertyGetDirect)} ()"); - } - - [Test] - public void TestValueTypePropertySetDirect() - { - test.TestValueTypePropertySetDirect = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(test.TestValueTypePropertySetDirect)} (value: {test.TestValueTypePropertySetDirect})"); - test.TestValueTypePropertySetDirect = default; - } - - [Test] - public void TestValueTypePropertyField() - { - Vector3 val = test.TestValueTypePropertyField; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestValueTypePropertyField)} Get {val}"); - test.TestValueTypePropertyField = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(test.TestValueTypePropertyField)} Set (Old: {val}, New: {test.TestValueTypePropertyField})"); - test.TestValueTypePropertyField = default; - } - - [Test] - public void TestValueTypePropertyFieldGet() - { - Vector3 val = test.TestValueTypePropertyFieldGet; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestValueTypePropertyFieldGet)} Get {val}"); - } - - [Test] - public void TestValueTypePropertyFieldGetOnly() - { - Vector3 val = test.TestValueTypePropertyFieldGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestValueTypePropertyFieldGetOnly)} Get {val}"); - } - - [Test] - public void TestValueTypePropertyFieldSet() - { - test.TestValueTypePropertyFieldSet = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(test.TestValueTypePropertyFieldSet)} Set (Old: {default(Vector3)}, New: {test.TestValueTypePropertyFieldSet})"); - test.TestValueTypePropertyFieldSet = default; - } - - [Test] - public void TestValueTypePropertyFieldSetOnly() - { - test.TestValueTypePropertyFieldSetOnly = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(test.TestValueTypePropertyFieldSetOnly)} Set (Old: {default(Vector3)}, New: {new Vector3(1, 1, 1)})"); - test.TestValueTypePropertyFieldSetOnly = default; - } - - [Test] - public void TestValueTypePropertyFieldGetDirect() - { - Vector3 val = test.TestValueTypePropertyFieldGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(test.TestValueTypePropertyFieldGetDirect)} ()"); - } - - [Test] - public void TestValueTypePropertyFieldSetDirect() - { - test.TestValueTypePropertyFieldSetDirect = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(test.TestValueTypePropertyFieldSetDirect)} (value: {test.TestValueTypePropertyFieldSetDirect})"); - test.TestValueTypePropertyFieldSetDirect = default; - } - #endregion - - #region Static value type properties - [Test] - public void TestStaticValueTypeProperty() - { - Vector3 val = TestClass.StaticTestValueTypeProperty; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestValueTypeProperty)} Get {val}"); - TestClass.StaticTestValueTypeProperty = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestValueTypeProperty)} Set (Old: {val}, New: {TestClass.StaticTestValueTypeProperty})"); - TestClass.StaticTestValueTypeProperty = default; - } - - [Test] - public void TestStaticValueTypePropertyGet() - { - Vector3 val = TestClass.StaticTestValueTypePropertyGet; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestValueTypePropertyGet)} Get {val}"); - } - - [Test] - public void TestStaticValueTypePropertyGetOnly() - { - Vector3 val = TestClass.StaticTestValueTypePropertyGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestValueTypePropertyGetOnly)} Get {val}"); - } - - [Test] - public void TestStaticValueTypePropertySet() - { - TestClass.StaticTestValueTypePropertySet = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestValueTypePropertySet)} Set (Old: {default(Vector3)}, New: {TestClass.StaticTestValueTypePropertySet})"); - TestClass.StaticTestValueTypePropertySet = default; - } - - [Test] - public void TestStaticValueTypePropertyGetDirect() - { - Vector3 val = TestClass.StaticTestValueTypePropertyGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(TestClass.StaticTestValueTypePropertyGetDirect)} ()"); - } - - [Test] - public void TestStaticValueTypePropertySetDirect() - { - TestClass.StaticTestValueTypePropertySetDirect = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(TestClass.StaticTestValueTypePropertySetDirect)} (value: {TestClass.StaticTestValueTypePropertySetDirect})"); - TestClass.StaticTestValueTypePropertySetDirect = default; - } - - [Test] - public void TestStaticValueTypePropertyField() - { - Vector3 val = TestClass.StaticTestValueTypePropertyField; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestValueTypePropertyField)} Get {val}"); - TestClass.StaticTestValueTypePropertyField = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestValueTypePropertyField)} Set (Old: {val}, New: {TestClass.StaticTestValueTypePropertyField})"); - TestClass.StaticTestValueTypePropertyField = default; - } - - [Test] - public void TestStaticValueTypePropertyFieldGet() - { - Vector3 val = TestClass.StaticTestValueTypePropertyFieldGet; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestValueTypePropertyFieldGet)} Get {val}"); - } - - [Test] - public void TestStaticValueTypePropertyFieldGetOnly() - { - Vector3 val = TestClass.StaticTestValueTypePropertyFieldGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestValueTypePropertyFieldGetOnly)} Get {val}"); - } - - [Test] - public void TestStaticValueTypePropertyFieldSet() - { - TestClass.StaticTestValueTypePropertyFieldSet = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestValueTypePropertyFieldSet)} Set (Old: {default(Vector3)}, New: {TestClass.StaticTestValueTypePropertyFieldSet})"); - TestClass.StaticTestValueTypePropertyFieldSet = default; - } - - [Test] - public void TestStaticValueTypePropertyFieldSetOnly() - { - TestClass.StaticTestValueTypePropertyFieldSetOnly = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestValueTypePropertyFieldSetOnly)} Set (Old: {default(Vector3)}, New: {new Vector3(1, 1, 1)})"); - TestClass.StaticTestValueTypePropertyFieldSetOnly = default; - } - - [Test] - public void TestStaticValueTypePropertyFieldGetDirect() - { - Vector3 val = TestClass.StaticTestValueTypePropertyFieldGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(TestClass.StaticTestValueTypePropertyFieldGetDirect)} ()"); - } - - [Test] - public void TestStaticValueTypePropertyFieldSetDirect() - { - TestClass.StaticTestValueTypePropertyFieldSetDirect = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(TestClass.StaticTestValueTypePropertyFieldSetDirect)} (value: {TestClass.StaticTestValueTypePropertyFieldSetDirect})"); - TestClass.StaticTestValueTypePropertyFieldSetDirect = default; - } - #endregion - - #region Value type properties - [Test] - public void TestStringProperty() - { - string val = test.TestStringProperty; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestStringProperty)} Get {val}"); - test.TestStringProperty = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestStringProperty)} Set (Old: {val}, New: {test.TestStringProperty})"); - test.TestStringProperty = default; - } - - [Test] - public void TestStringPropertyGet() - { - string val = test.TestStringPropertyGet; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestStringPropertyGet)} Get {val}"); - } - - [Test] - public void TestStringPropertyGetOnly() - { - string val = test.TestStringPropertyGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestStringPropertyGetOnly)} Get {val}"); - } - - [Test] - public void TestStringPropertySet() - { - test.TestStringPropertySet = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestStringPropertySet)} Set (Old: {default(string)}, New: {test.TestStringPropertySet})"); - test.TestStringPropertySet = default; - } - - [Test] - public void TestStringPropertyGetDirect() - { - string val = test.TestStringPropertyGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(test.TestStringPropertyGetDirect)} ()"); - } - - [Test] - public void TestStringPropertySetDirect() - { - test.TestStringPropertySetDirect = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(test.TestStringPropertySetDirect)} (value: {test.TestStringPropertySetDirect})"); - test.TestStringPropertySetDirect = default; - } - - [Test] - public void TestStringPropertyField() - { - string val = test.TestStringPropertyField; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestStringPropertyField)} Get {val}"); - test.TestStringPropertyField = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestStringPropertyField)} Set (Old: {val}, New: {test.TestStringPropertyField})"); - test.TestStringPropertyField = default; - } - - [Test] - public void TestStringPropertyFieldGet() - { - string val = test.TestStringPropertyFieldGet; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestStringPropertyFieldGet)} Get {val}"); - } - - [Test] - public void TestStringPropertyFieldGetOnly() - { - string val = test.TestStringPropertyFieldGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestStringPropertyFieldGetOnly)} Get {val}"); - } - - [Test] - public void TestStringPropertyFieldSet() - { - test.TestStringPropertyFieldSet = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestStringPropertyFieldSet)} Set (Old: {default(string)}, New: {test.TestStringPropertyFieldSet})"); - test.TestStringPropertyFieldSet = default; - } - - [Test] - public void TestStringPropertyFieldSetOnly() - { - test.TestStringPropertyFieldSetOnly = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(test.TestStringPropertyFieldSetOnly)} Set (Old: {default(string)}, New: {"Hello world"})"); - test.TestStringPropertyFieldSetOnly = default; - } - - [Test] - public void TestStringPropertyFieldGetDirect() - { - string val = test.TestStringPropertyFieldGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(test.TestStringPropertyFieldGetDirect)} ()"); - } - - [Test] - public void TestStringPropertyFieldSetDirect() - { - test.TestStringPropertyFieldSetDirect = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(test.TestStringPropertyFieldSetDirect)} (value: {test.TestStringPropertyFieldSetDirect})"); - test.TestStringPropertyFieldSetDirect = default; - } - #endregion - - #region Static value type properties - [Test] - public void TestStaticStringProperty() - { - string val = TestClass.StaticTestStringProperty; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestStringProperty)} Get {val}"); - TestClass.StaticTestStringProperty = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestStringProperty)} Set (Old: {val}, New: {TestClass.StaticTestStringProperty})"); - TestClass.StaticTestStringProperty = default; - } - - [Test] - public void TestStaticStringPropertyGet() - { - string val = TestClass.StaticTestStringPropertyGet; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestStringPropertyGet)} Get {val}"); - } - - [Test] - public void TestStaticStringPropertyGetOnly() - { - string val = TestClass.StaticTestStringPropertyGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestStringPropertyGetOnly)} Get {val}"); - } - - [Test] - public void TestStaticStringPropertySet() - { - TestClass.StaticTestStringPropertySet = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestStringPropertySet)} Set (Old: {default(string)}, New: {TestClass.StaticTestStringPropertySet})"); - TestClass.StaticTestStringPropertySet = default; - } - - [Test] - public void TestStaticStringPropertyGetDirect() - { - string val = TestClass.StaticTestStringPropertyGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(TestClass.StaticTestStringPropertyGetDirect)} ()"); - } - - [Test] - public void TestStaticStringPropertySetDirect() - { - TestClass.StaticTestStringPropertySetDirect = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(TestClass.StaticTestStringPropertySetDirect)} (value: {TestClass.StaticTestStringPropertySetDirect})"); - TestClass.StaticTestStringPropertySetDirect = default; - } - - [Test] - public void TestStaticStringPropertyField() - { - string val = TestClass.StaticTestStringPropertyField; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestStringPropertyField)} Get {val}"); - TestClass.StaticTestStringPropertyField = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestStringPropertyField)} Set (Old: {val}, New: {TestClass.StaticTestStringPropertyField})"); - TestClass.StaticTestStringPropertyField = default; - } - - [Test] - public void TestStaticStringPropertyFieldGet() - { - string val = TestClass.StaticTestStringPropertyFieldGet; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestStringPropertyFieldGet)} Get {val}"); - } - - [Test] - public void TestStaticStringPropertyFieldGetOnly() - { - string val = TestClass.StaticTestStringPropertyFieldGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestStringPropertyFieldGetOnly)} Get {val}"); - } - - [Test] - public void TestStaticStringPropertyFieldSet() - { - TestClass.StaticTestStringPropertyFieldSet = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestStringPropertyFieldSet)} Set (Old: {default(string)}, New: {TestClass.StaticTestStringPropertyFieldSet})"); - TestClass.StaticTestStringPropertyFieldSet = default; - } - - [Test] - public void TestStaticStringPropertyFieldSetOnly() - { - TestClass.StaticTestStringPropertyFieldSetOnly = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass.StaticTestStringPropertyFieldSetOnly)} Set (Old: {default(string)}, New: {"Hello world"})"); - TestClass.StaticTestStringPropertyFieldSetOnly = default; - } - - [Test] - public void TestStaticStringPropertyFieldGetDirect() - { - string val = TestClass.StaticTestStringPropertyFieldGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(TestClass.StaticTestStringPropertyFieldGetDirect)} ()"); - } - - [Test] - public void TestStaticStringPropertyFieldSetDirect() - { - TestClass.StaticTestStringPropertyFieldSetDirect = "Hello world"; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(TestClass.StaticTestStringPropertyFieldSetDirect)} (value: {TestClass.StaticTestStringPropertyFieldSetDirect})"); - TestClass.StaticTestStringPropertyFieldSetDirect = default; - } - #endregion - - #region Normal generic properties - [Test] - public void TestGenericProperty() - { - Vector3 val = testGeneric.TestProperty; - LogAssert.Expect(LogType.Log, $"{nameof(testGeneric.TestProperty)} Get {val}"); - testGeneric.TestProperty = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(testGeneric.TestProperty)} Set (Old: {val}, New: {testGeneric.TestProperty})"); - testGeneric.TestProperty = default; - } - - [Test] - public void TestGenericPropertyGet() - { - Vector3 val = testGeneric.TestPropertyGet; - LogAssert.Expect(LogType.Log, $"{nameof(testGeneric.TestPropertyGet)} Get {val}"); - } - - [Test] - public void TestGenericPropertyGetOnly() - { - Vector3 val = testGeneric.TestPropertyGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(testGeneric.TestPropertyGetOnly)} Get {val}"); - } - - [Test] - public void TestGenericPropertySet() - { - testGeneric.TestPropertySet = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(testGeneric.TestPropertySet)} Set (Old: {default(int)}, New: {testGeneric.TestPropertySet})"); - testGeneric.TestPropertySet = default; - } - - [Test] - public void TestGenericPropertyGetDirect() - { - Vector3 val = testGeneric.TestPropertyGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(testGeneric.TestPropertyGetDirect)} ()"); - } - - [Test] - public void TestGenericPropertySetDirect() - { - testGeneric.TestPropertySetDirect = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(testGeneric.TestPropertySetDirect)} (value: {testGeneric.TestPropertySetDirect})"); - testGeneric.TestPropertySetDirect = default; - } - - [Test] - public void TestGenericPropertyField() - { - Vector3 val = testGeneric.TestPropertyField; - LogAssert.Expect(LogType.Log, $"{nameof(testGeneric.TestPropertyField)} Get {val}"); - testGeneric.TestPropertyField = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(testGeneric.TestPropertyField)} Set (Old: {val}, New: {testGeneric.TestPropertyField})"); - testGeneric.TestPropertyField = default; - } - - [Test] - public void TestGenericPropertyFieldGet() - { - Vector3 val = testGeneric.TestPropertyFieldGet; - LogAssert.Expect(LogType.Log, $"{nameof(testGeneric.TestPropertyFieldGet)} Get {val}"); - } - - [Test] - public void TestGenericPropertyFieldGetOnly() - { - Vector3 val = testGeneric.TestPropertyFieldGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(testGeneric.TestPropertyFieldGetOnly)} Get {val}"); - } - - [Test] - public void TestGenericPropertyFieldSet() - { - testGeneric.TestPropertyFieldSet = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(testGeneric.TestPropertyFieldSet)} Set (Old: {default(int)}, New: {testGeneric.TestPropertyFieldSet})"); - testGeneric.TestPropertyFieldSet = default; - } - - [Test] - public void TestGenericPropertyFieldSetOnly() - { - testGeneric.TestPropertyFieldSetOnly = new Vector3(1, 1 ,1); - LogAssert.Expect(LogType.Log, $"{nameof(testGeneric.TestPropertyFieldSetOnly)} Set (Old: {default(int)}, New: {10})"); - testGeneric.TestPropertyFieldSetOnly = default; - } - - [Test] - public void TestGenericPropertyFieldGetDirect() - { - Vector3 val = testGeneric.TestPropertyFieldGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(testGeneric.TestPropertyFieldGetDirect)} ()"); - } - - [Test] - public void TestGenericPropertyFieldSetDirect() - { - testGeneric.TestPropertyFieldSetDirect = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(testGeneric.TestPropertyFieldSetDirect)} (value: {testGeneric.TestPropertyFieldSetDirect})"); - testGeneric.TestPropertyFieldSetDirect = default; - } - #endregion - - #region Static generic properties - [Test] - public void TestStaticGenericProperty() - { - Vector3 val = TestGenericClass.StaticTestProperty; - LogAssert.Expect(LogType.Log, $"{nameof(TestGenericClass.StaticTestProperty)} Get {val}"); - TestGenericClass.StaticTestProperty = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestGenericClass.StaticTestProperty)} Set (Old: {val}, New: {TestGenericClass.StaticTestProperty})"); - TestGenericClass.StaticTestProperty = default; - } - - [Test] - public void TestStaticGenericPropertyGet() - { - Vector3 val = TestGenericClass.StaticTestPropertyGet; - LogAssert.Expect(LogType.Log, $"{nameof(TestGenericClass.StaticTestPropertyGet)} Get {val}"); - } - - [Test] - public void TestStaticGenericPropertyGetOnly() - { - Vector3 val = TestGenericClass.StaticTestPropertyGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(TestGenericClass.StaticTestPropertyGetOnly)} Get {val}"); - } - - [Test] - public void TestStaticGenericPropertySet() - { - TestGenericClass.StaticTestPropertySet = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestGenericClass.StaticTestPropertySet)} Set (Old: {default(int)}, New: {TestGenericClass.StaticTestPropertySet})"); - TestGenericClass.StaticTestPropertySet = default; - } - - [Test] - public void TestStaticGenericPropertyGetDirect() - { - Vector3 val = TestGenericClass.StaticTestPropertyGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(TestGenericClass.StaticTestPropertyGetDirect)} ()"); - } - - [Test] - public void TestStaticGenericPropertySetDirect() - { - TestGenericClass.StaticTestPropertySetDirect = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(TestGenericClass.StaticTestPropertySetDirect)} (value: {TestGenericClass.StaticTestPropertySetDirect})"); - TestGenericClass.StaticTestPropertySetDirect = default; - } - - [Test] - public void TestStaticGenericPropertyField() - { - Vector3 val = TestGenericClass.StaticTestPropertyField; - LogAssert.Expect(LogType.Log, $"{nameof(TestGenericClass.StaticTestPropertyField)} Get {val}"); - TestGenericClass.StaticTestPropertyField = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestGenericClass.StaticTestPropertyField)} Set (Old: {val}, New: {TestGenericClass.StaticTestPropertyField})"); - TestGenericClass.StaticTestPropertyField = default; - } - - [Test] - public void TestStaticGenericPropertyFieldGet() - { - Vector3 val = TestGenericClass.StaticTestPropertyFieldGet; - LogAssert.Expect(LogType.Log, $"{nameof(TestGenericClass.StaticTestPropertyFieldGet)} Get {val}"); - } - - [Test] - public void TestStaticGenericPropertyFieldGetOnly() - { - Vector3 val = TestGenericClass.StaticTestPropertyFieldGetOnly; - LogAssert.Expect(LogType.Log, $"{nameof(TestGenericClass.StaticTestPropertyFieldGetOnly)} Get {val}"); - } - - [Test] - public void TestStaticGenericPropertyFieldSet() - { - TestGenericClass.StaticTestPropertyFieldSet = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestGenericClass.StaticTestPropertyFieldSet)} Set (Old: {default(int)}, New: {TestGenericClass.StaticTestPropertyFieldSet})"); - TestGenericClass.StaticTestPropertyFieldSet = default; - } - - [Test] - public void TestStaticGenericPropertyFieldSetOnly() - { - TestGenericClass.StaticTestPropertyFieldSetOnly = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestGenericClass.StaticTestPropertyFieldSetOnly)} Set (Old: {default(int)}, New: {10})"); - TestGenericClass.StaticTestPropertyFieldSetOnly = default; - } - - [Test] - public void TestStaticGenericPropertyFieldGetDirect() - { - Vector3 val = TestGenericClass.StaticTestPropertyFieldGetDirect; - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} get_{nameof(TestGenericClass.StaticTestPropertyFieldGetDirect)} ()"); - } - - [Test] - public void TestStaticGenericPropertyFieldSetDirect() - { - TestGenericClass.StaticTestPropertyFieldSetDirect = new Vector3(1, 1, 1); - LogAssert.Expect(LogType.Log, $"{nameof(TestClass)} set_{nameof(TestGenericClass.StaticTestPropertyFieldSetDirect)} (value: {TestGenericClass.StaticTestPropertyFieldSetDirect})"); - TestGenericClass.StaticTestPropertyFieldSetDirect = default; - } - #endregion - - } - -} diff --git a/Packages/se.hertzole.cecil-attributes/Tests/LogCalledTests.cs.meta b/Packages/se.hertzole.cecil-attributes/Tests/LogCalledTests.cs.meta deleted file mode 100644 index 414b565..0000000 --- a/Packages/se.hertzole.cecil-attributes/Tests/LogCalledTests.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 235701ce31173db44ad86c4787f630e3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/ProjectSettings/ACTkSettings.asset b/ProjectSettings/ACTkSettings.asset deleted file mode 100644 index 38b801b..0000000 --- a/ProjectSettings/ACTkSettings.asset +++ /dev/null @@ -1,20 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &1 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 22111be9689046e1bd7b8b1fae4d0b3c, type: 3} - m_Name: - m_EditorClassIdentifier: - injectionDetectorEnabled: 0 - preGenerateBuildHash: 0 - disableInjectionDetectorValidation: 0 - disableWallhackDetectorValidation: 0 - injectionDetectorWhiteList: [] - version: 2.3.0 diff --git a/ProjectSettings/AudioManager.asset b/ProjectSettings/AudioManager.asset deleted file mode 100644 index 07ebfb0..0000000 --- a/ProjectSettings/AudioManager.asset +++ /dev/null @@ -1,19 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!11 &1 -AudioManager: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Volume: 1 - Rolloff Scale: 1 - Doppler Factor: 1 - Default Speaker Mode: 2 - m_SampleRate: 0 - m_DSPBufferSize: 1024 - m_VirtualVoiceCount: 512 - m_RealVoiceCount: 32 - m_SpatializerPlugin: - m_AmbisonicDecoderPlugin: - m_DisableAudio: 0 - m_VirtualizeEffects: 1 - m_RequestedDSPBufferSize: 1024 diff --git a/ProjectSettings/ClusterInputManager.asset b/ProjectSettings/ClusterInputManager.asset deleted file mode 100644 index e7886b2..0000000 --- a/ProjectSettings/ClusterInputManager.asset +++ /dev/null @@ -1,6 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!236 &1 -ClusterInputManager: - m_ObjectHideFlags: 0 - m_Inputs: [] diff --git a/ProjectSettings/DynamicsManager.asset b/ProjectSettings/DynamicsManager.asset deleted file mode 100644 index cdc1f3e..0000000 --- a/ProjectSettings/DynamicsManager.asset +++ /dev/null @@ -1,34 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!55 &1 -PhysicsManager: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_Gravity: {x: 0, y: -9.81, z: 0} - m_DefaultMaterial: {fileID: 0} - m_BounceThreshold: 2 - m_SleepThreshold: 0.005 - m_DefaultContactOffset: 0.01 - m_DefaultSolverIterations: 6 - m_DefaultSolverVelocityIterations: 1 - m_QueriesHitBackfaces: 0 - m_QueriesHitTriggers: 1 - m_EnableAdaptiveForce: 0 - m_ClothInterCollisionDistance: 0 - m_ClothInterCollisionStiffness: 0 - m_ContactsGeneration: 1 - m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff - m_AutoSimulation: 1 - m_AutoSyncTransforms: 0 - m_ReuseCollisionCallbacks: 1 - m_ClothInterCollisionSettingsToggle: 0 - m_ContactPairsMode: 0 - m_BroadphaseType: 0 - m_WorldBounds: - m_Center: {x: 0, y: 0, z: 0} - m_Extent: {x: 250, y: 250, z: 250} - m_WorldSubdivisions: 8 - m_FrictionType: 0 - m_EnableEnhancedDeterminism: 0 - m_EnableUnifiedHeightmaps: 1 - m_DefaultMaxAngluarSpeed: 7 diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset deleted file mode 100644 index 40917b0..0000000 --- a/ProjectSettings/EditorBuildSettings.asset +++ /dev/null @@ -1,11 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1045 &1 -EditorBuildSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Scenes: - - enabled: 1 - path: Assets/Scenes/SampleScene.unity - guid: 9fc0d4010bbf28b4594072e72b8655ab - m_configObjects: {} diff --git a/ProjectSettings/EditorSettings.asset b/ProjectSettings/EditorSettings.asset deleted file mode 100644 index 3935b63..0000000 --- a/ProjectSettings/EditorSettings.asset +++ /dev/null @@ -1,40 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!159 &1 -EditorSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_SerializationMode: 2 - m_LineEndingsForNewScripts: 0 - m_DefaultBehaviorMode: 0 - m_PrefabRegularEnvironment: {fileID: 0} - m_PrefabUIEnvironment: {fileID: 0} - m_SpritePackerMode: 0 - m_SpritePackerPaddingPower: 1 - m_EtcTextureCompressorBehavior: 1 - m_EtcTextureFastCompressor: 1 - m_EtcTextureNormalCompressor: 2 - m_EtcTextureBestCompressor: 4 - m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref - m_ProjectGenerationRootNamespace: - m_EnableTextureStreamingInEditMode: 1 - m_EnableTextureStreamingInPlayMode: 1 - m_AsyncShaderCompilation: 1 - m_CachingShaderPreprocessor: 1 - m_PrefabModeAllowAutoSave: 1 - m_EnterPlayModeOptionsEnabled: 1 - m_EnterPlayModeOptions: 1 - m_GameObjectNamingDigits: 1 - m_GameObjectNamingScheme: 0 - m_AssetNamingUsesSpace: 1 - m_UseLegacyProbeSampleCount: 0 - m_SerializeInlineMappingsOnOneLine: 1 - m_DisableCookiesInLightmapper: 0 - m_AssetPipelineMode: 1 - m_CacheServerMode: 0 - m_CacheServerEndpoint: - m_CacheServerNamespacePrefix: default - m_CacheServerEnableDownload: 1 - m_CacheServerEnableUpload: 1 - m_CacheServerEnableAuth: 0 - m_CacheServerEnableTls: 0 diff --git a/ProjectSettings/GraphicsSettings.asset b/ProjectSettings/GraphicsSettings.asset deleted file mode 100644 index 43369e3..0000000 --- a/ProjectSettings/GraphicsSettings.asset +++ /dev/null @@ -1,63 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!30 &1 -GraphicsSettings: - m_ObjectHideFlags: 0 - serializedVersion: 13 - m_Deferred: - m_Mode: 1 - m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} - m_DeferredReflections: - m_Mode: 1 - m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} - m_ScreenSpaceShadows: - m_Mode: 1 - m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} - m_LegacyDeferred: - m_Mode: 1 - m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} - m_DepthNormals: - m_Mode: 1 - m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} - m_MotionVectors: - m_Mode: 1 - m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} - m_LightHalo: - m_Mode: 1 - m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} - m_LensFlare: - m_Mode: 1 - m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} - m_AlwaysIncludedShaders: - - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} - m_PreloadedShaders: [] - m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, - type: 0} - m_CustomRenderPipeline: {fileID: 0} - m_TransparencySortMode: 0 - m_TransparencySortAxis: {x: 0, y: 0, z: 1} - m_DefaultRenderingPath: 1 - m_DefaultMobileRenderingPath: 1 - m_TierSettings: [] - m_LightmapStripping: 0 - m_FogStripping: 0 - m_InstancingStripping: 0 - m_LightmapKeepPlain: 1 - m_LightmapKeepDirCombined: 1 - m_LightmapKeepDynamicPlain: 1 - m_LightmapKeepDynamicDirCombined: 1 - m_LightmapKeepShadowMask: 1 - m_LightmapKeepSubtractive: 1 - m_FogKeepLinear: 1 - m_FogKeepExp: 1 - m_FogKeepExp2: 1 - m_AlbedoSwatchInfos: [] - m_LightsUseLinearIntensity: 0 - m_LightsUseColorTemperature: 0 - m_LogWhenShaderIsCompiled: 0 - m_AllowEnlightenSupportForUpgradedProject: 0 diff --git a/ProjectSettings/InputManager.asset b/ProjectSettings/InputManager.asset deleted file mode 100644 index 17c8f53..0000000 --- a/ProjectSettings/InputManager.asset +++ /dev/null @@ -1,295 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!13 &1 -InputManager: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Axes: - - serializedVersion: 3 - m_Name: Horizontal - descriptiveName: - descriptiveNegativeName: - negativeButton: left - positiveButton: right - altNegativeButton: a - altPositiveButton: d - gravity: 3 - dead: 0.001 - sensitivity: 3 - snap: 1 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Vertical - descriptiveName: - descriptiveNegativeName: - negativeButton: down - positiveButton: up - altNegativeButton: s - altPositiveButton: w - gravity: 3 - dead: 0.001 - sensitivity: 3 - snap: 1 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Fire1 - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: left ctrl - altNegativeButton: - altPositiveButton: mouse 0 - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Fire2 - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: left alt - altNegativeButton: - altPositiveButton: mouse 1 - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Fire3 - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: left shift - altNegativeButton: - altPositiveButton: mouse 2 - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Jump - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: space - altNegativeButton: - altPositiveButton: - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Mouse X - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: - altNegativeButton: - altPositiveButton: - gravity: 0 - dead: 0 - sensitivity: 0.1 - snap: 0 - invert: 0 - type: 1 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Mouse Y - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: - altNegativeButton: - altPositiveButton: - gravity: 0 - dead: 0 - sensitivity: 0.1 - snap: 0 - invert: 0 - type: 1 - axis: 1 - joyNum: 0 - - serializedVersion: 3 - m_Name: Mouse ScrollWheel - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: - altNegativeButton: - altPositiveButton: - gravity: 0 - dead: 0 - sensitivity: 0.1 - snap: 0 - invert: 0 - type: 1 - axis: 2 - joyNum: 0 - - serializedVersion: 3 - m_Name: Horizontal - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: - altNegativeButton: - altPositiveButton: - gravity: 0 - dead: 0.19 - sensitivity: 1 - snap: 0 - invert: 0 - type: 2 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Vertical - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: - altNegativeButton: - altPositiveButton: - gravity: 0 - dead: 0.19 - sensitivity: 1 - snap: 0 - invert: 1 - type: 2 - axis: 1 - joyNum: 0 - - serializedVersion: 3 - m_Name: Fire1 - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: joystick button 0 - altNegativeButton: - altPositiveButton: - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Fire2 - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: joystick button 1 - altNegativeButton: - altPositiveButton: - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Fire3 - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: joystick button 2 - altNegativeButton: - altPositiveButton: - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Jump - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: joystick button 3 - altNegativeButton: - altPositiveButton: - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Submit - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: return - altNegativeButton: - altPositiveButton: joystick button 0 - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Submit - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: enter - altNegativeButton: - altPositiveButton: space - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Cancel - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: escape - altNegativeButton: - altPositiveButton: joystick button 1 - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 diff --git a/ProjectSettings/NavMeshAreas.asset b/ProjectSettings/NavMeshAreas.asset deleted file mode 100644 index 3b0b7c3..0000000 --- a/ProjectSettings/NavMeshAreas.asset +++ /dev/null @@ -1,91 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!126 &1 -NavMeshProjectSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - areas: - - name: Walkable - cost: 1 - - name: Not Walkable - cost: 1 - - name: Jump - cost: 2 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - m_LastAgentTypeID: -887442657 - m_Settings: - - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.75 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_SettingNames: - - Humanoid diff --git a/ProjectSettings/PackageManagerSettings.asset b/ProjectSettings/PackageManagerSettings.asset deleted file mode 100644 index 9f3eabf..0000000 --- a/ProjectSettings/PackageManagerSettings.asset +++ /dev/null @@ -1,57 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &1 -MonoBehaviour: - m_ObjectHideFlags: 61 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} - m_Name: - m_EditorClassIdentifier: - m_EnablePreviewPackages: 1 - m_EnablePackageDependencies: 1 - m_AdvancedSettingsExpanded: 1 - m_ScopedRegistriesSettingsExpanded: 1 - oneTimeWarningShown: 1 - m_Registries: - - m_Id: main - m_Name: - m_Url: https://packages.unity.com - m_Scopes: [] - m_IsDefault: 1 - m_Capabilities: 7 - - m_Id: scoped:OpenUPM - m_Name: OpenUPM - m_Url: https://package.openupm.com - m_Scopes: - - com.cysharp.unitask - - com.mirrorng.mirrorng - - com.openupm - m_IsDefault: 0 - m_Capabilities: 0 - m_UserSelectedRegistryName: OpenUPM - m_UserAddingNewScopedRegistry: 0 - m_RegistryInfoDraft: - m_ErrorMessage: - m_Original: - m_Id: scoped:OpenUPM - m_Name: OpenUPM - m_Url: https://package.openupm.com - m_Scopes: - - com.cysharp.unitask - - com.mirrorng.mirrorng - - com.openupm - m_IsDefault: 0 - m_Capabilities: 0 - m_Modified: 0 - m_Name: OpenUPM - m_Url: https://package.openupm.com - m_Scopes: - - com.cysharp.unitask - - com.mirrorng.mirrorng - - com.openupm - m_SelectedScopeIndex: 0 diff --git a/ProjectSettings/Packages/se.hertzole.cecilattributes/CecilAttributesSettings.asset b/ProjectSettings/Packages/se.hertzole.cecilattributes/CecilAttributesSettings.asset deleted file mode 100644 index 85b44e8..0000000 --- a/ProjectSettings/Packages/se.hertzole.cecilattributes/CecilAttributesSettings.asset +++ /dev/null @@ -1,29 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &1 -MonoBehaviour: - m_ObjectHideFlags: 61 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 77a6b771e6fa3c640b914dd7e3d942c8, type: 3} - m_Name: - m_EditorClassIdentifier: - includeResetStaticInBuild: 1 - resetStaticMode: 4 - includeLogsInBuild: 1 - methodLogFormat: '%class% %method% (%parameters%)' - parametersSeparator: ', ' - propertyGetLogFormat: '%property% Get %value%' - propertySetLogFormat: '%property% Set (Old: %old_value%, New: %new_value%)' - includeTimedInBuild: 0 - timedMethodFormat: '%class% %method% took %milliseconds% milliseconds (%ticks% - ticks)' - timedPropertyGetFormat: '%class% %property% Get took %milliseconds% milliseconds - (%ticks% ticks)' - timedPropertySetFormat: '%class% %property% Set took %milliseconds% milliseconds - (%ticks% ticks)' - markInProfilerFormat: Fucking %class_full% did with the fucking method %method% diff --git a/ProjectSettings/Physics2DSettings.asset b/ProjectSettings/Physics2DSettings.asset deleted file mode 100644 index 47880b1..0000000 --- a/ProjectSettings/Physics2DSettings.asset +++ /dev/null @@ -1,56 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!19 &1 -Physics2DSettings: - m_ObjectHideFlags: 0 - serializedVersion: 4 - m_Gravity: {x: 0, y: -9.81} - m_DefaultMaterial: {fileID: 0} - m_VelocityIterations: 8 - m_PositionIterations: 3 - m_VelocityThreshold: 1 - m_MaxLinearCorrection: 0.2 - m_MaxAngularCorrection: 8 - m_MaxTranslationSpeed: 100 - m_MaxRotationSpeed: 360 - m_BaumgarteScale: 0.2 - m_BaumgarteTimeOfImpactScale: 0.75 - m_TimeToSleep: 0.5 - m_LinearSleepTolerance: 0.01 - m_AngularSleepTolerance: 2 - m_DefaultContactOffset: 0.01 - m_JobOptions: - serializedVersion: 2 - useMultithreading: 0 - useConsistencySorting: 0 - m_InterpolationPosesPerJob: 100 - m_NewContactsPerJob: 30 - m_CollideContactsPerJob: 100 - m_ClearFlagsPerJob: 200 - m_ClearBodyForcesPerJob: 200 - m_SyncDiscreteFixturesPerJob: 50 - m_SyncContinuousFixturesPerJob: 50 - m_FindNearestContactsPerJob: 100 - m_UpdateTriggerContactsPerJob: 100 - m_IslandSolverCostThreshold: 100 - m_IslandSolverBodyCostScale: 1 - m_IslandSolverContactCostScale: 10 - m_IslandSolverJointCostScale: 10 - m_IslandSolverBodiesPerJob: 50 - m_IslandSolverContactsPerJob: 50 - m_AutoSimulation: 1 - m_QueriesHitTriggers: 1 - m_QueriesStartInColliders: 1 - m_CallbacksOnDisable: 1 - m_ReuseCollisionCallbacks: 1 - m_AutoSyncTransforms: 0 - m_AlwaysShowColliders: 0 - m_ShowColliderSleep: 1 - m_ShowColliderContacts: 0 - m_ShowColliderAABB: 0 - m_ContactArrowScale: 0.2 - m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} - m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} - m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} - m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} - m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/ProjectSettings/PresetManager.asset b/ProjectSettings/PresetManager.asset deleted file mode 100644 index 67a94da..0000000 --- a/ProjectSettings/PresetManager.asset +++ /dev/null @@ -1,7 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1386491679 &1 -PresetManager: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_DefaultPresets: {} diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset deleted file mode 100644 index 9443adb..0000000 --- a/ProjectSettings/ProjectSettings.asset +++ /dev/null @@ -1,671 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!129 &1 -PlayerSettings: - m_ObjectHideFlags: 0 - serializedVersion: 22 - productGUID: 19b0285c5a8f4b0478a3b17077eeab0f - AndroidProfiler: 0 - AndroidFilterTouchesWhenObscured: 0 - AndroidEnableSustainedPerformanceMode: 0 - defaultScreenOrientation: 4 - targetDevice: 2 - useOnDemandResources: 0 - accelerometerFrequency: 60 - companyName: DefaultCompany - productName: Awesome Attributes - defaultCursor: {fileID: 0} - cursorHotspot: {x: 0, y: 0} - m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} - m_ShowUnitySplashScreen: 1 - m_ShowUnitySplashLogo: 1 - m_SplashScreenOverlayOpacity: 1 - m_SplashScreenAnimation: 1 - m_SplashScreenLogoStyle: 1 - m_SplashScreenDrawMode: 0 - m_SplashScreenBackgroundAnimationZoom: 1 - m_SplashScreenLogoAnimationZoom: 1 - m_SplashScreenBackgroundLandscapeAspect: 1 - m_SplashScreenBackgroundPortraitAspect: 1 - m_SplashScreenBackgroundLandscapeUvs: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - m_SplashScreenBackgroundPortraitUvs: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - m_SplashScreenLogos: [] - m_VirtualRealitySplashScreen: {fileID: 0} - m_HolographicTrackingLossScreen: {fileID: 0} - defaultScreenWidth: 1024 - defaultScreenHeight: 768 - defaultScreenWidthWeb: 960 - defaultScreenHeightWeb: 600 - m_StereoRenderingPath: 0 - m_ActiveColorSpace: 0 - m_MTRendering: 1 - mipStripping: 0 - numberOfMipsStripped: 0 - m_StackTraceTypes: 010000000100000001000000010000000100000001000000 - iosShowActivityIndicatorOnLoading: -1 - androidShowActivityIndicatorOnLoading: -1 - iosUseCustomAppBackgroundBehavior: 0 - iosAllowHTTPDownload: 1 - allowedAutorotateToPortrait: 1 - allowedAutorotateToPortraitUpsideDown: 1 - allowedAutorotateToLandscapeRight: 1 - allowedAutorotateToLandscapeLeft: 1 - useOSAutorotation: 1 - use32BitDisplayBuffer: 1 - preserveFramebufferAlpha: 0 - disableDepthAndStencilBuffers: 0 - androidStartInFullscreen: 1 - androidRenderOutsideSafeArea: 1 - androidUseSwappy: 1 - androidBlitType: 0 - defaultIsNativeResolution: 1 - macRetinaSupport: 1 - runInBackground: 1 - captureSingleScreen: 0 - muteOtherAudioSources: 0 - Prepare IOS For Recording: 0 - Force IOS Speakers When Recording: 0 - deferSystemGesturesMode: 0 - hideHomeButton: 0 - submitAnalytics: 1 - usePlayerLog: 1 - bakeCollisionMeshes: 0 - forceSingleInstance: 0 - useFlipModelSwapchain: 1 - resizableWindow: 0 - useMacAppStoreValidation: 0 - macAppStoreCategory: public.app-category.games - gpuSkinning: 1 - xboxPIXTextureCapture: 0 - xboxEnableAvatar: 0 - xboxEnableKinect: 0 - xboxEnableKinectAutoTracking: 0 - xboxEnableFitness: 0 - visibleInBackground: 1 - allowFullscreenSwitch: 1 - fullscreenMode: 1 - xboxSpeechDB: 0 - xboxEnableHeadOrientation: 0 - xboxEnableGuest: 0 - xboxEnablePIXSampling: 0 - metalFramebufferOnly: 0 - xboxOneResolution: 0 - xboxOneSResolution: 0 - xboxOneXResolution: 3 - xboxOneMonoLoggingLevel: 0 - xboxOneLoggingLevel: 1 - xboxOneDisableEsram: 0 - xboxOneEnableTypeOptimization: 0 - xboxOnePresentImmediateThreshold: 0 - switchQueueCommandMemory: 0 - switchQueueControlMemory: 16384 - switchQueueComputeMemory: 262144 - switchNVNShaderPoolsGranularity: 33554432 - switchNVNDefaultPoolsGranularity: 16777216 - switchNVNOtherPoolsGranularity: 16777216 - switchNVNMaxPublicTextureIDCount: 0 - switchNVNMaxPublicSamplerIDCount: 0 - stadiaPresentMode: 0 - stadiaTargetFramerate: 0 - vulkanNumSwapchainBuffers: 3 - vulkanEnableSetSRGBWrite: 0 - vulkanEnablePreTransform: 0 - vulkanEnableLateAcquireNextImage: 0 - m_SupportedAspectRatios: - 4:3: 1 - 5:4: 1 - 16:10: 1 - 16:9: 1 - Others: 1 - bundleVersion: 0.1 - preloadedAssets: [] - metroInputSource: 0 - wsaTransparentSwapchain: 0 - m_HolographicPauseOnTrackingLoss: 1 - xboxOneDisableKinectGpuReservation: 1 - xboxOneEnable7thCore: 1 - vrSettings: - enable360StereoCapture: 0 - isWsaHolographicRemotingEnabled: 0 - enableFrameTimingStats: 0 - useHDRDisplay: 0 - D3DHDRBitDepth: 0 - m_ColorGamuts: 00000000 - targetPixelDensity: 30 - resolutionScalingMode: 0 - androidSupportedAspectRatio: 1 - androidMaxAspectRatio: 2.1 - applicationIdentifier: - Standalone: com.DefaultCompany.AwesomeAttributes - buildNumber: - Standalone: 0 - iPhone: 0 - tvOS: 0 - overrideDefaultApplicationIdentifier: 0 - AndroidBundleVersionCode: 1 - AndroidMinSdkVersion: 19 - AndroidTargetSdkVersion: 0 - AndroidPreferredInstallLocation: 1 - aotOptions: - stripEngineCode: 1 - iPhoneStrippingLevel: 0 - iPhoneScriptCallOptimization: 0 - ForceInternetPermission: 0 - ForceSDCardPermission: 0 - CreateWallpaper: 0 - APKExpansionFiles: 0 - keepLoadedShadersAlive: 0 - StripUnusedMeshComponents: 1 - VertexChannelCompressionMask: 4054 - iPhoneSdkVersion: 988 - iOSTargetOSVersionString: 11.0 - tvOSSdkVersion: 0 - tvOSRequireExtendedGameController: 0 - tvOSTargetOSVersionString: 11.0 - uIPrerenderedIcon: 0 - uIRequiresPersistentWiFi: 0 - uIRequiresFullScreen: 1 - uIStatusBarHidden: 1 - uIExitOnSuspend: 0 - uIStatusBarStyle: 0 - appleTVSplashScreen: {fileID: 0} - appleTVSplashScreen2x: {fileID: 0} - tvOSSmallIconLayers: [] - tvOSSmallIconLayers2x: [] - tvOSLargeIconLayers: [] - tvOSLargeIconLayers2x: [] - tvOSTopShelfImageLayers: [] - tvOSTopShelfImageLayers2x: [] - tvOSTopShelfImageWideLayers: [] - tvOSTopShelfImageWideLayers2x: [] - iOSLaunchScreenType: 0 - iOSLaunchScreenPortrait: {fileID: 0} - iOSLaunchScreenLandscape: {fileID: 0} - iOSLaunchScreenBackgroundColor: - serializedVersion: 2 - rgba: 0 - iOSLaunchScreenFillPct: 100 - iOSLaunchScreenSize: 100 - iOSLaunchScreenCustomXibPath: - iOSLaunchScreeniPadType: 0 - iOSLaunchScreeniPadImage: {fileID: 0} - iOSLaunchScreeniPadBackgroundColor: - serializedVersion: 2 - rgba: 0 - iOSLaunchScreeniPadFillPct: 100 - iOSLaunchScreeniPadSize: 100 - iOSLaunchScreeniPadCustomXibPath: - iOSLaunchScreenCustomStoryboardPath: - iOSLaunchScreeniPadCustomStoryboardPath: - iOSDeviceRequirements: [] - iOSURLSchemes: [] - iOSBackgroundModes: 0 - iOSMetalForceHardShadows: 0 - metalEditorSupport: 1 - metalAPIValidation: 1 - iOSRenderExtraFrameOnPause: 0 - iosCopyPluginsCodeInsteadOfSymlink: 0 - appleDeveloperTeamID: - iOSManualSigningProvisioningProfileID: - tvOSManualSigningProvisioningProfileID: - iOSManualSigningProvisioningProfileType: 0 - tvOSManualSigningProvisioningProfileType: 0 - appleEnableAutomaticSigning: 0 - iOSRequireARKit: 0 - iOSAutomaticallyDetectAndAddCapabilities: 1 - appleEnableProMotion: 0 - shaderPrecisionModel: 0 - clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea - templatePackageId: com.unity.template.3d@5.0.4 - templateDefaultScene: Assets/Scenes/SampleScene.unity - useCustomMainManifest: 0 - useCustomLauncherManifest: 0 - useCustomMainGradleTemplate: 0 - useCustomLauncherGradleManifest: 0 - useCustomBaseGradleTemplate: 0 - useCustomGradlePropertiesTemplate: 0 - useCustomProguardFile: 0 - AndroidTargetArchitectures: 1 - AndroidSplashScreenScale: 0 - androidSplashScreen: {fileID: 0} - AndroidKeystoreName: - AndroidKeyaliasName: - AndroidBuildApkPerCpuArchitecture: 0 - AndroidTVCompatibility: 0 - AndroidIsGame: 1 - AndroidEnableTango: 0 - androidEnableBanner: 1 - androidUseLowAccuracyLocation: 0 - androidUseCustomKeystore: 0 - m_AndroidBanners: - - width: 320 - height: 180 - banner: {fileID: 0} - androidGamepadSupportLevel: 0 - AndroidMinifyWithR8: 0 - AndroidMinifyRelease: 0 - AndroidMinifyDebug: 0 - AndroidValidateAppBundleSize: 1 - AndroidAppBundleSizeToValidate: 150 - m_BuildTargetIcons: [] - m_BuildTargetPlatformIcons: [] - m_BuildTargetBatching: - - m_BuildTarget: Standalone - m_StaticBatching: 1 - m_DynamicBatching: 0 - - m_BuildTarget: tvOS - m_StaticBatching: 1 - m_DynamicBatching: 0 - - m_BuildTarget: Android - m_StaticBatching: 1 - m_DynamicBatching: 0 - - m_BuildTarget: iPhone - m_StaticBatching: 1 - m_DynamicBatching: 0 - - m_BuildTarget: WebGL - m_StaticBatching: 0 - m_DynamicBatching: 0 - m_BuildTargetGraphicsJobs: - - m_BuildTarget: MacStandaloneSupport - m_GraphicsJobs: 0 - - m_BuildTarget: Switch - m_GraphicsJobs: 1 - - m_BuildTarget: MetroSupport - m_GraphicsJobs: 1 - - m_BuildTarget: AppleTVSupport - m_GraphicsJobs: 0 - - m_BuildTarget: BJMSupport - m_GraphicsJobs: 1 - - m_BuildTarget: LinuxStandaloneSupport - m_GraphicsJobs: 1 - - m_BuildTarget: PS4Player - m_GraphicsJobs: 1 - - m_BuildTarget: iOSSupport - m_GraphicsJobs: 0 - - m_BuildTarget: WindowsStandaloneSupport - m_GraphicsJobs: 1 - - m_BuildTarget: XboxOnePlayer - m_GraphicsJobs: 1 - - m_BuildTarget: LuminSupport - m_GraphicsJobs: 0 - - m_BuildTarget: AndroidPlayer - m_GraphicsJobs: 0 - - m_BuildTarget: WebGLSupport - m_GraphicsJobs: 0 - m_BuildTargetGraphicsJobMode: - - m_BuildTarget: PS4Player - m_GraphicsJobMode: 0 - - m_BuildTarget: XboxOnePlayer - m_GraphicsJobMode: 0 - m_BuildTargetGraphicsAPIs: - - m_BuildTarget: AndroidPlayer - m_APIs: 150000000b000000 - m_Automatic: 0 - - m_BuildTarget: iOSSupport - m_APIs: 10000000 - m_Automatic: 1 - - m_BuildTarget: AppleTVSupport - m_APIs: 10000000 - m_Automatic: 1 - - m_BuildTarget: WebGLSupport - m_APIs: 0b000000 - m_Automatic: 1 - m_BuildTargetVRSettings: - - m_BuildTarget: Standalone - m_Enabled: 0 - m_Devices: - - Oculus - - OpenVR - openGLRequireES31: 0 - openGLRequireES31AEP: 0 - openGLRequireES32: 0 - m_TemplateCustomTags: {} - mobileMTRendering: - Android: 1 - iPhone: 1 - tvOS: 1 - m_BuildTargetGroupLightmapEncodingQuality: [] - m_BuildTargetGroupLightmapSettings: [] - m_BuildTargetNormalMapEncoding: [] - playModeTestRunnerEnabled: 0 - runPlayModeTestAsEditModeTest: 0 - actionOnDotNetUnhandledException: 1 - enableInternalProfiler: 0 - logObjCUncaughtExceptions: 1 - enableCrashReportAPI: 0 - cameraUsageDescription: - locationUsageDescription: - microphoneUsageDescription: - switchNMETAOverride: - switchNetLibKey: - switchSocketMemoryPoolSize: 6144 - switchSocketAllocatorPoolSize: 128 - switchSocketConcurrencyLimit: 14 - switchScreenResolutionBehavior: 2 - switchUseCPUProfiler: 0 - switchUseGOLDLinker: 0 - switchApplicationID: 0x01004b9000490000 - switchNSODependencies: - switchTitleNames_0: - switchTitleNames_1: - switchTitleNames_2: - switchTitleNames_3: - switchTitleNames_4: - switchTitleNames_5: - switchTitleNames_6: - switchTitleNames_7: - switchTitleNames_8: - switchTitleNames_9: - switchTitleNames_10: - switchTitleNames_11: - switchTitleNames_12: - switchTitleNames_13: - switchTitleNames_14: - switchPublisherNames_0: - switchPublisherNames_1: - switchPublisherNames_2: - switchPublisherNames_3: - switchPublisherNames_4: - switchPublisherNames_5: - switchPublisherNames_6: - switchPublisherNames_7: - switchPublisherNames_8: - switchPublisherNames_9: - switchPublisherNames_10: - switchPublisherNames_11: - switchPublisherNames_12: - switchPublisherNames_13: - switchPublisherNames_14: - switchIcons_0: {fileID: 0} - switchIcons_1: {fileID: 0} - switchIcons_2: {fileID: 0} - switchIcons_3: {fileID: 0} - switchIcons_4: {fileID: 0} - switchIcons_5: {fileID: 0} - switchIcons_6: {fileID: 0} - switchIcons_7: {fileID: 0} - switchIcons_8: {fileID: 0} - switchIcons_9: {fileID: 0} - switchIcons_10: {fileID: 0} - switchIcons_11: {fileID: 0} - switchIcons_12: {fileID: 0} - switchIcons_13: {fileID: 0} - switchIcons_14: {fileID: 0} - switchSmallIcons_0: {fileID: 0} - switchSmallIcons_1: {fileID: 0} - switchSmallIcons_2: {fileID: 0} - switchSmallIcons_3: {fileID: 0} - switchSmallIcons_4: {fileID: 0} - switchSmallIcons_5: {fileID: 0} - switchSmallIcons_6: {fileID: 0} - switchSmallIcons_7: {fileID: 0} - switchSmallIcons_8: {fileID: 0} - switchSmallIcons_9: {fileID: 0} - switchSmallIcons_10: {fileID: 0} - switchSmallIcons_11: {fileID: 0} - switchSmallIcons_12: {fileID: 0} - switchSmallIcons_13: {fileID: 0} - switchSmallIcons_14: {fileID: 0} - switchManualHTML: - switchAccessibleURLs: - switchLegalInformation: - switchMainThreadStackSize: 1048576 - switchPresenceGroupId: - switchLogoHandling: 0 - switchReleaseVersion: 0 - switchDisplayVersion: 1.0.0 - switchStartupUserAccount: 0 - switchTouchScreenUsage: 0 - switchSupportedLanguagesMask: 0 - switchLogoType: 0 - switchApplicationErrorCodeCategory: - switchUserAccountSaveDataSize: 0 - switchUserAccountSaveDataJournalSize: 0 - switchApplicationAttribute: 0 - switchCardSpecSize: -1 - switchCardSpecClock: -1 - switchRatingsMask: 0 - switchRatingsInt_0: 0 - switchRatingsInt_1: 0 - switchRatingsInt_2: 0 - switchRatingsInt_3: 0 - switchRatingsInt_4: 0 - switchRatingsInt_5: 0 - switchRatingsInt_6: 0 - switchRatingsInt_7: 0 - switchRatingsInt_8: 0 - switchRatingsInt_9: 0 - switchRatingsInt_10: 0 - switchRatingsInt_11: 0 - switchRatingsInt_12: 0 - switchLocalCommunicationIds_0: - switchLocalCommunicationIds_1: - switchLocalCommunicationIds_2: - switchLocalCommunicationIds_3: - switchLocalCommunicationIds_4: - switchLocalCommunicationIds_5: - switchLocalCommunicationIds_6: - switchLocalCommunicationIds_7: - switchParentalControl: 0 - switchAllowsScreenshot: 1 - switchAllowsVideoCapturing: 1 - switchAllowsRuntimeAddOnContentInstall: 0 - switchDataLossConfirmation: 0 - switchUserAccountLockEnabled: 0 - switchSystemResourceMemory: 16777216 - switchSupportedNpadStyles: 22 - switchNativeFsCacheSize: 32 - switchIsHoldTypeHorizontal: 0 - switchSupportedNpadCount: 8 - switchSocketConfigEnabled: 0 - switchTcpInitialSendBufferSize: 32 - switchTcpInitialReceiveBufferSize: 64 - switchTcpAutoSendBufferSizeMax: 256 - switchTcpAutoReceiveBufferSizeMax: 256 - switchUdpSendBufferSize: 9 - switchUdpReceiveBufferSize: 42 - switchSocketBufferEfficiency: 4 - switchSocketInitializeEnabled: 1 - switchNetworkInterfaceManagerInitializeEnabled: 1 - switchPlayerConnectionEnabled: 1 - switchUseNewStyleFilepaths: 0 - ps4NPAgeRating: 12 - ps4NPTitleSecret: - ps4NPTrophyPackPath: - ps4ParentalLevel: 11 - ps4ContentID: ED1633-NPXX51362_00-0000000000000000 - ps4Category: 0 - ps4MasterVersion: 01.00 - ps4AppVersion: 01.00 - ps4AppType: 0 - ps4ParamSfxPath: - ps4VideoOutPixelFormat: 0 - ps4VideoOutInitialWidth: 1920 - ps4VideoOutBaseModeInitialWidth: 1920 - ps4VideoOutReprojectionRate: 60 - ps4PronunciationXMLPath: - ps4PronunciationSIGPath: - ps4BackgroundImagePath: - ps4StartupImagePath: - ps4StartupImagesFolder: - ps4IconImagesFolder: - ps4SaveDataImagePath: - ps4SdkOverride: - ps4BGMPath: - ps4ShareFilePath: - ps4ShareOverlayImagePath: - ps4PrivacyGuardImagePath: - ps4ExtraSceSysFile: - ps4NPtitleDatPath: - ps4RemotePlayKeyAssignment: -1 - ps4RemotePlayKeyMappingDir: - ps4PlayTogetherPlayerCount: 0 - ps4EnterButtonAssignment: 1 - ps4ApplicationParam1: 0 - ps4ApplicationParam2: 0 - ps4ApplicationParam3: 0 - ps4ApplicationParam4: 0 - ps4DownloadDataSize: 0 - ps4GarlicHeapSize: 2048 - ps4ProGarlicHeapSize: 2560 - playerPrefsMaxSize: 32768 - ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ - ps4pnSessions: 1 - ps4pnPresence: 1 - ps4pnFriends: 1 - ps4pnGameCustomData: 1 - playerPrefsSupport: 0 - enableApplicationExit: 0 - resetTempFolder: 1 - restrictedAudioUsageRights: 0 - ps4UseResolutionFallback: 0 - ps4ReprojectionSupport: 0 - ps4UseAudio3dBackend: 0 - ps4UseLowGarlicFragmentationMode: 1 - ps4SocialScreenEnabled: 0 - ps4ScriptOptimizationLevel: 0 - ps4Audio3dVirtualSpeakerCount: 14 - ps4attribCpuUsage: 0 - ps4PatchPkgPath: - ps4PatchLatestPkgPath: - ps4PatchChangeinfoPath: - ps4PatchDayOne: 0 - ps4attribUserManagement: 0 - ps4attribMoveSupport: 0 - ps4attrib3DSupport: 0 - ps4attribShareSupport: 0 - ps4attribExclusiveVR: 0 - ps4disableAutoHideSplash: 0 - ps4videoRecordingFeaturesUsed: 0 - ps4contentSearchFeaturesUsed: 0 - ps4CompatibilityPS5: 0 - ps4GPU800MHz: 1 - ps4attribEyeToEyeDistanceSettingVR: 0 - ps4IncludedModules: [] - ps4attribVROutputEnabled: 0 - monoEnv: - splashScreenBackgroundSourceLandscape: {fileID: 0} - splashScreenBackgroundSourcePortrait: {fileID: 0} - blurSplashScreenBackground: 1 - spritePackerPolicy: - webGLMemorySize: 16 - webGLExceptionSupport: 1 - webGLNameFilesAsHashes: 0 - webGLDataCaching: 1 - webGLDebugSymbols: 0 - webGLEmscriptenArgs: - webGLModulesDirectory: - webGLTemplate: APPLICATION:Default - webGLAnalyzeBuildSize: 0 - webGLUseEmbeddedResources: 0 - webGLCompressionFormat: 1 - webGLWasmArithmeticExceptions: 0 - webGLLinkerTarget: 1 - webGLThreadsSupport: 0 - webGLDecompressionFallback: 0 - scriptingDefineSymbols: {} - additionalCompilerArguments: {} - platformArchitecture: {} - scriptingBackend: {} - il2cppCompilerConfiguration: {} - managedStrippingLevel: - Standalone: 0 - incrementalIl2cppBuild: {} - suppressCommonWarnings: 1 - allowUnsafeCode: 0 - useDeterministicCompilation: 1 - useReferenceAssemblies: 1 - enableRoslynAnalyzers: 1 - additionalIl2CppArgs: - scriptingRuntimeVersion: 1 - gcIncremental: 1 - gcWBarrierValidation: 0 - apiCompatibilityLevelPerPlatform: {} - m_RenderingPath: 1 - m_MobileRenderingPath: 1 - metroPackageName: Template_3D - metroPackageVersion: - metroCertificatePath: - metroCertificatePassword: - metroCertificateSubject: - metroCertificateIssuer: - metroCertificateNotAfter: 0000000000000000 - metroApplicationDescription: Template_3D - wsaImages: {} - metroTileShortName: - metroTileShowName: 0 - metroMediumTileShowName: 0 - metroLargeTileShowName: 0 - metroWideTileShowName: 0 - metroSupportStreamingInstall: 0 - metroLastRequiredScene: 0 - metroDefaultTileSize: 1 - metroTileForegroundText: 2 - metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} - metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} - metroSplashScreenUseBackgroundColor: 0 - platformCapabilities: {} - metroTargetDeviceFamilies: {} - metroFTAName: - metroFTAFileTypes: [] - metroProtocolName: - XboxOneProductId: - XboxOneUpdateKey: - XboxOneSandboxId: - XboxOneContentId: - XboxOneTitleId: - XboxOneSCId: - XboxOneGameOsOverridePath: - XboxOnePackagingOverridePath: - XboxOneAppManifestOverridePath: - XboxOneVersion: 1.0.0.0 - XboxOnePackageEncryption: 0 - XboxOnePackageUpdateGranularity: 2 - XboxOneDescription: - XboxOneLanguage: - - enus - XboxOneCapability: [] - XboxOneGameRating: {} - XboxOneIsContentPackage: 0 - XboxOneEnableGPUVariability: 1 - XboxOneSockets: {} - XboxOneSplashScreen: {fileID: 0} - XboxOneAllowedProductIds: [] - XboxOnePersistentLocalStorageSize: 0 - XboxOneXTitleMemory: 8 - XboxOneOverrideIdentityName: - XboxOneOverrideIdentityPublisher: - vrEditorSettings: {} - cloudServicesEnabled: - UNet: 1 - luminIcon: - m_Name: - m_ModelFolderPath: - m_PortalFolderPath: - luminCert: - m_CertPath: - m_SignPackage: 1 - luminIsChannelApp: 0 - luminVersion: - m_VersionCode: 1 - m_VersionName: - apiCompatibilityLevel: 6 - activeInputHandler: 0 - cloudProjectId: - framebufferDepthMemorylessMode: 0 - qualitySettingsNames: [] - projectName: - organizationId: - cloudEnabled: 0 - legacyClampBlendShapeWeights: 0 - virtualTexturingSupportEnabled: 0 diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt deleted file mode 100644 index 816188b..0000000 --- a/ProjectSettings/ProjectVersion.txt +++ /dev/null @@ -1,2 +0,0 @@ -m_EditorVersion: 2020.3.5f1 -m_EditorVersionWithRevision: 2020.3.5f1 (8095aa901b9b) diff --git a/ProjectSettings/QualitySettings.asset b/ProjectSettings/QualitySettings.asset deleted file mode 100644 index 7b7658d..0000000 --- a/ProjectSettings/QualitySettings.asset +++ /dev/null @@ -1,232 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!47 &1 -QualitySettings: - m_ObjectHideFlags: 0 - serializedVersion: 5 - m_CurrentQuality: 5 - m_QualitySettings: - - serializedVersion: 2 - name: Very Low - pixelLightCount: 0 - shadows: 0 - shadowResolution: 0 - shadowProjection: 1 - shadowCascades: 1 - shadowDistance: 15 - shadowNearPlaneOffset: 3 - shadowCascade2Split: 0.33333334 - shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} - shadowmaskMode: 0 - blendWeights: 1 - textureQuality: 1 - anisotropicTextures: 0 - antiAliasing: 0 - softParticles: 0 - softVegetation: 0 - realtimeReflectionProbes: 0 - billboardsFaceCameraPosition: 0 - vSyncCount: 0 - lodBias: 0.3 - maximumLODLevel: 0 - streamingMipmapsActive: 0 - streamingMipmapsAddAllCameras: 1 - streamingMipmapsMemoryBudget: 512 - streamingMipmapsRenderersPerFrame: 512 - streamingMipmapsMaxLevelReduction: 2 - streamingMipmapsMaxFileIORequests: 1024 - particleRaycastBudget: 4 - asyncUploadTimeSlice: 2 - asyncUploadBufferSize: 16 - asyncUploadPersistentBuffer: 1 - resolutionScalingFixedDPIFactor: 1 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Low - pixelLightCount: 0 - shadows: 0 - shadowResolution: 0 - shadowProjection: 1 - shadowCascades: 1 - shadowDistance: 20 - shadowNearPlaneOffset: 3 - shadowCascade2Split: 0.33333334 - shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} - shadowmaskMode: 0 - blendWeights: 2 - textureQuality: 0 - anisotropicTextures: 0 - antiAliasing: 0 - softParticles: 0 - softVegetation: 0 - realtimeReflectionProbes: 0 - billboardsFaceCameraPosition: 0 - vSyncCount: 0 - lodBias: 0.4 - maximumLODLevel: 0 - streamingMipmapsActive: 0 - streamingMipmapsAddAllCameras: 1 - streamingMipmapsMemoryBudget: 512 - streamingMipmapsRenderersPerFrame: 512 - streamingMipmapsMaxLevelReduction: 2 - streamingMipmapsMaxFileIORequests: 1024 - particleRaycastBudget: 16 - asyncUploadTimeSlice: 2 - asyncUploadBufferSize: 16 - asyncUploadPersistentBuffer: 1 - resolutionScalingFixedDPIFactor: 1 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Medium - pixelLightCount: 1 - shadows: 1 - shadowResolution: 0 - shadowProjection: 1 - shadowCascades: 1 - shadowDistance: 20 - shadowNearPlaneOffset: 3 - shadowCascade2Split: 0.33333334 - shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} - shadowmaskMode: 0 - blendWeights: 2 - textureQuality: 0 - anisotropicTextures: 1 - antiAliasing: 0 - softParticles: 0 - softVegetation: 0 - realtimeReflectionProbes: 0 - billboardsFaceCameraPosition: 0 - vSyncCount: 1 - lodBias: 0.7 - maximumLODLevel: 0 - streamingMipmapsActive: 0 - streamingMipmapsAddAllCameras: 1 - streamingMipmapsMemoryBudget: 512 - streamingMipmapsRenderersPerFrame: 512 - streamingMipmapsMaxLevelReduction: 2 - streamingMipmapsMaxFileIORequests: 1024 - particleRaycastBudget: 64 - asyncUploadTimeSlice: 2 - asyncUploadBufferSize: 16 - asyncUploadPersistentBuffer: 1 - resolutionScalingFixedDPIFactor: 1 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: High - pixelLightCount: 2 - shadows: 2 - shadowResolution: 1 - shadowProjection: 1 - shadowCascades: 2 - shadowDistance: 40 - shadowNearPlaneOffset: 3 - shadowCascade2Split: 0.33333334 - shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} - shadowmaskMode: 1 - blendWeights: 2 - textureQuality: 0 - anisotropicTextures: 1 - antiAliasing: 0 - softParticles: 0 - softVegetation: 1 - realtimeReflectionProbes: 1 - billboardsFaceCameraPosition: 1 - vSyncCount: 1 - lodBias: 1 - maximumLODLevel: 0 - streamingMipmapsActive: 0 - streamingMipmapsAddAllCameras: 1 - streamingMipmapsMemoryBudget: 512 - streamingMipmapsRenderersPerFrame: 512 - streamingMipmapsMaxLevelReduction: 2 - streamingMipmapsMaxFileIORequests: 1024 - particleRaycastBudget: 256 - asyncUploadTimeSlice: 2 - asyncUploadBufferSize: 16 - asyncUploadPersistentBuffer: 1 - resolutionScalingFixedDPIFactor: 1 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Very High - pixelLightCount: 3 - shadows: 2 - shadowResolution: 2 - shadowProjection: 1 - shadowCascades: 2 - shadowDistance: 70 - shadowNearPlaneOffset: 3 - shadowCascade2Split: 0.33333334 - shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} - shadowmaskMode: 1 - blendWeights: 4 - textureQuality: 0 - anisotropicTextures: 2 - antiAliasing: 2 - softParticles: 1 - softVegetation: 1 - realtimeReflectionProbes: 1 - billboardsFaceCameraPosition: 1 - vSyncCount: 1 - lodBias: 1.5 - maximumLODLevel: 0 - streamingMipmapsActive: 0 - streamingMipmapsAddAllCameras: 1 - streamingMipmapsMemoryBudget: 512 - streamingMipmapsRenderersPerFrame: 512 - streamingMipmapsMaxLevelReduction: 2 - streamingMipmapsMaxFileIORequests: 1024 - particleRaycastBudget: 1024 - asyncUploadTimeSlice: 2 - asyncUploadBufferSize: 16 - asyncUploadPersistentBuffer: 1 - resolutionScalingFixedDPIFactor: 1 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Ultra - pixelLightCount: 4 - shadows: 2 - shadowResolution: 2 - shadowProjection: 1 - shadowCascades: 4 - shadowDistance: 150 - shadowNearPlaneOffset: 3 - shadowCascade2Split: 0.33333334 - shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} - shadowmaskMode: 1 - blendWeights: 4 - textureQuality: 0 - anisotropicTextures: 2 - antiAliasing: 2 - softParticles: 1 - softVegetation: 1 - realtimeReflectionProbes: 1 - billboardsFaceCameraPosition: 1 - vSyncCount: 1 - lodBias: 2 - maximumLODLevel: 0 - streamingMipmapsActive: 0 - streamingMipmapsAddAllCameras: 1 - streamingMipmapsMemoryBudget: 512 - streamingMipmapsRenderersPerFrame: 512 - streamingMipmapsMaxLevelReduction: 2 - streamingMipmapsMaxFileIORequests: 1024 - particleRaycastBudget: 4096 - asyncUploadTimeSlice: 2 - asyncUploadBufferSize: 16 - asyncUploadPersistentBuffer: 1 - resolutionScalingFixedDPIFactor: 1 - excludedTargetPlatforms: [] - m_PerPlatformDefaultQuality: - Android: 2 - Lumin: 5 - Nintendo 3DS: 5 - Nintendo Switch: 5 - PS4: 5 - PSP2: 2 - Stadia: 5 - Standalone: 5 - WebGL: 3 - Windows Store Apps: 5 - XboxOne: 5 - iPhone: 2 - tvOS: 2 diff --git a/ProjectSettings/SceneTemplateSettings.json b/ProjectSettings/SceneTemplateSettings.json deleted file mode 100644 index 6f3e60f..0000000 --- a/ProjectSettings/SceneTemplateSettings.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "templatePinStates": [], - "dependencyTypeInfos": [ - { - "userAdded": false, - "type": "UnityEngine.AnimationClip", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEditor.Animations.AnimatorController", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.AnimatorOverrideController", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEditor.Audio.AudioMixerController", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.ComputeShader", - "ignore": true, - "defaultInstantiationMode": 1, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.Cubemap", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.GameObject", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEditor.LightingDataAsset", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": false - }, - { - "userAdded": false, - "type": "UnityEngine.LightingSettings", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.Material", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEditor.MonoScript", - "ignore": true, - "defaultInstantiationMode": 1, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.PhysicMaterial", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.PhysicsMaterial2D", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.Rendering.VolumeProfile", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEditor.SceneAsset", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": false - }, - { - "userAdded": false, - "type": "UnityEngine.Shader", - "ignore": true, - "defaultInstantiationMode": 1, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.ShaderVariantCollection", - "ignore": true, - "defaultInstantiationMode": 1, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.Texture", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.Texture2D", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - }, - { - "userAdded": false, - "type": "UnityEngine.Timeline.TimelineAsset", - "ignore": false, - "defaultInstantiationMode": 0, - "supportsModification": true - } - ], - "defaultDependencyTypeInfo": { - "userAdded": false, - "type": "", - "ignore": false, - "defaultInstantiationMode": 1, - "supportsModification": true - }, - "newSceneOverride": 0 -} \ No newline at end of file diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset deleted file mode 100644 index 1c92a78..0000000 --- a/ProjectSettings/TagManager.asset +++ /dev/null @@ -1,43 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!78 &1 -TagManager: - serializedVersion: 2 - tags: [] - layers: - - Default - - TransparentFX - - Ignore Raycast - - - - Water - - UI - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - m_SortingLayers: - - name: Default - uniqueID: 0 - locked: 0 diff --git a/ProjectSettings/TimeManager.asset b/ProjectSettings/TimeManager.asset deleted file mode 100644 index 558a017..0000000 --- a/ProjectSettings/TimeManager.asset +++ /dev/null @@ -1,9 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!5 &1 -TimeManager: - m_ObjectHideFlags: 0 - Fixed Timestep: 0.02 - Maximum Allowed Timestep: 0.33333334 - m_TimeScale: 1 - Maximum Particle Timestep: 0.03 diff --git a/ProjectSettings/TimelineSettings.asset b/ProjectSettings/TimelineSettings.asset deleted file mode 100644 index b4fbdb0..0000000 --- a/ProjectSettings/TimelineSettings.asset +++ /dev/null @@ -1,15 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &1 -MonoBehaviour: - m_ObjectHideFlags: 61 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a287be6c49135cd4f9b2b8666c39d999, type: 3} - m_Name: - m_EditorClassIdentifier: - assetDefaultFramerate: 60 diff --git a/ProjectSettings/UnityConnectSettings.asset b/ProjectSettings/UnityConnectSettings.asset deleted file mode 100644 index fa0b146..0000000 --- a/ProjectSettings/UnityConnectSettings.asset +++ /dev/null @@ -1,34 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!310 &1 -UnityConnectSettings: - m_ObjectHideFlags: 0 - serializedVersion: 1 - m_Enabled: 0 - m_TestMode: 0 - m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events - m_EventUrl: https://cdp.cloud.unity3d.com/v1/events - m_ConfigUrl: https://config.uca.cloud.unity3d.com - m_TestInitMode: 0 - CrashReportingSettings: - m_EventUrl: https://perf-events.cloud.unity3d.com - m_Enabled: 0 - m_LogBufferSize: 10 - m_CaptureEditorExceptions: 1 - UnityPurchasingSettings: - m_Enabled: 0 - m_TestMode: 0 - UnityAnalyticsSettings: - m_Enabled: 0 - m_TestMode: 0 - m_InitializeOnStartup: 1 - UnityAdsSettings: - m_Enabled: 0 - m_InitializeOnStartup: 1 - m_TestMode: 0 - m_IosGameId: - m_AndroidGameId: - m_GameIds: {} - m_GameId: - PerformanceReportingSettings: - m_Enabled: 0 diff --git a/ProjectSettings/VFXManager.asset b/ProjectSettings/VFXManager.asset deleted file mode 100644 index 3a95c98..0000000 --- a/ProjectSettings/VFXManager.asset +++ /dev/null @@ -1,12 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!937362698 &1 -VFXManager: - m_ObjectHideFlags: 0 - m_IndirectShader: {fileID: 0} - m_CopyBufferShader: {fileID: 0} - m_SortShader: {fileID: 0} - m_StripUpdateShader: {fileID: 0} - m_RenderPipeSettingsPath: - m_FixedTimeStep: 0.016666668 - m_MaxDeltaTime: 0.05 diff --git a/ProjectSettings/VersionControlSettings.asset b/ProjectSettings/VersionControlSettings.asset deleted file mode 100644 index dca2881..0000000 --- a/ProjectSettings/VersionControlSettings.asset +++ /dev/null @@ -1,8 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!890905787 &1 -VersionControlSettings: - m_ObjectHideFlags: 0 - m_Mode: Visible Meta Files - m_CollabEditorSettings: - inProgressEnabled: 1 diff --git a/ProjectSettings/XRSettings.asset b/ProjectSettings/XRSettings.asset deleted file mode 100644 index 482590c..0000000 --- a/ProjectSettings/XRSettings.asset +++ /dev/null @@ -1,10 +0,0 @@ -{ - "m_SettingKeys": [ - "VR Device Disabled", - "VR Device User Alert" - ], - "m_SettingValues": [ - "False", - "False" - ] -} \ No newline at end of file diff --git a/Packages/se.hertzole.cecil-attributes/README.md.meta b/README.md.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/README.md.meta rename to README.md.meta diff --git a/Packages/se.hertzole.cecil-attributes/Runtime.meta b/Runtime.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime.meta rename to Runtime.meta diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes.meta b/Runtime/Attributes.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes.meta rename to Runtime/Attributes.meta diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/CecilAttributesProcessedAttribute.cs b/Runtime/Attributes/CecilAttributesProcessedAttribute.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/CecilAttributesProcessedAttribute.cs rename to Runtime/Attributes/CecilAttributesProcessedAttribute.cs diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/CecilAttributesProcessedAttribute.cs.meta b/Runtime/Attributes/CecilAttributesProcessedAttribute.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/CecilAttributesProcessedAttribute.cs.meta rename to Runtime/Attributes/CecilAttributesProcessedAttribute.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/FindProperty.cs b/Runtime/Attributes/FindProperty.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/FindProperty.cs rename to Runtime/Attributes/FindProperty.cs diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/FindProperty.cs.meta b/Runtime/Attributes/FindProperty.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/FindProperty.cs.meta rename to Runtime/Attributes/FindProperty.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/LogCalledAttribute.cs b/Runtime/Attributes/LogCalledAttribute.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/LogCalledAttribute.cs rename to Runtime/Attributes/LogCalledAttribute.cs diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/LogCalledAttribute.cs.meta b/Runtime/Attributes/LogCalledAttribute.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/LogCalledAttribute.cs.meta rename to Runtime/Attributes/LogCalledAttribute.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/MarkInProfilerAttribute.cs b/Runtime/Attributes/MarkInProfilerAttribute.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/MarkInProfilerAttribute.cs rename to Runtime/Attributes/MarkInProfilerAttribute.cs diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/MarkInProfilerAttribute.cs.meta b/Runtime/Attributes/MarkInProfilerAttribute.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/MarkInProfilerAttribute.cs.meta rename to Runtime/Attributes/MarkInProfilerAttribute.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/OnChangeAttribute.cs b/Runtime/Attributes/OnChangeAttribute.cs similarity index 53% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/OnChangeAttribute.cs rename to Runtime/Attributes/OnChangeAttribute.cs index 33a7ecd..4e4df7c 100644 --- a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/OnChangeAttribute.cs +++ b/Runtime/Attributes/OnChangeAttribute.cs @@ -3,16 +3,10 @@ namespace Hertzole.CecilAttributes { [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false)] - public sealed class OnChangeAttribute : Attribute + internal sealed class OnChangeAttribute : Attribute { #pragma warning disable IDE0060 // Remove unused parameter - public string hook; - public bool equalCheck = true; - - //public OnChangeAttribute(string hook, bool equalCheck = true) - //{ - // this.hook = hook; - //} + public OnChangeAttribute(string hook, bool equalCheck = true) { } #pragma warning restore IDE0060 // Remove unused parameter } } diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/OnChangeAttribute.cs.meta b/Runtime/Attributes/OnChangeAttribute.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/OnChangeAttribute.cs.meta rename to Runtime/Attributes/OnChangeAttribute.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/ResetStaticAttribute.cs b/Runtime/Attributes/ResetStaticAttribute.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/ResetStaticAttribute.cs rename to Runtime/Attributes/ResetStaticAttribute.cs diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/ResetStaticAttribute.cs.meta b/Runtime/Attributes/ResetStaticAttribute.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/ResetStaticAttribute.cs.meta rename to Runtime/Attributes/ResetStaticAttribute.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/TimedAttribute.cs b/Runtime/Attributes/TimedAttribute.cs similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/TimedAttribute.cs rename to Runtime/Attributes/TimedAttribute.cs diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Attributes/TimedAttribute.cs.meta b/Runtime/Attributes/TimedAttribute.cs.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Attributes/TimedAttribute.cs.meta rename to Runtime/Attributes/TimedAttribute.cs.meta diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Hertzole.CecilAttributes.asmdef b/Runtime/Hertzole.CecilAttributes.asmdef similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Hertzole.CecilAttributes.asmdef rename to Runtime/Hertzole.CecilAttributes.asmdef diff --git a/Packages/se.hertzole.cecil-attributes/Runtime/Hertzole.CecilAttributes.asmdef.meta b/Runtime/Hertzole.CecilAttributes.asmdef.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/Runtime/Hertzole.CecilAttributes.asmdef.meta rename to Runtime/Hertzole.CecilAttributes.asmdef.meta diff --git a/Packages/se.hertzole.cecil-attributes/package.json b/package.json similarity index 100% rename from Packages/se.hertzole.cecil-attributes/package.json rename to package.json diff --git a/Packages/se.hertzole.cecil-attributes/package.json.meta b/package.json.meta similarity index 100% rename from Packages/se.hertzole.cecil-attributes/package.json.meta rename to package.json.meta