diff --git a/Networking/.gitignore b/Networking/.gitignore new file mode 100644 index 0000000..07da593 --- /dev/null +++ b/Networking/.gitignore @@ -0,0 +1,71 @@ +# 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/ +/[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 +!/[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 +*.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/* \ No newline at end of file diff --git a/Networking/.idea/.idea.Networking/.idea/.gitignore b/Networking/.idea/.idea.Networking/.idea/.gitignore new file mode 100644 index 0000000..223312c --- /dev/null +++ b/Networking/.idea/.idea.Networking/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/projectSettingsUpdater.xml +/contentModel.xml +/.idea.Networking.iml +/modules.xml diff --git a/Networking/.idea/.idea.Networking/.idea/encodings.xml b/Networking/.idea/.idea.Networking/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/Networking/.idea/.idea.Networking/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Networking/.idea/.idea.Networking/.idea/indexLayout.xml b/Networking/.idea/.idea.Networking/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/Networking/.idea/.idea.Networking/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Networking/.idea/.idea.Networking/.idea/vcs.xml b/Networking/.idea/.idea.Networking/.idea/vcs.xml new file mode 100644 index 0000000..62bd7a0 --- /dev/null +++ b/Networking/.idea/.idea.Networking/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Networking/Assets/Blocks.meta b/Networking/Assets/Blocks.meta new file mode 100644 index 0000000..9bac560 --- /dev/null +++ b/Networking/Assets/Blocks.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8c498d857ecdd4fb7823947f3af381a8 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Networking/Assets/Blocks/Common.meta b/Networking/Assets/Blocks/Common.meta new file mode 100644 index 0000000..0f7ac6f --- /dev/null +++ b/Networking/Assets/Blocks/Common.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0fd8a6b3336fb7549a2beea9eec67b94 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Networking/Assets/Blocks/Common/.DS_Store.meta b/Networking/Assets/Blocks/Common/.DS_Store.meta new file mode 100644 index 0000000..baf131d --- /dev/null +++ b/Networking/Assets/Blocks/Common/.DS_Store.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: e7285dc6dc6cf4e41821900252041a87 +AssetOrigin: + serializedVersion: 1 + productId: 341930 + packageName: Unity Building Block - Multiplayer Session + packageVersion: 1.0 + assetPath: Assets/Blocks/Common/.DS_Store + uploadId: 814574 diff --git a/Networking/Assets/Blocks/Common/BlocksPanelSettings.asset b/Networking/Assets/Blocks/Common/BlocksPanelSettings.asset new file mode 100644 index 0000000..cba30d9 --- /dev/null +++ b/Networking/Assets/Blocks/Common/BlocksPanelSettings.asset @@ -0,0 +1,53 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +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: 19101, guid: 0000000000000000e000000000000000, type: 0} + m_Name: BlocksPanelSettings + m_EditorClassIdentifier: + themeUss: {fileID: -4733365628477956816, guid: 2e74663645b63fe43ad48957a2398ce5, type: 3} + m_DisableNoThemeWarning: 0 + m_TargetTexture: {fileID: 0} + m_RenderMode: 0 + m_ColliderUpdateMode: 0 + m_ColliderIsTrigger: 1 + m_ScaleMode: 2 + m_ReferenceSpritePixelsPerUnit: 100 + m_PixelsPerUnit: 100 + m_Scale: 1 + m_ReferenceDpi: 96 + m_FallbackDpi: 96 + m_ReferenceResolution: {x: 1200, y: 800} + m_ScreenMatchMode: 0 + m_Match: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 + m_BindingLogLevel: 0 + m_ClearDepthStencil: 1 + m_ClearColor: 0 + m_ColorClearValue: {r: 0, g: 0, b: 0, a: 0} + m_VertexBudget: 0 + m_TextureSlotCount: 8 + m_DynamicAtlasSettings: + m_MinAtlasSize: 64 + m_MaxAtlasSize: 4096 + m_MaxSubTextureSize: 64 + m_ActiveFilters: -1 + m_AtlasBlitShader: {fileID: 9101, guid: 0000000000000000f000000000000000, type: 0} + m_RuntimeShader: {fileID: 9100, guid: 0000000000000000f000000000000000, type: 0} + m_RuntimeWorldShader: {fileID: 9102, guid: 0000000000000000f000000000000000, type: 0} + m_RuntimeGaussianBlurShader: {fileID: 20300, guid: 0000000000000000f000000000000000, type: 0} + m_RuntimeColorEffectShader: {fileID: 20301, guid: 0000000000000000f000000000000000, type: 0} + m_SDFShader: {fileID: 19011, guid: 0000000000000000f000000000000000, type: 0} + m_BitmapShader: {fileID: 9001, guid: 0000000000000000f000000000000000, type: 0} + m_SpriteShader: {fileID: 19012, guid: 0000000000000000f000000000000000, type: 0} + m_ICUDataAsset: {fileID: 0} + forceGammaRendering: 0 + textSettings: {fileID: 0} diff --git a/Networking/Assets/Blocks/Common/BlocksPanelSettings.asset.meta b/Networking/Assets/Blocks/Common/BlocksPanelSettings.asset.meta new file mode 100644 index 0000000..27c27fa --- /dev/null +++ b/Networking/Assets/Blocks/Common/BlocksPanelSettings.asset.meta @@ -0,0 +1,15 @@ +fileFormatVersion: 2 +guid: 7a38f2dd4a52f3c43802f4f88af54bfe +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: +AssetOrigin: + serializedVersion: 1 + productId: 341930 + packageName: Unity Building Block - Multiplayer Session + packageVersion: 1.0 + assetPath: Assets/Blocks/Common/BlocksPanelSettings.asset + uploadId: 814574 diff --git a/Networking/Assets/Blocks/Common/BlocksRuntimeTheme.tss b/Networking/Assets/Blocks/Common/BlocksRuntimeTheme.tss new file mode 100644 index 0000000..3e2e274 --- /dev/null +++ b/Networking/Assets/Blocks/Common/BlocksRuntimeTheme.tss @@ -0,0 +1,26 @@ +@import url("unity-theme://default"); + +@import url("Content/stylesheets/core.uss"); +@import url("Content/stylesheets/modals.uss"); +@import url("Content/stylesheets/labels.uss"); +@import url("Content/stylesheets/buttons.uss"); +@import url("Content/stylesheets/icons.uss"); +@import url("Content/stylesheets/inputs.uss"); +@import url("Content/stylesheets/scroll-view.uss"); +@import url("Content/stylesheets/progressbar.uss"); +@import url("Content/stylesheets/utilities.uss"); +@import url("Content/composites/numeric-list-element.uss"); +@import url("Content/composites/card-component.uss"); +@import url("Content/stylesheets/copy-session--header.uss"); +@import url("Content/stylesheets/list-view.uss"); + + + + + + + + + + +VisualElement {} diff --git a/Networking/Assets/Blocks/Common/BlocksRuntimeTheme.tss.meta b/Networking/Assets/Blocks/Common/BlocksRuntimeTheme.tss.meta new file mode 100644 index 0000000..1430d42 --- /dev/null +++ b/Networking/Assets/Blocks/Common/BlocksRuntimeTheme.tss.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 2e74663645b63fe43ad48957a2398ce5 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12388, guid: 0000000000000000e000000000000000, type: 0} + disableValidation: 0 +AssetOrigin: + serializedVersion: 1 + productId: 341930 + packageName: Unity Building Block - Multiplayer Session + packageVersion: 1.0 + assetPath: Assets/Blocks/Common/BlocksRuntimeTheme.tss + uploadId: 814574 diff --git a/Networking/Assets/Blocks/Common/Content.meta b/Networking/Assets/Blocks/Common/Content.meta new file mode 100644 index 0000000..f112507 --- /dev/null +++ b/Networking/Assets/Blocks/Common/Content.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 21faf7cf08d244af6b983caad63ea6b1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Networking/Assets/Blocks/Common/Content/.DS_Store.meta b/Networking/Assets/Blocks/Common/Content/.DS_Store.meta new file mode 100644 index 0000000..b6c41d7 --- /dev/null +++ b/Networking/Assets/Blocks/Common/Content/.DS_Store.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: e2eafc5e951f14078b75a83971875d2b +AssetOrigin: + serializedVersion: 1 + productId: 341930 + packageName: Unity Building Block - Multiplayer Session + packageVersion: 1.0 + assetPath: Assets/Blocks/Common/Content/.DS_Store + uploadId: 814574 diff --git a/Networking/Assets/Blocks/Common/Content/composites.meta b/Networking/Assets/Blocks/Common/Content/composites.meta new file mode 100644 index 0000000..9939aa7 --- /dev/null +++ b/Networking/Assets/Blocks/Common/Content/composites.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 2140af3b5bc949218d7c4568001a6de1 +timeCreated: 1746544289 \ No newline at end of file diff --git a/Networking/Assets/Blocks/Common/Content/composites/card-component.uss b/Networking/Assets/Blocks/Common/Content/composites/card-component.uss new file mode 100644 index 0000000..9556a5c --- /dev/null +++ b/Networking/Assets/Blocks/Common/Content/composites/card-component.uss @@ -0,0 +1,95 @@ +.blocks-base-achievement { + background-color: var(--color-card-background); + margin: var(--margin-sm); + padding: var(--padding-md); + border-radius: var(--radius-sm); + border-width: var(--width-border-md); + border-color: var(--color-border); + flex-grow: 1; + flex-shrink: 1; +} + +.blocks-card-component { + --width-card: 300px; + --height-card: 350px; + min-height: var(--height-card); + max-height: var(--height-card); + min-width: var(--width-card); + max-width: var(--width-card); +} + +.blocks-notification-transition { + transition-duration: 0.5s; + transition-timing-function: ease-in-out; +} + +.blocks-notification { + width: 300px; + height: 200px; + flex-grow: 0; + position: absolute; + right: 0; + bottom: 0; +} + +.blocks-notification__hidden { + translate: 0 250px 0; +} + +.blocks-card-component__title { + margin-top: var(--margin-md); + margin-bottom: var(--margin-sm); + -unity-text-align: middle-center; + font-size: var(--text-md); + color: var(--color-default); + -unity-font-style: bold; + white-space: normal; +} + +.blocks-card-component__thumbnail { + background-image: url("../textures/thumbnail.png"); + flex-grow: 1; + -unity-background-scale-mode: scale-to-fit; +} + +.blocks-card-component__description { + color: grey; + -unity-text-align: middle-center; + overflow: initial; + white-space: normal; + margin-bottom: var(--margin-md); +} + +.blocks-card-component__unlocked-label { + -unity-text-align: middle-center; + font-size: var(--text-md); + color: var(--color-default); + -unity-font-style: bold; + white-space: normal; + margin-bottom: 12px; + display: none; +} + +.blocks-card-component__progress-bar { + display: flex; +} + + +.blocks-card-component__progress-bar__top-container { + align-items: center; + align-self: center; + flex-direction: row; +} + +.blocks-scroll-view { + flex-grow: 1; +} + +.blocks-grid-view { + flex-direction: row; + flex-wrap: wrap; + justify-content: flex-start; + align-items: flex-start; + align-content: flex-start; + min-height: auto; +} diff --git a/Networking/Assets/Blocks/Common/Content/composites/card-component.uss.meta b/Networking/Assets/Blocks/Common/Content/composites/card-component.uss.meta new file mode 100644 index 0000000..5d353de --- /dev/null +++ b/Networking/Assets/Blocks/Common/Content/composites/card-component.uss.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: ac8a6514e30d5487e8c3597727f1e1ff +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} + disableValidation: 0 +AssetOrigin: + serializedVersion: 1 + productId: 341930 + packageName: Unity Building Block - Multiplayer Session + packageVersion: 1.0 + assetPath: Assets/Blocks/Common/Content/composites/card-component.uss + uploadId: 814574 diff --git a/Networking/Assets/Blocks/Common/Content/composites/chat-message.uss b/Networking/Assets/Blocks/Common/Content/composites/chat-message.uss new file mode 100644 index 0000000..e995339 --- /dev/null +++ b/Networking/Assets/Blocks/Common/Content/composites/chat-message.uss @@ -0,0 +1,12 @@ +:root{ + padding-top: var(--padding-md); + width: 100%; +} + +.blocks-chat-message__text { + padding-top: var(--padding-sm); + padding-bottom: var(--padding-md); + border-bottom-color: var(--color-border); + white-space: normal; + border-width: var(--width-border-md); +} diff --git a/Networking/Assets/Blocks/Common/Content/composites/chat-message.uss.meta b/Networking/Assets/Blocks/Common/Content/composites/chat-message.uss.meta new file mode 100644 index 0000000..44fc27d --- /dev/null +++ b/Networking/Assets/Blocks/Common/Content/composites/chat-message.uss.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: a7fadc2a4fb2e466699f40e49e8984b9 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} + disableValidation: 0 +AssetOrigin: + serializedVersion: 1 + productId: 341930 + packageName: Unity Building Block - Multiplayer Session + packageVersion: 1.0 + assetPath: Assets/Blocks/Common/Content/composites/chat-message.uss + uploadId: 814574 diff --git a/Networking/Assets/Blocks/Common/Content/composites/chat-message.uxml b/Networking/Assets/Blocks/Common/Content/composites/chat-message.uxml new file mode 100644 index 0000000..619eda6 --- /dev/null +++ b/Networking/Assets/Blocks/Common/Content/composites/chat-message.uxml @@ -0,0 +1,7 @@ + +