├── .gitignore ├── LICENSE.md └── dungeon-crawler-unity ├── Assets ├── Client.meta ├── Client │ ├── Content.meta │ ├── Content │ │ ├── Animations.meta │ │ ├── Animations │ │ │ ├── Death.anim │ │ │ ├── Death.anim.meta │ │ │ ├── Idle.anim │ │ │ ├── Idle.anim.meta │ │ │ ├── Unit.controller │ │ │ └── Unit.controller.meta │ │ ├── Mats.meta │ │ ├── Mats │ │ │ ├── Black.mat │ │ │ ├── Black.mat.meta │ │ │ ├── Red.mat │ │ │ ├── Red.mat.meta │ │ │ ├── Road.mat │ │ │ ├── Road.mat.meta │ │ │ ├── White.mat │ │ │ └── White.mat.meta │ │ └── Models.meta │ ├── Data.meta │ ├── Data │ │ ├── Config.asset │ │ ├── Config.asset.meta │ │ ├── HeavyAttack.asset │ │ ├── HeavyAttack.asset.meta │ │ ├── LightAttack.asset │ │ ├── LightAttack.asset.meta │ │ ├── PowerShot.asset │ │ └── PowerShot.asset.meta │ ├── Resources.meta │ ├── Resources │ │ ├── Ability.prefab │ │ ├── Ability.prefab.meta │ │ ├── Cell.prefab │ │ ├── Cell.prefab.meta │ │ ├── Player.prefab │ │ ├── Player.prefab.meta │ │ ├── SpawnMarker.prefab │ │ ├── SpawnMarker.prefab.meta │ │ ├── UI.prefab │ │ ├── UI.prefab.meta │ │ ├── Units.meta │ │ ├── Units │ │ │ ├── Capsule.prefab │ │ │ └── Capsule.prefab.meta │ │ ├── Wall.prefab │ │ └── Wall.prefab.meta │ ├── Scenes.meta │ ├── Scenes │ │ ├── Main.lighting │ │ ├── Main.lighting.meta │ │ ├── Main.unity │ │ └── Main.unity.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── Components.meta │ │ ├── Components │ │ ├── .gitkeep │ │ ├── Ability.cs │ │ ├── Ability.cs.meta │ │ ├── Animating.cs │ │ ├── Animating.cs.meta │ │ ├── Applied.cs │ │ ├── Applied.cs.meta │ │ ├── Apply.cs │ │ ├── Apply.cs.meta │ │ ├── Cell.cs │ │ ├── Cell.cs.meta │ │ ├── ControlledByPlayer.cs │ │ ├── ControlledByPlayer.cs.meta │ │ ├── DeathEvent.cs │ │ ├── DeathEvent.cs.meta │ │ ├── HasAbilities.cs │ │ ├── HasAbilities.cs.meta │ │ ├── HeavyAttack.cs │ │ ├── HeavyAttack.cs.meta │ │ ├── LightAttack.cs │ │ ├── LightAttack.cs.meta │ │ ├── MoveCommand.cs │ │ ├── MoveCommand.cs.meta │ │ ├── Moving.cs │ │ ├── Moving.cs.meta │ │ ├── NextUnitEvent.cs │ │ ├── NextUnitEvent.cs.meta │ │ ├── PowerShot.cs │ │ ├── PowerShot.cs.meta │ │ ├── RotateCommand.cs │ │ ├── RotateCommand.cs.meta │ │ ├── TurnFinished.cs │ │ ├── TurnFinished.cs.meta │ │ ├── Unit.cs │ │ └── Unit.cs.meta │ │ ├── Game.cs │ │ ├── Game.cs.meta │ │ ├── Other.meta │ │ ├── Other │ │ ├── AbilityConfig.cs │ │ ├── AbilityConfig.cs.meta │ │ ├── Direction.cs │ │ ├── Direction.cs.meta │ │ ├── Int2.cs │ │ ├── Int2.cs.meta │ │ ├── Side.cs │ │ └── Side.cs.meta │ │ ├── Services.meta │ │ ├── Services │ │ ├── .gitkeep │ │ ├── AbilityHelper.cs │ │ ├── AbilityHelper.cs.meta │ │ ├── Configuration.cs │ │ ├── Configuration.cs.meta │ │ ├── GridService.cs │ │ ├── GridService.cs.meta │ │ ├── Idents.cs │ │ ├── Idents.cs.meta │ │ ├── Rotating.cs │ │ ├── Rotating.cs.meta │ │ ├── RoundService.cs │ │ ├── RoundService.cs.meta │ │ ├── SceneData.cs │ │ ├── SceneData.cs.meta │ │ ├── TimeService.cs │ │ └── TimeService.cs.meta │ │ ├── Systems.meta │ │ ├── Systems │ │ ├── .gitkeep │ │ ├── AiCommandsSystem.cs │ │ ├── AiCommandsSystem.cs.meta │ │ ├── AiInitSystem.cs │ │ ├── AiInitSystem.cs.meta │ │ ├── ApplyAbilitySystem.cs │ │ ├── ApplyAbilitySystem.cs.meta │ │ ├── GridInitSystem.cs │ │ ├── GridInitSystem.cs.meta │ │ ├── HeavyAttackAbilitySystem.cs │ │ ├── HeavyAttackAbilitySystem.cs.meta │ │ ├── LightAttackAbilitySystem.cs │ │ ├── LightAttackAbilitySystem.cs.meta │ │ ├── NextUnitTurnSystem.cs │ │ ├── NextUnitTurnSystem.cs.meta │ │ ├── PlayerInitSystem.cs │ │ ├── PlayerInitSystem.cs.meta │ │ ├── PowerShotAbilitySystem.cs │ │ ├── PowerShotAbilitySystem.cs.meta │ │ ├── TimeSystem.cs │ │ ├── TimeSystem.cs.meta │ │ ├── UnitDeathSystem.cs │ │ ├── UnitDeathSystem.cs.meta │ │ ├── UnitMoveSystem.cs │ │ ├── UnitMoveSystem.cs.meta │ │ ├── UnitRotateSystem.cs │ │ ├── UnitRotateSystem.cs.meta │ │ ├── UnitStartMovingSystem.cs │ │ ├── UnitStartMovingSystem.cs.meta │ │ ├── UnitStartRotatingSystem.cs │ │ ├── UnitStartRotatingSystem.cs.meta │ │ ├── UserButtonsInputSystem.cs │ │ ├── UserButtonsInputSystem.cs.meta │ │ ├── UserKeyboardInputSystem.cs │ │ ├── UserKeyboardInputSystem.cs.meta │ │ ├── UserSwipeInputSystem.cs │ │ └── UserSwipeInputSystem.cs.meta │ │ ├── Views.meta │ │ └── Views │ │ ├── .gitkeep │ │ ├── AbilityView.cs │ │ ├── AbilityView.cs.meta │ │ ├── CellView.cs │ │ ├── CellView.cs.meta │ │ ├── SnapTransform.cs │ │ ├── SnapTransform.cs.meta │ │ ├── SpawnMarker.cs │ │ ├── SpawnMarker.cs.meta │ │ ├── UnitView.cs │ │ └── UnitView.cs.meta ├── TextMesh Pro.meta └── TextMesh Pro │ ├── Documentation.meta │ ├── Documentation │ ├── TextMesh Pro User Guide 2016.pdf │ └── TextMesh Pro User Guide 2016.pdf.meta │ ├── Fonts.meta │ ├── Fonts │ ├── LiberationSans - OFL.txt │ ├── LiberationSans - OFL.txt.meta │ ├── LiberationSans.ttf │ └── LiberationSans.ttf.meta │ ├── Resources.meta │ ├── Resources │ ├── Fonts & Materials.meta │ ├── Fonts & Materials │ │ ├── LiberationSans SDF - Drop Shadow.mat │ │ ├── LiberationSans SDF - Drop Shadow.mat.meta │ │ ├── LiberationSans SDF - Fallback.asset │ │ ├── LiberationSans SDF - Fallback.asset.meta │ │ ├── LiberationSans SDF - Outline.mat │ │ ├── LiberationSans SDF - Outline.mat.meta │ │ ├── LiberationSans SDF.asset │ │ └── LiberationSans SDF.asset.meta │ ├── LineBreaking Following Characters.txt │ ├── LineBreaking Following Characters.txt.meta │ ├── LineBreaking Leading Characters.txt │ ├── LineBreaking Leading Characters.txt.meta │ ├── Sprite Assets.meta │ ├── Sprite Assets │ │ ├── EmojiOne.asset │ │ └── EmojiOne.asset.meta │ ├── Style Sheets.meta │ ├── Style Sheets │ │ ├── Default Style Sheet.asset │ │ └── Default Style Sheet.asset.meta │ ├── TMP Settings.asset │ └── TMP Settings.asset.meta │ ├── Shaders.meta │ ├── Shaders │ ├── TMP_Bitmap-Custom-Atlas.shader │ ├── TMP_Bitmap-Custom-Atlas.shader.meta │ ├── TMP_Bitmap-Mobile.shader │ ├── TMP_Bitmap-Mobile.shader.meta │ ├── TMP_Bitmap.shader │ ├── TMP_Bitmap.shader.meta │ ├── TMP_SDF Overlay.shader │ ├── TMP_SDF Overlay.shader.meta │ ├── TMP_SDF SSD.shader │ ├── TMP_SDF SSD.shader.meta │ ├── TMP_SDF-Mobile Masking.shader │ ├── TMP_SDF-Mobile Masking.shader.meta │ ├── TMP_SDF-Mobile Overlay.shader │ ├── TMP_SDF-Mobile Overlay.shader.meta │ ├── TMP_SDF-Mobile SSD.shader │ ├── TMP_SDF-Mobile SSD.shader.meta │ ├── TMP_SDF-Mobile.shader │ ├── TMP_SDF-Mobile.shader.meta │ ├── TMP_SDF-Surface-Mobile.shader │ ├── TMP_SDF-Surface-Mobile.shader.meta │ ├── TMP_SDF-Surface.shader │ ├── TMP_SDF-Surface.shader.meta │ ├── TMP_SDF.shader │ ├── TMP_SDF.shader.meta │ ├── TMP_Sprite.shader │ ├── TMP_Sprite.shader.meta │ ├── TMPro.cginc │ ├── TMPro.cginc.meta │ ├── TMPro_Mobile.cginc │ ├── TMPro_Mobile.cginc.meta │ ├── TMPro_Properties.cginc │ ├── TMPro_Properties.cginc.meta │ ├── TMPro_Surface.cginc │ └── TMPro_Surface.cginc.meta │ ├── Sprites.meta │ └── Sprites │ ├── EmojiOne Attribution.txt │ ├── EmojiOne Attribution.txt.meta │ ├── EmojiOne.json │ ├── EmojiOne.json.meta │ ├── EmojiOne.png │ └── EmojiOne.png.meta ├── Packages ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── SceneTemplateSettings.json ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset └── XRSettings.asset └── dungeon-crawler-unity.sln.DotSettings /.gitignore: -------------------------------------------------------------------------------- 1 | dungeon-crawler-unity/.idea 2 | dungeon-crawler-unity/UserSettings 3 | dungeon-crawler-unity/Library 4 | dungeon-crawler-unity/Logs 5 | dungeon-crawler-unity/Temp 6 | dungeon-crawler-unity/obj 7 | *.csproj 8 | *.sln 9 | *DS_Store 10 | xflow-test-unity/Recordings 11 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Arthur 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c3742cb15dac8a47ba7c8bceb7eb8e3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40592d66b1915324294f8c2d5907247d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Animations.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11a7617cde48028459cc36737f7d0cd3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Animations/Death.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 53d4fdec60954f248ad6c9a826732b43 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 7400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Animations/Idle.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Idle 10 | serializedVersion: 6 11 | m_Legacy: 0 12 | m_Compressed: 0 13 | m_UseHighQualityCurve: 1 14 | m_RotationCurves: [] 15 | m_CompressedRotationCurves: [] 16 | m_EulerCurves: [] 17 | m_PositionCurves: [] 18 | m_ScaleCurves: [] 19 | m_FloatCurves: [] 20 | m_PPtrCurves: [] 21 | m_SampleRate: 60 22 | m_WrapMode: 0 23 | m_Bounds: 24 | m_Center: {x: 0, y: 0, z: 0} 25 | m_Extent: {x: 0, y: 0, z: 0} 26 | m_ClipBindingConstant: 27 | genericBindings: [] 28 | pptrCurveMapping: [] 29 | m_AnimationClipSettings: 30 | serializedVersion: 2 31 | m_AdditiveReferencePoseClip: {fileID: 0} 32 | m_AdditiveReferencePoseTime: 0 33 | m_StartTime: 0 34 | m_StopTime: 1 35 | m_OrientationOffsetY: 0 36 | m_Level: 0 37 | m_CycleOffset: 0 38 | m_HasAdditiveReferencePose: 0 39 | m_LoopTime: 0 40 | m_LoopBlend: 0 41 | m_LoopBlendOrientation: 0 42 | m_LoopBlendPositionY: 0 43 | m_LoopBlendPositionXZ: 0 44 | m_KeepOriginalOrientation: 0 45 | m_KeepOriginalPositionY: 1 46 | m_KeepOriginalPositionXZ: 0 47 | m_HeightFromFeet: 0 48 | m_Mirror: 0 49 | m_EditorCurves: [] 50 | m_EulerEditorCurves: [] 51 | m_HasGenericRootTransform: 0 52 | m_HasMotionFloatCurves: 0 53 | m_Events: [] 54 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Animations/Idle.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 547a6e36808e925458a47008f27a5a43 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 7400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Animations/Unit.controller: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1102 &-6075956294039256592 4 | AnimatorState: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 1 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: Idle 11 | m_Speed: 1 12 | m_CycleOffset: 0 13 | m_Transitions: [] 14 | m_StateMachineBehaviours: [] 15 | m_Position: {x: 50, y: 50, z: 0} 16 | m_IKOnFeet: 0 17 | m_WriteDefaultValues: 1 18 | m_Mirror: 0 19 | m_SpeedParameterActive: 0 20 | m_MirrorParameterActive: 0 21 | m_CycleOffsetParameterActive: 0 22 | m_TimeParameterActive: 0 23 | m_Motion: {fileID: 7400000, guid: 547a6e36808e925458a47008f27a5a43, type: 2} 24 | m_Tag: 25 | m_SpeedParameter: 26 | m_MirrorParameter: 27 | m_CycleOffsetParameter: 28 | m_TimeParameter: 29 | --- !u!1107 &-3695309588124328401 30 | AnimatorStateMachine: 31 | serializedVersion: 6 32 | m_ObjectHideFlags: 1 33 | m_CorrespondingSourceObject: {fileID: 0} 34 | m_PrefabInstance: {fileID: 0} 35 | m_PrefabAsset: {fileID: 0} 36 | m_Name: Base Layer 37 | m_ChildStates: 38 | - serializedVersion: 1 39 | m_State: {fileID: -1957602322236786819} 40 | m_Position: {x: 280, y: 20, z: 0} 41 | - serializedVersion: 1 42 | m_State: {fileID: -6075956294039256592} 43 | m_Position: {x: 300, y: 120, z: 0} 44 | m_ChildStateMachines: [] 45 | m_AnyStateTransitions: 46 | - {fileID: 5160405145531058339} 47 | m_EntryTransitions: [] 48 | m_StateMachineTransitions: {} 49 | m_StateMachineBehaviours: [] 50 | m_AnyStatePosition: {x: 50, y: 20, z: 0} 51 | m_EntryPosition: {x: 50, y: 120, z: 0} 52 | m_ExitPosition: {x: 800, y: 120, z: 0} 53 | m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} 54 | m_DefaultState: {fileID: -6075956294039256592} 55 | --- !u!1102 &-1957602322236786819 56 | AnimatorState: 57 | serializedVersion: 6 58 | m_ObjectHideFlags: 1 59 | m_CorrespondingSourceObject: {fileID: 0} 60 | m_PrefabInstance: {fileID: 0} 61 | m_PrefabAsset: {fileID: 0} 62 | m_Name: Death 63 | m_Speed: 1 64 | m_CycleOffset: 0 65 | m_Transitions: [] 66 | m_StateMachineBehaviours: [] 67 | m_Position: {x: 50, y: 50, z: 0} 68 | m_IKOnFeet: 0 69 | m_WriteDefaultValues: 1 70 | m_Mirror: 0 71 | m_SpeedParameterActive: 0 72 | m_MirrorParameterActive: 0 73 | m_CycleOffsetParameterActive: 0 74 | m_TimeParameterActive: 0 75 | m_Motion: {fileID: 7400000, guid: 53d4fdec60954f248ad6c9a826732b43, type: 2} 76 | m_Tag: 77 | m_SpeedParameter: 78 | m_MirrorParameter: 79 | m_CycleOffsetParameter: 80 | m_TimeParameter: 81 | --- !u!91 &9100000 82 | AnimatorController: 83 | m_ObjectHideFlags: 0 84 | m_CorrespondingSourceObject: {fileID: 0} 85 | m_PrefabInstance: {fileID: 0} 86 | m_PrefabAsset: {fileID: 0} 87 | m_Name: Unit 88 | serializedVersion: 5 89 | m_AnimatorParameters: 90 | - m_Name: Dead 91 | m_Type: 9 92 | m_DefaultFloat: 0 93 | m_DefaultInt: 0 94 | m_DefaultBool: 0 95 | m_Controller: {fileID: 0} 96 | m_AnimatorLayers: 97 | - serializedVersion: 5 98 | m_Name: Base Layer 99 | m_StateMachine: {fileID: -3695309588124328401} 100 | m_Mask: {fileID: 0} 101 | m_Motions: [] 102 | m_Behaviours: [] 103 | m_BlendingMode: 0 104 | m_SyncedLayerIndex: -1 105 | m_DefaultWeight: 0 106 | m_IKPass: 0 107 | m_SyncedLayerAffectsTiming: 0 108 | m_Controller: {fileID: 9100000} 109 | --- !u!1101 &5160405145531058339 110 | AnimatorStateTransition: 111 | m_ObjectHideFlags: 1 112 | m_CorrespondingSourceObject: {fileID: 0} 113 | m_PrefabInstance: {fileID: 0} 114 | m_PrefabAsset: {fileID: 0} 115 | m_Name: 116 | m_Conditions: 117 | - m_ConditionMode: 1 118 | m_ConditionEvent: Dead 119 | m_EventTreshold: 0 120 | m_DstStateMachine: {fileID: 0} 121 | m_DstState: {fileID: -1957602322236786819} 122 | m_Solo: 0 123 | m_Mute: 0 124 | m_IsExit: 0 125 | serializedVersion: 3 126 | m_TransitionDuration: 0 127 | m_TransitionOffset: 0 128 | m_ExitTime: 0 129 | m_HasExitTime: 0 130 | m_HasFixedDuration: 0 131 | m_InterruptionSource: 0 132 | m_OrderedInterruption: 1 133 | m_CanTransitionToSelf: 1 134 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Animations/Unit.controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1bab8f66f07e2cd43a311e7ad9843030 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 9100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Mats.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f150f32d5f1e0f94d863da3253938ecf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Mats/Black.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: Black 11 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 0 63 | - _GlossMapScale: 1 64 | - _Glossiness: 0 65 | - _GlossyReflections: 1 66 | - _Metallic: 0 67 | - _Mode: 0 68 | - _OcclusionStrength: 1 69 | - _Parallax: 0.02 70 | - _SmoothnessTextureChannel: 0 71 | - _SpecularHighlights: 1 72 | - _SrcBlend: 1 73 | - _UVSec: 0 74 | - _ZWrite: 1 75 | m_Colors: 76 | - _Color: {r: 0.13207549, g: 0.13207549, b: 0.13207549, a: 1} 77 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 78 | m_BuildTextureStacks: [] 79 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Mats/Black.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0df65e7e996ef9344811c1aec80ac09b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Mats/Red.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: Red 11 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 0 63 | - _GlossMapScale: 1 64 | - _Glossiness: 0 65 | - _GlossyReflections: 1 66 | - _Metallic: 0 67 | - _Mode: 0 68 | - _OcclusionStrength: 1 69 | - _Parallax: 0.02 70 | - _SmoothnessTextureChannel: 0 71 | - _SpecularHighlights: 1 72 | - _SrcBlend: 1 73 | - _UVSec: 0 74 | - _ZWrite: 1 75 | m_Colors: 76 | - _Color: {r: 0.8867924, g: 0.1966002, b: 0.1966002, a: 1} 77 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 78 | m_BuildTextureStacks: [] 79 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Mats/Red.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa65bdaf0210d6f4587f1caba3a1e2c5 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Mats/Road.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: Road 11 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 0 63 | - _GlossMapScale: 1 64 | - _Glossiness: 0 65 | - _GlossyReflections: 1 66 | - _Metallic: 0 67 | - _Mode: 0 68 | - _OcclusionStrength: 1 69 | - _Parallax: 0.02 70 | - _SmoothnessTextureChannel: 0 71 | - _SpecularHighlights: 1 72 | - _SrcBlend: 1 73 | - _UVSec: 0 74 | - _ZWrite: 1 75 | m_Colors: 76 | - _Color: {r: 0.011751463, g: 0.4528302, b: 0, a: 1} 77 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 78 | m_BuildTextureStacks: [] 79 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Mats/Road.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5281bf4845916b943918ec9326944f3a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Mats/White.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: White 11 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 1 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 0 63 | - _GlossMapScale: 1 64 | - _Glossiness: 0.3 65 | - _GlossyReflections: 1 66 | - _Metallic: 0.5 67 | - _Mode: 0 68 | - _OcclusionStrength: 1 69 | - _Parallax: 0.02 70 | - _SmoothnessTextureChannel: 0 71 | - _SpecularHighlights: 1 72 | - _SrcBlend: 1 73 | - _UVSec: 0 74 | - _ZWrite: 1 75 | m_Colors: 76 | - _Color: {r: 0.8773585, g: 0.8773585, b: 0.8773585, a: 1} 77 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 78 | m_BuildTextureStacks: [] 79 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Mats/White.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 45eb2f8cd1347e845807ae34bebe92b2 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Content/Models.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b8ad66e4e3d1b44aa65dc35502f9bbf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Data.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f239ea6ac03053e46b04ae455e5b3960 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Data/Config.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 5197953023764b29b30603edbf1bb995, type: 3} 13 | m_Name: Config 14 | m_EditorClassIdentifier: 15 | GridWidth: 64 16 | GridHeight: 64 17 | UnitLayerMask: 18 | serializedVersion: 2 19 | m_Bits: 8 20 | AbilitiesConfigs: 21 | - {fileID: 11400000, guid: 51c40ffb1bdcf9942af17f81a48a9f83, type: 2} 22 | - {fileID: 11400000, guid: 7454e4469974c1e4ba8b75a057a51e55, type: 2} 23 | - {fileID: 11400000, guid: 94420d28497243d4dbb75fb04a1cf371, type: 2} 24 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Data/Config.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b03d5561f062c514ca46170a6037e015 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Data/HeavyAttack.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 1c0e51d406ba4a1b8dbd3ca5f73bb908, type: 3} 13 | m_Name: HeavyAttack 14 | m_EditorClassIdentifier: 15 | Name: Heavy Attack 16 | ActionPointsCost: 2 17 | Damage: 2 18 | Distance: 1 19 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Data/HeavyAttack.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7454e4469974c1e4ba8b75a057a51e55 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Data/LightAttack.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 1c0e51d406ba4a1b8dbd3ca5f73bb908, type: 3} 13 | m_Name: LightAttack 14 | m_EditorClassIdentifier: 15 | Name: Light Attack 16 | ActionPointsCost: 1 17 | Damage: 1 18 | Distance: 1 19 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Data/LightAttack.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51c40ffb1bdcf9942af17f81a48a9f83 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Data/PowerShot.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 1c0e51d406ba4a1b8dbd3ca5f73bb908, type: 3} 13 | m_Name: PowerShot 14 | m_EditorClassIdentifier: 15 | Name: PowerShot 16 | ActionPointsCost: 5 17 | Damage: 1 18 | Distance: 2 19 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Data/PowerShot.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94420d28497243d4dbb75fb04a1cf371 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 586fbf8d39e80c341b22e57dd02ed4eb 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Resources/Ability.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f12d572b6802b646bd43cc8809e1eae 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Resources/Cell.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &7859726181888651251 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 8839223841477995637} 12 | - component: {fileID: 2183044986061156116} 13 | - component: {fileID: 1805136633953985380} 14 | - component: {fileID: 2200516896463238527} 15 | m_Layer: 0 16 | m_Name: Plane 17 | m_TagString: Untagged 18 | m_Icon: {fileID: 0} 19 | m_NavMeshLayer: 0 20 | m_StaticEditorFlags: 0 21 | m_IsActive: 1 22 | --- !u!4 &8839223841477995637 23 | Transform: 24 | m_ObjectHideFlags: 0 25 | m_CorrespondingSourceObject: {fileID: 0} 26 | m_PrefabInstance: {fileID: 0} 27 | m_PrefabAsset: {fileID: 0} 28 | m_GameObject: {fileID: 7859726181888651251} 29 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 30 | m_LocalPosition: {x: 0, y: -0.05, z: 0} 31 | m_LocalScale: {x: 0.3, y: 0.3, z: 0.3} 32 | m_Children: [] 33 | m_Father: {fileID: 8212837844091726321} 34 | m_RootOrder: 0 35 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 36 | --- !u!33 &2183044986061156116 37 | MeshFilter: 38 | m_ObjectHideFlags: 0 39 | m_CorrespondingSourceObject: {fileID: 0} 40 | m_PrefabInstance: {fileID: 0} 41 | m_PrefabAsset: {fileID: 0} 42 | m_GameObject: {fileID: 7859726181888651251} 43 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 44 | --- !u!23 &1805136633953985380 45 | MeshRenderer: 46 | m_ObjectHideFlags: 0 47 | m_CorrespondingSourceObject: {fileID: 0} 48 | m_PrefabInstance: {fileID: 0} 49 | m_PrefabAsset: {fileID: 0} 50 | m_GameObject: {fileID: 7859726181888651251} 51 | m_Enabled: 1 52 | m_CastShadows: 1 53 | m_ReceiveShadows: 1 54 | m_DynamicOccludee: 1 55 | m_MotionVectors: 1 56 | m_LightProbeUsage: 1 57 | m_ReflectionProbeUsage: 1 58 | m_RayTracingMode: 2 59 | m_RayTraceProcedural: 0 60 | m_RenderingLayerMask: 1 61 | m_RendererPriority: 0 62 | m_Materials: 63 | - {fileID: 2100000, guid: 5281bf4845916b943918ec9326944f3a, type: 2} 64 | m_StaticBatchInfo: 65 | firstSubMesh: 0 66 | subMeshCount: 0 67 | m_StaticBatchRoot: {fileID: 0} 68 | m_ProbeAnchor: {fileID: 0} 69 | m_LightProbeVolumeOverride: {fileID: 0} 70 | m_ScaleInLightmap: 1 71 | m_ReceiveGI: 1 72 | m_PreserveUVs: 0 73 | m_IgnoreNormalsForChartDetection: 0 74 | m_ImportantGI: 0 75 | m_StitchLightmapSeams: 1 76 | m_SelectedEditorRenderState: 3 77 | m_MinimumChartSize: 4 78 | m_AutoUVMaxDistance: 0.5 79 | m_AutoUVMaxAngle: 89 80 | m_LightmapParameters: {fileID: 0} 81 | m_SortingLayerID: 0 82 | m_SortingLayer: 0 83 | m_SortingOrder: 0 84 | m_AdditionalVertexStreams: {fileID: 0} 85 | --- !u!64 &2200516896463238527 86 | MeshCollider: 87 | m_ObjectHideFlags: 0 88 | m_CorrespondingSourceObject: {fileID: 0} 89 | m_PrefabInstance: {fileID: 0} 90 | m_PrefabAsset: {fileID: 0} 91 | m_GameObject: {fileID: 7859726181888651251} 92 | m_Material: {fileID: 0} 93 | m_IsTrigger: 0 94 | m_Enabled: 1 95 | serializedVersion: 4 96 | m_Convex: 0 97 | m_CookingOptions: 30 98 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 99 | --- !u!1 &8212837844091726223 100 | GameObject: 101 | m_ObjectHideFlags: 0 102 | m_CorrespondingSourceObject: {fileID: 0} 103 | m_PrefabInstance: {fileID: 0} 104 | m_PrefabAsset: {fileID: 0} 105 | serializedVersion: 6 106 | m_Component: 107 | - component: {fileID: 8212837844091726321} 108 | - component: {fileID: 8212837844091726222} 109 | - component: {fileID: 5006786112162294483} 110 | m_Layer: 0 111 | m_Name: Cell 112 | m_TagString: Untagged 113 | m_Icon: {fileID: 0} 114 | m_NavMeshLayer: 0 115 | m_StaticEditorFlags: 0 116 | m_IsActive: 1 117 | --- !u!4 &8212837844091726321 118 | Transform: 119 | m_ObjectHideFlags: 0 120 | m_CorrespondingSourceObject: {fileID: 0} 121 | m_PrefabInstance: {fileID: 0} 122 | m_PrefabAsset: {fileID: 0} 123 | m_GameObject: {fileID: 8212837844091726223} 124 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 125 | m_LocalPosition: {x: 0, y: 0, z: 0} 126 | m_LocalScale: {x: 1, y: 1, z: 1} 127 | m_Children: 128 | - {fileID: 8839223841477995637} 129 | m_Father: {fileID: 0} 130 | m_RootOrder: 0 131 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 132 | --- !u!114 &8212837844091726222 133 | MonoBehaviour: 134 | m_ObjectHideFlags: 0 135 | m_CorrespondingSourceObject: {fileID: 0} 136 | m_PrefabInstance: {fileID: 0} 137 | m_PrefabAsset: {fileID: 0} 138 | m_GameObject: {fileID: 8212837844091726223} 139 | m_Enabled: 1 140 | m_EditorHideFlags: 0 141 | m_Script: {fileID: 11500000, guid: 52371c1b09759e04f8b4a0c464f27593, type: 3} 142 | m_Name: 143 | m_EditorClassIdentifier: 144 | Transform: {fileID: 8212837844091726321} 145 | XzStep: 3 146 | YStep: 1 147 | --- !u!114 &5006786112162294483 148 | MonoBehaviour: 149 | m_ObjectHideFlags: 0 150 | m_CorrespondingSourceObject: {fileID: 0} 151 | m_PrefabInstance: {fileID: 0} 152 | m_PrefabAsset: {fileID: 0} 153 | m_GameObject: {fileID: 8212837844091726223} 154 | m_Enabled: 1 155 | m_EditorHideFlags: 0 156 | m_Script: {fileID: 11500000, guid: 8f8e8e524d6c4950b0609e82e403e70d, type: 3} 157 | m_Name: 158 | m_EditorClassIdentifier: 159 | Transform: {fileID: 8212837844091726321} 160 | XzStep: 3 161 | YStep: 1 162 | Unit: {fileID: 0} 163 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Resources/Cell.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d2f18590edcaf9443b6138183cc612e8 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Resources/Player.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8820174dc270703468b3794c37643083 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Resources/SpawnMarker.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &3325842897054370306 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 3325842897054370309} 12 | - component: {fileID: 3325842897054370308} 13 | - component: {fileID: 3325842897054370311} 14 | m_Layer: 0 15 | m_Name: SpawnMarker 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 2974397684917235467, guid: 0000000000000000d000000000000000, type: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!4 &3325842897054370309 22 | Transform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 3325842897054370306} 28 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 29 | m_LocalPosition: {x: 0, y: 0, z: 3} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_Children: [] 32 | m_Father: {fileID: 0} 33 | m_RootOrder: 0 34 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 35 | --- !u!114 &3325842897054370308 36 | MonoBehaviour: 37 | m_ObjectHideFlags: 0 38 | m_CorrespondingSourceObject: {fileID: 0} 39 | m_PrefabInstance: {fileID: 0} 40 | m_PrefabAsset: {fileID: 0} 41 | m_GameObject: {fileID: 3325842897054370306} 42 | m_Enabled: 1 43 | m_EditorHideFlags: 0 44 | m_Script: {fileID: 11500000, guid: 5af2c7e8aba74a93a54d0e65c55a5310, type: 3} 45 | m_Name: 46 | m_EditorClassIdentifier: 47 | Transform: {fileID: 3325842897054370309} 48 | PrefabName: Capsule 49 | Side: 1 50 | --- !u!114 &3325842897054370311 51 | MonoBehaviour: 52 | m_ObjectHideFlags: 0 53 | m_CorrespondingSourceObject: {fileID: 0} 54 | m_PrefabInstance: {fileID: 0} 55 | m_PrefabAsset: {fileID: 0} 56 | m_GameObject: {fileID: 3325842897054370306} 57 | m_Enabled: 1 58 | m_EditorHideFlags: 0 59 | m_Script: {fileID: 11500000, guid: 52371c1b09759e04f8b4a0c464f27593, type: 3} 60 | m_Name: 61 | m_EditorClassIdentifier: 62 | Transform: {fileID: 3325842897054370309} 63 | XzStep: 3 64 | YStep: 1 65 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Resources/SpawnMarker.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 650a6feafe203ea4f93bd6581c2aed35 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Resources/UI.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c8e28e71459fa34b9296700dadba1cd 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Resources/Units.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be46b3a729d6f474884ec186c4513737 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Resources/Units/Capsule.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5875e1e4a4c91ca4eac500137ce70c02 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Resources/Wall.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &7551968393499895513 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 7551968393499895512} 12 | - component: {fileID: 7551968393499895517} 13 | - component: {fileID: 7551968393499895518} 14 | - component: {fileID: 7551968393499895519} 15 | m_Layer: 0 16 | m_Name: Wall 17 | m_TagString: Untagged 18 | m_Icon: {fileID: 0} 19 | m_NavMeshLayer: 0 20 | m_StaticEditorFlags: 0 21 | m_IsActive: 1 22 | --- !u!4 &7551968393499895512 23 | Transform: 24 | m_ObjectHideFlags: 0 25 | m_CorrespondingSourceObject: {fileID: 0} 26 | m_PrefabInstance: {fileID: 0} 27 | m_PrefabAsset: {fileID: 0} 28 | m_GameObject: {fileID: 7551968393499895513} 29 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 30 | m_LocalPosition: {x: 2, y: 0.368, z: 0} 31 | m_LocalScale: {x: 0.48059, y: 4.6415, z: 12.876} 32 | m_Children: [] 33 | m_Father: {fileID: 0} 34 | m_RootOrder: 0 35 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 36 | --- !u!33 &7551968393499895517 37 | MeshFilter: 38 | m_ObjectHideFlags: 0 39 | m_CorrespondingSourceObject: {fileID: 0} 40 | m_PrefabInstance: {fileID: 0} 41 | m_PrefabAsset: {fileID: 0} 42 | m_GameObject: {fileID: 7551968393499895513} 43 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 44 | --- !u!23 &7551968393499895518 45 | MeshRenderer: 46 | m_ObjectHideFlags: 0 47 | m_CorrespondingSourceObject: {fileID: 0} 48 | m_PrefabInstance: {fileID: 0} 49 | m_PrefabAsset: {fileID: 0} 50 | m_GameObject: {fileID: 7551968393499895513} 51 | m_Enabled: 1 52 | m_CastShadows: 1 53 | m_ReceiveShadows: 1 54 | m_DynamicOccludee: 1 55 | m_MotionVectors: 1 56 | m_LightProbeUsage: 1 57 | m_ReflectionProbeUsage: 1 58 | m_RayTracingMode: 2 59 | m_RayTraceProcedural: 0 60 | m_RenderingLayerMask: 1 61 | m_RendererPriority: 0 62 | m_Materials: 63 | - {fileID: 2100000, guid: 45eb2f8cd1347e845807ae34bebe92b2, type: 2} 64 | m_StaticBatchInfo: 65 | firstSubMesh: 0 66 | subMeshCount: 0 67 | m_StaticBatchRoot: {fileID: 0} 68 | m_ProbeAnchor: {fileID: 0} 69 | m_LightProbeVolumeOverride: {fileID: 0} 70 | m_ScaleInLightmap: 1 71 | m_ReceiveGI: 1 72 | m_PreserveUVs: 0 73 | m_IgnoreNormalsForChartDetection: 0 74 | m_ImportantGI: 0 75 | m_StitchLightmapSeams: 1 76 | m_SelectedEditorRenderState: 3 77 | m_MinimumChartSize: 4 78 | m_AutoUVMaxDistance: 0.5 79 | m_AutoUVMaxAngle: 89 80 | m_LightmapParameters: {fileID: 0} 81 | m_SortingLayerID: 0 82 | m_SortingLayer: 0 83 | m_SortingOrder: 0 84 | m_AdditionalVertexStreams: {fileID: 0} 85 | --- !u!65 &7551968393499895519 86 | BoxCollider: 87 | m_ObjectHideFlags: 0 88 | m_CorrespondingSourceObject: {fileID: 0} 89 | m_PrefabInstance: {fileID: 0} 90 | m_PrefabAsset: {fileID: 0} 91 | m_GameObject: {fileID: 7551968393499895513} 92 | m_Material: {fileID: 0} 93 | m_IsTrigger: 0 94 | m_Enabled: 1 95 | serializedVersion: 2 96 | m_Size: {x: 1, y: 1, z: 1} 97 | m_Center: {x: 0, y: 0, z: 0} 98 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Resources/Wall.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b900964408a87bc45a200f3fb753cc55 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: effb68dac9e87c84e838b03724593947 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scenes/Main.lighting: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!850595691 &4890085278179872738 4 | LightingSettings: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Main 10 | serializedVersion: 3 11 | m_GIWorkflowMode: 0 12 | m_EnableBakedLightmaps: 0 13 | m_EnableRealtimeLightmaps: 0 14 | m_RealtimeEnvironmentLighting: 1 15 | m_BounceScale: 1 16 | m_AlbedoBoost: 1 17 | m_IndirectOutputScale: 1 18 | m_UsingShadowmask: 1 19 | m_BakeBackend: 1 20 | m_LightmapMaxSize: 1024 21 | m_BakeResolution: 40 22 | m_Padding: 2 23 | m_TextureCompression: 1 24 | m_AO: 0 25 | m_AOMaxDistance: 1 26 | m_CompAOExponent: 1 27 | m_CompAOExponentDirect: 0 28 | m_ExtractAO: 0 29 | m_MixedBakeMode: 2 30 | m_LightmapsBakeMode: 1 31 | m_FilterMode: 1 32 | m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} 33 | m_ExportTrainingData: 0 34 | m_TrainingDataDestination: TrainingData 35 | m_RealtimeResolution: 2 36 | m_ForceWhiteAlbedo: 0 37 | m_ForceUpdates: 0 38 | m_FinalGather: 0 39 | m_FinalGatherRayCount: 256 40 | m_FinalGatherFiltering: 1 41 | m_PVRCulling: 1 42 | m_PVRSampling: 1 43 | m_PVRDirectSampleCount: 32 44 | m_PVRSampleCount: 512 45 | m_PVREnvironmentSampleCount: 256 46 | m_PVREnvironmentReferencePointCount: 2048 47 | m_LightProbeSampleCountMultiplier: 4 48 | m_PVRBounces: 2 49 | m_PVRMinBounces: 1 50 | m_PVREnvironmentMIS: 1 51 | m_PVRFilteringMode: 1 52 | m_PVRDenoiserTypeDirect: 1 53 | m_PVRDenoiserTypeIndirect: 1 54 | m_PVRDenoiserTypeAO: 1 55 | m_PVRFilterTypeDirect: 0 56 | m_PVRFilterTypeIndirect: 0 57 | m_PVRFilterTypeAO: 0 58 | m_PVRFilteringGaussRadiusDirect: 1 59 | m_PVRFilteringGaussRadiusIndirect: 5 60 | m_PVRFilteringGaussRadiusAO: 2 61 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 62 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 63 | m_PVRFilteringAtrousPositionSigmaAO: 1 64 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scenes/Main.lighting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0bbc686d1aede7c4c910402423e9abec 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 4890085278179872738 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scenes/Main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1006ce0c8bca0147ab5c49b00226c09 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd62f51f176cbe149814b1ac9e388edb 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supremestranger/dungeon-crawler/122c560e3db543ea18046ac34ed36e22e743f05e/dungeon-crawler-unity/Assets/Client/Scripts/Components/.gitkeep -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Ability.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct Ability { 3 | public int ActionPointsCost; 4 | public int OwnerEntity; 5 | public int Id; 6 | public int Damage; 7 | public int Distance; 8 | } 9 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Ability.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 421b16be6f514b92816ddc8d7009f034 3 | timeCreated: 1655897037 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Animating.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct Animating { } 3 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Animating.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a158dc849884efb84a0d4177bb820f5 3 | timeCreated: 1649877856 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Applied.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct Applied { 3 | public int Target; 4 | } 5 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Applied.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 094e4722c1844e709df5f2b7981f16cd 3 | timeCreated: 1655897105 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Apply.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct Apply { } 3 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Apply.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51db2a28e8e847818485726ec534456e 3 | timeCreated: 1656081578 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Cell.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct Cell { 3 | public CellView View; 4 | public int Entity; 5 | } 6 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Cell.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a3df74f59e5462a911d45f5e2f468c2 3 | timeCreated: 1649626445 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/ControlledByPlayer.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct ControlledByPlayer { } 3 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/ControlledByPlayer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 517ead860b7145c7bfc9adf844196ace 3 | timeCreated: 1649800777 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/DeathEvent.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct DeathEvent { } 3 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/DeathEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 331dc4c30ade474695e49be9fe9eb043 3 | timeCreated: 1656365648 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/HasAbilities.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using Leopotam.EcsLite; 3 | 4 | namespace Client { 5 | struct HasAbilities : IEcsAutoReset { 6 | public List Entities; 7 | 8 | public void AutoReset (ref HasAbilities c) { 9 | c.Entities ??= new List (64); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/HasAbilities.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cb3acf8f99a4217805014a98bc8f793 3 | timeCreated: 1655911430 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/HeavyAttack.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct HeavyAttack { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/HeavyAttack.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 896dccf814ab4839a43137be8eb84539 3 | timeCreated: 1655898781 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/LightAttack.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct LightAttack { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/LightAttack.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 510fed0d28154540a5f3d51e5850049f 3 | timeCreated: 1655898767 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/MoveCommand.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct MoveCommand { 3 | public bool Backwards; 4 | } 5 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/MoveCommand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71db177c72a04b60a880dc6bf096fd1e 3 | timeCreated: 1649877936 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Moving.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Client { 4 | struct Moving { 5 | public Vector3 Point; 6 | } 7 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Moving.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 22e44a01ffd4412980f09555820ceaf4 3 | timeCreated: 1649879620 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/NextUnitEvent.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct NextUnitEvent { } 3 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/NextUnitEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e6a228e6dc9c47de9ed5c7923d6504ca 3 | timeCreated: 1654371579 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/PowerShot.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct PowerShot { } 3 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/PowerShot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 631578fc44d849d28de1cc9b37c1fd67 3 | timeCreated: 1656414956 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/RotateCommand.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct RotateCommand { 3 | public int Side; 4 | } 5 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/RotateCommand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: daff4f41e90e438c935bfebcf47eafa7 3 | timeCreated: 1649963640 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/TurnFinished.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | struct TurnFinished { } 3 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/TurnFinished.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ffe56d8803a4d35b434868660bcf4e0 3 | timeCreated: 1654368281 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Unit.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Client { 4 | struct Unit { 5 | public Direction Direction; 6 | public Int2 CellCoords; 7 | public Transform Transform; 8 | public Vector3 Position; 9 | public Quaternion Rotation; 10 | public float MoveSpeed; 11 | public float RotateSpeed; 12 | public int ActionPoints; 13 | public int Initiative; 14 | public int Health; 15 | public int Radius; 16 | public Side Side; 17 | public UnitView View; 18 | } 19 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Components/Unit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 049f7f27acc942748ee51f969fa17add 3 | timeCreated: 1649792916 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Game.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using Leopotam.EcsLite.ExtendedSystems; 4 | using Leopotam.EcsLite.Unity.Ugui; 5 | using UnityEngine; 6 | 7 | namespace Client { 8 | sealed class Game : MonoBehaviour { 9 | [SerializeField] SceneData _sceneData; 10 | [SerializeField] Configuration _configuration; 11 | [SerializeField] EcsUguiEmitter _uguiEmitter; 12 | EcsSystems _systems; 13 | 14 | void Start () { 15 | var world = new EcsWorld (); 16 | _systems = new EcsSystems (world); 17 | var ts = new TimeService (); 18 | var gs = new GridService (_configuration.GridWidth, _configuration.GridHeight); 19 | var rs = new RoundService (Side.User); 20 | var ah = new AbilityHelper (gs, world.GetPool ()); 21 | 22 | _systems 23 | .Add (new PlayerInitSystem ()) 24 | .Add (new GridInitSystem ()) 25 | .Add (new TimeSystem ()) 26 | .Add (new AiInitSystem ()) 27 | .Add (new NextUnitTurnSystem ()) 28 | .DelHere () 29 | .DelHere () 30 | .DelHere () 31 | .DelHere () 32 | .DelHere () 33 | .DelHere () 34 | .Add (new UserKeyboardInputSystem ()) 35 | .Add (new UserButtonsInputSystem ()) 36 | .Add (new UserSwipeInputSystem ()) 37 | .Add (new AiCommandsSystem ()) 38 | // abilities. 39 | .Add (new ApplyAbilitySystem ()) 40 | .Add (new LightAttackAbilitySystem ()) 41 | .Add (new HeavyAttackAbilitySystem ()) 42 | .Add (new PowerShotAbilitySystem ()) 43 | .Add (new UnitStartMovingSystem ()) 44 | .Add (new UnitMoveSystem ()) 45 | .Add (new UnitStartRotatingSystem ()) 46 | .Add (new UnitRotateSystem ()) 47 | .Add (new UnitDeathSystem ()) 48 | 49 | .AddWorld (new EcsWorld (), Idents.Worlds.Events) 50 | #if UNITY_EDITOR 51 | .Add (new Leopotam.EcsLite.UnityEditor.EcsWorldDebugSystem ()) 52 | .Add (new Leopotam.EcsLite.UnityEditor.EcsWorldDebugSystem (Idents.Worlds.Events)) 53 | #endif 54 | .Inject (ts, gs, rs, ah, _sceneData, _configuration) 55 | .InjectUgui (_uguiEmitter, Idents.Worlds.Events) 56 | .Init (); 57 | } 58 | 59 | void Update () { 60 | _systems?.Run (); 61 | } 62 | 63 | void OnDestroy () { 64 | _systems?.Destroy (); 65 | _systems?.GetWorld ()?.Destroy (); 66 | _systems = null; 67 | } 68 | } 69 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Game.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40acfc59ae1b7de45a84fc871c07afe0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Other.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2dbb30cba58b327439a19d6c4e16382e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Other/AbilityConfig.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Client { 4 | [CreateAssetMenu] 5 | public class AbilityConfig : ScriptableObject { 6 | public string Name; 7 | public int ActionPointsCost; 8 | public int Damage; 9 | public int Distance; 10 | } 11 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Other/AbilityConfig.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c0e51d406ba4a1b8dbd3ca5f73bb908 3 | timeCreated: 1656067013 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Other/Direction.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | public enum Direction { 3 | North = 0, 4 | East = 1, 5 | South = 2, 6 | West = 3 7 | } 8 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Other/Direction.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e56c7d7516ba4a1e8aff2d55e7e3d458 3 | timeCreated: 1649876214 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Other/Int2.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | public struct Int2 { 3 | public int X; 4 | public int Y; 5 | 6 | public Int2 (int x, int y) { 7 | X = x; 8 | Y = y; 9 | } 10 | 11 | public static Int2 operator + (Int2 a, Int2 b) { 12 | return new Int2 (a.X + b.X, a.Y + b.Y); 13 | } 14 | 15 | public static Int2 operator * (Int2 a, int multiplier) { 16 | return new Int2 (a.X * multiplier, a.Y * multiplier); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Other/Int2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bcb8c7a991e44ba2ac5d5144c7a91be5 3 | timeCreated: 1649797705 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Other/Side.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | public enum Side { 3 | User = 0, 4 | Enemy = 1, 5 | } 6 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Other/Side.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2687aa3630b4949869dc7bfe3569d47 3 | timeCreated: 1654346470 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f68057a32f1c7b54c8b6819146947695 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supremestranger/dungeon-crawler/122c560e3db543ea18046ac34ed36e22e743f05e/dungeon-crawler-unity/Assets/Client/Scripts/Services/.gitkeep -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/AbilityHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using Leopotam.EcsLite; 4 | using UnityEngine; 5 | 6 | namespace Client { 7 | sealed class AbilityHelper { 8 | internal delegate int ValidationCheck (in Unit unit, int damage); 9 | 10 | readonly Dictionary> _addComponentCallbacks; 11 | readonly Dictionary _validationCallbacks; 12 | 13 | readonly GridService _gs; 14 | 15 | readonly EcsPool _cellPool; 16 | 17 | public AbilityHelper (GridService gs, EcsPool cellPool) { 18 | _addComponentCallbacks = new Dictionary> { 19 | { 0, AddComponent }, 20 | { 1, AddComponent }, 21 | { 2, AddComponent} 22 | }; 23 | 24 | _validationCallbacks = new Dictionary { 25 | { 0, LightAttackValidate }, 26 | { 1, HeavyAttackValidate }, 27 | { 2, PowerShotValidate } 28 | }; 29 | 30 | _gs = gs; 31 | _cellPool = cellPool; 32 | } 33 | 34 | void AddComponent (EcsWorld world, int entity) where T : struct { 35 | world.GetPool ().Add (entity); 36 | } 37 | 38 | public Action GetAddComponentCallback (int abilityIdx) { 39 | return _addComponentCallbacks.TryGetValue (abilityIdx, out Action cb) ? cb : null; 40 | } 41 | 42 | public ValidationCheck GetValidateCallback (int abilityIdx) { 43 | return _validationCallbacks.TryGetValue (abilityIdx, out ValidationCheck cb) ? cb : null; 44 | } 45 | 46 | int LightAttackValidate (in Unit unit, int damage) { 47 | var coords = unit.CellCoords; 48 | var pos3d = Quaternion.Euler (0f, 90f * (int) unit.Direction, 0f) * Vector3.forward; 49 | var add = new Int2 (Mathf.RoundToInt (pos3d.x), Mathf.RoundToInt (pos3d.z)); 50 | var frontCell = coords + add; 51 | var (cellEntity, ok) = _gs.GetCell (frontCell); 52 | 53 | if (ok) { 54 | ref var cell = ref _cellPool.Get (cellEntity); 55 | if (cell.Entity != -1) { 56 | return damage; 57 | } 58 | } 59 | 60 | return 0; 61 | } 62 | 63 | int HeavyAttackValidate (in Unit unit, int damage) { 64 | var coords = unit.CellCoords; 65 | var pos3d = Quaternion.Euler (0f, 90f * (int) unit.Direction, 0f) * Vector3.forward; 66 | var add = new Int2 (Mathf.RoundToInt (pos3d.x), Mathf.RoundToInt (pos3d.z)); 67 | 68 | var frontCell = coords + add; 69 | var (cellEntity, ok) = _gs.GetCell (frontCell); 70 | 71 | if (ok) { 72 | ref var cell = ref _cellPool.Get (cellEntity); 73 | if (cell.Entity != -1) { 74 | return damage; 75 | } 76 | } 77 | 78 | return 0; 79 | } 80 | 81 | int PowerShotValidate (in Unit unit, int damage) { 82 | var coords = unit.CellCoords; 83 | var pos3d = Quaternion.Euler (0f, 90f * (int) unit.Direction, 0f) * Vector3.forward; 84 | var add = new Int2 (Mathf.RoundToInt (pos3d.x), Mathf.RoundToInt (pos3d.z)); 85 | 86 | var frontCell = coords + add; 87 | var (cellEntity, ok) = _gs.GetCell (frontCell); 88 | if (ok) { 89 | ref var cell = ref _cellPool.Get (cellEntity); 90 | if (cell.Entity != -1) { 91 | return 0; 92 | } 93 | } 94 | 95 | frontCell = coords + add * 2; 96 | var (anotherCellEntity, ok2) = _gs.GetCell (frontCell); 97 | if (ok2) { 98 | ref var cell = ref _cellPool.Get (anotherCellEntity); 99 | if (cell.Entity != -1) { 100 | return damage; 101 | } 102 | } 103 | 104 | return 0; 105 | } 106 | } 107 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/AbilityHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 220eb23211aa4363a9a42cd254c537cb 3 | timeCreated: 1656067941 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/Configuration.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Client { 4 | [CreateAssetMenu] 5 | sealed class Configuration : ScriptableObject { 6 | public int GridWidth; 7 | public int GridHeight; 8 | public LayerMask UnitLayerMask; 9 | public AbilityConfig[] AbilitiesConfigs; 10 | } 11 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/Configuration.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5197953023764b29b30603edbf1bb995 3 | timeCreated: 1649598234 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/GridService.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | sealed class GridService { 3 | public int CellSize = 3; 4 | 5 | readonly int[] _cells; 6 | readonly int _width; 7 | readonly int _height; 8 | 9 | public GridService (int width, int height) { 10 | _cells = new int[width * height]; 11 | _width = width; 12 | _height = height; 13 | } 14 | 15 | public (int, bool) GetCell (Int2 coords) { 16 | if (!InBounds (coords)) { 17 | return (-1, false); 18 | } 19 | 20 | var entity = _cells[_width * coords.Y + coords.X] - 1; 21 | return (entity, entity >= 0); 22 | } 23 | 24 | bool InBounds (Int2 coords) { 25 | return coords.X >= 0 && coords.Y >= 0; 26 | } 27 | 28 | public void AddCell (Int2 coords, int entity) { 29 | _cells[_width * coords.Y + coords.X] = entity + 1; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/GridService.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f85ced1ab46048d8ae9cb7cde8dd07cc 3 | timeCreated: 1649597643 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/Idents.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | static class Idents { 3 | public static class Input { 4 | public const string VerticalAxis = "Vertical"; 5 | public const string HorizontalAxis = "Horizontal"; 6 | } 7 | 8 | public static class Worlds { 9 | public const string Events = "Events"; 10 | } 11 | 12 | public static class Ui { 13 | public const string Forward = "Forward"; 14 | public const string Back = "Back"; 15 | public const string Left = "Left"; 16 | public const string Right = "Right"; 17 | public const string TouchListener = "TouchListener"; 18 | public const string Ability = "Ability"; 19 | public const string Abilities = "Abilities"; 20 | public const string PlayerAp = "PlayerAp"; 21 | public const string GameOverPopup = "GameOverPopup"; 22 | } 23 | 24 | public static class Paths { 25 | public const string Units = "Units/"; 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/Idents.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5063667055d426fbf7b037bf15ce9ca 3 | timeCreated: 1649932488 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/Rotating.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Client { 4 | struct Rotating { 5 | public Quaternion Target; 6 | } 7 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/Rotating.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f41f6b2f483140e687b0f04d740f3e2e 3 | timeCreated: 1649964398 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/RoundService.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | sealed class RoundService { 3 | public Side ActiveSide; 4 | public readonly int StateMax = 2; 5 | 6 | public int ActiveUnit; 7 | 8 | public RoundService (Side activeSide) { 9 | ActiveSide = activeSide; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/RoundService.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80a5203902784d86b738a3a36b3b9448 3 | timeCreated: 1654286962 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/SceneData.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Client { 4 | sealed class SceneData : MonoBehaviour { 5 | public CellView[] Cells; 6 | public SpawnMarker[] Markers; 7 | 8 | #if UNITY_EDITOR 9 | [ContextMenu ("Find Cells")] 10 | void FindCells () { 11 | Cells = FindObjectsOfType (); 12 | Debug.Log ($"Successfully found {Cells.Length} cells!"); 13 | } 14 | 15 | [ContextMenu ("Find Markers")] 16 | void FindMarkers () { 17 | Markers = FindObjectsOfType (); 18 | Debug.Log ($"Successfully found {Markers.Length} markers!"); 19 | } 20 | #endif 21 | } 22 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/SceneData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d29a6bc5d8d04a59a61ca74492bb5357 3 | timeCreated: 1649596529 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/TimeService.cs: -------------------------------------------------------------------------------- 1 | namespace Client { 2 | sealed class TimeService { 3 | public float Time; 4 | public float DeltaTime; 5 | public float UnscaledDeltaTime; 6 | public float UnscaledTime; 7 | } 8 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Services/TimeService.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e02f3a50dd04dd0b87623866b9cca09 3 | timeCreated: 1649597343 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ddae7421185299b42a42e635d75db256 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supremestranger/dungeon-crawler/122c560e3db543ea18046ac34ed36e22e743f05e/dungeon-crawler-unity/Assets/Client/Scripts/Systems/.gitkeep -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/AiCommandsSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d611b8645d1041e898d106bec7af14ba 3 | timeCreated: 1654429690 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/AiInitSystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using UnityEngine; 4 | 5 | namespace Client { 6 | sealed class AiInitSystem : IEcsInitSystem { 7 | readonly EcsCustomInject _sceneData = default; 8 | readonly EcsCustomInject _gs = default; 9 | readonly EcsCustomInject _config = default; 10 | readonly EcsCustomInject _ah = default; 11 | 12 | readonly EcsPoolInject _hasAbilitiesPool = default; 13 | readonly EcsPoolInject _abilityPool = default; 14 | 15 | readonly EcsPoolInject _cellPool = default; 16 | readonly EcsPoolInject _unitPool = default; 17 | 18 | public void Init (EcsSystems systems) { 19 | for (var i = 0; i < _sceneData.Value.Markers.Length; i++) { 20 | var marker = _sceneData.Value.Markers[i]; 21 | var asset = Resources.Load (Idents.Paths.Units + marker.PrefabName); 22 | var position = marker.Transform.position; 23 | var view = Object.Instantiate (asset, position, Quaternion.identity); 24 | 25 | var coords = new Int2 { 26 | X = (int) (position.x / _gs.Value.CellSize), 27 | Y = (int) (position.z / _gs.Value.CellSize) 28 | }; 29 | 30 | var unitEntity = _unitPool.Value.GetWorld ().NewEntity (); 31 | ref var unit = ref _unitPool.Value.Add (unitEntity); 32 | unit.Direction = 0; 33 | unit.CellCoords = coords; 34 | var transform = view.transform; 35 | unit.Transform = transform; 36 | unit.Position = transform.position; 37 | unit.Rotation = Quaternion.identity; 38 | unit.MoveSpeed = 3f; 39 | unit.RotateSpeed = 10f; 40 | unit.ActionPoints = 2; 41 | unit.Initiative = Random.Range (1, 10); 42 | unit.Health = 3; 43 | unit.Radius = 2; 44 | unit.Side = marker.Side; 45 | unit.View = view; 46 | 47 | var (cellEntity, ok) = _gs.Value.GetCell (coords); 48 | 49 | if (ok) { 50 | ref var cell = ref _cellPool.Value.Get (cellEntity); 51 | 52 | cell.Entity = unitEntity; 53 | } 54 | 55 | CreateAbilities (unitEntity, _unitPool.Value.GetWorld ()); 56 | } 57 | } 58 | 59 | void CreateAbilities (int entity, EcsWorld world) { 60 | ref var hasAbilities = ref _hasAbilitiesPool.Value.Add (entity); 61 | 62 | for (int i = 0; i < 3; i++) { 63 | var abilityConfig = _config.Value.AbilitiesConfigs[i]; 64 | var abilityEntity = world.NewEntity (); 65 | 66 | ref var ability = ref _abilityPool.Value.Add (abilityEntity); 67 | ability.ActionPointsCost = abilityConfig.ActionPointsCost; 68 | ability.OwnerEntity = entity; 69 | ability.Id = i; 70 | ability.Damage = abilityConfig.Damage; 71 | ability.Distance = abilityConfig.Distance; 72 | 73 | _ah.Value.GetAddComponentCallback (i)?.Invoke (world, abilityEntity); 74 | 75 | hasAbilities.Entities.Add (abilityEntity); 76 | } 77 | } 78 | } 79 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/AiInitSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a04f14ced2f47baab7bcab61d07eb73 3 | timeCreated: 1654288932 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/ApplyAbilitySystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using Leopotam.EcsLite.Unity.Ugui; 4 | using TMPro; 5 | using UnityEngine; 6 | 7 | namespace Client { 8 | sealed class ApplyAbilitySystem : IEcsRunSystem { 9 | readonly EcsFilterInject> _abilities = default; 10 | 11 | readonly EcsPoolInject _unitPool = default; 12 | readonly EcsPoolInject _cellPool = default; 13 | readonly EcsPoolInject _appliedPool = default; 14 | readonly EcsPoolInject _turnFinishedPool = default; 15 | readonly EcsPoolInject _nextUnitEventPool = Idents.Worlds.Events; 16 | 17 | readonly EcsCustomInject _gs = default; 18 | readonly EcsCustomInject _rs = default; 19 | 20 | [EcsUguiNamed (Idents.Ui.PlayerAp)] 21 | readonly TextMeshProUGUI _playerAp = default; 22 | 23 | public void Run (EcsSystems systems) { 24 | foreach (var entity in _abilities.Value) { 25 | ref var ability = ref _abilities.Pools.Inc1.Get (entity); 26 | ref var unit = ref _unitPool.Value.Get (ability.OwnerEntity); 27 | 28 | if (unit.Side != _rs.Value.ActiveSide) { 29 | continue; 30 | } 31 | 32 | var pos3d = Quaternion.Euler (0f, 90f * (int) unit.Direction, 0f) * Vector3.forward; 33 | var add = new Int2 (Mathf.RoundToInt (pos3d.x), Mathf.RoundToInt (pos3d.z)) * ability.Distance; 34 | 35 | var cellCoords = unit.CellCoords + add; 36 | var (cellEntity, ok) = _gs.Value.GetCell (cellCoords); 37 | 38 | if (ok) { 39 | ref var cell = ref _cellPool.Value.Get (cellEntity); 40 | if (unit.ActionPoints < ability.ActionPointsCost) { 41 | } 42 | if (cell.Entity != -1 && unit.ActionPoints >= ability.ActionPointsCost) { 43 | ref var applied = ref _appliedPool.Value.Add (entity); 44 | applied.Target = cell.Entity; 45 | unit.ActionPoints -= ability.ActionPointsCost; 46 | if (unit.ActionPoints == 0) { 47 | unit.ActionPoints = 2; 48 | _turnFinishedPool.Value.Add (ability.OwnerEntity); 49 | _nextUnitEventPool.Value.Add (_nextUnitEventPool.Value.GetWorld ().NewEntity ()); 50 | } 51 | 52 | if (unit.Side == Side.User) { 53 | _playerAp.text = unit.ActionPoints.ToString (); 54 | } 55 | } 56 | } 57 | } 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/ApplyAbilitySystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a0f51eb7ea814e86b4f31dfe7b42a215 3 | timeCreated: 1656081609 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/GridInitSystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | 4 | namespace Client { 5 | sealed class GridInitSystem : IEcsInitSystem { 6 | readonly EcsCustomInject _gs = default; 7 | readonly EcsCustomInject _sceneData = default; 8 | readonly EcsPoolInject _cellPool = default; 9 | 10 | public void Init (EcsSystems systems) { 11 | var world = _cellPool.Value.GetWorld (); 12 | for (var i = 0; i < _sceneData.Value.Cells.Length; i++) { 13 | var cellView = _sceneData.Value.Cells[i]; 14 | var entity = world.NewEntity (); 15 | ref var cell = ref _cellPool.Value.Add (entity); 16 | var position = cellView.transform.position; 17 | var x = (int) (position.x / cellView.Size); 18 | var y = (int) (position.z / cellView.Size); 19 | cell.View = cellView; 20 | cell.Entity = -1; 21 | _gs.Value.AddCell (new Int2 (x, y), entity); 22 | } 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/GridInitSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b062d6602614cd391f9352a3c9d819d 3 | timeCreated: 1649598228 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/HeavyAttackAbilitySystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using UnityEngine; 4 | 5 | namespace Client { 6 | sealed class HeavyAttackAbilitySystem : IEcsRunSystem { 7 | readonly EcsFilterInject> _heavyAttacksApplied = default; 8 | 9 | readonly EcsPoolInject _unitPool = default; 10 | readonly EcsPoolInject _abilityPool = default; 11 | readonly EcsPoolInject _deathEventPool = default; 12 | 13 | public void Run (EcsSystems systems) { 14 | foreach (var entity in _heavyAttacksApplied.Value) { 15 | Debug.Log ("Heavy attack"); 16 | ref var ability = ref _abilityPool.Value.Get (entity); 17 | ref var applied = ref _heavyAttacksApplied.Pools.Inc2.Get (entity); 18 | ref var unit = ref _unitPool.Value.Get (applied.Target); 19 | 20 | unit.Health -= ability.Damage; 21 | 22 | if (unit.Health <= 0) { 23 | _deathEventPool.Value.Add (applied.Target); 24 | } 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/HeavyAttackAbilitySystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 845c76850e8b4ba59ede046d72e85e68 3 | timeCreated: 1656361062 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/LightAttackAbilitySystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using UnityEngine; 4 | 5 | namespace Client { 6 | sealed class LightAttackAbilitySystem : IEcsRunSystem { 7 | readonly EcsFilterInject> _lightAttacksApplied = default; 8 | 9 | readonly EcsPoolInject _unitPool = default; 10 | readonly EcsPoolInject _abilityPool = default; 11 | readonly EcsPoolInject _deathEventPool = default; 12 | 13 | public void Run (EcsSystems systems) { 14 | foreach (var entity in _lightAttacksApplied.Value) { 15 | Debug.Log ("Light attack"); 16 | ref var ability = ref _abilityPool.Value.Get (entity); 17 | ref var applied = ref _lightAttacksApplied.Pools.Inc2.Get (entity); 18 | ref var unit = ref _unitPool.Value.Get (applied.Target); 19 | 20 | unit.Health -= ability.Damage; 21 | 22 | if (unit.Health <= 0) { 23 | _deathEventPool.Value.Add (applied.Target); 24 | } 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/LightAttackAbilitySystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: db17e880ea9b41139d698242767ce21d 3 | timeCreated: 1655929149 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/NextUnitTurnSystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | 4 | namespace Client { 5 | sealed class NextUnitTurnSystem : IEcsRunSystem { 6 | readonly EcsFilterInject> _nextUnitEvents = Idents.Worlds.Events; 7 | readonly EcsFilterInject, Exc> _activeUnits = default; 8 | readonly EcsFilterInject> _finishedUnits = default; 9 | 10 | readonly EcsCustomInject _rs = default; 11 | 12 | public void Run (EcsSystems systems) { 13 | foreach (var entity in _nextUnitEvents.Value) { 14 | var (newEntity, ok) = FindNewUnit (); 15 | 16 | if (ok) { 17 | // successfully found. 18 | _rs.Value.ActiveUnit = newEntity; 19 | } else { 20 | // reset "Finished" flag because we change active side 21 | var found = false; 22 | ClearFinishedFlag (); 23 | while (!found) { 24 | var newSide = ((int) _rs.Value.ActiveSide + 1) % _rs.Value.StateMax; 25 | _rs.Value.ActiveSide = (Side) newSide; 26 | var (anotherNewEntity, foundNewUnit) = FindNewUnit (); 27 | found = foundNewUnit; 28 | _rs.Value.ActiveUnit = anotherNewEntity; 29 | } 30 | } 31 | } 32 | } 33 | 34 | void ClearFinishedFlag () { 35 | foreach (var entity in _finishedUnits.Value) { 36 | _finishedUnits.Pools.Inc1.Del (entity); 37 | } 38 | } 39 | 40 | (int, bool) FindNewUnit () { 41 | var found = -1; 42 | var min = int.MaxValue; 43 | foreach (var entity in _activeUnits.Value) { 44 | ref var unit = ref _activeUnits.Pools.Inc1.Get (entity); 45 | 46 | if (unit.Initiative < min && unit.Side == _rs.Value.ActiveSide) { 47 | found = entity; 48 | } 49 | } 50 | 51 | return (found, found >= 0); 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/NextUnitTurnSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7d2b553abf14cea9561913e30009d60 3 | timeCreated: 1654371607 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/PlayerInitSystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using Leopotam.EcsLite.Unity.Ugui; 4 | using UnityEngine; 5 | 6 | namespace Client { 7 | sealed class PlayerInitSystem : IEcsInitSystem { 8 | readonly EcsPoolInject _unitPool = default; 9 | readonly EcsPoolInject _controlledByPlayerPool = default; 10 | readonly EcsPoolInject _hasAbilitiesPool = default; 11 | readonly EcsPoolInject _abilityPool = default; 12 | 13 | readonly EcsCustomInject _rs = default; 14 | readonly EcsCustomInject _config = default; 15 | readonly EcsCustomInject _ah = default; 16 | 17 | [EcsUguiNamed (Idents.Ui.Abilities)] 18 | readonly Transform _abilitiesLayoutGroup = default; 19 | [EcsUguiNamed (Idents.Ui.GameOverPopup)] 20 | readonly GameObject _popup = default; 21 | 22 | public void Init (EcsSystems systems) { 23 | var world = _unitPool.Value.GetWorld (); 24 | var playerEntity = world.NewEntity (); 25 | 26 | ref var unit = ref _unitPool.Value.Add (playerEntity); 27 | _controlledByPlayerPool.Value.Add (playerEntity); 28 | 29 | var playerPrefab = Resources.Load ("Player"); 30 | var playerView = Object.Instantiate (playerPrefab, Vector3.zero, Quaternion.identity); 31 | 32 | _rs.Value.ActiveUnit = playerEntity; 33 | 34 | unit.Direction = 0; 35 | unit.CellCoords = new Int2 (0, 0); 36 | unit.Transform = playerView.transform; 37 | unit.Position = Vector3.zero; 38 | unit.Rotation = Quaternion.identity; 39 | unit.MoveSpeed = 3f; 40 | unit.RotateSpeed = 10f; 41 | unit.ActionPoints = 2; 42 | unit.Health = 10; 43 | unit.Initiative = Random.Range (1, 10); 44 | unit.Side = Side.User; 45 | unit.View = playerView; 46 | 47 | CreateAbilities (playerEntity, world); 48 | _popup.SetActive (false); 49 | } 50 | 51 | void CreateAbilities (int playerEntity, EcsWorld world) { 52 | var abilityAsset = Resources.Load ("Ability"); 53 | ref var hasAbilities = ref _hasAbilitiesPool.Value.Add (playerEntity); 54 | 55 | for (int i = 0; i < 3; i++) { 56 | var abilityConfig = _config.Value.AbilitiesConfigs[i]; 57 | var abilityEntity = world.NewEntity (); 58 | 59 | ref var ability = ref _abilityPool.Value.Add (abilityEntity); 60 | ability.ActionPointsCost = abilityConfig.ActionPointsCost; 61 | ability.OwnerEntity = playerEntity; 62 | ability.Id = i; 63 | ability.Damage = abilityConfig.Damage; 64 | ability.Distance = abilityConfig.Distance; 65 | 66 | var abilityView = Object.Instantiate (abilityAsset, _abilitiesLayoutGroup); 67 | abilityView.Name.text = $"{abilityConfig.Name}\nCost: {abilityConfig.ActionPointsCost}"; 68 | abilityView.AbilityIdx = i; 69 | abilityView.KeyIdx.text = (i + 1).ToString(); 70 | _ah.Value.GetAddComponentCallback (i)?.Invoke (world, abilityEntity); 71 | 72 | hasAbilities.Entities.Add (abilityEntity); 73 | } 74 | } 75 | } 76 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/PlayerInitSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d469893f1683442e9d0652b3bcd47686 3 | timeCreated: 1649792830 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/PowerShotAbilitySystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using UnityEngine; 4 | 5 | namespace Client { 6 | sealed class PowerShotAbilitySystem : IEcsRunSystem { 7 | readonly EcsFilterInject> _powerShotsApplied = default; 8 | 9 | readonly EcsPoolInject _unitPool = default; 10 | readonly EcsPoolInject _abilityPool = default; 11 | readonly EcsPoolInject _deathEventPool = default; 12 | 13 | public void Run (EcsSystems systems) { 14 | foreach (var entity in _powerShotsApplied.Value) { 15 | Debug.Log ("Power shot applied."); 16 | ref var ability = ref _abilityPool.Value.Get (entity); 17 | ref var applied = ref _powerShotsApplied.Pools.Inc2.Get (entity); 18 | ref var unit = ref _unitPool.Value.Get (applied.Target); 19 | 20 | unit.Health -= ability.Damage; 21 | 22 | if (unit.Health <= 0) { 23 | _deathEventPool.Value.Add (applied.Target); 24 | } 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/PowerShotAbilitySystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f10d3aaac8f4896abebb77afd54150d 3 | timeCreated: 1656424877 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/TimeSystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using UnityEngine; 4 | 5 | namespace Client { 6 | sealed class TimeSystem : IEcsRunSystem { 7 | readonly EcsCustomInject _ts = default; 8 | 9 | public void Run (EcsSystems systems) { 10 | _ts.Value.Time = Time.time; 11 | _ts.Value.UnscaledTime = Time.unscaledTime; 12 | _ts.Value.DeltaTime = Time.deltaTime; 13 | _ts.Value.UnscaledDeltaTime = Time.unscaledDeltaTime; 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/TimeSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f73fdcf6f68d47f19099e8edb2440a56 3 | timeCreated: 1649597778 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UnitDeathSystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using Leopotam.EcsLite.Unity.Ugui; 4 | using UnityEngine; 5 | 6 | namespace Client { 7 | sealed class UnitDeathSystem : IEcsRunSystem { 8 | readonly EcsFilterInject> _deadUnits = default; 9 | 10 | readonly EcsPoolInject _cellPool = default; 11 | readonly EcsPoolInject _unitPool = default; 12 | 13 | readonly EcsCustomInject _gs = default; 14 | readonly EcsCustomInject _rs = default; 15 | 16 | [EcsUguiNamed (Idents.Ui.GameOverPopup)] 17 | readonly GameObject _popup = default; 18 | 19 | public void Run (EcsSystems systems) { 20 | foreach (var entity in _deadUnits.Value) { 21 | ref var unit = ref _deadUnits.Pools.Inc1.Get (entity); 22 | 23 | switch (unit.Side) { 24 | case Side.Enemy: 25 | var (cellEntity, ok) = _gs.Value.GetCell (unit.CellCoords); 26 | 27 | if (ok) { 28 | ref var cell = ref _cellPool.Value.Get (cellEntity); 29 | cell.Entity = -1; 30 | } 31 | 32 | unit.View.DieAnim (); 33 | break; 34 | case Side.User: 35 | var (cellEntity2, ok2) = _gs.Value.GetCell (unit.CellCoords); 36 | 37 | if (ok2) { 38 | ref var cell = ref _cellPool.Value.Get (cellEntity2); 39 | cell.Entity = -1; 40 | } 41 | 42 | _popup.SetActive (true); 43 | break; 44 | } 45 | 46 | _unitPool.Value.GetWorld ().DelEntity (entity); 47 | } 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UnitDeathSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3899c61635fe43a5b389102ba6da1a73 3 | timeCreated: 1656414190 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UnitMoveSystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using Leopotam.EcsLite.Unity.Ugui; 4 | using TMPro; 5 | using UnityEngine; 6 | 7 | namespace Client { 8 | sealed class UnitMoveSystem : IEcsRunSystem { 9 | readonly EcsFilterInject> _movingUnits = default; 10 | 11 | readonly EcsPoolInject _animatingPool = default; 12 | readonly EcsPoolInject _turnFinishedPool = default; 13 | readonly EcsPoolInject _nextUnitEventPool = Idents.Worlds.Events; 14 | 15 | readonly EcsCustomInject _ts = default; 16 | 17 | [EcsUguiNamed (Idents.Ui.PlayerAp)] 18 | readonly TextMeshProUGUI _playerAp = default; 19 | 20 | const float DistanceToStop = 0.001f; 21 | 22 | public void Run (EcsSystems systems) { 23 | foreach (var entity in _movingUnits.Value) { 24 | ref var unit = ref _movingUnits.Pools.Inc1.Get (entity); 25 | ref var move = ref _movingUnits.Pools.Inc2.Get (entity); 26 | 27 | unit.Position = Vector3.Lerp (unit.Position, move.Point, unit.MoveSpeed * _ts.Value.DeltaTime); 28 | 29 | if ((unit.Position - move.Point).sqrMagnitude <= DistanceToStop) { 30 | unit.Position = move.Point; 31 | _animatingPool.Value.Del (entity); 32 | _movingUnits.Pools.Inc2.Del (entity); 33 | if (unit.ActionPoints == 0) { 34 | unit.ActionPoints = 2; 35 | if (unit.Side == Side.User) { 36 | _playerAp.text = unit.ActionPoints.ToString (); 37 | } 38 | _turnFinishedPool.Value.Add (entity); 39 | _nextUnitEventPool.Value.Add (_nextUnitEventPool.Value.GetWorld ().NewEntity ()); 40 | } 41 | } 42 | 43 | unit.Transform.localPosition = unit.Position; 44 | } 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UnitMoveSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d52ddc1cb1f4466ba710af391874f3c4 3 | timeCreated: 1649879906 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UnitRotateSystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using UnityEngine; 4 | 5 | namespace Client { 6 | sealed class UnitRotateSystem : IEcsRunSystem { 7 | readonly EcsFilterInject> _rotatingUnits = default; 8 | 9 | readonly EcsPoolInject _animatedPool = default; 10 | 11 | readonly EcsCustomInject _ts = default; 12 | 13 | const float DiffToStop = 0.001f; 14 | 15 | public void Run (EcsSystems systems) { 16 | foreach (var entity in _rotatingUnits.Value) { 17 | ref var unit = ref _rotatingUnits.Pools.Inc1.Get (entity); 18 | ref var rotate = ref _rotatingUnits.Pools.Inc2.Get (entity); 19 | 20 | unit.Rotation = Quaternion.Lerp (unit.Rotation, rotate.Target, _ts.Value.DeltaTime * unit.RotateSpeed); 21 | 22 | if ((unit.Rotation.eulerAngles - rotate.Target.eulerAngles).sqrMagnitude <= DiffToStop) { 23 | unit.Rotation = rotate.Target; 24 | _animatedPool.Value.Del (entity); 25 | _rotatingUnits.Pools.Inc2.Del (entity); 26 | } 27 | 28 | unit.Transform.localRotation = unit.Rotation; 29 | } 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UnitRotateSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97e118f1b05c4d2e9cc7a49008cb3f7b 3 | timeCreated: 1649964686 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UnitStartMovingSystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using Leopotam.EcsLite.Unity.Ugui; 4 | using TMPro; 5 | using UnityEngine; 6 | 7 | namespace Client { 8 | sealed class UnitStartMovingSystem : IEcsRunSystem { 9 | readonly EcsFilterInject, Exc> _units = default; 10 | 11 | readonly EcsPoolInject _animatingPool = default; 12 | readonly EcsPoolInject _movingPool = default; 13 | readonly EcsPoolInject _cellPool = default; 14 | 15 | readonly EcsCustomInject _gs = default; 16 | readonly EcsCustomInject _rs = default; 17 | 18 | [EcsUguiNamed (Idents.Ui.PlayerAp)] 19 | readonly TextMeshProUGUI _playerAp = default; 20 | 21 | public void Run (EcsSystems systems) { 22 | foreach (var entity in _units.Value) { 23 | ref var unit = ref _units.Pools.Inc1.Get (entity); 24 | 25 | if (unit.Side != _rs.Value.ActiveSide) { 26 | continue; 27 | } 28 | 29 | ref var cmd = ref _units.Pools.Inc2.Get (entity); 30 | 31 | var step = cmd.Backwards ? -1 : 1; 32 | 33 | var pos3d = Quaternion.Euler (0f, 90f * (int) unit.Direction, 0f) * Vector3.forward; 34 | var newCellCoords = unit.CellCoords + new Int2 (Mathf.RoundToInt (pos3d.x), Mathf.RoundToInt (pos3d.z)) * step; 35 | 36 | var (newCell, ok) = _gs.Value.GetCell (newCellCoords); 37 | if (ok) { 38 | ref var cell = ref _cellPool.Value.Get (newCell); 39 | 40 | if (cell.Entity != -1) { 41 | continue; 42 | } 43 | 44 | var (curCellEntity, _) = _gs.Value.GetCell (unit.CellCoords); 45 | ref var curCell = ref _cellPool.Value.Get (curCellEntity); 46 | curCell.Entity = -1; 47 | 48 | cell.Entity = entity; 49 | _animatingPool.Value.Add (entity); 50 | ref var moving = ref _movingPool.Value.Add (entity); 51 | moving.Point = cell.View.Transform.localPosition; 52 | unit.CellCoords = newCellCoords; 53 | 54 | unit.ActionPoints--; 55 | if (unit.Side == Side.User) { 56 | _playerAp.text = unit.ActionPoints.ToString (); 57 | } 58 | } 59 | } 60 | } 61 | } 62 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UnitStartMovingSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cafd974c408648b4976be65cb7869d39 3 | timeCreated: 1649800913 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UnitStartRotatingSystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using UnityEngine; 4 | 5 | namespace Client { 6 | sealed class UnitStartRotatingSystem : IEcsRunSystem { 7 | readonly EcsFilterInject, Exc> _units = default; 8 | 9 | readonly EcsPoolInject _animatedPool = default; 10 | readonly EcsPoolInject _rotatingPool = default; 11 | 12 | public void Run (EcsSystems systems) { 13 | foreach (var entity in _units.Value) { 14 | ref var unit = ref _units.Pools.Inc1.Get (entity); 15 | ref var rot = ref _units.Pools.Inc2.Get (entity); 16 | 17 | var newDir = (int) unit.Direction + rot.Side; 18 | if (newDir == -1) { 19 | newDir += 4; 20 | } 21 | newDir %= 4; 22 | unit.Direction = (Direction) newDir; 23 | var actualDir = Quaternion.Euler (0f, 90f * (int) unit.Direction, 0f); 24 | ref var rotating = ref _rotatingPool.Value.Add (entity); 25 | _animatedPool.Value.Add (entity); 26 | rotating.Target = actualDir; 27 | } 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UnitStartRotatingSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69f50a58ec46443aa4109e1c08956b9a 3 | timeCreated: 1649964354 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UserButtonsInputSystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite.Di; 2 | using Leopotam.EcsLite.Unity.Ugui; 3 | using UnityEngine; 4 | using UnityEngine.Scripting; 5 | 6 | namespace Client { 7 | sealed class UserButtonsInputSystem : EcsUguiCallbackSystem { 8 | readonly EcsFilterInject> _units = default; 9 | 10 | readonly EcsPoolInject _moveCommandPool = default; 11 | readonly EcsPoolInject _rotateCommandPool = default; 12 | readonly EcsPoolInject _hasAbilitiesPool = default; 13 | readonly EcsPoolInject _abilityPool = default; 14 | readonly EcsPoolInject _applyPool = default; 15 | 16 | readonly EcsCustomInject _ah = default; 17 | 18 | [Preserve] 19 | [EcsUguiClickEvent (Idents.Ui.Forward, Idents.Worlds.Events)] 20 | void OnClickForward (in EcsUguiClickEvent e) { 21 | foreach (var entity in _units.Value) { 22 | _moveCommandPool.Value.Add (entity); 23 | } 24 | } 25 | 26 | [Preserve] 27 | [EcsUguiClickEvent (Idents.Ui.Back, Idents.Worlds.Events)] 28 | void OnClickBack (in EcsUguiClickEvent e) { 29 | foreach (var entity in _units.Value) { 30 | ref var moveCmd = ref _moveCommandPool.Value.Add (entity); 31 | moveCmd.Backwards = true; 32 | break; 33 | } 34 | } 35 | 36 | [Preserve] 37 | [EcsUguiClickEvent (Idents.Ui.Left, Idents.Worlds.Events)] 38 | void OnClickLeft (in EcsUguiClickEvent e) { 39 | foreach (var entity in _units.Value) { 40 | ref var rotCmd = ref _rotateCommandPool.Value.Add (entity); 41 | rotCmd.Side = -1; 42 | } 43 | } 44 | 45 | [Preserve] 46 | [EcsUguiClickEvent (Idents.Ui.Right, Idents.Worlds.Events)] 47 | void OnClickRight (in EcsUguiClickEvent e) { 48 | foreach (var entity in _units.Value) { 49 | ref var rotCmd = ref _rotateCommandPool.Value.Add (entity); 50 | rotCmd.Side = 1; 51 | } 52 | } 53 | 54 | [Preserve] 55 | [EcsUguiClickEvent (Idents.Ui.Ability, Idents.Worlds.Events)] 56 | void OnClickAbility (in EcsUguiClickEvent e) { 57 | var abilityView = e.Sender.GetComponent (); 58 | foreach (var entity in _units.Value) { 59 | ref var abilities = ref _hasAbilitiesPool.Value.Get (entity); 60 | var abilityEntity = abilities.Entities[abilityView.AbilityIdx]; 61 | ref var ability = ref _abilityPool.Value.Get (abilityEntity); 62 | ref var unit = ref _units.Pools.Inc1.Get (entity); 63 | var dmg = _ah.Value.GetValidateCallback (ability.Id).Invoke (unit, ability.Damage); 64 | if (dmg != 0 && unit.ActionPoints >= ability.ActionPointsCost) { 65 | _applyPool.Value.Add (abilityEntity); 66 | } 67 | } 68 | } 69 | } 70 | } 71 | 72 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UserButtonsInputSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e60f19a508b14c3b9c2c001b464951c5 3 | timeCreated: 1649934617 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UserKeyboardInputSystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite; 2 | using Leopotam.EcsLite.Di; 3 | using UnityEngine; 4 | 5 | namespace Client { 6 | sealed class UserKeyboardInputSystem : IEcsRunSystem { 7 | readonly EcsFilterInject> _units = default; 8 | 9 | readonly EcsPoolInject _moveCommandPool = default; 10 | readonly EcsPoolInject _rotateCommandPool = default; 11 | readonly EcsPoolInject _hasAbilitiesPool = default; 12 | readonly EcsPoolInject _applyPool = default; 13 | readonly EcsPoolInject _turnFinishedPool = default; 14 | readonly EcsPoolInject _nextUnitEventPool = Idents.Worlds.Events; 15 | readonly EcsPoolInject _abilityPool = default; 16 | 17 | readonly EcsCustomInject _ah = default; 18 | 19 | public void Run (EcsSystems systems) { 20 | foreach (var entity in _units.Value) { 21 | ref var unit = ref _units.Pools.Inc1.Get (entity); 22 | var vertInput = Input.GetAxisRaw (Idents.Input.VerticalAxis); 23 | var horizInput = Input.GetAxisRaw (Idents.Input.HorizontalAxis); 24 | 25 | switch (vertInput) { 26 | case 1f: 27 | _moveCommandPool.Value.Add (entity); 28 | break; 29 | case -1f: 30 | ref var moveCmd = ref _moveCommandPool.Value.Add (entity); 31 | moveCmd.Backwards = true; 32 | break; 33 | } 34 | 35 | if (horizInput != 0f) { 36 | ref var rotCmd = ref _rotateCommandPool.Value.Add (entity); 37 | rotCmd.Side = (int) horizInput; 38 | } 39 | 40 | if (Input.GetKeyDown (KeyCode.Alpha1)) { 41 | TryApplyAbility (0, entity, unit); 42 | } 43 | 44 | if (Input.GetKeyDown (KeyCode.Alpha2)) { 45 | TryApplyAbility (1, entity, unit); 46 | } 47 | 48 | if (Input.GetKeyDown (KeyCode.Alpha3)) { 49 | TryApplyAbility (2, entity, unit); 50 | } 51 | 52 | if (Input.GetKeyDown (KeyCode.Space) && !_turnFinishedPool.Value.Has (entity)) { 53 | Debug.Break (); 54 | unit.ActionPoints = 2; 55 | _turnFinishedPool.Value.Add (entity); 56 | _nextUnitEventPool.Value.Add (_nextUnitEventPool.Value.GetWorld ().NewEntity ()); 57 | } 58 | } 59 | } 60 | 61 | void TryApplyAbility (int abilityIdx, int entity, in Unit unit) { 62 | ref var abilities = ref _hasAbilitiesPool.Value.Get (entity); 63 | 64 | var abilityEntity = abilities.Entities[abilityIdx]; 65 | ref var ability = ref _abilityPool.Value.Get (abilityEntity); 66 | 67 | var dmg = _ah.Value.GetValidateCallback (ability.Id).Invoke (unit, ability.Damage); 68 | if (dmg != 0 && unit.ActionPoints >= ability.ActionPointsCost) { 69 | _applyPool.Value.Add (abilityEntity); 70 | } 71 | } 72 | } 73 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UserKeyboardInputSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13ee19f370c14d089aac4e25eb17e28d 3 | timeCreated: 1649794327 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UserSwipeInputSystem.cs: -------------------------------------------------------------------------------- 1 | using Leopotam.EcsLite.Di; 2 | using Leopotam.EcsLite.Unity.Ugui; 3 | using UnityEngine; 4 | using UnityEngine.Scripting; 5 | 6 | namespace Client { 7 | sealed class UserSwipeInputSystem : EcsUguiCallbackSystem { 8 | readonly EcsFilterInject> _units = default; 9 | 10 | readonly EcsPoolInject _moveCommandPool = default; 11 | readonly EcsPoolInject _rotateCommandPool = default; 12 | 13 | const float MinSwipeMagnitude = 0.2f; 14 | 15 | Vector2 _lastTouchPos = default; 16 | 17 | [Preserve] 18 | [EcsUguiDownEvent (Idents.Ui.TouchListener, Idents.Worlds.Events)] 19 | void OnDownTouchListener (in EcsUguiDownEvent e) { 20 | _lastTouchPos = e.Position; 21 | } 22 | 23 | [Preserve] 24 | [EcsUguiUpEvent (Idents.Ui.TouchListener, Idents.Worlds.Events)] 25 | void OnUpTouchListener (in EcsUguiUpEvent e) { 26 | var swipe = e.Position - _lastTouchPos; 27 | var swipeHorizontal = swipe.x / Screen.width; 28 | var swipeVertical = swipe.y / Screen.height; 29 | 30 | if (Mathf.Abs (swipeVertical) >= MinSwipeMagnitude) { 31 | foreach (var entity in _units.Value) { 32 | ref var moveCmd = ref _moveCommandPool.Value.Add (entity); 33 | moveCmd.Backwards = swipeVertical < 0f; 34 | break; 35 | } 36 | } else if (Mathf.Abs (swipeHorizontal) >= MinSwipeMagnitude) { 37 | foreach (var entity in _units.Value) { 38 | ref var rotCmd = ref _rotateCommandPool.Value.Add (entity); 39 | var side = swipeHorizontal > 0f ? 1 : -1; 40 | rotCmd.Side = side; 41 | } 42 | } 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Systems/UserSwipeInputSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b4691f6a5564d64b8957700d74434b8 3 | timeCreated: 1649962222 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Views.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0ff3ebe5e0871a4287f0b71f9129817 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Views/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supremestranger/dungeon-crawler/122c560e3db543ea18046ac34ed36e22e743f05e/dungeon-crawler-unity/Assets/Client/Scripts/Views/.gitkeep -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Views/AbilityView.cs: -------------------------------------------------------------------------------- 1 | using TMPro; 2 | using UnityEngine; 3 | 4 | namespace Client { 5 | sealed class AbilityView : MonoBehaviour { 6 | // Ability index for owner. 7 | public int AbilityIdx; 8 | public TextMeshProUGUI Name; 9 | public TextMeshProUGUI KeyIdx; 10 | } 11 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Views/AbilityView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f76f75fcf92a42d08e2bf35030d24edd 3 | timeCreated: 1655928126 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Views/CellView.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | namespace Client { 5 | #if UNITY_EDITOR 6 | [ExecuteAlways] 7 | [SelectionBase] 8 | #endif 9 | sealed class CellView : MonoBehaviour { 10 | public Transform Transform; 11 | public float Size = 3f; 12 | 13 | #if UNITY_EDITOR 14 | void Awake () { 15 | Transform = transform; 16 | } 17 | 18 | void OnDrawGizmos () { 19 | var selected = Selection.Contains (gameObject); 20 | Gizmos.color = selected ? Color.green : Color.cyan; 21 | var yAdd = selected ? 0.02f : 0f; 22 | var curPos = Transform.localPosition; 23 | var leftDown = curPos - Vector3.right * Size / 2 - Vector3.forward * Size / 2 + Vector3.up * yAdd; 24 | var leftUp = curPos - Vector3.right * Size / 2 + Vector3.forward * Size / 2 + Vector3.up * yAdd; 25 | var rightDown = curPos + Vector3.right * Size / 2 - Vector3.forward * Size / 2 + Vector3.up * yAdd; 26 | var rightUp = curPos + Vector3.right * Size / 2 + Vector3.forward * Size / 2 + Vector3.up * yAdd; 27 | Gizmos.DrawLine (leftDown, leftUp); 28 | Gizmos.DrawLine (leftUp, rightUp); 29 | Gizmos.DrawLine (rightUp, rightDown); 30 | Gizmos.DrawLine (rightDown, leftDown); 31 | Gizmos.DrawSphere (curPos, 0.1f); 32 | } 33 | #endif 34 | } 35 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Views/CellView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f8e8e524d6c4950b0609e82e403e70d 3 | timeCreated: 1654344059 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Views/SnapTransform.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Client { 4 | #if UNITY_EDITOR 5 | [ExecuteAlways] 6 | [SelectionBase] 7 | #endif 8 | sealed class SnapTransform : MonoBehaviour { 9 | public Transform Transform; 10 | public float XzStep = 3f; 11 | public float YStep = 1f; 12 | 13 | #if UNITY_EDITOR 14 | void Awake () { 15 | Transform = transform; 16 | } 17 | 18 | void Update () { 19 | if (!Application.isPlaying && Transform.hasChanged) { 20 | var newPos = Vector3.zero; 21 | var curPos = Transform.localPosition; 22 | newPos.x = Mathf.RoundToInt (curPos.x / XzStep) * XzStep; 23 | newPos.z = Mathf.RoundToInt (curPos.z / XzStep) * XzStep; 24 | newPos.y = Mathf.RoundToInt (curPos.y / YStep) * YStep; 25 | Transform.localPosition = newPos; 26 | } 27 | } 28 | #endif 29 | } 30 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Views/SnapTransform.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52371c1b09759e04f8b4a0c464f27593 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Views/SpawnMarker.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Client { 4 | sealed class SpawnMarker : MonoBehaviour { 5 | public Transform Transform; 6 | public string PrefabName; 7 | public Side Side; 8 | 9 | public void Awake () { 10 | Transform = transform; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Views/SpawnMarker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5af2c7e8aba74a93a54d0e65c55a5310 3 | timeCreated: 1654292457 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Views/UnitView.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Client { 4 | sealed class UnitView : MonoBehaviour { 5 | public Animator Animator; 6 | 7 | public void DieAnim () { 8 | Animator.SetTrigger ("Dead"); 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/Client/Scripts/Views/UnitView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 712e418cfc734fdaa41dad49fd0c3a82 3 | timeCreated: 1656414855 -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f54d1bd14bd3ca042bd867b519fee8cc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Documentation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e7e8f5a82a3a134e91c54efd2274ea9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supremestranger/dungeon-crawler/122c560e3db543ea18046ac34ed36e22e743f05e/dungeon-crawler-unity/Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b8d251f9af63b746bf2f7ffe00ebb9b 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Fonts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ab70aee4d56447429c680537fbf93ed 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt: -------------------------------------------------------------------------------- 1 | Digitized data copyright (c) 2010 Google Corporation 2 | with Reserved Font Arimo, Tinos and Cousine. 3 | Copyright (c) 2012 Red Hat, Inc. 4 | with Reserved Font Name Liberation. 5 | 6 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 7 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 8 | 9 | ----------------------------------------------------------- 10 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 11 | ----------------------------------------------------------- 12 | 13 | PREAMBLE 14 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. 15 | 16 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. 17 | 18 | DEFINITIONS 19 | "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. 20 | 21 | "Reserved Font Name" refers to any names specified as such after the copyright statement(s). 22 | 23 | "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). 24 | 25 | "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. 26 | 27 | "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. 28 | 29 | PERMISSION & CONDITIONS 30 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 31 | 32 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 33 | 34 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 35 | 36 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 37 | 38 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 39 | 40 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. 41 | 42 | TERMINATION 43 | This license becomes null and void if any of the above conditions are not met. 44 | 45 | DISCLAIMER 46 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e59c59b81ab47f9b6ec5781fa725d2c 3 | timeCreated: 1484171296 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Fonts/LiberationSans.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supremestranger/dungeon-crawler/122c560e3db543ea18046ac34ed36e22e743f05e/dungeon-crawler-unity/Assets/TextMesh Pro/Fonts/LiberationSans.ttf -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Fonts/LiberationSans.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3265ab4bf004d28a9537516768c1c75 3 | timeCreated: 1484171297 4 | licenseType: Pro 5 | TrueTypeFontImporter: 6 | serializedVersion: 2 7 | fontSize: 16 8 | forceTextureCase: -2 9 | characterSpacing: 1 10 | characterPadding: 0 11 | includeFontData: 1 12 | use2xBehaviour: 0 13 | fontNames: [] 14 | fallbackFontReferences: [] 15 | customCharacters: 16 | fontRenderingMode: 0 17 | userData: 18 | assetBundleName: 19 | assetBundleVariant: 20 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 243e06394e614e5d99fab26083b707fa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/Fonts & Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 731f1baa9d144a9897cb1d341c2092b8 3 | folderAsset: yes 4 | timeCreated: 1442040525 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: LiberationSans SDF - Drop Shadow 11 | m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3} 12 | m_ShaderKeywords: OUTLINE_ON UNDERLAY_ON 13 | m_LightmapFlags: 5 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _Cube: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _FaceTex: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _MainTex: 35 | m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee, 36 | type: 2} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | - _OutlineTex: 40 | m_Texture: {fileID: 0} 41 | m_Scale: {x: 1, y: 1} 42 | m_Offset: {x: 0, y: 0} 43 | m_Floats: 44 | - _Ambient: 0.5 45 | - _Bevel: 0.5 46 | - _BevelClamp: 0 47 | - _BevelOffset: 0 48 | - _BevelRoundness: 0 49 | - _BevelWidth: 0 50 | - _BumpFace: 0 51 | - _BumpOutline: 0 52 | - _ColorMask: 15 53 | - _Diffuse: 0.5 54 | - _DiffusePower: 1 55 | - _FaceDilate: 0.1 56 | - _FaceUVSpeedX: 0 57 | - _FaceUVSpeedY: 0 58 | - _GlowInner: 0.05 59 | - _GlowOffset: 0 60 | - _GlowOuter: 0.05 61 | - _GlowPower: 0.75 62 | - _GradientScale: 10 63 | - _LightAngle: 3.1416 64 | - _MaskSoftnessX: 0 65 | - _MaskSoftnessY: 0 66 | - _OutlineSoftness: 0 67 | - _OutlineUVSpeedX: 0 68 | - _OutlineUVSpeedY: 0 69 | - _OutlineWidth: 0.1 70 | - _PerspectiveFilter: 0.875 71 | - _Reflectivity: 10 72 | - _ScaleRatioA: 0.9 73 | - _ScaleRatioB: 0.73125 74 | - _ScaleRatioC: 0.64125 75 | - _ScaleX: 1 76 | - _ScaleY: 1 77 | - _ShaderFlags: 0 78 | - _Sharpness: 0 79 | - _SpecularPower: 2 80 | - _Stencil: 0 81 | - _StencilComp: 8 82 | - _StencilOp: 0 83 | - _StencilReadMask: 255 84 | - _StencilWriteMask: 255 85 | - _TextureHeight: 1024 86 | - _TextureWidth: 1024 87 | - _UnderlayDilate: 0 88 | - _UnderlayOffsetX: 0.5 89 | - _UnderlayOffsetY: -0.5 90 | - _UnderlaySoftness: 0.05 91 | - _VertexOffsetX: 0 92 | - _VertexOffsetY: 0 93 | - _WeightBold: 0.75 94 | - _WeightNormal: 0 95 | m_Colors: 96 | - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} 97 | - _Color: {r: 1, g: 1, b: 1, a: 1} 98 | - _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0} 99 | - _FaceColor: {r: 1, g: 1, b: 1, a: 1} 100 | - _GlowColor: {r: 0, g: 1, b: 0, a: 0.5} 101 | - _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767} 102 | - _OutlineColor: {r: 0, g: 0, b: 0, a: 1} 103 | - _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1} 104 | - _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1} 105 | - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} 106 | - _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5} 107 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e73a58f6e2794ae7b1b7e50b7fb811b0 3 | timeCreated: 1484172806 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e498d1c8094910479dc3e1b768306a4 3 | timeCreated: 1484171803 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: LiberationSans SDF - Outline 11 | m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3} 12 | m_ShaderKeywords: OUTLINE_ON 13 | m_LightmapFlags: 5 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _Cube: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _FaceTex: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _MainTex: 35 | m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee, 36 | type: 2} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | - _OutlineTex: 40 | m_Texture: {fileID: 0} 41 | m_Scale: {x: 1, y: 1} 42 | m_Offset: {x: 0, y: 0} 43 | m_Floats: 44 | - _Ambient: 0.5 45 | - _Bevel: 0.5 46 | - _BevelClamp: 0 47 | - _BevelOffset: 0 48 | - _BevelRoundness: 0 49 | - _BevelWidth: 0 50 | - _BumpFace: 0 51 | - _BumpOutline: 0 52 | - _ColorMask: 15 53 | - _Diffuse: 0.5 54 | - _FaceDilate: 0.1 55 | - _FaceUVSpeedX: 0 56 | - _FaceUVSpeedY: 0 57 | - _GlowInner: 0.05 58 | - _GlowOffset: 0 59 | - _GlowOuter: 0.05 60 | - _GlowPower: 0.75 61 | - _GradientScale: 10 62 | - _LightAngle: 3.1416 63 | - _MaskSoftnessX: 0 64 | - _MaskSoftnessY: 0 65 | - _OutlineSoftness: 0 66 | - _OutlineUVSpeedX: 0 67 | - _OutlineUVSpeedY: 0 68 | - _OutlineWidth: 0.1 69 | - _PerspectiveFilter: 0.875 70 | - _Reflectivity: 10 71 | - _ScaleRatioA: 0.9 72 | - _ScaleRatioB: 0.73125 73 | - _ScaleRatioC: 0.64125 74 | - _ScaleX: 1 75 | - _ScaleY: 1 76 | - _ShaderFlags: 0 77 | - _Sharpness: 0 78 | - _SpecularPower: 2 79 | - _Stencil: 0 80 | - _StencilComp: 8 81 | - _StencilOp: 0 82 | - _StencilReadMask: 255 83 | - _StencilWriteMask: 255 84 | - _TextureHeight: 1024 85 | - _TextureWidth: 1024 86 | - _UnderlayDilate: 0 87 | - _UnderlayOffsetX: 0 88 | - _UnderlayOffsetY: 0 89 | - _UnderlaySoftness: 0 90 | - _VertexOffsetX: 0 91 | - _VertexOffsetY: 0 92 | - _WeightBold: 0.75 93 | - _WeightNormal: 0 94 | m_Colors: 95 | - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} 96 | - _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0} 97 | - _FaceColor: {r: 1, g: 1, b: 1, a: 1} 98 | - _GlowColor: {r: 0, g: 1, b: 0, a: 0.5} 99 | - _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767} 100 | - _OutlineColor: {r: 0, g: 0, b: 0, a: 1} 101 | - _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1} 102 | - _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1} 103 | - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} 104 | - _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5} 105 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79459efec17a4d00a321bdcc27bbc385 3 | timeCreated: 1484172856 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f586378b4e144a9851e7b34d9b748ee 3 | timeCreated: 1484171803 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt: -------------------------------------------------------------------------------- 1 | )]}〕〉》」』】〙〗〟’”⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、%,.:;。!?]):;=}¢°"†‡℃〆%,. -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fade42e8bc714b018fac513c043d323b 3 | timeCreated: 1425440388 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt: -------------------------------------------------------------------------------- 1 | ([{〔〈《「『【〘〖〝‘“⦅«$—…‥〳〴〵\[({£¥"々〇$¥₩ # -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d82c1b31c7e74239bff1220585707d2b 3 | timeCreated: 1425440388 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/Sprite Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 512a49d95c0c4332bdd98131869c23c9 3 | folderAsset: yes 4 | timeCreated: 1441876896 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/Sprite Assets/EmojiOne.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c41005c129ba4d66911b75229fd70b45 3 | timeCreated: 1480316912 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/Style Sheets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4aecb92fff08436c8303b10eab8da368 3 | folderAsset: yes 4 | timeCreated: 1441876950 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/Style Sheets/Default Style Sheet.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 11500000, guid: ab2114bdc8544297b417dfefe9f1e410, type: 3} 12 | m_Name: Default Style Sheet 13 | m_EditorClassIdentifier: 14 | m_StyleList: 15 | - m_Name: H1 16 | m_HashCode: 2425 17 | m_OpeningDefinition: <#40ff80>* 18 | m_ClosingDefinition: '*' 19 | m_OpeningTagArray: 3c00000073000000690000007a000000650000003d00000032000000650000006d0000003e0000003c000000620000003e0000003c000000230000003400000030000000660000006600000038000000300000003e0000002a000000 20 | m_ClosingTagArray: 2a0000003c0000002f00000073000000690000007a000000650000003e0000003c0000002f000000620000003e0000003c0000002f000000630000006f0000006c0000006f000000720000003e000000 21 | - m_Name: Quote 22 | m_HashCode: 92254330 23 | m_OpeningDefinition: 24 | m_ClosingDefinition: 25 | m_OpeningTagArray: 3c000000690000003e0000003c00000073000000690000007a000000650000003d0000003700000035000000250000003e0000003c0000006d000000610000007200000067000000690000006e0000003d0000003100000030000000250000003e000000 26 | m_ClosingTagArray: 3c0000002f000000690000003e0000003c0000002f00000073000000690000007a000000650000003e0000003c0000002f00000077000000690000006400000074000000680000003e0000003c0000002f0000006d000000610000007200000067000000690000006e0000003e000000 27 | - m_Name: Link 28 | m_HashCode: 2687968 29 | m_OpeningDefinition: <#40a0ff> 30 | m_ClosingDefinition: 31 | m_OpeningTagArray: 3c000000750000003e0000003c000000230000003400000030000000610000003000000066000000660000003e0000003c0000006c000000690000006e0000006b0000003d0000002200000049000000440000005f0000003000000031000000220000003e000000 32 | m_ClosingTagArray: 3c0000002f000000750000003e0000003c0000002f000000630000006f0000006c0000006f000000720000003e0000003c0000002f0000006c000000690000006e0000006b0000003e000000 33 | - m_Name: Title 34 | m_HashCode: 98732960 35 | m_OpeningDefinition: 36 | m_ClosingDefinition: 37 | m_OpeningTagArray: 3c00000073000000690000007a000000650000003d000000310000003200000035000000250000003e0000003c000000620000003e0000003c000000610000006c00000069000000670000006e0000003d00000063000000650000006e0000007400000065000000720000003e000000 38 | m_ClosingTagArray: 3c0000002f00000073000000690000007a000000650000003e0000003c0000002f000000620000003e0000003c0000002f000000610000006c00000069000000670000006e0000003e000000 39 | - m_Name: H2 40 | m_HashCode: 2426 41 | m_OpeningDefinition: <#4080FF> 42 | m_ClosingDefinition: 43 | m_OpeningTagArray: 3c00000073000000690000007a000000650000003d000000310000002e00000035000000650000006d0000003e0000003c000000620000003e0000003c000000230000003400000030000000380000003000000046000000460000003e000000 44 | m_ClosingTagArray: 3c0000002f00000073000000690000007a000000650000003e0000003c0000002f000000620000003e0000003c0000002f000000630000006f0000006c0000006f000000720000003e000000 45 | - m_Name: H3 46 | m_HashCode: 2427 47 | m_OpeningDefinition: <#FF8040> 48 | m_ClosingDefinition: 49 | m_OpeningTagArray: 3c00000073000000690000007a000000650000003d000000310000002e0000003100000037000000650000006d0000003e0000003c000000620000003e0000003c000000230000004600000046000000380000003000000034000000300000003e000000 50 | m_ClosingTagArray: 3c0000002f00000073000000690000007a000000650000003e0000003c0000002f000000620000003e0000003c0000002f000000630000006f0000006c0000006f000000720000003e000000 51 | - m_Name: C1 52 | m_HashCode: 2194 53 | m_OpeningDefinition: 54 | m_ClosingDefinition: 55 | m_OpeningTagArray: 3c000000630000006f0000006c0000006f000000720000003d000000230000006600000066000000660000006600000034000000300000003e000000 56 | m_ClosingTagArray: 3c0000002f000000630000006f0000006c0000006f000000720000003e000000 57 | - m_Name: C2 58 | m_HashCode: 2193 59 | m_OpeningDefinition: 60 | m_ClosingDefinition: 61 | m_OpeningTagArray: 3c000000630000006f0000006c0000006f000000720000003d000000230000006600000066000000340000003000000046000000460000003e0000003c00000073000000690000007a000000650000003d000000310000003200000035000000250000003e000000 62 | m_ClosingTagArray: 3c0000002f000000630000006f0000006c0000006f000000720000003e0000003c0000002f00000073000000690000007a000000650000003e000000 63 | - m_Name: C3 64 | m_HashCode: 2192 65 | m_OpeningDefinition: 66 | m_ClosingDefinition: 67 | m_OpeningTagArray: 3c000000630000006f0000006c0000006f000000720000003d000000230000003800000030000000410000003000000046000000460000003e0000003c000000620000003e000000 68 | m_ClosingTagArray: 3c0000002f000000630000006f0000006c0000006f000000720000003e0000003c0000002f000000620000003e000000 69 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/Style Sheets/Default Style Sheet.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f952c082cb03451daed3ee968ac6c63e 3 | timeCreated: 1432805430 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/TMP Settings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 2705215ac5b84b70bacc50632be6e391, type: 3} 13 | m_Name: TMP Settings 14 | m_EditorClassIdentifier: 15 | m_enableWordWrapping: 1 16 | m_enableKerning: 1 17 | m_enableExtraPadding: 0 18 | m_enableTintAllSprites: 0 19 | m_enableParseEscapeCharacters: 1 20 | m_EnableRaycastTarget: 1 21 | m_GetFontFeaturesAtRuntime: 1 22 | m_missingGlyphCharacter: 0 23 | m_warningsDisabled: 0 24 | m_defaultFontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} 25 | m_defaultFontAssetPath: Fonts & Materials/ 26 | m_defaultFontSize: 36 27 | m_defaultAutoSizeMinRatio: 0.5 28 | m_defaultAutoSizeMaxRatio: 2 29 | m_defaultTextMeshProTextContainerSize: {x: 20, y: 5} 30 | m_defaultTextMeshProUITextContainerSize: {x: 200, y: 50} 31 | m_autoSizeTextContainer: 0 32 | m_fallbackFontAssets: [] 33 | m_matchMaterialPreset: 1 34 | m_defaultSpriteAsset: {fileID: 11400000, guid: c41005c129ba4d66911b75229fd70b45, 35 | type: 2} 36 | m_defaultSpriteAssetPath: Sprite Assets/ 37 | m_enableEmojiSupport: 1 38 | m_MissingCharacterSpriteUnicode: 0 39 | m_defaultColorGradientPresetsPath: Color Gradient Presets/ 40 | m_defaultStyleSheet: {fileID: 11400000, guid: f952c082cb03451daed3ee968ac6c63e, 41 | type: 2} 42 | m_StyleSheetsResourcePath: 43 | m_leadingCharacters: {fileID: 4900000, guid: d82c1b31c7e74239bff1220585707d2b, type: 3} 44 | m_followingCharacters: {fileID: 4900000, guid: fade42e8bc714b018fac513c043d323b, 45 | type: 3} 46 | m_UseModernHangulLineBreakingRules: 0 47 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Resources/TMP Settings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f5b5dff67a942289a9defa416b206f3 3 | timeCreated: 1436653997 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9f693669af91aa45ad615fc681ed29f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_Bitmap-Custom-Atlas.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Bitmap Custom Atlas" { 2 | 3 | Properties { 4 | _MainTex ("Font Atlas", 2D) = "white" {} 5 | _FaceTex ("Font Texture", 2D) = "white" {} 6 | [HDR]_FaceColor ("Text Color", Color) = (1,1,1,1) 7 | 8 | _VertexOffsetX ("Vertex OffsetX", float) = 0 9 | _VertexOffsetY ("Vertex OffsetY", float) = 0 10 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 11 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 12 | 13 | _ClipRect("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 14 | _Padding ("Padding", float) = 0 15 | 16 | _StencilComp("Stencil Comparison", Float) = 8 17 | _Stencil("Stencil ID", Float) = 0 18 | _StencilOp("Stencil Operation", Float) = 0 19 | _StencilWriteMask("Stencil Write Mask", Float) = 255 20 | _StencilReadMask("Stencil Read Mask", Float) = 255 21 | 22 | _CullMode("Cull Mode", Float) = 0 23 | _ColorMask("Color Mask", Float) = 15 24 | } 25 | 26 | SubShader{ 27 | 28 | Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" } 29 | 30 | Stencil 31 | { 32 | Ref[_Stencil] 33 | Comp[_StencilComp] 34 | Pass[_StencilOp] 35 | ReadMask[_StencilReadMask] 36 | WriteMask[_StencilWriteMask] 37 | } 38 | 39 | 40 | Lighting Off 41 | Cull [_CullMode] 42 | ZTest [unity_GUIZTestMode] 43 | ZWrite Off 44 | Fog { Mode Off } 45 | Blend SrcAlpha OneMinusSrcAlpha 46 | ColorMask[_ColorMask] 47 | 48 | Pass { 49 | CGPROGRAM 50 | #pragma vertex vert 51 | #pragma fragment frag 52 | 53 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 54 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 55 | 56 | 57 | #include "UnityCG.cginc" 58 | 59 | struct appdata_t { 60 | float4 vertex : POSITION; 61 | fixed4 color : COLOR; 62 | float2 texcoord0 : TEXCOORD0; 63 | float2 texcoord1 : TEXCOORD1; 64 | }; 65 | 66 | struct v2f { 67 | float4 vertex : SV_POSITION; 68 | fixed4 color : COLOR; 69 | float2 texcoord0 : TEXCOORD0; 70 | float2 texcoord1 : TEXCOORD1; 71 | float4 mask : TEXCOORD2; 72 | }; 73 | 74 | uniform sampler2D _MainTex; 75 | uniform sampler2D _FaceTex; 76 | uniform float4 _FaceTex_ST; 77 | uniform fixed4 _FaceColor; 78 | 79 | uniform float _VertexOffsetX; 80 | uniform float _VertexOffsetY; 81 | uniform float4 _ClipRect; 82 | uniform float _MaskSoftnessX; 83 | uniform float _MaskSoftnessY; 84 | 85 | float2 UnpackUV(float uv) 86 | { 87 | float2 output; 88 | output.x = floor(uv / 4096); 89 | output.y = uv - 4096 * output.x; 90 | 91 | return output * 0.001953125; 92 | } 93 | 94 | v2f vert (appdata_t v) 95 | { 96 | float4 vert = v.vertex; 97 | vert.x += _VertexOffsetX; 98 | vert.y += _VertexOffsetY; 99 | 100 | vert.xy += (vert.w * 0.5) / _ScreenParams.xy; 101 | 102 | float4 vPosition = UnityPixelSnap(UnityObjectToClipPos(vert)); 103 | 104 | fixed4 faceColor = v.color; 105 | faceColor *= _FaceColor; 106 | 107 | v2f OUT; 108 | OUT.vertex = vPosition; 109 | OUT.color = faceColor; 110 | OUT.texcoord0 = v.texcoord0; 111 | OUT.texcoord1 = TRANSFORM_TEX(UnpackUV(v.texcoord1), _FaceTex); 112 | float2 pixelSize = vPosition.w; 113 | pixelSize /= abs(float2(_ScreenParams.x * UNITY_MATRIX_P[0][0], _ScreenParams.y * UNITY_MATRIX_P[1][1])); 114 | 115 | // Clamp _ClipRect to 16bit. 116 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 117 | OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 118 | 119 | return OUT; 120 | } 121 | 122 | fixed4 frag (v2f IN) : SV_Target 123 | { 124 | fixed4 color = tex2D(_MainTex, IN.texcoord0) * tex2D(_FaceTex, IN.texcoord1) * IN.color; 125 | 126 | // Alternative implementation to UnityGet2DClipping with support for softness. 127 | #if UNITY_UI_CLIP_RECT 128 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw); 129 | color *= m.x * m.y; 130 | #endif 131 | 132 | #if UNITY_UI_ALPHACLIP 133 | clip(color.a - 0.001); 134 | #endif 135 | 136 | return color; 137 | } 138 | ENDCG 139 | } 140 | } 141 | 142 | CustomEditor "TMPro.EditorUtilities.TMP_BitmapShaderGUI" 143 | } 144 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_Bitmap-Custom-Atlas.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48bb5f55d8670e349b6e614913f9d910 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_Bitmap-Mobile.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Mobile/Bitmap" { 2 | 3 | Properties { 4 | _MainTex ("Font Atlas", 2D) = "white" {} 5 | [HDR]_Color ("Text Color", Color) = (1,1,1,1) 6 | _DiffusePower ("Diffuse Power", Range(1.0,4.0)) = 1.0 7 | 8 | _VertexOffsetX("Vertex OffsetX", float) = 0 9 | _VertexOffsetY("Vertex OffsetY", float) = 0 10 | _MaskSoftnessX("Mask SoftnessX", float) = 0 11 | _MaskSoftnessY("Mask SoftnessY", float) = 0 12 | 13 | _ClipRect("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 14 | 15 | _StencilComp("Stencil Comparison", Float) = 8 16 | _Stencil("Stencil ID", Float) = 0 17 | _StencilOp("Stencil Operation", Float) = 0 18 | _StencilWriteMask("Stencil Write Mask", Float) = 255 19 | _StencilReadMask("Stencil Read Mask", Float) = 255 20 | 21 | _CullMode("Cull Mode", Float) = 0 22 | _ColorMask("Color Mask", Float) = 15 23 | } 24 | 25 | SubShader { 26 | 27 | Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } 28 | 29 | Stencil 30 | { 31 | Ref[_Stencil] 32 | Comp[_StencilComp] 33 | Pass[_StencilOp] 34 | ReadMask[_StencilReadMask] 35 | WriteMask[_StencilWriteMask] 36 | } 37 | 38 | 39 | Lighting Off 40 | Cull [_CullMode] 41 | ZTest [unity_GUIZTestMode] 42 | ZWrite Off 43 | Fog { Mode Off } 44 | Blend SrcAlpha OneMinusSrcAlpha 45 | ColorMask[_ColorMask] 46 | 47 | Pass { 48 | CGPROGRAM 49 | #pragma vertex vert 50 | #pragma fragment frag 51 | #pragma fragmentoption ARB_precision_hint_fastest 52 | 53 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 54 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 55 | 56 | 57 | #include "UnityCG.cginc" 58 | 59 | struct appdata_t { 60 | float4 vertex : POSITION; 61 | fixed4 color : COLOR; 62 | float2 texcoord0 : TEXCOORD0; 63 | float2 texcoord1 : TEXCOORD1; 64 | }; 65 | 66 | struct v2f { 67 | float4 vertex : POSITION; 68 | fixed4 color : COLOR; 69 | float2 texcoord0 : TEXCOORD0; 70 | float4 mask : TEXCOORD2; 71 | }; 72 | 73 | sampler2D _MainTex; 74 | fixed4 _Color; 75 | float _DiffusePower; 76 | 77 | uniform float _VertexOffsetX; 78 | uniform float _VertexOffsetY; 79 | uniform float4 _ClipRect; 80 | uniform float _MaskSoftnessX; 81 | uniform float _MaskSoftnessY; 82 | 83 | v2f vert (appdata_t v) 84 | { 85 | v2f OUT; 86 | float4 vert = v.vertex; 87 | vert.x += _VertexOffsetX; 88 | vert.y += _VertexOffsetY; 89 | 90 | vert.xy += (vert.w * 0.5) / _ScreenParams.xy; 91 | 92 | OUT.vertex = UnityPixelSnap(UnityObjectToClipPos(vert)); 93 | OUT.color = v.color; 94 | OUT.color *= _Color; 95 | OUT.color.rgb *= _DiffusePower; 96 | OUT.texcoord0 = v.texcoord0; 97 | 98 | float2 pixelSize = OUT.vertex.w; 99 | //pixelSize /= abs(float2(_ScreenParams.x * UNITY_MATRIX_P[0][0], _ScreenParams.y * UNITY_MATRIX_P[1][1])); 100 | 101 | // Clamp _ClipRect to 16bit. 102 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 103 | OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 104 | 105 | return OUT; 106 | } 107 | 108 | fixed4 frag (v2f IN) : COLOR 109 | { 110 | fixed4 color = fixed4(IN.color.rgb, IN.color.a * tex2D(_MainTex, IN.texcoord0).a); 111 | 112 | // Alternative implementation to UnityGet2DClipping with support for softness. 113 | #if UNITY_UI_CLIP_RECT 114 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw); 115 | color *= m.x * m.y; 116 | #endif 117 | 118 | #if UNITY_UI_ALPHACLIP 119 | clip(color.a - 0.001); 120 | #endif 121 | 122 | return color; 123 | } 124 | ENDCG 125 | } 126 | } 127 | 128 | SubShader { 129 | Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } 130 | Lighting Off Cull Off ZTest Always ZWrite Off Fog { Mode Off } 131 | Blend SrcAlpha OneMinusSrcAlpha 132 | BindChannels { 133 | Bind "Color", color 134 | Bind "Vertex", vertex 135 | Bind "TexCoord", texcoord0 136 | } 137 | Pass { 138 | SetTexture [_MainTex] { 139 | constantColor [_Color] combine constant * primary, constant * texture 140 | } 141 | } 142 | } 143 | 144 | CustomEditor "TMPro.EditorUtilities.TMP_BitmapShaderGUI" 145 | } 146 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_Bitmap-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e3b057af24249748ff873be7fafee47 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_Bitmap.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Bitmap" { 2 | 3 | Properties { 4 | _MainTex ("Font Atlas", 2D) = "white" {} 5 | _FaceTex ("Font Texture", 2D) = "white" {} 6 | [HDR]_FaceColor ("Text Color", Color) = (1,1,1,1) 7 | 8 | _VertexOffsetX ("Vertex OffsetX", float) = 0 9 | _VertexOffsetY ("Vertex OffsetY", float) = 0 10 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 11 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 12 | 13 | _ClipRect("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 14 | 15 | _StencilComp("Stencil Comparison", Float) = 8 16 | _Stencil("Stencil ID", Float) = 0 17 | _StencilOp("Stencil Operation", Float) = 0 18 | _StencilWriteMask("Stencil Write Mask", Float) = 255 19 | _StencilReadMask("Stencil Read Mask", Float) = 255 20 | 21 | _CullMode("Cull Mode", Float) = 0 22 | _ColorMask("Color Mask", Float) = 15 23 | } 24 | 25 | SubShader{ 26 | 27 | Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" } 28 | 29 | Stencil 30 | { 31 | Ref[_Stencil] 32 | Comp[_StencilComp] 33 | Pass[_StencilOp] 34 | ReadMask[_StencilReadMask] 35 | WriteMask[_StencilWriteMask] 36 | } 37 | 38 | 39 | Lighting Off 40 | Cull [_CullMode] 41 | ZTest [unity_GUIZTestMode] 42 | ZWrite Off 43 | Fog { Mode Off } 44 | Blend SrcAlpha OneMinusSrcAlpha 45 | ColorMask[_ColorMask] 46 | 47 | Pass { 48 | CGPROGRAM 49 | #pragma vertex vert 50 | #pragma fragment frag 51 | 52 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 53 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 54 | 55 | 56 | #include "UnityCG.cginc" 57 | 58 | struct appdata_t { 59 | float4 vertex : POSITION; 60 | fixed4 color : COLOR; 61 | float2 texcoord0 : TEXCOORD0; 62 | float2 texcoord1 : TEXCOORD1; 63 | }; 64 | 65 | struct v2f { 66 | float4 vertex : SV_POSITION; 67 | fixed4 color : COLOR; 68 | float2 texcoord0 : TEXCOORD0; 69 | float2 texcoord1 : TEXCOORD1; 70 | float4 mask : TEXCOORD2; 71 | }; 72 | 73 | uniform sampler2D _MainTex; 74 | uniform sampler2D _FaceTex; 75 | uniform float4 _FaceTex_ST; 76 | uniform fixed4 _FaceColor; 77 | 78 | uniform float _VertexOffsetX; 79 | uniform float _VertexOffsetY; 80 | uniform float4 _ClipRect; 81 | uniform float _MaskSoftnessX; 82 | uniform float _MaskSoftnessY; 83 | 84 | float2 UnpackUV(float uv) 85 | { 86 | float2 output; 87 | output.x = floor(uv / 4096); 88 | output.y = uv - 4096 * output.x; 89 | 90 | return output * 0.001953125; 91 | } 92 | 93 | v2f vert (appdata_t v) 94 | { 95 | float4 vert = v.vertex; 96 | vert.x += _VertexOffsetX; 97 | vert.y += _VertexOffsetY; 98 | 99 | vert.xy += (vert.w * 0.5) / _ScreenParams.xy; 100 | 101 | float4 vPosition = UnityPixelSnap(UnityObjectToClipPos(vert)); 102 | 103 | fixed4 faceColor = v.color; 104 | faceColor *= _FaceColor; 105 | 106 | v2f OUT; 107 | OUT.vertex = vPosition; 108 | OUT.color = faceColor; 109 | OUT.texcoord0 = v.texcoord0; 110 | OUT.texcoord1 = TRANSFORM_TEX(UnpackUV(v.texcoord1), _FaceTex); 111 | float2 pixelSize = vPosition.w; 112 | pixelSize /= abs(float2(_ScreenParams.x * UNITY_MATRIX_P[0][0], _ScreenParams.y * UNITY_MATRIX_P[1][1])); 113 | 114 | // Clamp _ClipRect to 16bit. 115 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 116 | OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 117 | 118 | return OUT; 119 | } 120 | 121 | fixed4 frag (v2f IN) : SV_Target 122 | { 123 | fixed4 color = tex2D(_MainTex, IN.texcoord0); 124 | color = fixed4 (tex2D(_FaceTex, IN.texcoord1).rgb * IN.color.rgb, IN.color.a * color.a); 125 | 126 | // Alternative implementation to UnityGet2DClipping with support for softness. 127 | #if UNITY_UI_CLIP_RECT 128 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw); 129 | color *= m.x * m.y; 130 | #endif 131 | 132 | #if UNITY_UI_ALPHACLIP 133 | clip(color.a - 0.001); 134 | #endif 135 | 136 | return color; 137 | } 138 | ENDCG 139 | } 140 | } 141 | 142 | CustomEditor "TMPro.EditorUtilities.TMP_BitmapShaderGUI" 143 | } 144 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_Bitmap.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 128e987d567d4e2c824d754223b3f3b0 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_SDF Overlay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd89cf5b9246416f84610a006f916af7 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_SDF SSD.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14eb328de4b8eb245bb7cea29e4ac00b 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile Masking.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc1ede39bf3643ee8e493720e4259791 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile Overlay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a02a7d8c237544f1962732b55a9aebf1 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile SSD.shader: -------------------------------------------------------------------------------- 1 | // Simplified SDF shader: 2 | // - No Shading Option (bevel / bump / env map) 3 | // - No Glow Option 4 | // - Softness is applied on both side of the outline 5 | 6 | Shader "TextMeshPro/Mobile/Distance Field SSD" { 7 | 8 | Properties { 9 | [HDR]_FaceColor ("Face Color", Color) = (1,1,1,1) 10 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 11 | 12 | [HDR]_OutlineColor ("Outline Color", Color) = (0,0,0,1) 13 | _OutlineWidth ("Outline Thickness", Range(0,1)) = 0 14 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 15 | 16 | [HDR]_UnderlayColor ("Border Color", Color) = (0,0,0,.5) 17 | _UnderlayOffsetX ("Border OffsetX", Range(-1,1)) = 0 18 | _UnderlayOffsetY ("Border OffsetY", Range(-1,1)) = 0 19 | _UnderlayDilate ("Border Dilate", Range(-1,1)) = 0 20 | _UnderlaySoftness ("Border Softness", Range(0,1)) = 0 21 | 22 | _WeightNormal ("Weight Normal", float) = 0 23 | _WeightBold ("Weight Bold", float) = .5 24 | 25 | _ShaderFlags ("Flags", float) = 0 26 | _ScaleRatioA ("Scale RatioA", float) = 1 27 | _ScaleRatioB ("Scale RatioB", float) = 1 28 | _ScaleRatioC ("Scale RatioC", float) = 1 29 | 30 | _MainTex ("Font Atlas", 2D) = "white" {} 31 | _TextureWidth ("Texture Width", float) = 512 32 | _TextureHeight ("Texture Height", float) = 512 33 | _GradientScale ("Gradient Scale", float) = 5 34 | _ScaleX ("Scale X", float) = 1 35 | _ScaleY ("Scale Y", float) = 1 36 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 37 | _Sharpness ("Sharpness", Range(-1,1)) = 0 38 | 39 | _VertexOffsetX ("Vertex OffsetX", float) = 0 40 | _VertexOffsetY ("Vertex OffsetY", float) = 0 41 | 42 | _ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 43 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 44 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 45 | _MaskTex ("Mask Texture", 2D) = "white" {} 46 | _MaskInverse ("Inverse", float) = 0 47 | _MaskEdgeColor ("Edge Color", Color) = (1,1,1,1) 48 | _MaskEdgeSoftness ("Edge Softness", Range(0, 1)) = 0.01 49 | _MaskWipeControl ("Wipe Position", Range(0, 1)) = 0.5 50 | 51 | _StencilComp ("Stencil Comparison", Float) = 8 52 | _Stencil ("Stencil ID", Float) = 0 53 | _StencilOp ("Stencil Operation", Float) = 0 54 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 55 | _StencilReadMask ("Stencil Read Mask", Float) = 255 56 | 57 | _CullMode ("Cull Mode", Float) = 0 58 | _ColorMask ("Color Mask", Float) = 15 59 | } 60 | 61 | SubShader { 62 | Tags { 63 | "Queue"="Transparent" 64 | "IgnoreProjector"="True" 65 | "RenderType"="Transparent" 66 | } 67 | 68 | Stencil 69 | { 70 | Ref [_Stencil] 71 | Comp [_StencilComp] 72 | Pass [_StencilOp] 73 | ReadMask [_StencilReadMask] 74 | WriteMask [_StencilWriteMask] 75 | } 76 | 77 | Cull [_CullMode] 78 | ZWrite Off 79 | Lighting Off 80 | Fog { Mode Off } 81 | ZTest [unity_GUIZTestMode] 82 | Blend One OneMinusSrcAlpha 83 | ColorMask [_ColorMask] 84 | 85 | Pass { 86 | CGPROGRAM 87 | #pragma vertex VertShader 88 | #pragma fragment PixShader 89 | #pragma shader_feature __ OUTLINE_ON 90 | #pragma shader_feature __ UNDERLAY_ON UNDERLAY_INNER 91 | 92 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 93 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 94 | 95 | #include "UnityCG.cginc" 96 | #include "UnityUI.cginc" 97 | #include "TMPro_Properties.cginc" 98 | 99 | #include "TMPro_Mobile.cginc" 100 | 101 | ENDCG 102 | } 103 | } 104 | 105 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 106 | } 107 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile SSD.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8d12adcee749c344b8117cf7c7eb912 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe393ace9b354375a9cb14cdbbc28be4 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Surface-Mobile.shader: -------------------------------------------------------------------------------- 1 | // Simplified version of the SDF Surface shader : 2 | // - No support for Bevel, Bump or envmap 3 | // - Diffuse only lighting 4 | // - Fully supports only 1 directional light. Other lights can affect it, but it will be per-vertex/SH. 5 | 6 | Shader "TextMeshPro/Mobile/Distance Field (Surface)" { 7 | 8 | Properties { 9 | _FaceTex ("Fill Texture", 2D) = "white" {} 10 | [HDR]_FaceColor ("Fill Color", Color) = (1,1,1,1) 11 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 12 | 13 | [HDR]_OutlineColor ("Outline Color", Color) = (0,0,0,1) 14 | _OutlineTex ("Outline Texture", 2D) = "white" {} 15 | _OutlineWidth ("Outline Thickness", Range(0, 1)) = 0 16 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 17 | 18 | [HDR]_GlowColor ("Color", Color) = (0, 1, 0, 0.5) 19 | _GlowOffset ("Offset", Range(-1,1)) = 0 20 | _GlowInner ("Inner", Range(0,1)) = 0.05 21 | _GlowOuter ("Outer", Range(0,1)) = 0.05 22 | _GlowPower ("Falloff", Range(1, 0)) = 0.75 23 | 24 | _WeightNormal ("Weight Normal", float) = 0 25 | _WeightBold ("Weight Bold", float) = 0.5 26 | 27 | // Should not be directly exposed to the user 28 | _ShaderFlags ("Flags", float) = 0 29 | _ScaleRatioA ("Scale RatioA", float) = 1 30 | _ScaleRatioB ("Scale RatioB", float) = 1 31 | _ScaleRatioC ("Scale RatioC", float) = 1 32 | 33 | _MainTex ("Font Atlas", 2D) = "white" {} 34 | _TextureWidth ("Texture Width", float) = 512 35 | _TextureHeight ("Texture Height", float) = 512 36 | _GradientScale ("Gradient Scale", float) = 5.0 37 | _ScaleX ("Scale X", float) = 1.0 38 | _ScaleY ("Scale Y", float) = 1.0 39 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 40 | _Sharpness ("Sharpness", Range(-1,1)) = 0 41 | 42 | _VertexOffsetX ("Vertex OffsetX", float) = 0 43 | _VertexOffsetY ("Vertex OffsetY", float) = 0 44 | 45 | _CullMode ("Cull Mode", Float) = 0 46 | //_MaskCoord ("Mask Coords", vector) = (0,0,0,0) 47 | //_MaskSoftness ("Mask Softness", float) = 0 48 | } 49 | 50 | SubShader { 51 | 52 | Tags { 53 | "Queue"="Transparent" 54 | "IgnoreProjector"="True" 55 | "RenderType"="Transparent" 56 | } 57 | 58 | LOD 300 59 | Cull [_CullMode] 60 | 61 | CGPROGRAM 62 | #pragma surface PixShader Lambert alpha:blend vertex:VertShader noforwardadd nolightmap nodirlightmap 63 | #pragma target 3.0 64 | #pragma shader_feature __ GLOW_ON 65 | 66 | #include "TMPro_Properties.cginc" 67 | #include "TMPro.cginc" 68 | 69 | half _FaceShininess; 70 | half _OutlineShininess; 71 | 72 | struct Input 73 | { 74 | fixed4 color : COLOR; 75 | float2 uv_MainTex; 76 | float2 uv2_FaceTex; 77 | float2 uv2_OutlineTex; 78 | float2 param; // Weight, Scale 79 | float3 viewDirEnv; 80 | }; 81 | 82 | #include "TMPro_Surface.cginc" 83 | 84 | ENDCG 85 | 86 | // Pass to render object as a shadow caster 87 | Pass 88 | { 89 | Name "Caster" 90 | Tags { "LightMode" = "ShadowCaster" } 91 | Offset 1, 1 92 | 93 | Fog {Mode Off} 94 | ZWrite On ZTest LEqual Cull Off 95 | 96 | CGPROGRAM 97 | #pragma vertex vert 98 | #pragma fragment frag 99 | #pragma multi_compile_shadowcaster 100 | #include "UnityCG.cginc" 101 | 102 | struct v2f { 103 | V2F_SHADOW_CASTER; 104 | float2 uv : TEXCOORD1; 105 | float2 uv2 : TEXCOORD3; 106 | float alphaClip : TEXCOORD2; 107 | }; 108 | 109 | uniform float4 _MainTex_ST; 110 | uniform float4 _OutlineTex_ST; 111 | float _OutlineWidth; 112 | float _FaceDilate; 113 | float _ScaleRatioA; 114 | 115 | v2f vert( appdata_base v ) 116 | { 117 | v2f o; 118 | TRANSFER_SHADOW_CASTER(o) 119 | o.uv = TRANSFORM_TEX(v.texcoord, _MainTex); 120 | o.uv2 = TRANSFORM_TEX(v.texcoord, _OutlineTex); 121 | o.alphaClip = o.alphaClip = (1.0 - _OutlineWidth * _ScaleRatioA - _FaceDilate * _ScaleRatioA) / 2; 122 | return o; 123 | } 124 | 125 | uniform sampler2D _MainTex; 126 | 127 | float4 frag(v2f i) : COLOR 128 | { 129 | fixed4 texcol = tex2D(_MainTex, i.uv).a; 130 | clip(texcol.a - i.alphaClip); 131 | SHADOW_CASTER_FRAGMENT(i) 132 | } 133 | ENDCG 134 | } 135 | } 136 | 137 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 138 | } 139 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Surface-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85187c2149c549c5b33f0cdb02836b17 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Surface.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Distance Field (Surface)" { 2 | 3 | Properties { 4 | _FaceTex ("Fill Texture", 2D) = "white" {} 5 | _FaceUVSpeedX ("Face UV Speed X", Range(-5, 5)) = 0.0 6 | _FaceUVSpeedY ("Face UV Speed Y", Range(-5, 5)) = 0.0 7 | [HDR]_FaceColor ("Fill Color", Color) = (1,1,1,1) 8 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 9 | 10 | [HDR]_OutlineColor ("Outline Color", Color) = (0,0,0,1) 11 | _OutlineTex ("Outline Texture", 2D) = "white" {} 12 | _OutlineUVSpeedX ("Outline UV Speed X", Range(-5, 5)) = 0.0 13 | _OutlineUVSpeedY ("Outline UV Speed Y", Range(-5, 5)) = 0.0 14 | _OutlineWidth ("Outline Thickness", Range(0, 1)) = 0 15 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 16 | 17 | _Bevel ("Bevel", Range(0,1)) = 0.5 18 | _BevelOffset ("Bevel Offset", Range(-0.5,0.5)) = 0 19 | _BevelWidth ("Bevel Width", Range(-.5,0.5)) = 0 20 | _BevelClamp ("Bevel Clamp", Range(0,1)) = 0 21 | _BevelRoundness ("Bevel Roundness", Range(0,1)) = 0 22 | 23 | _BumpMap ("Normalmap", 2D) = "bump" {} 24 | _BumpOutline ("Bump Outline", Range(0,1)) = 0.5 25 | _BumpFace ("Bump Face", Range(0,1)) = 0.5 26 | 27 | _ReflectFaceColor ("Face Color", Color) = (0,0,0,1) 28 | _ReflectOutlineColor ("Outline Color", Color) = (0,0,0,1) 29 | _Cube ("Reflection Cubemap", Cube) = "black" { /* TexGen CubeReflect */ } 30 | _EnvMatrixRotation ("Texture Rotation", vector) = (0, 0, 0, 0) 31 | [HDR]_SpecColor ("Specular Color", Color) = (0,0,0,1) 32 | 33 | _FaceShininess ("Face Shininess", Range(0,1)) = 0 34 | _OutlineShininess ("Outline Shininess", Range(0,1)) = 0 35 | 36 | [HDR]_GlowColor ("Color", Color) = (0, 1, 0, 0.5) 37 | _GlowOffset ("Offset", Range(-1,1)) = 0 38 | _GlowInner ("Inner", Range(0,1)) = 0.05 39 | _GlowOuter ("Outer", Range(0,1)) = 0.05 40 | _GlowPower ("Falloff", Range(1, 0)) = 0.75 41 | 42 | _WeightNormal ("Weight Normal", float) = 0 43 | _WeightBold ("Weight Bold", float) = 0.5 44 | 45 | // Should not be directly exposed to the user 46 | _ShaderFlags ("Flags", float) = 0 47 | _ScaleRatioA ("Scale RatioA", float) = 1 48 | _ScaleRatioB ("Scale RatioB", float) = 1 49 | _ScaleRatioC ("Scale RatioC", float) = 1 50 | 51 | _MainTex ("Font Atlas", 2D) = "white" {} 52 | _TextureWidth ("Texture Width", float) = 512 53 | _TextureHeight ("Texture Height", float) = 512 54 | _GradientScale ("Gradient Scale", float) = 5.0 55 | _ScaleX ("Scale X", float) = 1.0 56 | _ScaleY ("Scale Y", float) = 1.0 57 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 58 | _Sharpness ("Sharpness", Range(-1,1)) = 0 59 | 60 | _VertexOffsetX ("Vertex OffsetX", float) = 0 61 | _VertexOffsetY ("Vertex OffsetY", float) = 0 62 | 63 | _CullMode ("Cull Mode", Float) = 0 64 | //_MaskCoord ("Mask Coords", vector) = (0,0,0,0) 65 | //_MaskSoftness ("Mask Softness", float) = 0 66 | } 67 | 68 | SubShader { 69 | 70 | Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } 71 | 72 | LOD 300 73 | Cull [_CullMode] 74 | 75 | CGPROGRAM 76 | #pragma surface PixShader BlinnPhong alpha:blend vertex:VertShader nolightmap nodirlightmap 77 | #pragma target 3.0 78 | #pragma shader_feature __ GLOW_ON 79 | #pragma glsl 80 | 81 | #include "TMPro_Properties.cginc" 82 | #include "TMPro.cginc" 83 | 84 | half _FaceShininess; 85 | half _OutlineShininess; 86 | 87 | struct Input 88 | { 89 | fixed4 color : COLOR; 90 | float2 uv_MainTex; 91 | float2 uv2_FaceTex; 92 | float2 uv2_OutlineTex; 93 | float2 param; // Weight, Scale 94 | float3 viewDirEnv; 95 | }; 96 | 97 | 98 | #define BEVEL_ON 1 99 | #include "TMPro_Surface.cginc" 100 | 101 | ENDCG 102 | 103 | // Pass to render object as a shadow caster 104 | Pass 105 | { 106 | Name "Caster" 107 | Tags { "LightMode" = "ShadowCaster" } 108 | Offset 1, 1 109 | 110 | Fog {Mode Off} 111 | ZWrite On 112 | ZTest LEqual 113 | Cull Off 114 | 115 | CGPROGRAM 116 | #pragma vertex vert 117 | #pragma fragment frag 118 | #pragma multi_compile_shadowcaster 119 | #include "UnityCG.cginc" 120 | 121 | struct v2f { 122 | V2F_SHADOW_CASTER; 123 | float2 uv : TEXCOORD1; 124 | float2 uv2 : TEXCOORD3; 125 | float alphaClip : TEXCOORD2; 126 | }; 127 | 128 | uniform float4 _MainTex_ST; 129 | uniform float4 _OutlineTex_ST; 130 | float _OutlineWidth; 131 | float _FaceDilate; 132 | float _ScaleRatioA; 133 | 134 | v2f vert( appdata_base v ) 135 | { 136 | v2f o; 137 | TRANSFER_SHADOW_CASTER(o) 138 | o.uv = TRANSFORM_TEX(v.texcoord, _MainTex); 139 | o.uv2 = TRANSFORM_TEX(v.texcoord, _OutlineTex); 140 | o.alphaClip = (1.0 - _OutlineWidth * _ScaleRatioA - _FaceDilate * _ScaleRatioA) / 2; 141 | return o; 142 | } 143 | 144 | uniform sampler2D _MainTex; 145 | 146 | float4 frag(v2f i) : COLOR 147 | { 148 | fixed4 texcol = tex2D(_MainTex, i.uv).a; 149 | clip(texcol.a - i.alphaClip); 150 | SHADOW_CASTER_FRAGMENT(i) 151 | } 152 | ENDCG 153 | } 154 | } 155 | 156 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 157 | } 158 | 159 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Surface.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7ada0af4f174f0694ca6a487b8f543d 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_SDF.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68e6db2ebdc24f95958faec2be5558d6 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_Sprite.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Sprite" 2 | { 3 | Properties 4 | { 5 | [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} 6 | _Color ("Tint", Color) = (1,1,1,1) 7 | 8 | _StencilComp ("Stencil Comparison", Float) = 8 9 | _Stencil ("Stencil ID", Float) = 0 10 | _StencilOp ("Stencil Operation", Float) = 0 11 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 12 | _StencilReadMask ("Stencil Read Mask", Float) = 255 13 | 14 | _CullMode ("Cull Mode", Float) = 0 15 | _ColorMask ("Color Mask", Float) = 15 16 | _ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 17 | 18 | [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 19 | } 20 | 21 | SubShader 22 | { 23 | Tags 24 | { 25 | "Queue"="Transparent" 26 | "IgnoreProjector"="True" 27 | "RenderType"="Transparent" 28 | "PreviewType"="Plane" 29 | "CanUseSpriteAtlas"="True" 30 | } 31 | 32 | Stencil 33 | { 34 | Ref [_Stencil] 35 | Comp [_StencilComp] 36 | Pass [_StencilOp] 37 | ReadMask [_StencilReadMask] 38 | WriteMask [_StencilWriteMask] 39 | } 40 | 41 | Cull [_CullMode] 42 | Lighting Off 43 | ZWrite Off 44 | ZTest [unity_GUIZTestMode] 45 | Blend SrcAlpha OneMinusSrcAlpha 46 | ColorMask [_ColorMask] 47 | 48 | Pass 49 | { 50 | Name "Default" 51 | CGPROGRAM 52 | #pragma vertex vert 53 | #pragma fragment frag 54 | #pragma target 2.0 55 | 56 | #include "UnityCG.cginc" 57 | #include "UnityUI.cginc" 58 | 59 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 60 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 61 | 62 | struct appdata_t 63 | { 64 | float4 vertex : POSITION; 65 | float4 color : COLOR; 66 | float2 texcoord : TEXCOORD0; 67 | UNITY_VERTEX_INPUT_INSTANCE_ID 68 | }; 69 | 70 | struct v2f 71 | { 72 | float4 vertex : SV_POSITION; 73 | fixed4 color : COLOR; 74 | float2 texcoord : TEXCOORD0; 75 | float4 worldPosition : TEXCOORD1; 76 | UNITY_VERTEX_OUTPUT_STEREO 77 | }; 78 | 79 | sampler2D _MainTex; 80 | fixed4 _Color; 81 | fixed4 _TextureSampleAdd; 82 | float4 _ClipRect; 83 | float4 _MainTex_ST; 84 | 85 | v2f vert(appdata_t v) 86 | { 87 | v2f OUT; 88 | UNITY_SETUP_INSTANCE_ID(v); 89 | UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(OUT); 90 | OUT.worldPosition = v.vertex; 91 | OUT.vertex = UnityObjectToClipPos(OUT.worldPosition); 92 | 93 | OUT.texcoord = TRANSFORM_TEX(v.texcoord, _MainTex); 94 | 95 | OUT.color = v.color * _Color; 96 | return OUT; 97 | } 98 | 99 | fixed4 frag(v2f IN) : SV_Target 100 | { 101 | half4 color = (tex2D(_MainTex, IN.texcoord) + _TextureSampleAdd) * IN.color; 102 | 103 | #ifdef UNITY_UI_CLIP_RECT 104 | color.a *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect); 105 | #endif 106 | 107 | #ifdef UNITY_UI_ALPHACLIP 108 | clip (color.a - 0.001); 109 | #endif 110 | 111 | return color; 112 | } 113 | ENDCG 114 | } 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMP_Sprite.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf81c85f95fe47e1a27f6ae460cf182c 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMPro.cginc: -------------------------------------------------------------------------------- 1 | float2 UnpackUV(float uv) 2 | { 3 | float2 output; 4 | output.x = floor(uv / 4096); 5 | output.y = uv - 4096 * output.x; 6 | 7 | return output * 0.001953125; 8 | } 9 | 10 | fixed4 GetColor(half d, fixed4 faceColor, fixed4 outlineColor, half outline, half softness) 11 | { 12 | half faceAlpha = 1-saturate((d - outline * 0.5 + softness * 0.5) / (1.0 + softness)); 13 | half outlineAlpha = saturate((d + outline * 0.5)) * sqrt(min(1.0, outline)); 14 | 15 | faceColor.rgb *= faceColor.a; 16 | outlineColor.rgb *= outlineColor.a; 17 | 18 | faceColor = lerp(faceColor, outlineColor, outlineAlpha); 19 | 20 | faceColor *= faceAlpha; 21 | 22 | return faceColor; 23 | } 24 | 25 | float3 GetSurfaceNormal(float4 h, float bias) 26 | { 27 | bool raisedBevel = step(1, fmod(_ShaderFlags, 2)); 28 | 29 | h += bias+_BevelOffset; 30 | 31 | float bevelWidth = max(.01, _OutlineWidth+_BevelWidth); 32 | 33 | // Track outline 34 | h -= .5; 35 | h /= bevelWidth; 36 | h = saturate(h+.5); 37 | 38 | if(raisedBevel) h = 1 - abs(h*2.0 - 1.0); 39 | h = lerp(h, sin(h*3.141592/2.0), _BevelRoundness); 40 | h = min(h, 1.0-_BevelClamp); 41 | h *= _Bevel * bevelWidth * _GradientScale * -2.0; 42 | 43 | float3 va = normalize(float3(1.0, 0.0, h.y - h.x)); 44 | float3 vb = normalize(float3(0.0, -1.0, h.w - h.z)); 45 | 46 | return cross(va, vb); 47 | } 48 | 49 | float3 GetSurfaceNormal(float2 uv, float bias, float3 delta) 50 | { 51 | // Read "height field" 52 | float4 h = {tex2D(_MainTex, uv - delta.xz).a, 53 | tex2D(_MainTex, uv + delta.xz).a, 54 | tex2D(_MainTex, uv - delta.zy).a, 55 | tex2D(_MainTex, uv + delta.zy).a}; 56 | 57 | return GetSurfaceNormal(h, bias); 58 | } 59 | 60 | float3 GetSpecular(float3 n, float3 l) 61 | { 62 | float spec = pow(max(0.0, dot(n, l)), _Reflectivity); 63 | return _SpecularColor.rgb * spec * _SpecularPower; 64 | } 65 | 66 | float4 GetGlowColor(float d, float scale) 67 | { 68 | float glow = d - (_GlowOffset*_ScaleRatioB) * 0.5 * scale; 69 | float t = lerp(_GlowInner, (_GlowOuter * _ScaleRatioB), step(0.0, glow)) * 0.5 * scale; 70 | glow = saturate(abs(glow/(1.0 + t))); 71 | glow = 1.0-pow(glow, _GlowPower); 72 | glow *= sqrt(min(1.0, t)); // Fade off glow thinner than 1 screen pixel 73 | return float4(_GlowColor.rgb, saturate(_GlowColor.a * glow * 2)); 74 | } 75 | 76 | float4 BlendARGB(float4 overlying, float4 underlying) 77 | { 78 | overlying.rgb *= overlying.a; 79 | underlying.rgb *= underlying.a; 80 | float3 blended = overlying.rgb + ((1-overlying.a)*underlying.rgb); 81 | float alpha = underlying.a + (1-underlying.a)*overlying.a; 82 | return float4(blended, alpha); 83 | } 84 | 85 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMPro.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 407bc68d299748449bbf7f48ee690f8d 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMPro_Mobile.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c334973cef89a9840b0b0c507e0377ab 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMPro_Properties.cginc: -------------------------------------------------------------------------------- 1 | // UI Editable properties 2 | uniform sampler2D _FaceTex; // Alpha : Signed Distance 3 | uniform float _FaceUVSpeedX; 4 | uniform float _FaceUVSpeedY; 5 | uniform fixed4 _FaceColor; // RGBA : Color + Opacity 6 | uniform float _FaceDilate; // v[ 0, 1] 7 | uniform float _OutlineSoftness; // v[ 0, 1] 8 | 9 | uniform sampler2D _OutlineTex; // RGBA : Color + Opacity 10 | uniform float _OutlineUVSpeedX; 11 | uniform float _OutlineUVSpeedY; 12 | uniform fixed4 _OutlineColor; // RGBA : Color + Opacity 13 | uniform float _OutlineWidth; // v[ 0, 1] 14 | 15 | uniform float _Bevel; // v[ 0, 1] 16 | uniform float _BevelOffset; // v[-1, 1] 17 | uniform float _BevelWidth; // v[-1, 1] 18 | uniform float _BevelClamp; // v[ 0, 1] 19 | uniform float _BevelRoundness; // v[ 0, 1] 20 | 21 | uniform sampler2D _BumpMap; // Normal map 22 | uniform float _BumpOutline; // v[ 0, 1] 23 | uniform float _BumpFace; // v[ 0, 1] 24 | 25 | uniform samplerCUBE _Cube; // Cube / sphere map 26 | uniform fixed4 _ReflectFaceColor; // RGB intensity 27 | uniform fixed4 _ReflectOutlineColor; 28 | //uniform float _EnvTiltX; // v[-1, 1] 29 | //uniform float _EnvTiltY; // v[-1, 1] 30 | uniform float3 _EnvMatrixRotation; 31 | uniform float4x4 _EnvMatrix; 32 | 33 | uniform fixed4 _SpecularColor; // RGB intensity 34 | uniform float _LightAngle; // v[ 0,Tau] 35 | uniform float _SpecularPower; // v[ 0, 1] 36 | uniform float _Reflectivity; // v[ 5, 15] 37 | uniform float _Diffuse; // v[ 0, 1] 38 | uniform float _Ambient; // v[ 0, 1] 39 | 40 | uniform fixed4 _UnderlayColor; // RGBA : Color + Opacity 41 | uniform float _UnderlayOffsetX; // v[-1, 1] 42 | uniform float _UnderlayOffsetY; // v[-1, 1] 43 | uniform float _UnderlayDilate; // v[-1, 1] 44 | uniform float _UnderlaySoftness; // v[ 0, 1] 45 | 46 | uniform fixed4 _GlowColor; // RGBA : Color + Intesity 47 | uniform float _GlowOffset; // v[-1, 1] 48 | uniform float _GlowOuter; // v[ 0, 1] 49 | uniform float _GlowInner; // v[ 0, 1] 50 | uniform float _GlowPower; // v[ 1, 1/(1+4*4)] 51 | 52 | // API Editable properties 53 | uniform float _ShaderFlags; 54 | uniform float _WeightNormal; 55 | uniform float _WeightBold; 56 | 57 | uniform float _ScaleRatioA; 58 | uniform float _ScaleRatioB; 59 | uniform float _ScaleRatioC; 60 | 61 | uniform float _VertexOffsetX; 62 | uniform float _VertexOffsetY; 63 | 64 | //uniform float _UseClipRect; 65 | uniform float _MaskID; 66 | uniform sampler2D _MaskTex; 67 | uniform float4 _MaskCoord; 68 | uniform float4 _ClipRect; // bottom left(x,y) : top right(z,w) 69 | //uniform float _MaskWipeControl; 70 | //uniform float _MaskEdgeSoftness; 71 | //uniform fixed4 _MaskEdgeColor; 72 | //uniform bool _MaskInverse; 73 | 74 | uniform float _MaskSoftnessX; 75 | uniform float _MaskSoftnessY; 76 | 77 | // Font Atlas properties 78 | uniform sampler2D _MainTex; 79 | uniform float _TextureWidth; 80 | uniform float _TextureHeight; 81 | uniform float _GradientScale; 82 | uniform float _ScaleX; 83 | uniform float _ScaleY; 84 | uniform float _PerspectiveFilter; 85 | uniform float _Sharpness; 86 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMPro_Properties.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3997e2241185407d80309a82f9148466 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMPro_Surface.cginc: -------------------------------------------------------------------------------- 1 | void VertShader(inout appdata_full v, out Input data) 2 | { 3 | v.vertex.x += _VertexOffsetX; 4 | v.vertex.y += _VertexOffsetY; 5 | 6 | UNITY_INITIALIZE_OUTPUT(Input, data); 7 | 8 | float bold = step(v.texcoord1.y, 0); 9 | 10 | // Generate normal for backface 11 | float3 view = ObjSpaceViewDir(v.vertex); 12 | v.normal *= sign(dot(v.normal, view)); 13 | 14 | #if USE_DERIVATIVE 15 | data.param.y = 1; 16 | #else 17 | float4 vert = v.vertex; 18 | float4 vPosition = UnityObjectToClipPos(vert); 19 | float2 pixelSize = vPosition.w; 20 | 21 | pixelSize /= float2(_ScaleX, _ScaleY) * mul((float2x2)UNITY_MATRIX_P, _ScreenParams.xy); 22 | float scale = rsqrt(dot(pixelSize, pixelSize)); 23 | scale *= abs(v.texcoord1.y) * _GradientScale * (_Sharpness + 1); 24 | scale = lerp(scale * (1 - _PerspectiveFilter), scale, abs(dot(UnityObjectToWorldNormal(v.normal.xyz), normalize(WorldSpaceViewDir(vert))))); 25 | data.param.y = scale; 26 | #endif 27 | 28 | data.param.x = (lerp(_WeightNormal, _WeightBold, bold) / 4.0 + _FaceDilate) * _ScaleRatioA * 0.5; // 29 | 30 | v.texcoord1.xy = UnpackUV(v.texcoord1.x); 31 | data.viewDirEnv = mul((float3x3)_EnvMatrix, WorldSpaceViewDir(v.vertex)); 32 | } 33 | 34 | void PixShader(Input input, inout SurfaceOutput o) 35 | { 36 | 37 | #if USE_DERIVATIVE 38 | float2 pixelSize = float2(ddx(input.uv_MainTex.y), ddy(input.uv_MainTex.y)); 39 | pixelSize *= _TextureWidth * .75; 40 | float scale = rsqrt(dot(pixelSize, pixelSize)) * _GradientScale * (_Sharpness + 1); 41 | #else 42 | float scale = input.param.y; 43 | #endif 44 | 45 | // Signed distance 46 | float c = tex2D(_MainTex, input.uv_MainTex).a; 47 | float sd = (.5 - c - input.param.x) * scale + .5; 48 | float outline = _OutlineWidth*_ScaleRatioA * scale; 49 | float softness = _OutlineSoftness*_ScaleRatioA * scale; 50 | 51 | // Color & Alpha 52 | float4 faceColor = _FaceColor; 53 | float4 outlineColor = _OutlineColor; 54 | faceColor *= input.color; 55 | outlineColor.a *= input.color.a; 56 | faceColor *= tex2D(_FaceTex, float2(input.uv2_FaceTex.x + _FaceUVSpeedX * _Time.y, input.uv2_FaceTex.y + _FaceUVSpeedY * _Time.y)); 57 | outlineColor *= tex2D(_OutlineTex, float2(input.uv2_OutlineTex.x + _OutlineUVSpeedX * _Time.y, input.uv2_OutlineTex.y + _OutlineUVSpeedY * _Time.y)); 58 | faceColor = GetColor(sd, faceColor, outlineColor, outline, softness); 59 | faceColor.rgb /= max(faceColor.a, 0.0001); 60 | 61 | #if BEVEL_ON 62 | float3 delta = float3(1.0 / _TextureWidth, 1.0 / _TextureHeight, 0.0); 63 | 64 | float4 smp4x = {tex2D(_MainTex, input.uv_MainTex - delta.xz).a, 65 | tex2D(_MainTex, input.uv_MainTex + delta.xz).a, 66 | tex2D(_MainTex, input.uv_MainTex - delta.zy).a, 67 | tex2D(_MainTex, input.uv_MainTex + delta.zy).a }; 68 | 69 | // Face Normal 70 | float3 n = GetSurfaceNormal(smp4x, input.param.x); 71 | 72 | // Bumpmap 73 | float3 bump = UnpackNormal(tex2D(_BumpMap, input.uv2_FaceTex.xy)).xyz; 74 | bump *= lerp(_BumpFace, _BumpOutline, saturate(sd + outline * 0.5)); 75 | bump = lerp(float3(0, 0, 1), bump, faceColor.a); 76 | n = normalize(n - bump); 77 | 78 | // Cubemap reflection 79 | fixed4 reflcol = texCUBE(_Cube, reflect(input.viewDirEnv, mul((float3x3)unity_ObjectToWorld, n))); 80 | float3 emission = reflcol.rgb * lerp(_ReflectFaceColor.rgb, _ReflectOutlineColor.rgb, saturate(sd + outline * 0.5)) * faceColor.a; 81 | #else 82 | float3 n = float3(0, 0, -1); 83 | float3 emission = float3(0, 0, 0); 84 | #endif 85 | 86 | #if GLOW_ON 87 | float4 glowColor = GetGlowColor(sd, scale); 88 | glowColor.a *= input.color.a; 89 | emission += glowColor.rgb*glowColor.a; 90 | faceColor = BlendARGB(glowColor, faceColor); 91 | faceColor.rgb /= max(faceColor.a, 0.0001); 92 | #endif 93 | 94 | // Set Standard output structure 95 | o.Albedo = faceColor.rgb; 96 | o.Normal = -n; 97 | o.Emission = emission; 98 | o.Specular = lerp(_FaceShininess, _OutlineShininess, saturate(sd + outline * 0.5)); 99 | o.Gloss = 1; 100 | o.Alpha = faceColor.a; 101 | } 102 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Shaders/TMPro_Surface.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d930090c0cd643c7b55f19a38538c162 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0603b6d5186471b96c778c3949c7ce2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt: -------------------------------------------------------------------------------- 1 | This sample of beautiful emojis are provided by EmojiOne https://www.emojione.com/ 2 | 3 | Please visit their website to view the complete set of their emojis and review their licensing terms. -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 381dcb09d5029d14897e55f98031fca5 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Sprites/EmojiOne.json: -------------------------------------------------------------------------------- 1 | {"frames": [ 2 | 3 | { 4 | "filename": "1f60a.png", 5 | "frame": {"x":0,"y":0,"w":128,"h":128}, 6 | "rotated": false, 7 | "trimmed": false, 8 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 9 | "sourceSize": {"w":128,"h":128}, 10 | "pivot": {"x":0.5,"y":0.5} 11 | }, 12 | { 13 | "filename": "1f60b.png", 14 | "frame": {"x":128,"y":0,"w":128,"h":128}, 15 | "rotated": false, 16 | "trimmed": false, 17 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 18 | "sourceSize": {"w":128,"h":128}, 19 | "pivot": {"x":0.5,"y":0.5} 20 | }, 21 | { 22 | "filename": "1f60d.png", 23 | "frame": {"x":256,"y":0,"w":128,"h":128}, 24 | "rotated": false, 25 | "trimmed": false, 26 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 27 | "sourceSize": {"w":128,"h":128}, 28 | "pivot": {"x":0.5,"y":0.5} 29 | }, 30 | { 31 | "filename": "1f60e.png", 32 | "frame": {"x":384,"y":0,"w":128,"h":128}, 33 | "rotated": false, 34 | "trimmed": false, 35 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 36 | "sourceSize": {"w":128,"h":128}, 37 | "pivot": {"x":0.5,"y":0.5} 38 | }, 39 | { 40 | "filename": "1f600.png", 41 | "frame": {"x":0,"y":128,"w":128,"h":128}, 42 | "rotated": false, 43 | "trimmed": false, 44 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 45 | "sourceSize": {"w":128,"h":128}, 46 | "pivot": {"x":0.5,"y":0.5} 47 | }, 48 | { 49 | "filename": "1f601.png", 50 | "frame": {"x":128,"y":128,"w":128,"h":128}, 51 | "rotated": false, 52 | "trimmed": false, 53 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 54 | "sourceSize": {"w":128,"h":128}, 55 | "pivot": {"x":0.5,"y":0.5} 56 | }, 57 | { 58 | "filename": "1f602.png", 59 | "frame": {"x":256,"y":128,"w":128,"h":128}, 60 | "rotated": false, 61 | "trimmed": false, 62 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 63 | "sourceSize": {"w":128,"h":128}, 64 | "pivot": {"x":0.5,"y":0.5} 65 | }, 66 | { 67 | "filename": "1f603.png", 68 | "frame": {"x":384,"y":128,"w":128,"h":128}, 69 | "rotated": false, 70 | "trimmed": false, 71 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 72 | "sourceSize": {"w":128,"h":128}, 73 | "pivot": {"x":0.5,"y":0.5} 74 | }, 75 | { 76 | "filename": "1f604.png", 77 | "frame": {"x":0,"y":256,"w":128,"h":128}, 78 | "rotated": false, 79 | "trimmed": false, 80 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 81 | "sourceSize": {"w":128,"h":128}, 82 | "pivot": {"x":0.5,"y":0.5} 83 | }, 84 | { 85 | "filename": "1f605.png", 86 | "frame": {"x":128,"y":256,"w":128,"h":128}, 87 | "rotated": false, 88 | "trimmed": false, 89 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 90 | "sourceSize": {"w":128,"h":128}, 91 | "pivot": {"x":0.5,"y":0.5} 92 | }, 93 | { 94 | "filename": "1f606.png", 95 | "frame": {"x":256,"y":256,"w":128,"h":128}, 96 | "rotated": false, 97 | "trimmed": false, 98 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 99 | "sourceSize": {"w":128,"h":128}, 100 | "pivot": {"x":0.5,"y":0.5} 101 | }, 102 | { 103 | "filename": "1f609.png", 104 | "frame": {"x":384,"y":256,"w":128,"h":128}, 105 | "rotated": false, 106 | "trimmed": false, 107 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 108 | "sourceSize": {"w":128,"h":128}, 109 | "pivot": {"x":0.5,"y":0.5} 110 | }, 111 | { 112 | "filename": "1f618.png", 113 | "frame": {"x":0,"y":384,"w":128,"h":128}, 114 | "rotated": false, 115 | "trimmed": false, 116 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 117 | "sourceSize": {"w":128,"h":128}, 118 | "pivot": {"x":0.5,"y":0.5} 119 | }, 120 | { 121 | "filename": "1f923.png", 122 | "frame": {"x":128,"y":384,"w":128,"h":128}, 123 | "rotated": false, 124 | "trimmed": false, 125 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 126 | "sourceSize": {"w":128,"h":128}, 127 | "pivot": {"x":0.5,"y":0.5} 128 | }, 129 | { 130 | "filename": "263a.png", 131 | "frame": {"x":256,"y":384,"w":128,"h":128}, 132 | "rotated": false, 133 | "trimmed": false, 134 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 135 | "sourceSize": {"w":128,"h":128}, 136 | "pivot": {"x":0.5,"y":0.5} 137 | }, 138 | { 139 | "filename": "2639.png", 140 | "frame": {"x":384,"y":384,"w":128,"h":128}, 141 | "rotated": false, 142 | "trimmed": false, 143 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 144 | "sourceSize": {"w":128,"h":128}, 145 | "pivot": {"x":0.5,"y":0.5} 146 | }], 147 | "meta": { 148 | "app": "http://www.codeandweb.com/texturepacker", 149 | "version": "1.0", 150 | "image": "EmojiOne.png", 151 | "format": "RGBA8888", 152 | "size": {"w":512,"h":512}, 153 | "scale": "1", 154 | "smartupdate": "$TexturePacker:SmartUpdate:196a26a2e149d875b91ffc8fa3581e76:fc928c7e275404b7e0649307410475cb:424723c3774975ddb2053fd5c4b85f6e$" 155 | } 156 | } 157 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Sprites/EmojiOne.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f05276190cf498a8153f6cbe761d4e6 3 | timeCreated: 1480316860 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/Assets/TextMesh Pro/Sprites/EmojiOne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supremestranger/dungeon-crawler/122c560e3db543ea18046ac34ed36e22e743f05e/dungeon-crawler-unity/Assets/TextMesh Pro/Sprites/EmojiOne.png -------------------------------------------------------------------------------- /dungeon-crawler-unity/Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.leopotam.ecslite": "https://github.com/Leopotam/ecslite.git#2022.3.22", 4 | "com.leopotam.ecslite.di": "https://github.com/Leopotam/ecslite-di.git#2022.3.22", 5 | "com.leopotam.ecslite.extendedsystems": "https://github.com/Leopotam/ecslite-extendedsystems.git#2022.3.22", 6 | "com.leopotam.ecslite.unity.ugui": "https://github.com/Leopotam/ecslite-unity-ugui.git#2022.3.22", 7 | "com.leopotam.ecslite.unityeditor": "https://github.com/Leopotam/ecslite-unityeditor.git#2022.3.22", 8 | "com.unity.collab-proxy": "1.15.4", 9 | "com.unity.ide.rider": "2.0.7", 10 | "com.unity.ide.visualstudio": "2.0.12", 11 | "com.unity.ide.vscode": "1.2.4", 12 | "com.unity.recorder": "2.5.7", 13 | "com.unity.test-framework": "1.1.29", 14 | "com.unity.textmeshpro": "3.0.6", 15 | "com.unity.timeline": "1.4.8", 16 | "com.unity.ugui": "1.0.0", 17 | "com.unity.modules.ai": "1.0.0", 18 | "com.unity.modules.androidjni": "1.0.0", 19 | "com.unity.modules.animation": "1.0.0", 20 | "com.unity.modules.assetbundle": "1.0.0", 21 | "com.unity.modules.audio": "1.0.0", 22 | "com.unity.modules.cloth": "1.0.0", 23 | "com.unity.modules.director": "1.0.0", 24 | "com.unity.modules.imageconversion": "1.0.0", 25 | "com.unity.modules.imgui": "1.0.0", 26 | "com.unity.modules.jsonserialize": "1.0.0", 27 | "com.unity.modules.particlesystem": "1.0.0", 28 | "com.unity.modules.physics": "1.0.0", 29 | "com.unity.modules.physics2d": "1.0.0", 30 | "com.unity.modules.screencapture": "1.0.0", 31 | "com.unity.modules.terrain": "1.0.0", 32 | "com.unity.modules.terrainphysics": "1.0.0", 33 | "com.unity.modules.tilemap": "1.0.0", 34 | "com.unity.modules.ui": "1.0.0", 35 | "com.unity.modules.uielements": "1.0.0", 36 | "com.unity.modules.umbra": "1.0.0", 37 | "com.unity.modules.unityanalytics": "1.0.0", 38 | "com.unity.modules.unitywebrequest": "1.0.0", 39 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 40 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 41 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 42 | "com.unity.modules.unitywebrequestwww": "1.0.0", 43 | "com.unity.modules.vehicles": "1.0.0", 44 | "com.unity.modules.video": "1.0.0", 45 | "com.unity.modules.vr": "1.0.0", 46 | "com.unity.modules.wind": "1.0.0", 47 | "com.unity.modules.xr": "1.0.0" 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 1024 20 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 11 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | m_FrictionType: 0 32 | m_EnableEnhancedDeterminism: 0 33 | m_EnableUnifiedHeightmaps: 1 34 | m_DefaultMaxAngluarSpeed: 7 35 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 11 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 0 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 0 30 | m_SerializeInlineMappingsOnOneLine: 1 -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | m_LogWhenShaderIsCompiled: 0 63 | m_AllowEnlightenSupportForUpgradedProject: 0 64 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreviewPackages: 0 16 | m_EnablePackageDependencies: 0 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | oneTimeWarningShown: 0 20 | m_Registries: 21 | - m_Id: main 22 | m_Name: 23 | m_Url: https://packages.unity.com 24 | m_Scopes: [] 25 | m_IsDefault: 1 26 | m_Capabilities: 7 27 | m_UserSelectedRegistryName: 28 | m_UserAddingNewScopedRegistry: 0 29 | m_RegistryInfoDraft: 30 | m_ErrorMessage: 31 | m_Original: 32 | m_Id: 33 | m_Name: 34 | m_Url: 35 | m_Scopes: [] 36 | m_IsDefault: 0 37 | m_Capabilities: 0 38 | m_Modified: 0 39 | m_Name: 40 | m_Url: 41 | m_Scopes: 42 | - 43 | m_SelectedScopeIndex: 0 44 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2020.3.24f1 2 | m_EditorVersionWithRevision: 2020.3.24f1 (79c78de19888) 3 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - Unit 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_DashboardUrl: https://dashboard.unity3d.com 13 | m_TestInitMode: 0 14 | CrashReportingSettings: 15 | m_EventUrl: https://perf-events.cloud.unity3d.com 16 | m_Enabled: 0 17 | m_LogBufferSize: 10 18 | m_CaptureEditorExceptions: 1 19 | UnityPurchasingSettings: 20 | m_Enabled: 0 21 | m_TestMode: 0 22 | UnityAnalyticsSettings: 23 | m_Enabled: 0 24 | m_TestMode: 0 25 | m_InitializeOnStartup: 1 26 | UnityAdsSettings: 27 | m_Enabled: 0 28 | m_InitializeOnStartup: 1 29 | m_TestMode: 0 30 | m_IosGameId: 31 | m_AndroidGameId: 32 | m_GameIds: {} 33 | m_GameId: 34 | PerformanceReportingSettings: 35 | m_Enabled: 0 36 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /dungeon-crawler-unity/ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } --------------------------------------------------------------------------------