From 14bffd1492462b949008a1d6508777a81b492c6e Mon Sep 17 00:00:00 2001 From: Savya Bikram Shah Date: Wed, 27 May 2026 19:24:54 +0545 Subject: [PATCH] Colorbook flow and removed old code --- .../Features/Paper/IArtInputBridge.cs | 9 ----- .../Features/Paper/IArtInputBridge.cs.meta | 2 - .../Contracts/Features/Paper/IPaperRig.cs | 10 ----- .../Features/Paper/IPaperRig.cs.meta | 2 - .../ColorbookFlow.meta} | 2 +- .../ColorbookFlow/Features.Colorbook.asmdef | 19 +++++++++ .../Features.Colorbook.asmdef.meta} | 5 +-- .../Features/ColorbookFlow/Installers.meta} | 2 +- .../Installers/ColorbookFlowFeatureModule.cs | 16 ++++++++ .../ColorbookFlowFeatureModule.cs.meta | 2 + .../Code/Features/ColorbookFlow/System.meta | 8 ++++ .../System/ColorbookFlowController.cs | 16 ++++++++ .../System/ColorbookFlowController.cs.meta | 3 ++ .../PaperRig/ArtCameraTexture.renderTexture | 39 ------------------- 14 files changed, 68 insertions(+), 67 deletions(-) delete mode 100644 Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IArtInputBridge.cs delete mode 100644 Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IArtInputBridge.cs.meta delete mode 100644 Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IPaperRig.cs delete mode 100644 Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IPaperRig.cs.meta rename Assets/Darkmatter/Code/{Core/Contracts/Features/Paper.meta => Features/ColorbookFlow.meta} (77%) create mode 100644 Assets/Darkmatter/Code/Features/ColorbookFlow/Features.Colorbook.asmdef rename Assets/Darkmatter/{Content/Gameplay/PaperRig/ArtCameraTexture.renderTexture.meta => Code/Features/ColorbookFlow/Features.Colorbook.asmdef.meta} (52%) rename Assets/Darkmatter/{Content/Gameplay/PaperRig.meta => Code/Features/ColorbookFlow/Installers.meta} (77%) create mode 100644 Assets/Darkmatter/Code/Features/ColorbookFlow/Installers/ColorbookFlowFeatureModule.cs create mode 100644 Assets/Darkmatter/Code/Features/ColorbookFlow/Installers/ColorbookFlowFeatureModule.cs.meta create mode 100644 Assets/Darkmatter/Code/Features/ColorbookFlow/System.meta create mode 100644 Assets/Darkmatter/Code/Features/ColorbookFlow/System/ColorbookFlowController.cs create mode 100644 Assets/Darkmatter/Code/Features/ColorbookFlow/System/ColorbookFlowController.cs.meta delete mode 100644 Assets/Darkmatter/Content/Gameplay/PaperRig/ArtCameraTexture.renderTexture diff --git a/Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IArtInputBridge.cs b/Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IArtInputBridge.cs deleted file mode 100644 index dcc8dae..0000000 --- a/Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IArtInputBridge.cs +++ /dev/null @@ -1,9 +0,0 @@ -using UnityEngine; - -namespace Darkmatter.Core.Contracts.Features.Paper -{ - public interface IArtInputBridge - { - bool TryScreenToArtWorld(Vector2 screenPos, out Vector2 artWorldPos); - } -} diff --git a/Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IArtInputBridge.cs.meta b/Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IArtInputBridge.cs.meta deleted file mode 100644 index 94e358b..0000000 --- a/Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IArtInputBridge.cs.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: 39f0c8bfbf53c4b299d6beb0a01fd32b \ No newline at end of file diff --git a/Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IPaperRig.cs b/Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IPaperRig.cs deleted file mode 100644 index 20a05c8..0000000 --- a/Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IPaperRig.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace Darkmatter.Core.Contracts.Features.Paper -{ - public interface IPaperRig - { - Camera ArtCamera { get; } - RectTransform DisplayRect { get; } - } -} diff --git a/Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IPaperRig.cs.meta b/Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IPaperRig.cs.meta deleted file mode 100644 index 671bac9..0000000 --- a/Assets/Darkmatter/Code/Core/Contracts/Features/Paper/IPaperRig.cs.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: a51496fa9463b41f7baeb4ff40055835 \ No newline at end of file diff --git a/Assets/Darkmatter/Code/Core/Contracts/Features/Paper.meta b/Assets/Darkmatter/Code/Features/ColorbookFlow.meta similarity index 77% rename from Assets/Darkmatter/Code/Core/Contracts/Features/Paper.meta rename to Assets/Darkmatter/Code/Features/ColorbookFlow.meta index aa4149b..97e7ac3 100644 --- a/Assets/Darkmatter/Code/Core/Contracts/Features/Paper.meta +++ b/Assets/Darkmatter/Code/Features/ColorbookFlow.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1f91f821f605f4d1ba438f41e4232df0 +guid: 4be5b3e61465b42a597ff023501b4d87 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Darkmatter/Code/Features/ColorbookFlow/Features.Colorbook.asmdef b/Assets/Darkmatter/Code/Features/ColorbookFlow/Features.Colorbook.asmdef new file mode 100644 index 0000000..31f53e4 --- /dev/null +++ b/Assets/Darkmatter/Code/Features/ColorbookFlow/Features.Colorbook.asmdef @@ -0,0 +1,19 @@ +{ + "name": "Features.Colorbook", + "rootNamespace": "Darkmatter.Features.Colorbook", + "references": [ + "GUID:6a0a834eb41764f12ba55c3fb04a40cb", + "GUID:c1c03c0e5b2f4412b9f2be1c20d6a9b1", + "GUID:b0214a6008ed146ff8f122a6a9c2f6cc", + "GUID:f51ebe6a0ceec4240a699833d6309b23" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Assets/Darkmatter/Content/Gameplay/PaperRig/ArtCameraTexture.renderTexture.meta b/Assets/Darkmatter/Code/Features/ColorbookFlow/Features.Colorbook.asmdef.meta similarity index 52% rename from Assets/Darkmatter/Content/Gameplay/PaperRig/ArtCameraTexture.renderTexture.meta rename to Assets/Darkmatter/Code/Features/ColorbookFlow/Features.Colorbook.asmdef.meta index 3e0a919..8946127 100644 --- a/Assets/Darkmatter/Content/Gameplay/PaperRig/ArtCameraTexture.renderTexture.meta +++ b/Assets/Darkmatter/Code/Features/ColorbookFlow/Features.Colorbook.asmdef.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 00ba58b6f31d046c1849805f2cb9a57d -NativeFormatImporter: +guid: ce866130b4c60406994fd723c6f571d9 +AssemblyDefinitionImporter: externalObjects: {} - mainObjectFileID: 8400000 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/Darkmatter/Content/Gameplay/PaperRig.meta b/Assets/Darkmatter/Code/Features/ColorbookFlow/Installers.meta similarity index 77% rename from Assets/Darkmatter/Content/Gameplay/PaperRig.meta rename to Assets/Darkmatter/Code/Features/ColorbookFlow/Installers.meta index a3d5b72..e0cf965 100644 --- a/Assets/Darkmatter/Content/Gameplay/PaperRig.meta +++ b/Assets/Darkmatter/Code/Features/ColorbookFlow/Installers.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 68afb1ec24cda44d6a6a57436462a65c +guid: 1fc9de3024c914935af320d954bfe829 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Darkmatter/Code/Features/ColorbookFlow/Installers/ColorbookFlowFeatureModule.cs b/Assets/Darkmatter/Code/Features/ColorbookFlow/Installers/ColorbookFlowFeatureModule.cs new file mode 100644 index 0000000..f79690d --- /dev/null +++ b/Assets/Darkmatter/Code/Features/ColorbookFlow/Installers/ColorbookFlowFeatureModule.cs @@ -0,0 +1,16 @@ +using Darkmatter.Features.Colorbook.System; +using Darkmatter.Libs.Installers; +using UnityEngine; +using VContainer; +using VContainer.Unity; + +namespace Darkmatter.Features.Colorbook.Installers +{ + public class ColorbookFlowFeatureModule : MonoBehaviour, IModule + { + public void Register(IContainerBuilder builder) + { + builder.RegisterEntryPoint(Lifetime.Singleton); + } + } +} \ No newline at end of file diff --git a/Assets/Darkmatter/Code/Features/ColorbookFlow/Installers/ColorbookFlowFeatureModule.cs.meta b/Assets/Darkmatter/Code/Features/ColorbookFlow/Installers/ColorbookFlowFeatureModule.cs.meta new file mode 100644 index 0000000..dd9f269 --- /dev/null +++ b/Assets/Darkmatter/Code/Features/ColorbookFlow/Installers/ColorbookFlowFeatureModule.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: f7c0cf8383e144b9096adb577b377263 \ No newline at end of file diff --git a/Assets/Darkmatter/Code/Features/ColorbookFlow/System.meta b/Assets/Darkmatter/Code/Features/ColorbookFlow/System.meta new file mode 100644 index 0000000..a1c297d --- /dev/null +++ b/Assets/Darkmatter/Code/Features/ColorbookFlow/System.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e78bbba3617a14cd1b33c5df9068920f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Darkmatter/Code/Features/ColorbookFlow/System/ColorbookFlowController.cs b/Assets/Darkmatter/Code/Features/ColorbookFlow/System/ColorbookFlowController.cs new file mode 100644 index 0000000..36a342e --- /dev/null +++ b/Assets/Darkmatter/Code/Features/ColorbookFlow/System/ColorbookFlowController.cs @@ -0,0 +1,16 @@ +using System.Threading; +using Cysharp.Threading.Tasks; +using Darkmatter.Core.Contracts.Features.DrawingCatalog; +using VContainer.Unity; + +namespace Darkmatter.Features.Colorbook.System; + +public class ColorbookFlowController : IAsyncStartable +{ + private readonly IDrawingCatalogController _drawingCatalog; + + public async UniTask StartAsync(CancellationToken cancellation = new CancellationToken()) + { + await _drawingCatalog.InitializeAsync(cancellation); + } +} \ No newline at end of file diff --git a/Assets/Darkmatter/Code/Features/ColorbookFlow/System/ColorbookFlowController.cs.meta b/Assets/Darkmatter/Code/Features/ColorbookFlow/System/ColorbookFlowController.cs.meta new file mode 100644 index 0000000..6453d6e --- /dev/null +++ b/Assets/Darkmatter/Code/Features/ColorbookFlow/System/ColorbookFlowController.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 46c37747ebcd4d0aa9ff3bf9fe9e26fd +timeCreated: 1779888455 \ No newline at end of file diff --git a/Assets/Darkmatter/Content/Gameplay/PaperRig/ArtCameraTexture.renderTexture b/Assets/Darkmatter/Content/Gameplay/PaperRig/ArtCameraTexture.renderTexture deleted file mode 100644 index 92e94a5..0000000 --- a/Assets/Darkmatter/Content/Gameplay/PaperRig/ArtCameraTexture.renderTexture +++ /dev/null @@ -1,39 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!84 &8400000 -RenderTexture: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: ArtCameraTexture - m_ImageContentsHash: - serializedVersion: 2 - Hash: 00000000000000000000000000000000 - m_IsAlphaChannelOptional: 0 - serializedVersion: 6 - m_Width: 1920 - m_Height: 1080 - m_AntiAliasing: 1 - m_MipCount: -1 - m_DepthStencilFormat: 94 - m_ColorFormat: 8 - m_MipMap: 0 - m_GenerateMips: 1 - m_SRGB: 0 - m_UseDynamicScale: 0 - m_UseDynamicScaleExplicit: 0 - m_BindMS: 0 - m_EnableCompatibleFormat: 1 - m_EnableRandomWrite: 0 - m_TextureSettings: - serializedVersion: 2 - m_FilterMode: 1 - m_Aniso: 0 - m_MipBias: 0 - m_WrapU: 1 - m_WrapV: 1 - m_WrapW: 1 - m_Dimension: 2 - m_VolumeDepth: 1 - m_ShadowSamplingMode: 2