├── .gitignore ├── .vscode └── settings.json ├── Assets ├── DisableOnPlay.cs ├── DisableOnPlay.cs.meta ├── Editor.meta ├── Editor │ ├── SplinesEditor.cs │ ├── SplinesEditor.cs.meta │ ├── SplinesEditorHelpers.cs │ └── SplinesEditorHelpers.cs.meta ├── Resources.meta ├── Resources │ ├── NAMES-F.txt │ ├── NAMES-F.txt.meta │ ├── NAMES-M.txt │ ├── NAMES-M.txt.meta │ ├── NAMES.txt │ ├── NAMES.txt.meta │ ├── PLACES.txt │ └── PLACES.txt.meta ├── SplineMesh.meta ├── SplineMesh │ ├── DemoAssets.meta │ ├── DemoAssets │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── Default.mat │ │ │ ├── Default.mat.meta │ │ │ ├── No Name.mat │ │ │ ├── No Name.mat.meta │ │ │ ├── OrangeUVTester.mat │ │ │ ├── OrangeUVTester.mat.meta │ │ │ ├── ShinyOrange.mat │ │ │ ├── ShinyOrange.mat.meta │ │ │ ├── WetBlack.mat │ │ │ └── WetBlack.mat.meta │ │ ├── Mesh.meta │ │ ├── Mesh │ │ │ ├── Materials.meta │ │ │ ├── Materials │ │ │ │ ├── texture.mat │ │ │ │ └── texture.mat.meta │ │ │ ├── Railling.fbx │ │ │ ├── Railling.fbx.meta │ │ │ ├── cylinder.dae │ │ │ └── cylinder.dae.meta │ │ ├── Prefabs.meta │ │ ├── Prefabs │ │ │ ├── Capsule.prefab │ │ │ ├── Capsule.prefab.meta │ │ │ ├── Light.prefab │ │ │ ├── Light.prefab.meta │ │ │ ├── Pillar.prefab │ │ │ ├── Pillar.prefab.meta │ │ │ ├── RopeSegment.prefab │ │ │ └── RopeSegment.prefab.meta │ │ ├── Texture.meta │ │ └── Texture │ │ │ ├── UVTester.png │ │ │ ├── UVTester.png.meta │ │ │ ├── normalmap-quad.png │ │ │ └── normalmap-quad.png.meta │ ├── Doc.txt │ ├── Doc.txt.meta │ ├── Scripts.meta │ ├── Scripts │ │ ├── Bezier.meta │ │ ├── Bezier │ │ │ ├── CubicBezierCurve.cs │ │ │ ├── CubicBezierCurve.cs.meta │ │ │ ├── CurveSample.cs │ │ │ ├── CurveSample.cs.meta │ │ │ ├── Spline.cs │ │ │ ├── Spline.cs.meta │ │ │ ├── SplineNode.cs │ │ │ ├── SplineNode.cs.meta │ │ │ ├── SplineSmoother.cs │ │ │ └── SplineSmoother.cs.meta │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── SplineEditor.cs │ │ │ ├── SplineEditor.cs.meta │ │ │ ├── SplineExtrusionEditor.cs │ │ │ └── SplineExtrusionEditor.cs.meta │ │ ├── Example.meta │ │ ├── Example │ │ │ ├── ExampleContortAlong.cs │ │ │ ├── ExampleContortAlong.cs.meta │ │ │ ├── ExampleFollowSpline.cs │ │ │ ├── ExampleFollowSpline.cs.meta │ │ │ ├── ExampleGrowingRoot.cs │ │ │ ├── ExampleGrowingRoot.cs.meta │ │ │ ├── ExampleSower.cs │ │ │ ├── ExampleSower.cs.meta │ │ │ ├── ExampleTentacle.cs │ │ │ ├── ExampleTentacle.cs.meta │ │ │ ├── ExampleTrack.cs │ │ │ ├── ExampleTrack.cs.meta │ │ │ ├── RopeBuilder.cs │ │ │ └── RopeBuilder.cs.meta │ │ ├── MeshProcessing.meta │ │ ├── MeshProcessing │ │ │ ├── ExtrusionSegment.cs │ │ │ ├── ExtrusionSegment.cs.meta │ │ │ ├── MeshBender.cs │ │ │ ├── MeshBender.cs.meta │ │ │ ├── MeshVertex.cs │ │ │ ├── MeshVertex.cs.meta │ │ │ ├── SourceMesh.cs │ │ │ ├── SourceMesh.cs.meta │ │ │ ├── SplineExtrusion.cs │ │ │ ├── SplineExtrusion.cs.meta │ │ │ ├── SplineMeshTiling.cs │ │ │ └── SplineMeshTiling.cs.meta │ │ ├── Utils.meta │ │ └── Utils │ │ │ ├── CameraUtility.cs │ │ │ ├── CameraUtility.cs.meta │ │ │ ├── MeshUtility.cs │ │ │ ├── MeshUtility.cs.meta │ │ │ ├── UOUtility.cs │ │ │ └── UOUtility.cs.meta │ ├── Showcase.unity │ └── Showcase.unity.meta ├── TownGenerator.meta ├── TownGenerator │ ├── Materials.meta │ ├── Materials │ │ ├── Building.mat │ │ ├── Building.mat.meta │ │ ├── Gate.mat │ │ ├── Gate.mat.meta │ │ ├── Overlays.meta │ │ ├── Overlays │ │ │ ├── Castle.mat │ │ │ ├── Castle.mat.meta │ │ │ ├── CityCentre.mat │ │ │ ├── CityCentre.mat.meta │ │ │ ├── FarmArea.mat │ │ │ ├── FarmArea.mat.meta │ │ │ ├── OuterCity.mat │ │ │ ├── OuterCity.mat.meta │ │ │ ├── PoorArea.mat │ │ │ ├── PoorArea.mat.meta │ │ │ ├── RichArea.mat │ │ │ ├── RichArea.mat.meta │ │ │ ├── Water.mat │ │ │ ├── Water.mat.meta │ │ │ ├── WithinWalls.mat │ │ │ └── WithinWalls.mat.meta │ │ ├── Road.mat │ │ ├── Road.mat.meta │ │ ├── Tower.mat │ │ ├── Tower.mat.meta │ │ ├── Wall.mat │ │ └── Wall.mat.meta │ ├── Scenes.meta │ ├── Scenes │ │ ├── MMscene.unity │ │ └── MMscene.unity.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── MeshUtils.meta │ │ ├── MeshUtils │ │ ├── Cube.cs │ │ ├── Cube.cs.meta │ │ ├── MeshExtrusion.cs │ │ ├── MeshExtrusion.cs.meta │ │ ├── Polygon.cs │ │ ├── Polygon.cs.meta │ │ ├── Triangulator.cs │ │ └── Triangulator.cs.meta │ │ ├── Town.meta │ │ ├── Town │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── TownBuilderEditor.cs │ │ │ └── TownBuilderEditor.cs.meta │ │ ├── TownBuilder.cs │ │ ├── TownBuilder.cs.meta │ │ ├── TownLib.meta │ │ └── TownLib │ │ │ ├── Area.cs │ │ │ ├── Area.cs.meta │ │ │ ├── Building.cs │ │ │ ├── Building.cs.meta │ │ │ ├── Castle.cs │ │ │ ├── Castle.cs.meta │ │ │ ├── Clipper.meta │ │ │ ├── Clipper │ │ │ ├── Clipper.cs │ │ │ └── Clipper.cs.meta │ │ │ ├── Geom.meta │ │ │ ├── Geom │ │ │ ├── Edge.cs │ │ │ ├── Edge.cs.meta │ │ │ ├── GeometryHelpers.cs │ │ │ ├── GeometryHelpers.cs.meta │ │ │ ├── Polygon.cs │ │ │ ├── Polygon.cs.meta │ │ │ ├── Rectangle.cs │ │ │ ├── Rectangle.cs.meta │ │ │ ├── Vector2.cs │ │ │ ├── Vector2.cs.meta │ │ │ ├── Vector2LengthComparer.cs │ │ │ ├── Vector2LengthComparer.cs.meta │ │ │ ├── Voronoi.cs │ │ │ └── Voronoi.cs.meta │ │ │ ├── Graph.cs │ │ │ ├── Graph.cs.meta │ │ │ ├── ListExtensions.cs │ │ │ ├── ListExtensions.cs.meta │ │ │ ├── Node.cs │ │ │ ├── Node.cs.meta │ │ │ ├── Patch.cs │ │ │ ├── Patch.cs.meta │ │ │ ├── Topology.cs │ │ │ ├── Topology.cs.meta │ │ │ ├── Town.cs │ │ │ ├── Town.cs.meta │ │ │ ├── TownGeometry.cs │ │ │ ├── TownGeometry.cs.meta │ │ │ ├── TownMeshRenderer.cs │ │ │ ├── TownMeshRenderer.cs.meta │ │ │ ├── TownMeshRendererOptions.cs │ │ │ ├── TownMeshRendererOptions.cs.meta │ │ │ ├── TownOptions.cs │ │ │ ├── TownOptions.cs.meta │ │ │ ├── TownRenderer.cs │ │ │ ├── TownRenderer.cs.meta │ │ │ ├── Wall.cs │ │ │ └── Wall.cs.meta │ │ ├── Utils.meta │ │ └── Utils │ │ ├── Random.cs │ │ └── Random.cs.meta ├── TrackTownCameraComponent.cs ├── TrackTownCameraComponent.cs.meta ├── TrackYComponent.cs ├── TrackYComponent.cs.meta ├── _Graphs.meta ├── _Graphs │ ├── TownGenerator FLATTEN BUILDINGS.asset │ ├── TownGenerator FLATTEN BUILDINGS.asset.meta │ ├── TownGenerator.asset │ └── TownGenerator.asset.meta ├── _Image.meta ├── _Image │ ├── 662671-200.png │ ├── 662671-200.png.meta │ ├── Blank.tga │ ├── Blank.tga.meta │ ├── bluehouse.png │ ├── bluehouse.png.meta │ ├── castle icon.mat │ ├── castle icon.mat.meta │ ├── footsteps.png │ ├── footsteps.png.meta │ ├── house.png │ ├── house.png.meta │ ├── loadingCircle.png │ ├── loadingCircle.png.meta │ ├── mapMask.png │ ├── mapMask.png.meta │ ├── mapMaskinner.png │ ├── mapMaskinner.png.meta │ ├── mapborder.png │ ├── mapborder.png.meta │ ├── playerIcon.png │ ├── playerIcon.png.meta │ ├── yellowhouse.png │ └── yellowhouse.png.meta ├── _Layers.meta ├── _Layers │ ├── CliffBright.terrainlayer │ ├── CliffBright.terrainlayer.meta │ ├── CliffDark.terrainlayer │ ├── CliffDark.terrainlayer.meta │ ├── CliffPink.terrainlayer │ ├── CliffPink.terrainlayer.meta │ ├── Dirt 1.terrainlayer │ ├── Dirt 1.terrainlayer.meta │ ├── Dirt.terrainlayer │ ├── Dirt.terrainlayer.meta │ ├── Grass.terrainlayer │ ├── Grass.terrainlayer.meta │ ├── GrassYellow.terrainlayer │ ├── GrassYellow.terrainlayer.meta │ ├── Gravel.terrainlayer │ └── Gravel.terrainlayer.meta ├── _Materials.meta ├── _Materials │ ├── Blue.mat │ ├── Blue.mat.meta │ ├── Building.mat │ ├── Building.mat.meta │ ├── Castle.mat │ ├── Castle.mat.meta │ ├── CityCentre.mat │ ├── CityCentre.mat.meta │ ├── Door.mat │ ├── Door.mat.meta │ ├── Farm.mat │ ├── Farm.mat.meta │ ├── FarmArea.mat │ ├── FarmArea.mat.meta │ ├── Gate.mat │ ├── Gate.mat.meta │ ├── HiddenCity.mat │ ├── HiddenCity.mat.meta │ ├── House.mat │ ├── House.mat.meta │ ├── IconPlayer.mat │ ├── IconPlayer.mat.meta │ ├── Jail.mat │ ├── Jail.mat.meta │ ├── Map.mat │ ├── Map.mat.meta │ ├── MapRoads.mat │ ├── MapRoads.mat.meta │ ├── MarkerCube.mat │ ├── MarkerCube.mat.meta │ ├── MarkerHouse.mat │ ├── MarkerHouse.mat.meta │ ├── MarkerHouse2.mat │ ├── MarkerHouse2.mat.meta │ ├── Market.mat │ ├── Market.mat.meta │ ├── Mill.mat │ ├── Mill.mat.meta │ ├── OuterCity.mat │ ├── OuterCity.mat.meta │ ├── PoorArea.mat │ ├── PoorArea.mat.meta │ ├── Portal.mat │ ├── Portal.mat.meta │ ├── Red.mat │ ├── Red.mat.meta │ ├── RichArea.mat │ ├── RichArea.mat.meta │ ├── Road.mat │ ├── Road.mat.meta │ ├── SKYBOX.mat │ ├── SKYBOX.mat.meta │ ├── Tavern.mat │ ├── Tavern.mat.meta │ ├── Temple.mat │ ├── Temple.mat.meta │ ├── Tower.mat │ ├── Tower.mat.meta │ ├── TownAreaOverlay.mat │ ├── TownAreaOverlay.mat.meta │ ├── TownCenter.mat │ ├── TownCenter.mat.meta │ ├── Wall.mat │ ├── Wall.mat.meta │ ├── Water.mat │ ├── Water.mat.meta │ ├── WithinWalls.mat │ ├── WithinWalls.mat.meta │ ├── Yellow.mat │ ├── Yellow.mat.meta │ ├── _Image.meta │ └── _Image │ │ ├── Ground_Grassy_01.tif │ │ ├── Ground_Grassy_01.tif.meta │ │ ├── Ground_Grassy_01N.tif │ │ ├── Ground_Grassy_01N.tif.meta │ │ ├── TownCamera.renderTexture │ │ └── TownCamera.renderTexture.meta ├── _Prefabs.meta ├── _Prefabs │ ├── Capsule.prefab │ ├── Capsule.prefab.meta │ ├── Castle.prefab │ ├── Castle.prefab.meta │ ├── Footsteps.prefab │ ├── Footsteps.prefab.meta │ ├── GateHouse.prefab │ ├── GateHouse.prefab.meta │ ├── GateHouseOffset.prefab │ ├── GateHouseOffset.prefab.meta │ ├── House.prefab │ ├── House.prefab.meta │ ├── HouseAltTwo.prefab │ ├── HouseAltTwo.prefab.meta │ ├── IconHouse.prefab │ ├── IconHouse.prefab.meta │ ├── IconPlayer.prefab │ ├── IconPlayer.prefab.meta │ ├── IconPoint.prefab │ ├── IconPoint.prefab.meta │ ├── IconTown.prefab │ ├── IconTown.prefab.meta │ ├── ItsASign.prefab │ ├── ItsASign.prefab.meta │ ├── Market.prefab │ ├── Market.prefab.meta │ ├── MasterSpawnerFENCE.prefab │ ├── MasterSpawnerFENCE.prefab.meta │ ├── MasterSpawnerGATEHOUSE.prefab │ ├── MasterSpawnerGATEHOUSE.prefab.meta │ ├── MasterSpawnerWALL.prefab │ ├── MasterSpawnerWALL.prefab.meta │ ├── POI.prefab │ ├── POI.prefab.meta │ ├── SPLINE_WALL_PREFAB.prefab │ ├── SPLINE_WALL_PREFAB.prefab.meta │ ├── SPLINE_WALL_PREFAB_2.prefab │ ├── SPLINE_WALL_PREFAB_2.prefab.meta │ ├── SPLINE_WALL_PREFAB_2_OFFSET.prefab │ ├── SPLINE_WALL_PREFAB_2_OFFSET.prefab.meta │ ├── SPLINE_WALL_PREFAB_OFFSET.prefab │ ├── SPLINE_WALL_PREFAB_OFFSET.prefab.meta │ ├── Signpost.prefab │ ├── Signpost.prefab.meta │ ├── SignpostWriter.prefab │ ├── SignpostWriter.prefab.meta │ ├── SpikeHolder.prefab │ ├── SpikeHolder.prefab.meta │ ├── Tower.prefab │ ├── Tower.prefab.meta │ ├── TowerOffset.prefab │ ├── TowerOffset.prefab.meta │ ├── TownCenter.prefab │ ├── TownCenter.prefab.meta │ ├── WorldMessage.prefab │ └── WorldMessage.prefab.meta ├── _Scenes.meta ├── _Scenes │ ├── SampleScene.unity │ ├── SampleScene.unity.meta │ ├── Town-CentreTextured-FlattenedExteriorHouseBases.unity │ └── Town-CentreTextured-FlattenedExteriorHouseBases.unity.meta ├── _Scripts.meta └── _Scripts │ ├── AOTABundle.cs │ ├── AOTABundle.cs.meta │ ├── ARCHIVED_FOR_FUTURE.meta │ ├── BendyControlMark1.cs │ ├── BendyControlMark1.cs.meta │ ├── BillboardText.cs │ ├── BillboardText.cs.meta │ ├── Classes.meta │ ├── ElvenizeAndHelper.cs │ ├── ElvenizeAndHelper.cs.meta │ ├── FlyCam.cs │ ├── FlyCam.cs.meta │ ├── FollowWithFixedY.cs │ ├── FollowWithFixedY.cs.meta │ ├── FollowXZWithDynamicY.cs │ ├── FollowXZWithDynamicY.cs.meta │ ├── GenerateNameForTile.cs │ ├── GenerateNameForTile.cs.meta │ ├── GlobalRandomObjectsMark1.cs │ ├── GlobalRandomObjectsMark1.cs.meta │ ├── HoleOutMark1.cs │ ├── HoleOutMark1.cs.meta │ ├── Instruments.cs │ ├── Instruments.cs.meta │ ├── Invert_MARK1.cs │ ├── Invert_MARK1.cs.meta │ ├── KeyBind.cs │ ├── KeyBind.cs.meta │ ├── MapKeyBind.cs │ ├── MapKeyBind.cs.meta │ ├── MapMagicRuntimeGeneratorsAOTATownTest.cs │ ├── MapMagicRuntimeGeneratorsAOTATownTest.cs.meta │ ├── MapSplineOutMark1.cs │ ├── MapSplineOutMark1.cs.meta │ ├── MaskToZero.cs │ ├── MaskToZero.cs.meta │ ├── MeshFromImage.cs │ ├── MeshFromImage.cs.meta │ ├── MultiFloor.cs │ ├── MultiFloor.cs.meta │ ├── ObjectSpawner.cs │ ├── ObjectSpawner.cs.meta │ ├── PlaceObjects.cs │ ├── PlaceObjects.cs.meta │ ├── PositioningSettingsSplines.cs │ ├── PositioningSettingsSplines.cs.meta │ ├── RandomGen.cs │ ├── RandomGen.cs.meta │ ├── RandomName.cs │ ├── RandomName.cs.meta │ ├── RenderToImage.cs │ ├── RenderToImage.cs.meta │ ├── RunOnTileActionEvent.cs │ ├── RunOnTileActionEvent.cs.meta │ ├── SplineSysWithPrefab.cs │ ├── SplineSysWithPrefab.cs.meta │ ├── SplinesClamp.cs │ ├── SplinesClamp.cs.meta │ ├── SplinesGeneratorsAutoFromObjects.cs │ ├── SplinesGeneratorsAutoFromObjects.cs.meta │ ├── SplinesGeneratorsCityLink.cs │ ├── SplinesGeneratorsCityLink.cs.meta │ ├── SplinesGeneratorsNoisyStroke.cs │ ├── SplinesGeneratorsNoisyStroke.cs.meta │ ├── SplinesGeneratorsSplineMesh.cs │ ├── SplinesGeneratorsSplineMesh.cs.meta │ ├── SplinesNodesToObjects.cs │ ├── SplinesNodesToObjects.cs.meta │ ├── SubdivideControl.cs │ ├── SubdivideControl.cs.meta │ ├── ToggleEnabledOnCollisionStay.cs │ ├── ToggleEnabledOnCollisionStay.cs.meta │ ├── TownGlobalObject.cs │ ├── TownGlobalObject.cs.meta │ ├── TownGlobalObjectService.cs │ ├── TownGlobalObjectService.cs.meta │ ├── TownInitService.cs │ ├── TownInitService.cs.meta │ ├── TownRequest.cs │ ├── TownRequest.cs.meta │ ├── TownTilePreRender.cs │ ├── TownTilePreRender.cs.meta │ ├── TownTileRenderer.cs │ ├── TownTileRenderer.cs.meta │ ├── TypedSpline.cs │ ├── TypedSpline.cs.meta │ ├── WigglerMini.cs │ ├── WigglerMini.cs.meta │ ├── _DISPLAY_MARK1.cs │ ├── _DISPLAY_MARK1.cs.meta │ ├── _Monobehaviours.meta │ └── _Monobehaviours │ ├── ActivateChildrenOnEnableAfterTime.cs │ ├── ActivateChildrenOnEnableAfterTime.cs.meta │ ├── AlignNodesToTerrainOnEnable.cs │ ├── AlignNodesToTerrainOnEnable.cs.meta │ ├── AlignOnEnable.cs │ ├── AlignOnEnable.cs.meta │ ├── LerpToGround.cs │ ├── LerpToGround.cs.meta │ ├── LerpToGroundAfterDelay.cs │ ├── LerpToGroundAfterDelay.cs.meta │ ├── RotateTowardsThingOnEnable.cs │ ├── RotateTowardsThingOnEnable.cs.meta │ ├── SpawnAndWriteSigns.cs │ └── SpawnAndWriteSigns.cs.meta ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset ├── Readme.md └── TownGenerator.unitypackage /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | Assets/AssetStoreTools* 7 | 8 | .DS_Store 9 | 10 | # Visual Studio cache directory 11 | .vs/ 12 | 13 | # Autogenerated VS/MD/Consulo solution and project files 14 | ExportedObj/ 15 | .consulo/ 16 | *.csproj 17 | *.unityproj 18 | *.sln 19 | *.suo 20 | *.tmp 21 | *.user 22 | *.userprefs 23 | *.pidb 24 | *.booproj 25 | *.svd 26 | *.pdb 27 | *.opendb 28 | 29 | # Unity3D generated meta files 30 | *.pidb.meta 31 | *.pdb.meta 32 | 33 | # Unity3D Generated File On Crash Reports 34 | sysinfo.txt 35 | 36 | # Builds 37 | *.apk -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.exclude": 3 | { 4 | "**/.DS_Store":true, 5 | "**/.git":true, 6 | "**/.gitignore":true, 7 | "**/.gitmodules":true, 8 | "**/*.booproj":true, 9 | "**/*.pidb":true, 10 | "**/*.suo":true, 11 | "**/*.user":true, 12 | "**/*.userprefs":true, 13 | "**/*.unityproj":true, 14 | "**/*.dll":true, 15 | "**/*.exe":true, 16 | "**/*.pdf":true, 17 | "**/*.mid":true, 18 | "**/*.midi":true, 19 | "**/*.wav":true, 20 | "**/*.gif":true, 21 | "**/*.ico":true, 22 | "**/*.jpg":true, 23 | "**/*.jpeg":true, 24 | "**/*.png":true, 25 | "**/*.psd":true, 26 | "**/*.tga":true, 27 | "**/*.tif":true, 28 | "**/*.tiff":true, 29 | "**/*.3ds":true, 30 | "**/*.3DS":true, 31 | "**/*.fbx":true, 32 | "**/*.FBX":true, 33 | "**/*.lxo":true, 34 | "**/*.LXO":true, 35 | "**/*.ma":true, 36 | "**/*.MA":true, 37 | "**/*.obj":true, 38 | "**/*.OBJ":true, 39 | "**/*.asset":true, 40 | "**/*.cubemap":true, 41 | "**/*.flare":true, 42 | "**/*.mat":true, 43 | "**/*.meta":true, 44 | "**/*.prefab":true, 45 | "**/*.unity":true, 46 | "build/":true, 47 | "Build/":true, 48 | "Library/":true, 49 | "library/":true, 50 | "obj/":true, 51 | "Obj/":true, 52 | "ProjectSettings/":true, 53 | "temp/":true, 54 | "Temp/":true 55 | } 56 | } -------------------------------------------------------------------------------- /Assets/DisableOnPlay.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class DisableOnPlay : MonoBehaviour 6 | { 7 | // Start is called before the first frame update 8 | void Start() 9 | { 10 | 11 | this.gameObject.SetActive(false); 12 | } 13 | 14 | 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Assets/DisableOnPlay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8d2b184675041e49b9e7ff5da918b9f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4cc0af76adfed4f46b01abe3b9acb9d7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/SplinesEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | //using UnityEngine.Profiling; 6 | 7 | using Den.Tools; 8 | using Den.Tools.Matrices; 9 | using Den.Tools.GUI; 10 | using MapMagic.Core; 11 | using MapMagic.Products; 12 | using MapMagic.Nodes.GUI; 13 | using MapMagic.Nodes; 14 | 15 | namespace Twobob.Mm2 16 | { 17 | 18 | public partial class SplinesEditor 19 | { 20 | 21 | [Draw.Editor(typeof(MapSplineOutMark1))] 22 | public static void DrawObjectsOutput(MapSplineOutMark1 gen) 23 | { 24 | if (gen.posSettings == null) gen.posSettings = MapSplineOutMark1.CreatePosSettings(gen); 25 | 26 | using (Cell.LineStd) 27 | DrawObjectPrefabs(ref gen.prefabs, gen.guiMultiprefab, treeIcon: true); 28 | 29 | gen.allowReposition = false; 30 | 31 | 32 | using (Cell.LinePx(0)) 33 | using (Cell.Padded(2, 2, 0, 0)) 34 | { 35 | using (Cell.LineStd) Draw.ToggleLeft(ref gen.guiMultiprefab, "Multi-Prefab"); 36 | 37 | Cell.EmptyRowPx(4); 38 | DrawPositioningSettings(gen.posSettings, billboardRotWaring: false); 39 | } 40 | } 41 | 42 | 43 | } 44 | } -------------------------------------------------------------------------------- /Assets/Editor/SplinesEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e090c8797b57d2140abafaa6dc91de57 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/SplinesEditorHelpers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d9cb7c4206a65f439a51a12c2026e96 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2833d5573aba734c92d909980761b64 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/NAMES-F.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e05542759275fc45b567a81ed2b0642 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources/NAMES-M.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1798e622e9be21943856848b1f6b7414 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources/NAMES.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5aa6d1e4445d5a84992a106dc1f98d34 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources/PLACES.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f8f35510696f484a9e60fa2c66172b1 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/SplineMesh.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9b49210c76aad24198fc2933124d8f3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15cbdaa4080c19348aca7a7c80cc6d91 3 | folderAsset: yes 4 | timeCreated: 1510260367 5 | licenseType: Store 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba3cef361f8301a4bad3494d6cee638f 3 | folderAsset: yes 4 | timeCreated: 1510348333 5 | licenseType: Store 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Materials/Default.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2ded7645929e1746befa52ddd920fbb 3 | timeCreated: 1509722081 4 | licenseType: Store 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Materials/No Name.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 684e38a396e0e4a47b7d8888e140e426 3 | timeCreated: 1510348333 4 | licenseType: Store 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Materials/OrangeUVTester.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 863715256888b184fb566639a2b188cc 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Materials/ShinyOrange.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c83e7f8994f9e3b42b86fa3691fc742b 3 | timeCreated: 1509723365 4 | licenseType: Store 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Materials/WetBlack.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8c8701b896a8184e8974775b53a7fd7 3 | timeCreated: 1509723525 4 | licenseType: Store 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Mesh.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7edb1e0bf243bd448a3052de6c2ae6e 3 | folderAsset: yes 4 | timeCreated: 1510363809 5 | licenseType: Store 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Mesh/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af5abe62ba87f494c9dc4af3ba7b53af 3 | folderAsset: yes 4 | timeCreated: 1560898012 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Mesh/Materials/texture.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58433726f5cc13f4dbfb52944dbbcc11 3 | timeCreated: 1560898012 4 | licenseType: Store 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Mesh/Railling.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/SplineMesh/DemoAssets/Mesh/Railling.fbx -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d65fb88dea2b1bd4592b7f19a805c297 3 | folderAsset: yes 4 | timeCreated: 1510363791 5 | licenseType: Store 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Prefabs/Capsule.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65290c8a0968be743bf5b4c95114c272 3 | timeCreated: 1510362044 4 | licenseType: Store 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 100100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Prefabs/Light.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9494ee67b305f9e4da72aea2e0ca82dc 3 | timeCreated: 1510362451 4 | licenseType: Store 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 100100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Prefabs/Pillar.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 767f61632ccbf8c46acb9fc29f0f79e3 3 | timeCreated: 1510363784 4 | licenseType: Store 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 100100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Prefabs/RopeSegment.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 36b9b82bb143831419bf2e7113dad3ac 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Texture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 73e181380ad50194c95f19b01d773d42 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Texture/UVTester.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/SplineMesh/DemoAssets/Texture/UVTester.png -------------------------------------------------------------------------------- /Assets/SplineMesh/DemoAssets/Texture/normalmap-quad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/SplineMesh/DemoAssets/Texture/normalmap-quad.png -------------------------------------------------------------------------------- /Assets/SplineMesh/Doc.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f209adc2d95dcf4fb2ccf5d8355a3b9 3 | timeCreated: 1510689994 4 | licenseType: Store 5 | TextScriptImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04ec9797dac1bef44b99fe06014f1988 3 | folderAsset: yes 4 | timeCreated: 1509721232 5 | licenseType: Store 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Bezier.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c5b179e4fe3ffa43ab663be45758da6 3 | folderAsset: yes 4 | timeCreated: 1499505673 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Bezier/CubicBezierCurve.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 72d7c273c1cdb4447ac76f4f8eaa0ba1 3 | timeCreated: 1496346594 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Bezier/CurveSample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50dca9a395f88c54e8349ccff19f097b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Bezier/Spline.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a85c5879d519aa4ab2ebbf42591149a 3 | timeCreated: 1496346246 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Bezier/SplineNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1fcdfb895c0d3cd409b1f79c2c9ff09b 3 | timeCreated: 1496346255 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Bezier/SplineSmoother.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c3c62baecdb58fe4583d8f8283102e76 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c764e36e8d99fb44a7c58115383e6fe 3 | folderAsset: yes 4 | timeCreated: 1496349582 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Editor/SplineEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 939ffc1cc7c3bfc42b8b61242dd8f0f6 3 | timeCreated: 1500675319 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Editor/SplineExtrusionEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f8d2f224507f8d4881b64654b6cb902 3 | timeCreated: 1499183036 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Example.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f08b8edc2f03d414d87eb3b7dbb457cb 3 | folderAsset: yes 4 | timeCreated: 1499182645 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Example/ExampleContortAlong.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d306cefadf2ceb47a68968ad99b781f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Example/ExampleFollowSpline.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEditor; 4 | using UnityEngine; 5 | 6 | namespace SplineMesh { 7 | /// 8 | /// Example of component to show that the spline is an independant mathematical component and can be used for other purposes than mesh deformation. 9 | /// 10 | /// This component is only for demo purpose and is not intended to be used as-is. 11 | /// 12 | /// We only move an object along the spline. Imagine a camera route, a ship patrol... 13 | /// 14 | [ExecuteInEditMode] 15 | [RequireComponent(typeof(Spline))] 16 | public class ExampleFollowSpline : MonoBehaviour { 17 | private GameObject generated; 18 | private Spline spline; 19 | private float rate = 0; 20 | 21 | public GameObject Follower; 22 | public float DurationInSecond; 23 | 24 | private void OnEnable() { 25 | rate = 0; 26 | string generatedName = "generated by " + GetType().Name; 27 | var generatedTranform = transform.Find(generatedName); 28 | generated = generatedTranform != null ? generatedTranform.gameObject : Instantiate(Follower, gameObject.transform); 29 | generated.name = generatedName; 30 | 31 | spline = GetComponent(); 32 | #if UNITY_EDITOR 33 | EditorApplication.update += EditorUpdate; 34 | #endif 35 | } 36 | 37 | void OnDisable() { 38 | #if UNITY_EDITOR 39 | EditorApplication.update -= EditorUpdate; 40 | #endif 41 | } 42 | 43 | void EditorUpdate() { 44 | rate += Time.deltaTime / DurationInSecond; 45 | if (rate > spline.nodes.Count - 1) { 46 | rate -= spline.nodes.Count - 1; 47 | } 48 | PlaceFollower(); 49 | } 50 | 51 | private void PlaceFollower() { 52 | if (generated != null) { 53 | CurveSample sample = spline.GetSample(rate); 54 | generated.transform.localPosition = sample.location; 55 | generated.transform.localRotation = sample.Rotation; 56 | } 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Example/ExampleFollowSpline.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 371753988c008004ca1da9ce435ba75b 3 | timeCreated: 1510601846 4 | licenseType: Store 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Example/ExampleGrowingRoot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0509837adb1f3f6429965e5500c48b55 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Example/ExampleSower.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67bc80d4c1c799346b57921fb3aaeeeb 3 | timeCreated: 1504637208 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Example/ExampleTentacle.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace SplineMesh { 7 | /// 8 | /// Example of component to bend a mesh along a spline with some interpolation of scales and rolls. This component can be used as-is but will most likely be a base for your own component. 9 | /// 10 | /// For explanations of the base component, 11 | /// 12 | /// In this component, we have added properties to make scale and roll vary between spline start and end. 13 | /// Intermediate scale and roll values are calculated at each spline node accordingly to the distance, then given to the MeshBenders component. 14 | /// MeshBender applies scales and rolls values by interpollation if they differ from strat to end of the curve. 15 | /// 16 | /// You can easily imagine a list of scales to apply to each node independantly to create your own variation. 17 | /// 18 | [DisallowMultipleComponent] 19 | public class ExampleTentacle : MonoBehaviour { 20 | private Spline spline { get => GetComponent(); } 21 | 22 | public float startScale = 1, endScale = 1; 23 | public float startRoll = 0, endRoll = 0; 24 | 25 | private void OnValidate() { 26 | // apply scale and roll at each node 27 | float currentLength = 0; 28 | foreach (CubicBezierCurve curve in spline.GetCurves()) { 29 | float startRate = currentLength / spline.Length; 30 | currentLength += curve.Length; 31 | float endRate = currentLength / spline.Length; 32 | 33 | curve.n1.Scale = Vector2.one * (startScale + (endScale - startScale) * startRate); 34 | curve.n2.Scale = Vector2.one * (startScale + (endScale - startScale) * endRate); 35 | 36 | curve.n1.Roll = startRoll + (endRoll - startRoll) * startRate; 37 | curve.n2.Roll = startRoll + (endRoll - startRoll) * endRate; 38 | } 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Example/ExampleTentacle.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 24d1b6e1e070eb14fa89607942b123cf 3 | timeCreated: 1499271585 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Example/ExampleTrack.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da5789f52fd48f54fb21c95bd79108e0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Example/RopeBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 527bc1a47e91189469f521ea197a5f6c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/MeshProcessing.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f3755077c971d54492da57d5b6497f1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/MeshProcessing/ExtrusionSegment.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67dc87f5a664ca14d9492006284bbca2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/MeshProcessing/MeshBender.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8cda9ed2ad6a8b4781166236afc26b3 3 | timeCreated: 1499508394 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/MeshProcessing/MeshVertex.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using System; 4 | 5 | namespace SplineMesh { 6 | [Serializable] 7 | public class MeshVertex { 8 | public Vector3 position; 9 | public Vector3 normal; 10 | public Vector2 uv; 11 | 12 | public MeshVertex(Vector3 position, Vector3 normal, Vector2 uv) { 13 | this.position = position; 14 | this.normal = normal; 15 | this.uv = uv; 16 | } 17 | 18 | public MeshVertex(Vector3 position, Vector3 normal) 19 | : this(position, normal, Vector2.zero) 20 | { 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/MeshProcessing/MeshVertex.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9956472d7384e9140aecfec0a88b1962 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/MeshProcessing/SourceMesh.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6809125401b4116468732e472cad438b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/MeshProcessing/SplineExtrusion.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d1eb05ecfaa05444b40d40a2ea2268f 3 | timeCreated: 1499169609 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/MeshProcessing/SplineMeshTiling.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 174367e175762fb48ba55d6171e99990 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Utils.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 42e70c99c5a7ff64db0ef5efafa2c82e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Utils/CameraUtility.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace SplineMesh { 8 | public static class CameraUtility { 9 | public static bool IsOnScreen(Vector3 position) { 10 | Vector3 onScreen = Camera.current.WorldToViewportPoint(position); 11 | return onScreen.z > 0 && onScreen.x > 0 && onScreen.y > 0 && onScreen.x < 1 && onScreen.y < 1; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Utils/CameraUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a781badaa77fcbd409622fbddeeda765 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Utils/MeshUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c524c1f7e9141014aba14c56c6b1baad 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Utils/UOUtility.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using System.Linq; 4 | using System; 5 | 6 | namespace SplineMesh { 7 | public static class UOUtility { 8 | public static GameObject Create(string name, GameObject parent, params Type[] components) { 9 | var res = new GameObject(name, components); 10 | res.transform.parent = parent.transform; 11 | res.transform.localPosition = Vector3.zero; 12 | res.transform.localScale = Vector3.one; 13 | res.transform.localRotation = Quaternion.identity; 14 | return res; 15 | } 16 | 17 | public static GameObject Instantiate(GameObject prefab, Transform parent) { 18 | var res = UnityEngine.Object.Instantiate(prefab, parent); 19 | res.transform.localPosition = Vector3.zero; 20 | res.transform.localRotation = Quaternion.identity; 21 | res.transform.localScale = Vector3.one; 22 | return res; 23 | } 24 | 25 | public static void Destroy(GameObject go) { 26 | if (Application.isPlaying) { 27 | UnityEngine.Object.Destroy(go); 28 | } else { 29 | UnityEngine.Object.DestroyImmediate(go); 30 | } 31 | } 32 | 33 | public static void Destroy(Component comp) { 34 | if (Application.isPlaying) { 35 | UnityEngine.Object.Destroy(comp); 36 | } else { 37 | UnityEngine.Object.DestroyImmediate(comp); 38 | } 39 | } 40 | 41 | public static void DestroyChildren(GameObject go) { 42 | var childList = go.transform.Cast().ToList(); 43 | foreach (Transform childTransform in childList) { 44 | Destroy(childTransform.gameObject); 45 | } 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Scripts/Utils/UOUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a4e07385171f27439dd485c6211462f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SplineMesh/Showcase.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e717c5efb24aa349a1ed37e8978438b 3 | timeCreated: 1509734707 4 | licenseType: Store 5 | DefaultImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TownGenerator.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b34145f9780bcb64e834d14835f4f304 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 303860676aa65b34cb12b1d6cb458c1f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Building.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_PrefabInternal: {fileID: 0} 9 | m_Name: Building 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.2924528, g: 0.13530102, b: 0, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Building.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7529dd3cf2a8f542a75ec218e1133d4 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Gate.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_PrefabInternal: {fileID: 0} 9 | m_Name: Gate 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.3962264, g: 0.3962264, b: 0.3962264, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Gate.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 132aeadaa1c20024ebaef60ef266b807 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17c0ca30ae42505428407f84b61a30e8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays/Castle.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_PrefabInternal: {fileID: 0} 9 | m_Name: Castle 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.6698113, g: 0.6698113, b: 0.6698113, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays/Castle.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41cf47cb826053c49b6ea334735328d4 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays/CityCentre.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_PrefabInternal: {fileID: 0} 9 | m_Name: CityCentre 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.42352942, g: 0.18431373, b: 0, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays/CityCentre.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f6c3ddbcd209ded4b9c1b32a0a274e51 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays/FarmArea.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_PrefabInternal: {fileID: 0} 9 | m_Name: FarmArea 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.56078434, g: 0.6431373, b: 0.49803922, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays/FarmArea.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52501dced65b09a47ad61c027a8765f5 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays/OuterCity.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_PrefabInternal: {fileID: 0} 9 | m_Name: OuterCity 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.56024003, g: 0.6415094, b: 0.499288, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays/OuterCity.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eaa5aae3d1baff34d925d05b64aee6ef 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays/PoorArea.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_PrefabInternal: {fileID: 0} 9 | m_Name: PoorArea 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.4528302, g: 0.2904712, b: 0.19010323, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays/PoorArea.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f85f5487ffe1074428f1f796dc96574f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays/RichArea.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a554b8e2c70bcf49b8b0d125259fffd 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays/Water.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4fa1a7bca53fc54888b67868df821af 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Overlays/WithinWalls.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47af342d5b49b894ab36e1cc213641c5 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/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_PrefabInternal: {fileID: 0} 9 | m_Name: Road 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.4245283, g: 0.18335366, b: 0, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Road.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a500729d32edeb4faa3ba8ea9fee90c 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Tower.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_PrefabInternal: {fileID: 0} 9 | m_Name: Tower 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.3962264, g: 0.3962264, b: 0.3962264, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Tower.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3038e43a2cccca5429387369320f2dc1 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Materials/Wall.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2018f7b35a0a74647a01956924d97808 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f704ae4b4f98ae41a0bce26658850c1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scenes/MMscene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e1e6eb5ac9dedd44a6010fdc373074c 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1fed8d9a2f9b0ce47927f8d8ed68ba02 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/MeshUtils.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f2677df30319be4c9d7d647739a2e96 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/MeshUtils/Cube.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d27dd986c9b6fb4881e56ae25868baf 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/MeshUtils/MeshExtrusion.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 030a6899ac8911e4cabc5dd2f90ffacb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/MeshUtils/Polygon.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 53986fbaedc7ea74194250cfc6d45bc9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/MeshUtils/Triangulator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 342790931a8ceff4a8515c01d4151329 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4673487225d658459250270c4884f54 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bcba7be9e7bdf2a46b921ae26cba5c07 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/Editor/TownBuilderEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | [CustomEditor (typeof (TownBuilder))] 5 | public class TownBuilderEditor : Editor 6 | { 7 | public override void OnInspectorGUI () 8 | { 9 | base.OnInspectorGUI (); 10 | TownBuilder builder = target as TownBuilder; 11 | 12 | if (GUILayout.Button ("Generate")) 13 | { 14 | builder.Generate (); 15 | } 16 | 17 | if (GUILayout.Button ("Generate Random")) 18 | { 19 | builder.GenerateRandom (); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/Editor/TownBuilderEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b0db621b6d965446851cf87c4e30ab9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownBuilder.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using Town; 4 | using UnityEngine; 5 | using UnityEngine.Profiling; 6 | 7 | public class TownBuilder : MonoBehaviour 8 | { 9 | public TownOptions townOptions = new TownOptions (); 10 | public TownMeshRendererOptions rendererOptions = new TownMeshRendererOptions (); 11 | 12 | public void Clear () 13 | { 14 | if (rendererOptions.Root == null) 15 | { 16 | rendererOptions.Root = new GameObject ("TownRoot").transform; 17 | } 18 | for (int i = rendererOptions.Root.childCount - 1; i > -1; i--) 19 | { 20 | DestroyImmediate (rendererOptions.Root.GetChild (i).gameObject); 21 | } 22 | } 23 | 24 | public void GenerateRandom () 25 | { 26 | townOptions.Seed = Random.Range (1, 999999); 27 | Generate (); 28 | } 29 | 30 | public void Generate () 31 | { 32 | Clear (); 33 | Profiler.BeginSample ("TownGenerator"); 34 | 35 | var town = new Town.Town (townOptions); 36 | 37 | var renderer = new TownMeshRenderer (town, townOptions, rendererOptions); 38 | 39 | renderer.Generate (); 40 | 41 | Profiler.EndSample (); 42 | } 43 | } -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e876073e1b3da834aaa155d5e3d86eeb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 557cb221d9ff5ec46b68f49c0b97da52 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Area.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa2c7018d11ce0242b048c0ff905180e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Building.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 100f2f164544cf342916cf83e679839c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Castle.cs: -------------------------------------------------------------------------------- 1 | namespace Town 2 | { 3 | public class Castle 4 | { 5 | public Patch Patch { get; } 6 | public Wall Wall { get; set; } 7 | 8 | public Castle(Patch patch) 9 | { 10 | Patch = patch; 11 | Patch.HasCastle = true; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Castle.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f0d908c2af7b03043999a4e55859c3bb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Clipper.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ceb769f5380a2f41837f2e769a3f8a5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Clipper/Clipper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21d948f859772474787a3803dacbd0ad 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Geom.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9741a4f73459e34ca7d5c7af7c211b2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Geom/Edge.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6ed7233db2b30b4889ad1efca871368 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Geom/GeometryHelpers.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Town.Geom 4 | { 5 | public static class GeometryHelpers 6 | { 7 | public static Vector2 IntersectLines(float x1, float y1, float dx1, float dy1, float x2, float y2, float dx2, 8 | float dy2) 9 | { 10 | var d = dx1 * dy2 - dy1 * dx2; 11 | if (Math.Abs(d) < 0.01) 12 | { 13 | return Vector2.Invalid; 14 | } 15 | 16 | var t2 = (dy1 * (x2 - x1) - dx1 * (y2 - y1)) / d; 17 | var t1 = Math.Abs(dx1) > 0.0001 ? (x2 - x1 + dx2 * t2) / dx1 : (y2 - y1 + dy2 * t2) / dy1; 18 | 19 | return new Vector2(t1, t2); 20 | } 21 | 22 | public static Vector2 Interpolate(Vector2 p1, Vector2 p2, float ratio = 0.5f) 23 | { 24 | var d = p2 - p1; 25 | return new Vector2(p1.x + d.x * ratio, p1.y + d.y * ratio); 26 | } 27 | 28 | //public static inline function scalar(x1:Float, y1:Float, x2:Float, y2:Float ) 29 | //return x1* x2 + y1* y2; 30 | 31 | public static float CrossProduct(float x1, float y1, float x2, float y2) 32 | { 33 | return x1 * y2 - y1 * x2; 34 | } 35 | 36 | public static float DistanceToLine(Vector2 a, Vector2 b, Vector2 p) 37 | { 38 | var ap = p - a; 39 | var ab = b - a; 40 | 41 | return Vector2.Dot(ap, ab) / (ab.Length * ab.Length); 42 | } 43 | 44 | } 45 | } -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Geom/GeometryHelpers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 081ffe7c489e73d4e93036ad0a4c86ae 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Geom/Polygon.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f71ccb89e5b1f914d9c7a45c31fc95f2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Geom/Rectangle.cs: -------------------------------------------------------------------------------- 1 | namespace Town.Geom 2 | { 3 | public struct Rectangle 4 | { 5 | public static readonly Rectangle Zero = new Rectangle(0, 0, 0, 0); 6 | public static readonly Rectangle One = new Rectangle(1, 1, 1, 1); 7 | 8 | public float X, Y, Width, Height; 9 | 10 | public Rectangle(float x, float y, float width, float height) 11 | { 12 | X = x; 13 | Y = y; 14 | Width = width; 15 | Height = height; 16 | } 17 | 18 | public float Left => X; 19 | 20 | public float Right => X + Width; 21 | 22 | public float Top => Y; 23 | 24 | public float Bottom => Y + Height; 25 | 26 | public Vector2 TopLeft => new Vector2(Left, Top); 27 | 28 | public Vector2 BottomRight => new Vector2(Right, Bottom); 29 | 30 | public Rectangle Expand(float amount) 31 | { 32 | return new Rectangle(X - amount, Y - amount, Width + 2 * amount, Height + 2 * amount); 33 | } 34 | 35 | public string ToSvgViewport() 36 | { 37 | return $"{X} {Y} {Width} {Height}"; 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Geom/Rectangle.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5efe8e8aa6edcc2499643f34266ae776 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Geom/Vector2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc2cb1e5392223e4d87e7b074674a12e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Geom/Vector2LengthComparer.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Town.Geom 4 | { 5 | public class Vector2LengthComparer : IComparer 6 | { 7 | public int Compare(Vector2 x, Vector2 y) 8 | { 9 | return x.Length.CompareTo(y.Length); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Geom/Vector2LengthComparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e84e40221362d184bbe81836c6b25aa0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Geom/Voronoi.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80582223394e0b243bb20fb08b797413 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Graph.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96fb54600a60fe04585d4f51dd4fb824 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/ListExtensions.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using Town.Geom; 4 | 5 | namespace Town 6 | { 7 | public static class ListExtensions 8 | { 9 | public static void RemoveFirstIfPossible(this List list) 10 | { 11 | if (list.Any()) 12 | { 13 | list.RemoveAt(0); 14 | } 15 | } 16 | 17 | public static List SmoothVertexList(this List list, float amount = 1f) 18 | { 19 | var v1 = list[0]; 20 | var v2 = list[1]; 21 | 22 | var newVertices = new List {list[0]}; 23 | 24 | for (var v = 1; v < list.Count - 1; v++) 25 | { 26 | var v0 = v1; 27 | v1 = v2; 28 | v2 = list[v + 1]; 29 | newVertices.Add(new Vector2((v0.x + v1.x * amount + v2.x) / (2 + amount), (v0.y + v1.y * amount + v2.y) / (2 + amount))); 30 | } 31 | 32 | newVertices.Add(list.Last()); 33 | 34 | return newVertices; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/ListExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1f27cba02ac0b24ea2723cb0a9d35ad 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Node.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Town 4 | { 5 | public class Node 6 | { 7 | private static int _counter; 8 | public Dictionary Links = new Dictionary(); 9 | public readonly int Id; 10 | 11 | public Node() 12 | { 13 | Id = _counter++; 14 | } 15 | 16 | public void Link(Node node, float price = 1f, bool symmetrical = true) 17 | { 18 | Links[node] = price; 19 | if (symmetrical) 20 | { 21 | node.Links[this] = price; 22 | } 23 | } 24 | 25 | public void Unlink(Node node, bool symmetrical = true) 26 | { 27 | Links.Remove(node); 28 | if (symmetrical) 29 | { 30 | node.Links.Remove(this); 31 | } 32 | } 33 | 34 | public void UnlinkAll() 35 | { 36 | Links.Clear(); 37 | } 38 | 39 | public override string ToString() 40 | { 41 | return $"Node({Id})"; 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Node.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c2d30ad15c03cc45864543b5a698df6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Patch.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fee5d0e04a666e941a428ea0a5a5c72b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Topology.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7dd02a72c1c663c40ac911f4c2576f83 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Town.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fdd47dfeee2fad4e8e7345adb76bc1f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/TownGeometry.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using Town.Geom; 3 | 4 | namespace Town 5 | { 6 | public class TownGeometry 7 | { 8 | public TownGeometry () 9 | { 10 | Buildings = new List (); 11 | Walls = new List (); 12 | Towers = new List (); 13 | Gates = new List (); 14 | Roads = new List> (); 15 | Overlay = new List (); 16 | Water = new List (); 17 | } 18 | 19 | public List Buildings { get; } 20 | public List Walls { get; } 21 | public List Towers { get; } 22 | public List Gates { get; } 23 | public List> Roads { get; } 24 | public List Overlay { get; } 25 | public List Water { get; } 26 | public Polygon WaterBorder { get; set; } 27 | } 28 | } -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/TownGeometry.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abd9bacbd44729b40a919eb166140606 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/TownMeshRenderer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e337467e5b76c2641903dabe43cb1e3d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/TownMeshRendererOptions.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Town 4 | { 5 | [System.Serializable] 6 | public class TownMeshRendererOptions 7 | { 8 | public Transform Root; 9 | public Transform MapRoot; 10 | 11 | // we include this here since the TownModelOverlays need them 12 | public GameObject signPrefab; 13 | 14 | public Material BuildingMaterial; 15 | public Material RoadMaterial; 16 | public Material WallMaterial; 17 | public Material TowerMaterial; 18 | public Material GateMaterial; 19 | public Material OuterCityGroundMaterial; 20 | public Material TownMarkerCubeMaterial; 21 | public Material CityCenterGround; 22 | public Material WithinWallsGroundMaterial; 23 | public Material CastleGroundMaterial; 24 | public Material WaterMaterial; 25 | public Material PoorArea; 26 | public Material RichArea; 27 | public Material FarmArea; 28 | 29 | public Material HiddenCity; 30 | public Material TownModelsOverlay; 31 | 32 | } 33 | } -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/TownMeshRendererOptions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6654de3515b4ef46b6af904d4d7c34f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/TownOptions.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Town 4 | { 5 | [System.Serializable] 6 | public class TownOptions 7 | { 8 | 9 | [HideInInspector] 10 | public bool Overlay = false; 11 | public bool Walls = true; 12 | public bool Towers = true; 13 | [HideInInspector] 14 | public bool Farm = false; 15 | [HideInInspector] 16 | public bool Water = false; 17 | [HideInInspector] 18 | public bool Roads = false; 19 | 20 | // [Range (2, 200)] 21 | [HideInInspector] 22 | public int Patches = 50; 23 | public int Seed = 4074; 24 | 25 | [HideInInspector] 26 | public Den.Tools.Coord coord; 27 | 28 | public Geom.Vector2 mapOffset; 29 | public Geom.Vector2 townOffset; // { get { return mapOffset.ToTileSizeTownGeomVector2(); } 30 | //private set {; } } 31 | 32 | public static TownOptions Default => new TownOptions { Patches = 50 }; 33 | 34 | [HideInInspector] 35 | public bool CityDetail = true; 36 | 37 | [HideInInspector] 38 | public bool IOC = true; 39 | } 40 | } -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/TownOptions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 879d68ce390998e439bc7b8cbf08ca9a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/TownRenderer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a1edaf540a7eae49b6b0535f9be2cb1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Town/TownLib/Wall.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9721b96c7b675e6439084a52edcd72ac 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Utils.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 774bdc50bdddc4842ac2be89a778a853 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Utils/Random.cs: -------------------------------------------------------------------------------- 1 | namespace Utils 2 | { 3 | public class Random : System.Random 4 | { 5 | int seed; 6 | public Random (int Seed) : base (Seed) 7 | { 8 | seed = Seed; 9 | } 10 | 11 | public int Range (int min, int max) 12 | { 13 | return Next (min, max); 14 | } 15 | 16 | public float Range (float min, float max) 17 | { 18 | return (float) NextDouble () * max + min; 19 | } 20 | 21 | public bool Boolean (float min) 22 | { 23 | return NextDouble () < min; 24 | } 25 | 26 | public float value 27 | { 28 | get 29 | { 30 | return (float) NextDouble (); 31 | } 32 | } 33 | 34 | public bool boolean 35 | { 36 | get 37 | { 38 | return NextDouble () < 0.5; 39 | } 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /Assets/TownGenerator/Scripts/Utils/Random.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 586963a950b0f1f4a96009c86d61021e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TrackTownCameraComponent.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class TrackTownCameraComponent : MonoBehaviour 6 | { 7 | 8 | private Transform thing; 9 | 10 | private Vector3 place; 11 | 12 | public bool trackPosition = true; 13 | 14 | public float offset = 0; 15 | 16 | private void OnEnable() 17 | { 18 | thing = TownCameraComponent.TownCamera; 19 | 20 | place = thing.position; 21 | 22 | } 23 | 24 | void LateUpdate() 25 | { 26 | if (trackPosition) 27 | { 28 | place = thing.position; 29 | 30 | transform.position = new Vector3(transform.position.x, place.y + offset, transform.position.z); 31 | } 32 | 33 | 34 | } 35 | } 36 | 37 | public static class TownCameraComponent { 38 | 39 | private static Transform cam; 40 | 41 | public static Transform TownCamera { get { 42 | if (cam == null) 43 | { 44 | cam = GameObject.Find("TownCamera").transform; 45 | } 46 | return cam; 47 | 48 | } 49 | private set { } 50 | } 51 | 52 | } 53 | 54 | 55 | -------------------------------------------------------------------------------- /Assets/TrackTownCameraComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6fae6462cf3729f4580ba98040d89c06 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TrackYComponent.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class TrackYComponent : MonoBehaviour 6 | { 7 | 8 | public Transform thing; 9 | 10 | private Vector3 place; 11 | 12 | public bool trackPosition = true; 13 | 14 | public float offset = 0; 15 | 16 | private void OnEnable() 17 | { 18 | place = thing.position; 19 | 20 | } 21 | 22 | void LateUpdate() 23 | { 24 | if (trackPosition) 25 | { 26 | place = thing.position; 27 | 28 | transform.position = new Vector3(transform.position.x, place.y + offset, transform.position.z); 29 | } 30 | 31 | 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Assets/TrackYComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: db8b8fe7ba38d634f9ec28478a9f33eb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Graphs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43c966ec9f2a0a64bb43ef453d9426f7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Graphs/TownGenerator FLATTEN BUILDINGS.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 859d98b967e8d82498c7888c3d1eeb06 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Graphs/TownGenerator.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ec419d8aa269cf43a1dac6fab190fd3 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Image.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f35e421340f86944a10ba1a365856ed 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Image/662671-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/_Image/662671-200.png -------------------------------------------------------------------------------- /Assets/_Image/bluehouse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/_Image/bluehouse.png -------------------------------------------------------------------------------- /Assets/_Image/castle icon.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39a4223564234b949b66337e001960d4 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Image/footsteps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/_Image/footsteps.png -------------------------------------------------------------------------------- /Assets/_Image/house.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/_Image/house.png -------------------------------------------------------------------------------- /Assets/_Image/loadingCircle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/_Image/loadingCircle.png -------------------------------------------------------------------------------- /Assets/_Image/mapMask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/_Image/mapMask.png -------------------------------------------------------------------------------- /Assets/_Image/mapMaskinner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/_Image/mapMaskinner.png -------------------------------------------------------------------------------- /Assets/_Image/mapborder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/_Image/mapborder.png -------------------------------------------------------------------------------- /Assets/_Image/playerIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/_Image/playerIcon.png -------------------------------------------------------------------------------- /Assets/_Image/yellowhouse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/_Image/yellowhouse.png -------------------------------------------------------------------------------- /Assets/_Layers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19f200c6483a2c74d996898f321f295d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Layers/CliffBright.terrainlayer: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1953259897 &8574412962073106934 4 | TerrainLayer: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: CliffBright 10 | m_DiffuseTexture: {fileID: 2800000, guid: 418621e72fed41a47a8ee91391b8239d, type: 3} 11 | m_NormalMapTexture: {fileID: 2800000, guid: 925ff35fdb73e724e940a3a86582e420, type: 3} 12 | m_MaskMapTexture: {fileID: 2800000, guid: 564731fcb853d17479e23d641858742c, type: 3} 13 | m_TileSize: {x: 20, y: 20} 14 | m_TileOffset: {x: 0, y: 0} 15 | m_Specular: {r: 0, g: 0, b: 0, a: 0} 16 | m_Metallic: 0 17 | m_Smoothness: 0 18 | m_NormalScale: 1 19 | m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0} 20 | m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1} 21 | m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0} 22 | m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1} 23 | -------------------------------------------------------------------------------- /Assets/_Layers/CliffBright.terrainlayer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e805960909fd0f438dfd7b86f1f5837 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 8574412962073106934 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Layers/CliffDark.terrainlayer: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1953259897 &8574412962073106934 4 | TerrainLayer: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: CliffDark 10 | m_DiffuseTexture: {fileID: 2800000, guid: f0eabb916c8c83c48be3498e5b1bc768, type: 3} 11 | m_NormalMapTexture: {fileID: 2800000, guid: 25942b7d55f66f34b96829c304c0d92b, type: 3} 12 | m_MaskMapTexture: {fileID: 2800000, guid: c38e19d7a51b0ee44a01a5fc936d96c0, type: 3} 13 | m_TileSize: {x: 20, y: 20} 14 | m_TileOffset: {x: 0, y: 0} 15 | m_Specular: {r: 0, g: 0, b: 0, a: 0} 16 | m_Metallic: 0 17 | m_Smoothness: 0 18 | m_NormalScale: 1 19 | m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0} 20 | m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1} 21 | m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0} 22 | m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1} 23 | -------------------------------------------------------------------------------- /Assets/_Layers/CliffDark.terrainlayer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f8d71383e1e5c04188a5c4803097949 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 8574412962073106934 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Layers/CliffPink.terrainlayer: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1953259897 &8574412962073106934 4 | TerrainLayer: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: CliffPink 10 | m_DiffuseTexture: {fileID: 2800000, guid: cc7963a1510e4394b9babd89f16f1c6f, type: 3} 11 | m_NormalMapTexture: {fileID: 2800000, guid: 925ff35fdb73e724e940a3a86582e420, type: 3} 12 | m_MaskMapTexture: {fileID: 0} 13 | m_TileSize: {x: 50, y: 50} 14 | m_TileOffset: {x: 0, y: 0} 15 | m_Specular: {r: 0, g: 0, b: 0, a: 0} 16 | m_Metallic: 0 17 | m_Smoothness: 0 18 | m_NormalScale: 1 19 | m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0} 20 | m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1} 21 | m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0} 22 | m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1} 23 | -------------------------------------------------------------------------------- /Assets/_Layers/CliffPink.terrainlayer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 286197019969d1644941b11da26309db 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 8574412962073106934 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Layers/Dirt 1.terrainlayer: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1953259897 &8574412962073106934 4 | TerrainLayer: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Dirt 1 10 | m_DiffuseTexture: {fileID: 2800000, guid: eb7d0d76bff04bf498953bd946515768, type: 3} 11 | m_NormalMapTexture: {fileID: 2800000, guid: 1d6d912c23d941141963ac1cc3b30b91, type: 3} 12 | m_MaskMapTexture: {fileID: 0} 13 | m_TileSize: {x: 15, y: 15} 14 | m_TileOffset: {x: 0, y: 0} 15 | m_Specular: {r: 0, g: 0, b: 0, a: 0} 16 | m_Metallic: 0 17 | m_Smoothness: 0 18 | m_NormalScale: 1 19 | m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0} 20 | m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1} 21 | m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0} 22 | m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1} 23 | -------------------------------------------------------------------------------- /Assets/_Layers/Dirt 1.terrainlayer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 292326b837ab0db448c860cd8224dda3 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 8574412962073106934 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Layers/Dirt.terrainlayer: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1953259897 &8574412962073106934 4 | TerrainLayer: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Dirt 10 | m_DiffuseTexture: {fileID: 2800000, guid: 96995652a2d2c9c49bef915600fe81b5, type: 3} 11 | m_NormalMapTexture: {fileID: 2800000, guid: dfbae21d5d515f94f8a9022ac380421f, type: 3} 12 | m_MaskMapTexture: {fileID: 0} 13 | m_TileSize: {x: 4, y: 4} 14 | m_TileOffset: {x: 0, y: 0} 15 | m_Specular: {r: 0, g: 0, b: 0, a: 0} 16 | m_Metallic: 0 17 | m_Smoothness: 0 18 | m_NormalScale: 1 19 | m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0} 20 | m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1} 21 | m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0} 22 | m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1} 23 | -------------------------------------------------------------------------------- /Assets/_Layers/Dirt.terrainlayer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b50b8c7945a5734d81d625931d0d7cf 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 8574412962073106934 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Layers/Grass.terrainlayer: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1953259897 &8574412962073106934 4 | TerrainLayer: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Grass 10 | m_DiffuseTexture: {fileID: 2800000, guid: e63c7e66aca47a244b9e4a24948d0a2a, type: 3} 11 | m_NormalMapTexture: {fileID: 2800000, guid: 7f9dbb35b6a417044bde86476b626336, type: 3} 12 | m_MaskMapTexture: {fileID: 2800000, guid: 80eadb1888eb2a843b70aa490a89f2ff, type: 3} 13 | m_TileSize: {x: 3, y: 3} 14 | m_TileOffset: {x: 0, y: 0} 15 | m_Specular: {r: 0, g: 0, b: 0, a: 0} 16 | m_Metallic: 0.079 17 | m_Smoothness: 0 18 | m_NormalScale: 1 19 | m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0} 20 | m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1} 21 | m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0} 22 | m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1} 23 | -------------------------------------------------------------------------------- /Assets/_Layers/Grass.terrainlayer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c15bbadef293e745ba36277ff382f97 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 8574412962073106934 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Layers/GrassYellow.terrainlayer: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1953259897 &8574412962073106934 4 | TerrainLayer: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: GrassYellow 10 | m_DiffuseTexture: {fileID: 2800000, guid: 534237b9c0bf2434caa478ad21087100, type: 3} 11 | m_NormalMapTexture: {fileID: 2800000, guid: 7f9dbb35b6a417044bde86476b626336, type: 3} 12 | m_MaskMapTexture: {fileID: 2800000, guid: 80eadb1888eb2a843b70aa490a89f2ff, type: 3} 13 | m_TileSize: {x: 15, y: 15} 14 | m_TileOffset: {x: 0, y: 0} 15 | m_Specular: {r: 0, g: 0, b: 0, a: 0} 16 | m_Metallic: 0 17 | m_Smoothness: 0 18 | m_NormalScale: 1 19 | m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0} 20 | m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1} 21 | m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0} 22 | m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1} 23 | -------------------------------------------------------------------------------- /Assets/_Layers/GrassYellow.terrainlayer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b11bd6f86406f214b8c24471203f7f09 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 8574412962073106934 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Layers/Gravel.terrainlayer: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1953259897 &8574412962073106934 4 | TerrainLayer: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Gravel 10 | m_DiffuseTexture: {fileID: 2800000, guid: 9575eeb174958fa46bcf52b136e0e2ea, type: 3} 11 | m_NormalMapTexture: {fileID: 2800000, guid: ac87f35179e144b4286a25d730837ca2, type: 3} 12 | m_MaskMapTexture: {fileID: 2800000, guid: 518bc62b3fafc404987708cb9f0ecbfa, type: 3} 13 | m_TileSize: {x: 4, y: 4} 14 | m_TileOffset: {x: 0, y: 0} 15 | m_Specular: {r: 0.23584908, g: 0.23584908, b: 0.23584908, a: 0} 16 | m_Metallic: 0 17 | m_Smoothness: 0 18 | m_NormalScale: 1 19 | m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0} 20 | m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1} 21 | m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0} 22 | m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1} 23 | -------------------------------------------------------------------------------- /Assets/_Layers/Gravel.terrainlayer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d2ad7a1ad650dea4eaab50a6f7dcfb74 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 8574412962073106934 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18022bccca961d844988d52eeb8b6248 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Blue.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9c806bcf6691ef4eb5647043f655f3e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Building.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5048dcf8ae78ab248b21fa008630a15c 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Castle.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 961805a0f97445e4ca06785b679ee547 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/CityCentre.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dfcb20fcecace154da6971f8d0a84dd3 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Door.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1b54917e6cd6f5419f58aa2b3490efb 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Farm.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d033aed1ef5ca894f9beb10606faac71 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/FarmArea.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 10bb74c53d50ea049ad95c9446ec7ff0 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Gate.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 504cfdf97f16dac48b121c8ce73769aa 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/HiddenCity.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5f9ac869faedcc47857fab9e4ca334c 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/House.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0581cca25d90e374b8e2998a41b6643b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/IconPlayer.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 782f7b0768fa884478baab218ea99cc1 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Jail.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e6695a5d2ce2bd498f881801609e888 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Map.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9762e7772363a0f4c8406c84c705e52f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/MapRoads.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ae225a7f9ec4ff42841580ddbfc4b05 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/MarkerCube.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07145251a85bf7549a62edf0899dd292 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/MarkerHouse.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a4ab36b75abd784eb55b4d208c1e6b1 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/MarkerHouse2.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f1a7b064d1f98644aa00c72c939d326 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Market.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc5fd39f540fe1a4e9309ca7de66a81d 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Mill.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0613049af4aafa4eafad772d1783a6e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/OuterCity.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46e4afa5d65348145ba4bc285a72df67 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/PoorArea.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da2aaa5811331c949a1fe2f8d33cbe92 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Portal.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d4dd2a39920d0148b710309473b300e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Red.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2175aca77337944497f551a51545c24 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/RichArea.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f928f9bebf76ebf4287017efd31d4626 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Road.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f6ef346283620844d831ffb2f1ab873c 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/SKYBOX.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a36a225c15817648b44655d0e8cb92b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Tavern.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: edfb5a6d629bdd74191d495933111772 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Temple.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11f7862a7349a424c9efad9fb2f5095f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Tower.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f780d8749c7885d4fb3da8495bc411dc 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/TownAreaOverlay.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c25871738865c940ba39de6271fa9f3 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/TownCenter.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2612cd5e98eb4a4182f5ae8e4d64b96 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Wall.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b1bdc91d3221f154c851599125a80cf4 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Water.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ef2f72c2ccd3d94899c457657e7924a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/WithinWalls.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 800e998c7dd9ba44e85c5b50b0442fd6 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/Yellow.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee00c678959067245ade45505c54963c 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/_Image.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3aaed2afeaacdc341bb61bf35d3d541c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Materials/_Image/Ground_Grassy_01.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/_Materials/_Image/Ground_Grassy_01.tif -------------------------------------------------------------------------------- /Assets/_Materials/_Image/Ground_Grassy_01N.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/Assets/_Materials/_Image/Ground_Grassy_01N.tif -------------------------------------------------------------------------------- /Assets/_Materials/_Image/TownCamera.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: TownCamera 10 | m_ImageContentsHash: 11 | serializedVersion: 2 12 | Hash: 00000000000000000000000000000000 13 | m_ForcedFallbackFormat: 4 14 | m_DownscaleFallback: 0 15 | m_IsAlphaChannelOptional: 0 16 | serializedVersion: 3 17 | m_Width: 512 18 | m_Height: 512 19 | m_AntiAliasing: 1 20 | m_MipCount: -1 21 | m_DepthFormat: 0 22 | m_ColorFormat: 8 23 | m_MipMap: 0 24 | m_GenerateMips: 1 25 | m_SRGB: 0 26 | m_UseDynamicScale: 0 27 | m_BindMS: 0 28 | m_EnableCompatibleFormat: 1 29 | m_TextureSettings: 30 | serializedVersion: 2 31 | m_FilterMode: 1 32 | m_Aniso: 0 33 | m_MipBias: 0 34 | m_WrapU: 1 35 | m_WrapV: 1 36 | m_WrapW: 1 37 | m_Dimension: 2 38 | m_VolumeDepth: 1 39 | -------------------------------------------------------------------------------- /Assets/_Materials/_Image/TownCamera.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f896cc8f448d35478c10707e4163295 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 8400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8dea5b3e263bce74186ca099e23bb76d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Prefabs/Capsule.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: caa2ff1fb90c3694a8e86fd631ea01e7 3 | timeCreated: 1510362044 4 | licenseType: Store 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 100100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/_Prefabs/Castle.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20d6c27ab90611f40ad642c5281a93fb 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/Footsteps.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d2d037ff4b3c4146948c52eb7c79e2a 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/GateHouse.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77a78fc74298235488b16a0fceca9edb 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/GateHouseOffset.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8126ee45cb6dd244d87e0b98924f154b 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/House.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 627e974e668d68b448256d811d29004c 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/HouseAltTwo.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 485268f64501615499b7e82abb33472a 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/IconHouse.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b59a6d1498bb0349961203b2dad5c50 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/IconPlayer.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a8c62c01a187d6408449aef8daeffd3 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/IconPoint.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 585a4e724baa95240a596d30bfe58ff0 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/IconTown.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4c03204ef5f7bdc4587d189ee243bd69 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/ItsASign.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 839798ff09c3e9a49b255f995a19ab1d 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/Market.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f3a08f6a0dfd6745986e1c29a2efcd9 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/MasterSpawnerFENCE.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a905e8644621bf4bb208ed0974ac5bc 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/MasterSpawnerGATEHOUSE.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ecf7d72fa8925a8408b8cb83318ecb72 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/MasterSpawnerWALL.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26e7445f9e3177a4cbf89b34aedd8ace 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/POI.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0fcaeb95687d324eae5a8ec069235e3 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/SPLINE_WALL_PREFAB.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ff012723c2148d4a8954eb9ae20d2d0 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/SPLINE_WALL_PREFAB_2.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3dadf744b7b701242872bea082d8282b 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/SPLINE_WALL_PREFAB_2_OFFSET.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ceda64fd0ba4e484297fa38ff3220248 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/SPLINE_WALL_PREFAB_OFFSET.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8a1f293d89821b43b2a9856382c2e0a 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/Signpost.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04443d266a94a6f45b157283eeeb7157 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/SignpostWriter.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &4536075778403623924 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: 6082912207631053259} 12 | - component: {fileID: -4411655979989840230} 13 | m_Layer: 19 14 | m_Name: SignpostWriter 15 | m_TagString: Untagged 16 | m_Icon: {fileID: 0} 17 | m_NavMeshLayer: 0 18 | m_StaticEditorFlags: 0 19 | m_IsActive: 1 20 | --- !u!4 &6082912207631053259 21 | Transform: 22 | m_ObjectHideFlags: 0 23 | m_CorrespondingSourceObject: {fileID: 0} 24 | m_PrefabInstance: {fileID: 0} 25 | m_PrefabAsset: {fileID: 0} 26 | m_GameObject: {fileID: 4536075778403623924} 27 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 28 | m_LocalPosition: {x: 0, y: 0, z: 0} 29 | m_LocalScale: {x: 1, y: 1, z: 1} 30 | m_Children: [] 31 | m_Father: {fileID: 0} 32 | m_RootOrder: 0 33 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 34 | --- !u!114 &-4411655979989840230 35 | MonoBehaviour: 36 | m_ObjectHideFlags: 0 37 | m_CorrespondingSourceObject: {fileID: 0} 38 | m_PrefabInstance: {fileID: 0} 39 | m_PrefabAsset: {fileID: 0} 40 | m_GameObject: {fileID: 4536075778403623924} 41 | m_Enabled: 1 42 | m_EditorHideFlags: 0 43 | m_Script: {fileID: 11500000, guid: d1d84213f2c7d0e4c9ef6e8a48f889a6, type: 3} 44 | m_Name: 45 | m_EditorClassIdentifier: 46 | Sign: {fileID: 6539699104032505781, guid: 839798ff09c3e9a49b255f995a19ab1d, type: 3} 47 | -------------------------------------------------------------------------------- /Assets/_Prefabs/SignpostWriter.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0af69d28fd93bc40adf0f3ddec42b58 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/SpikeHolder.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eba537105aa6fdd49aadc53d98f0930f 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/Tower.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26d704cbde6fa5547b118f2573d97c1d 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/TowerOffset.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3be1f92e9a9bf214ba47f22221d09817 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/TownCenter.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d8166c5421f2bf8418a86c6535cf91a1 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Prefabs/WorldMessage.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62f8b8042058d044783aceb9bce09836 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 611fd35131b58bf45ad6848ef5f9c141 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Scenes/SampleScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99c9720ab356a0642a771bea13969a05 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Scenes/Town-CentreTextured-FlattenedExteriorHouseBases.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40742acdee43ed346bed161b776442cc 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/_Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7af4737cd6169ac419df075fbf8f4c46 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Scripts/AOTABundle.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1fb04620f818394cad62ef6efbe88a0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/ARCHIVED_FOR_FUTURE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1dbcf23c44ba0df4cb95fa78a7057f6c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Scripts/BendyControlMark1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b73e5d26e7558943b0283e58c305a4b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/BillboardText.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | [ExecuteInEditMode] 4 | public class BillboardText : MonoBehaviour 5 | { 6 | private GameObject thingToLookAt; 7 | private GameObject mainRef; 8 | 9 | private void OnEnabled() 10 | { 11 | // mainRef = Camera.main; 12 | thingToLookAt = GameObject.FindGameObjectWithTag("Player"); 13 | } 14 | 15 | private void Awake() { 16 | // mainRef = Camera.main; 17 | thingToLookAt = GameObject.FindGameObjectWithTag("Player"); 18 | } 19 | 20 | private void Start() 21 | { 22 | 23 | // if (mainRef != Camera.main) 24 | // mainRef = Camera.main; 25 | thingToLookAt = GameObject.FindGameObjectWithTag("Player"); 26 | } 27 | 28 | void Update() 29 | { 30 | 31 | //thingToLookAt = mainRef; 32 | //if (thingToLookAt == null) 33 | // Debug.Log("doh"); 34 | 35 | Vector3 v = new Vector3(0, thingToLookAt.transform.position.y - transform.position.y, 0); 36 | // v.x = v.z = 0.0f; 37 | Vector3 targetPos = thingToLookAt.transform.position - v; 38 | transform.LookAt(targetPos); 39 | transform.localEulerAngles = new Vector3(transform.localEulerAngles.x, transform.localEulerAngles.y - 180, transform.localEulerAngles.z); 40 | 41 | 42 | //if ((int)Time.timeSinceLevelLoad % 10 == 0) 43 | //{ 44 | 45 | // Debug.Log(thingToLookAt.transform.position); 46 | 47 | //} 48 | } 49 | } 50 | 51 | -------------------------------------------------------------------------------- /Assets/_Scripts/BillboardText.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65e392ec494ebb74e8e5f4fbb118b612 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/Classes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 529e8c99559ebdd4fb8b65616edf96dd 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Scripts/ElvenizeAndHelper.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Linq; 4 | 5 | namespace ExtensionMethods 6 | { 7 | 8 | static class ElevenStringHelpers 9 | { 10 | 11 | public static string ReplaceAll(this string seed, char[] chars, char replacementCharacter) 12 | { 13 | return chars.Aggregate(seed, (str, cItem) => str.Replace(cItem, replacementCharacter)); 14 | } 15 | 16 | 17 | public static string Elvenize(this string seed) 18 | { 19 | 20 | char[] firstflip = new char[] { 'i', 'o' }; 21 | char[] secondflip = new char[] { 'e', 'u' }; 22 | 23 | return seed 24 | .ReplaceAll(firstflip, (RandomGen.FlipACoin()) ? 'e' : 'y') 25 | .ReplaceAll(secondflip, (RandomGen.FlipACoin()) ? 'a' : 'o'); 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /Assets/_Scripts/ElvenizeAndHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2e671d4eb5dfc7438341f48cab8a512 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/FlyCam.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class FlyCam : MonoBehaviour 5 | { 6 | public float lookSpeed = 5.0f; 7 | public float moveSpeed = 1.0f; 8 | 9 | public float rotationX = 0.0f; 10 | public float rotationY = 0.0f; 11 | 12 | public bool autofly = false; 13 | private bool blockloops = false; 14 | 15 | public bool JustLook = false; 16 | 17 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Code Quality", "IDE0051:Remove unused private members", Justification = "Unity")] 18 | void Update() 19 | { 20 | if (Input.GetMouseButton(0)) 21 | { 22 | rotationX += Input.GetAxis("Mouse X") * lookSpeed; 23 | rotationY += Input.GetAxis("Mouse Y") * lookSpeed; 24 | rotationY = Mathf.Clamp(rotationY, -90.0f, 90.0f); 25 | } 26 | if (!Input.GetMouseButton(1)) 27 | { 28 | transform.localRotation = Quaternion.AngleAxis(rotationX, Vector3.up); 29 | transform.localRotation *= Quaternion.AngleAxis(rotationY, Vector3.left); 30 | 31 | if (!JustLook) 32 | { 33 | transform.position += transform.forward * moveSpeed * Input.GetAxis("Vertical"); 34 | transform.position += transform.right * moveSpeed * Input.GetAxis("Horizontal"); 35 | transform.position += transform.up * 3 * moveSpeed * Input.GetAxis("Mouse ScrollWheel"); 36 | } 37 | 38 | } 39 | if (Input.GetMouseButton(1) && !JustLook) 40 | { 41 | if (!blockloops) 42 | { 43 | autofly =! autofly; 44 | } 45 | blockloops = true; 46 | } 47 | else 48 | {blockloops = false; 49 | if (autofly && !JustLook) 50 | { 51 | transform.position += transform.forward * moveSpeed ; 52 | } 53 | } 54 | } 55 | 56 | } -------------------------------------------------------------------------------- /Assets/_Scripts/FlyCam.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c27f154b804727843baeb9b27012d10d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/FollowWithFixedY.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class FollowWithFixedY : MonoBehaviour 6 | { 7 | 8 | public Transform thing; 9 | 10 | public float fixedY = 800f; 11 | 12 | private Vector3 place; 13 | 14 | public bool trackPlayerPostion = true; 15 | 16 | public bool rotateWithPlayer = false; 17 | 18 | private void OnEnable() 19 | { 20 | place = thing.position; 21 | 22 | } 23 | 24 | void LateUpdate() 25 | { 26 | if (trackPlayerPostion) 27 | { 28 | place = thing.position; 29 | 30 | transform.position = new Vector3(place.x, fixedY, place.z); 31 | } 32 | 33 | if (!rotateWithPlayer) 34 | return; 35 | 36 | transform.eulerAngles = new Vector3( 90, thing.rotation.eulerAngles.y, 0); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Assets/_Scripts/FollowWithFixedY.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e26b30306ae5f6c4e82a18e3be838e04 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/FollowXZWithDynamicY.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class FollowXZWithDynamicY : MonoBehaviour 6 | { 7 | 8 | public Transform thingXZ; 9 | 10 | public Transform thingY; 11 | 12 | public float Y_Offset; 13 | 14 | private Vector3 placeXZ; 15 | 16 | private Vector3 placeY; 17 | 18 | public bool trackPlayerPostion = true; 19 | 20 | public bool rotateWithPlayer = false; 21 | 22 | private void OnEnable() 23 | { 24 | placeXZ = thingXZ.position; 25 | placeY = thingY.position; 26 | } 27 | 28 | void LateUpdate() 29 | { 30 | if (trackPlayerPostion) 31 | { 32 | placeXZ = thingXZ.position; 33 | placeY = thingY.position; 34 | 35 | transform.position = new Vector3(placeXZ.x, placeY.y + Y_Offset, placeXZ.z); 36 | } 37 | 38 | if (!rotateWithPlayer) 39 | return; 40 | 41 | transform.eulerAngles = new Vector3( 90, thingXZ.rotation.eulerAngles.y, 0); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Assets/_Scripts/FollowXZWithDynamicY.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e2d3fd61060aa74b98718951e9b13b9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/GenerateNameForTile.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using Twobob; 5 | 6 | public class GenerateNameForTile : MonoBehaviour 7 | { 8 | 9 | //Reference to RandomNamePlaceGen Script 10 | public RandomName genScript; 11 | 12 | private void Start() 13 | { 14 | //Get the RandomNamePlaceGen script component ready for use. 15 | // genScript = new RandomName(); 16 | } 17 | 18 | private void Update() 19 | { 20 | //Generate new debugs everytime the left mouse button is clicked. 21 | if (Input.GetMouseButtonDown(0)) 22 | { 23 | GenerateDebugs(); 24 | } 25 | } 26 | 27 | public void GenerateDebugs() 28 | { 29 | //Generate Male Name... 30 | string randomMaleFirstName = genScript.GenerateFirstNameMale(); 31 | string randomMaleMiddleName = genScript.GenerateMiddleName(); 32 | string randomMaleLastName = genScript.GenerateLastName(); 33 | 34 | //Generate Female Name... 35 | string randomFemaleFirstName = genScript.GenerateFirstNameFemale(); 36 | string randomFemaleMiddleName = genScript.GenerateMiddleName(); 37 | string randomFemaleLastName = genScript.GenerateLastName(); 38 | 39 | //Generate Any Name... 40 | string randomFirstName = genScript.GenerateFirstName(); 41 | string randomMiddleName = genScript.GenerateMiddleName(); 42 | string randomLastName = genScript.GenerateLastName(); 43 | 44 | //Generate Place... 45 | string randomPlace = genScript.GeneratePlace(); 46 | 47 | //Print the outputs of randomly generated names and places to the console. 48 | Debug.Log(string.Format("Random Male Name Gen: \n{0} {1} {2}", randomMaleFirstName, randomMaleMiddleName, randomMaleLastName)); 49 | Debug.Log(string.Format("Random Female Name Gen: \n{0} {1} {2}", randomFemaleFirstName, randomFemaleMiddleName, randomFemaleLastName)); 50 | Debug.Log(string.Format("Random Name Gen: \n{0} {1} {2}", randomFirstName, randomMiddleName, randomLastName)); 51 | Debug.Log(string.Format("Random Place: \n{0}", randomPlace)); 52 | 53 | Debug.ClearDeveloperConsole(); 54 | } 55 | 56 | } 57 | 58 | -------------------------------------------------------------------------------- /Assets/_Scripts/GenerateNameForTile.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 895010dfeec37ac4d8a73f0bd464ae4b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/GlobalRandomObjectsMark1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef9772fa9e0d8a247bceea469fe79a7a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/HoleOutMark1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 062c64a3d121f154d87203e7303d3884 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/Instruments.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | 5 | /// 6 | /// Debugging tools 7 | /// 8 | public static class Instruments 9 | { 10 | static string stopwatchName; 11 | 12 | static System.Diagnostics.Stopwatch stopwatch; 13 | 14 | [System.Diagnostics.Conditional ("UNITY_EDITOR")] 15 | public static void BeginStopwatch (string name) 16 | { 17 | if (stopwatch == null) { 18 | stopwatch = new System.Diagnostics.Stopwatch(); 19 | } 20 | stopwatchName = name; 21 | stopwatch.Stop (); 22 | stopwatch.Reset (); 23 | stopwatch.Start (); 24 | } 25 | 26 | [System.Diagnostics.Conditional ("UNITY_EDITOR")] 27 | public static void EndStopwatch () 28 | { 29 | stopwatch.Stop (); 30 | var time = (stopwatch.ElapsedTicks / (double)System.Diagnostics.Stopwatch.Frequency) * 1000; 31 | Debug.Log ("[Instruments] " + stopwatchName + ": " + time + " ms"); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Assets/_Scripts/Instruments.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 717fcc9d745d3304a8c227068df2ec52 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/Invert_MARK1.cs: -------------------------------------------------------------------------------- 1 | using Den.Tools.Matrices; 2 | using MapMagic.Products; 3 | using MapMagic.Nodes; 4 | 5 | namespace Twobob.Mm2 6 | { 7 | 8 | [System.Serializable] 9 | [GeneratorMenu(menu = "Map/Modifiers", name = "Invert", iconName = "GeneratorIcons/Contrast", disengageable = true, 10 | helpLink = "https://gitlab.com/denispahunov/mapmagic/-/wikis/MatrixGenerators/Contrast", menuName ="Invert", priority =1)] 11 | public class Invert_MARK1 : Generator, IInlet, IOutlet 12 | { 13 | 14 | #if UNITY_EDITOR 15 | [UnityEditor.InitializeOnLoadMethod] 16 | static void EnlistInMenu() => MapMagic.Nodes.GUI.CreateRightClick.generatorTypes.Add(typeof(Invert_MARK1)); 17 | #endif 18 | 19 | public override void Generate(TileData data, StopToken stop) 20 | { 21 | if (stop != null && stop.stop) return; 22 | MatrixWorld src = data.ReadInletProduct(this); 23 | if (src == null) return; 24 | MatrixWorld clamp = new MatrixWorld(src); 25 | clamp.Clamp01(); 26 | clamp.Invert(); 27 | data.StoreProduct(this, clamp); 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Assets/_Scripts/Invert_MARK1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 09c39ca05d25f3f43a9563d4bf743527 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/KeyBind.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e36b1fb2977c47848baabf9dabf936c4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/MapKeyBind.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b7466ec35f6cb694fa475eab7da3a14d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/MapMagicRuntimeGeneratorsAOTATownTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28d22d4528145be439563e24efca909a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/MapSplineOutMark1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 311458e5e7a393542aca28d817c43b09 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/MaskToZero.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80f38129c0b4c2b468efe58dc214548b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/MeshFromImage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9322bf9a38dd54f47b235a0036d321cb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/MultiFloor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27079f8f234c76c42a19f3747b4a1dcd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/ObjectSpawner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 63f999c89448ac343b2aa261f3d9c47c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/PlaceObjects.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class PlaceObjects : MonoBehaviour { 5 | 6 | GameObject[] objs; 7 | 8 | public GameObject CoinPrefab; 9 | 10 | public int SkimpFactorEnabled = 2; 11 | private int weJustSkimped = 0; 12 | 13 | public int TotalToSpawn; 14 | private int spawnedSoFar; 15 | 16 | // Use this for initialization 17 | void Start () { 18 | 19 | objs = GameObject.FindGameObjectsWithTag("Respawn"); 20 | // Spawn(); 21 | 22 | } 23 | 24 | // Update is called once per frame 25 | void Update () { 26 | 27 | if (SkimpFactorEnabled >0) 28 | { 29 | weJustSkimped++; 30 | 31 | // Hardcode 0 or > 1 32 | if (SkimpFactorEnabled == 1) 33 | SkimpFactorEnabled++; 34 | 35 | 36 | if (weJustSkimped - SkimpFactorEnabled == 0) 37 | { 38 | weJustSkimped = 0; 39 | //Debug.Log( weJustSkimped - SkimpFactorEnabled); 40 | Spawn(); 41 | } 42 | } 43 | } 44 | 45 | 46 | 47 | 48 | void Spawn(){ 49 | 50 | if (spawnedSoFar >= TotalToSpawn ) 51 | return; 52 | 53 | foreach (var item in objs) 54 | { 55 | 56 | if (Random.Range(0,10) > 4 ) 57 | { 58 | Instantiate(CoinPrefab, item.transform.position + (Vector3.up * 10), Quaternion.identity); 59 | 60 | spawnedSoFar ++; 61 | } 62 | 63 | 64 | } 65 | 66 | 67 | } 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | } 77 | -------------------------------------------------------------------------------- /Assets/_Scripts/PlaceObjects.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40b78c019e81d504ba755ca0ba2ed74c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/PositioningSettingsSplines.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ff8ad26a963bb54d87e038a169021aa 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/RandomGen.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Security.Cryptography; 3 | using System; 4 | 5 | 6 | public static class RandomGen 7 | { 8 | private static RNGCryptoServiceProvider _global = 9 | new RNGCryptoServiceProvider(); 10 | [ThreadStatic] 11 | private static System.Random _local; 12 | 13 | 14 | public static bool FlipACoin() 15 | { 16 | System.Random inst = _local; 17 | if (inst == null) 18 | { 19 | byte[] buffer = new byte[4]; 20 | _global.GetBytes(buffer); 21 | _local = inst = new System.Random( 22 | BitConverter.ToInt32(buffer, 0)); 23 | } 24 | return inst.Next() % 2 == 0; 25 | } 26 | 27 | public static float Range01() 28 | { 29 | System.Random inst = _local; 30 | if (inst == null) 31 | { 32 | byte[] buffer = new byte[4]; 33 | _global.GetBytes(buffer); 34 | _local = inst = new System.Random( 35 | BitConverter.ToInt32(buffer, 0)); 36 | } 37 | return inst.Next(0, 1000000) * 0.000001f; 38 | } 39 | 40 | 41 | public static int NextValidRandomPatchAmountFromTGOSRange() 42 | { 43 | return 44 | RandomGen.Next(TownGlobalObjectService.PatchCap, TownGlobalObjectService.PatchFloor); 45 | } 46 | 47 | public static int Next(int Ceil = int.MaxValue, int Floor = int.MinValue) 48 | { 49 | System.Random inst = _local; 50 | if (inst == null) 51 | { 52 | byte[] buffer = new byte[4]; 53 | _global.GetBytes(buffer); 54 | _local = inst = new System.Random( 55 | BitConverter.ToInt32(buffer, 0)); 56 | } 57 | return Mathf.Max(Floor, inst.Next() % Mathf.Max(1, Ceil)); 58 | } 59 | } 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /Assets/_Scripts/RandomGen.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb3b5b1bac4605c42a8fee210d7582c8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/RandomName.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 644b4064f510d5945b146b90b8f85e71 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/RenderToImage.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class RenderToImage : MonoBehaviour 4 | { 5 | 6 | public Texture2D ImageToRenderInto; 7 | public Camera CameraToUse; 8 | public int skimpFactor; 9 | private int tries = 0; 10 | 11 | private void Update() 12 | { 13 | tries++; 14 | 15 | if (tries % skimpFactor == 0) 16 | { 17 | // ImageToRenderInto = RTImage(CameraToUse); 18 | // } 19 | //} 20 | 21 | Debug.Log("skimped"); 22 | 23 | //// Take a "screenshot" of a camera's Render Texture. 24 | //Texture2D RTImage(Camera camera) 25 | //{ 26 | // The Render Texture in RenderTexture.active is the one 27 | // that will be read by ReadPixels. 28 | var currentRT = RenderTexture.active; 29 | RenderTexture.active = CameraToUse.targetTexture; 30 | 31 | // Render the camera's view. 32 | CameraToUse.Render(); 33 | 34 | // Make a new texture and read the active Render Texture into it. 35 | Texture2D image = new Texture2D(CameraToUse.targetTexture.width, CameraToUse.targetTexture.height); 36 | 37 | ImageToRenderInto.ReadPixels(new Rect(0, 0, CameraToUse.targetTexture.width, CameraToUse.targetTexture.height), 0, 0); 38 | ImageToRenderInto.Apply(); 39 | 40 | // Replace the original active Render Texture. 41 | RenderTexture.active = currentRT; 42 | // return image; 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /Assets/_Scripts/RenderToImage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a83c9ce9a7896284da0c1350f7b6f92a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/RunOnTileActionEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac2146010c3970847a0d8ccdc2c2142d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/SplineSysWithPrefab.cs: -------------------------------------------------------------------------------- 1 | using Den.Tools; 2 | using Den.Tools.Splines; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using UnityEngine; 6 | 7 | namespace Twobob.Mm2 8 | { 9 | public class SplineSysWithPrefab : SplineSys 10 | { 11 | 12 | // public SplineSys SplineSys; 13 | public ObjectsPool.Prototype chosenType; 14 | 15 | public float scale = 1f, scaleRange = 0; 16 | 17 | public bool mergeSegments; 18 | 19 | public bool spacingFromScale; 20 | 21 | public float spacing = 1f, spacingRange = 0; 22 | 23 | public float offset = 0, offsetRange = 0; 24 | 25 | public bool isRandomYaw = false; 26 | 27 | 28 | public SplineSysWithPrefab(SplineSys src) 29 | { 30 | CopyLinesFrom(src.lines); 31 | 32 | scale = 1f; 33 | spacing = 1f; 34 | 35 | guiDrawNodes = src.guiDrawNodes; 36 | guiDrawSegments = src.guiDrawSegments; 37 | guiDrawDots = src.guiDrawDots; 38 | guiDotsCount = src.guiDotsCount; 39 | guiDotsEquidist = src.guiDotsEquidist; 40 | } 41 | 42 | 43 | 44 | public SplineSysWithPrefab() // Just in case the serialisier gets all upset with itsself again. 45 | { 46 | 47 | 48 | 49 | 50 | } 51 | 52 | 53 | 54 | } 55 | 56 | } -------------------------------------------------------------------------------- /Assets/_Scripts/SplineSysWithPrefab.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf7ba48cfcb20984090a7702ebec9b8a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/SplinesClamp.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using System.Runtime.InteropServices; 6 | 7 | using Den.Tools; 8 | using Den.Tools.Splines; 9 | using Den.Tools.Matrices; 10 | using Den.Tools.GUI; 11 | using MapMagic.Core; 12 | using MapMagic.Products; 13 | using MapMagic.Nodes; 14 | 15 | namespace Twobob.Mm2 16 | { 17 | [System.Serializable] 18 | [GeneratorMenu( 19 | menu = "Spline/Standard", 20 | name = "Clamp", 21 | iconName = "GeneratorIcons/Constant", 22 | colorType = typeof(SplineSys), 23 | disengageable = true, 24 | helpLink = "https://gitlab.com/denispahunov/mapmagic/wikis/map_generators/constant")] 25 | public class SplineClamp : Generator, IInlet, IOutlet 26 | { 27 | 28 | #if UNITY_EDITOR 29 | [UnityEditor.InitializeOnLoadMethod] 30 | static void EnlistInMenu() => MapMagic.Nodes.GUI.CreateRightClick.generatorTypes.Add(typeof(SplineClamp)); 31 | #endif 32 | 33 | [Val("Input", "Inlet")] public readonly Inlet input = new Inlet(); 34 | public enum Clamp { Off, Full, Active } 35 | [Val("Clamp")] public Clamp clamp; 36 | 37 | public IEnumerable> Inlets() { yield return input; } 38 | 39 | public override void Generate(TileData data, StopToken stop) 40 | { 41 | SplineSys spline = data.ReadInletProduct(this); 42 | if (spline == null || !enabled) return; 43 | 44 | if (stop != null && stop.stop) return; 45 | if (clamp == Clamp.Full) spline.Clamp((Vector3)data.area.full.worldPos, (Vector3)data.area.full.worldSize); 46 | if (clamp == Clamp.Active) spline.Clamp((Vector3)data.area.active.worldPos, (Vector3)data.area.active.worldSize); 47 | 48 | if (stop != null && stop.stop) return; 49 | data.StoreProduct(this, spline); 50 | } 51 | } 52 | 53 | 54 | 55 | } -------------------------------------------------------------------------------- /Assets/_Scripts/SplinesClamp.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d200c2dc3ba39b04395dc9d452fbc059 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/SplinesGeneratorsAutoFromObjects.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e6fed458c95069e4b84200764ae3636e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/SplinesGeneratorsCityLink.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f0a71cf9d71d8214ca2c5a6a92967cee 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/SplinesGeneratorsNoisyStroke.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6657bb4ead92a79409802ce93e213d01 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/SplinesGeneratorsSplineMesh.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 389ea8b343ba0564aae1b67c5c52eaab 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/SplinesNodesToObjects.cs: -------------------------------------------------------------------------------- 1 | using Den.Tools; 2 | using Den.Tools.Splines; 3 | using MapMagic.Products; 4 | using System.Linq; 5 | using MapMagic.Nodes; 6 | 7 | namespace Twobob.Mm2 8 | { 9 | [System.Serializable] 10 | [GeneratorMenu(menu = "Spline/Modifiers", name = "NodeToObject", iconName = "GeneratorIcons/Constant", disengageable = true, 11 | colorType = typeof(SplineSys), 12 | helpLink = "https://gitlab.com/denispahunov/mapmagic/wikis/map_generators/constant")] 13 | public class SplinesNodesToObjects : Generator, IInlet, IOutlet 14 | { 15 | 16 | #if UNITY_EDITOR 17 | [UnityEditor.InitializeOnLoadMethod] 18 | static void EnlistInMenu() => MapMagic.Nodes.GUI.CreateRightClick.generatorTypes.Add(typeof(SplinesNodesToObjects)); 19 | #endif 20 | 21 | public override void Generate(TileData data, StopToken stop) 22 | { 23 | SplineSys splineSys = data.ReadInletProduct(this); 24 | if (splineSys == null || !enabled) return; 25 | 26 | if (stop != null && stop.stop) return; 27 | SplineSys bend = new SplineSys(splineSys); 28 | 29 | var objs = new TransitionsList(); 30 | 31 | foreach (var item in bend.GetAllPoints(resPerUnit: 1).SelectMany(list => list)) 32 | { objs.Add(new Transition { pos = item }); } 33 | 34 | if (stop != null && stop.stop) return; 35 | 36 | data.StoreProduct(this, objs); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Assets/_Scripts/SplinesNodesToObjects.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35a305f116e0fa747b12c5515db8fcb6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/SubdivideControl.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using System.Runtime.InteropServices; 6 | 7 | using Den.Tools; 8 | using Den.Tools.Splines; 9 | using Den.Tools.Matrices; 10 | using Den.Tools.GUI; 11 | using MapMagic.Core; 12 | using MapMagic.Products; 13 | using MapMagic.Nodes; 14 | 15 | namespace Twobob.Mm2 16 | { 17 | 18 | [System.Serializable] 19 | [GeneratorMenu( 20 | menu = "Spline", 21 | name = "Subdivide", 22 | iconName = "GeneratorIcons/Constant", 23 | colorType = typeof(SplineSys), 24 | disengageable = true, 25 | helpLink = "https://gitlab.com/denispahunov/mapmagic/wikis/map_generators/constant")] 26 | public class Subdivide : Generator, IInlet, IOutlet 27 | { 28 | 29 | [Val("Input", "Inlet")] public readonly Inlet splineIn = new Inlet(); 30 | // [Val("Spline", "Height")] public readonly Inlet heightIn = new Inlet(); 31 | 32 | [Val("Output", "Outlet")] public readonly Outlet output = new Outlet(); 33 | 34 | [Val("Divisions")] public int divisions = 2; 35 | 36 | #if UNITY_EDITOR 37 | [UnityEditor.InitializeOnLoadMethod] 38 | static void EnlistInMenu() => MapMagic.Nodes.GUI.CreateRightClick.generatorTypes.Add(typeof(Subdivide)); 39 | #endif 40 | 41 | public override void Generate(TileData data, StopToken stop) 42 | { 43 | SplineSys src = data.ReadInletProduct(this); 44 | SplineSys dst = new SplineSys(src); 45 | 46 | if (src == null) return; 47 | 48 | if (!enabled) 49 | { 50 | data.StoreProduct(this, dst); 51 | return; 52 | } 53 | 54 | /// if (data.isDraft) return; 55 | dst.Subdivide(divisions); 56 | data.StoreProduct(this, dst); 57 | 58 | } 59 | 60 | } 61 | 62 | } 63 | 64 | -------------------------------------------------------------------------------- /Assets/_Scripts/SubdivideControl.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2b0e7c6e49085349b7460c738934b3f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/ToggleEnabledOnCollisionStay.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class ToggleEnabledOnCollisionStay : MonoBehaviour 6 | { 7 | // public Transform TMpro; 8 | 9 | // private GameObject tmProgo; 10 | 11 | private BillboardText refScript; 12 | 13 | 14 | void Start() 15 | { 16 | GetBillboardRefAndInvokePeriodicDisable(); 17 | 18 | } 19 | 20 | private void GetBillboardRefAndInvokePeriodicDisable() 21 | { 22 | refScript = GetComponent(); 23 | Invoke("periodicDisable", 1f + (RandomGen.Next(0,199) * 0.01f)); 24 | } 25 | 26 | void OnEnable() 27 | { 28 | GetBillboardRefAndInvokePeriodicDisable(); 29 | 30 | } 31 | 32 | private void periodicDisable() { 33 | 34 | 35 | //tmProgo = 36 | transform.GetChild(0).GetChild(0).gameObject.SetActive(false); 37 | refScript.enabled = false; 38 | // tmProgo.SetActive(false); 39 | 40 | } 41 | 42 | void Awake() 43 | { 44 | GetBillboardRefAndInvokePeriodicDisable(); 45 | refScript.enabled = false; 46 | 47 | } 48 | 49 | 50 | // Start is called before the first frame update 51 | void OnTriggerStay() 52 | { 53 | // tmProgo.SetActive(true); 54 | } 55 | 56 | void OnTriggerEnter() 57 | { 58 | refScript.enabled = true; 59 | transform.GetChild(0).GetChild(0).gameObject.SetActive(true); 60 | } 61 | 62 | void OnTriggerExit() { 63 | GetBillboardRefAndInvokePeriodicDisable(); 64 | } 65 | 66 | 67 | 68 | //void OnTriggerEnter() 69 | //{ 70 | // //foreach (ContactPoint contact in collision.contacts) 71 | // //{ 72 | // // Debug.DrawRay(contact.point, contact.normal, Color.white); 73 | // //} 74 | // tmProgo.SetActive(true); 75 | //} 76 | } 77 | -------------------------------------------------------------------------------- /Assets/_Scripts/ToggleEnabledOnCollisionStay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 089591ea179333a4290c6736f3cce2f8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/TownGlobalObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3189412b8c46104887c88fd8bd85f63 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/TownGlobalObjectService.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 180bfe2f1d8937742b894f9e59c7dae2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/TownInitService.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d7c52ea2e180354ea916c9401ea0b51 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/TownRequest.cs: -------------------------------------------------------------------------------- 1 | using Den.Tools; 2 | using ExtensionMethods; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using UnityEngine; 6 | 7 | public class TownRequest 8 | { 9 | private string name; 10 | private Vector2 coord; 11 | private int patchesInSize; 12 | 13 | 14 | public Vector2 Coord { get => coord; set => coord = value; } 15 | public string Name { get => name; set => name = value; } 16 | public int PatchesInSize { get => patchesInSize; set => patchesInSize = value; } 17 | 18 | public TownRequest(string name, Vector2 coord ) { 19 | 20 | this.coord = coord; 21 | this.name = name; 22 | this.patchesInSize = RandomGen.NextValidRandomPatchAmountFromTGOSRange(); 23 | } 24 | 25 | public TownRequest(string name, Vector2 coord, int patches) 26 | { 27 | 28 | this.coord = coord; 29 | this.name = name; 30 | this.patchesInSize = patches; 31 | } 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /Assets/_Scripts/TownRequest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 180776efcf2b81c4093a54914071fd69 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/TownTilePreRender.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c9468b9d0cc24b47aa8d3fd956d5266 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/TownTileRenderer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5fe0f22d3bb8e1a43add86743ab066d6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/TypedSpline.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | 6 | public enum objectRendered 7 | { 8 | wall, fence, gatehouse 9 | } 10 | 11 | public class TypedSpline 12 | { 13 | //https://github.com/benoit-dumas/SplineMesh // https://assetstore.unity.com/packages/tools/modeling/splinemesh-104989 14 | // FREE EXTENSION. 15 | 16 | public List nodes; 17 | public int chosenType; 18 | public bool isRendered; 19 | public bool tryToFloor; 20 | 21 | public objectRendered rendered 22 | { 23 | get { return (objectRendered)chosenType; } 24 | 25 | private set { } 26 | 27 | } 28 | 29 | public TypedSpline() 30 | { 31 | 32 | // defaults and not null for list. 33 | this.nodes = new List(); 34 | this.chosenType = 0; 35 | this.isRendered = false; 36 | this.tryToFloor = false; 37 | 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /Assets/_Scripts/TypedSpline.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f199ff553cffb945887a821144f5a73 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/WigglerMini.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f4838c12e01bb649a3d07617a3f9c05 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/_DISPLAY_MARK1.cs: -------------------------------------------------------------------------------- 1 | using Den.Tools.GUI; 2 | using Den.Tools.Matrices; 3 | using MapMagic.Products; 4 | using MapMagic.Nodes; 5 | 6 | namespace Twobob.Mm2 7 | { 8 | 9 | 10 | [System.Serializable] 11 | [GeneratorMenu(menu = "Map/Modifiers", name = "_Display", iconName = "GeneratorIcons/Contrast", disengageable = true, 12 | helpLink = "https://gitlab.com/denispahunov/mapmagic/-/wikis/MatrixGenerators/Contrast", menuName ="ACEDISPLAY", priority =2)] 13 | public class _DISPLAY_MARK1 : Generator, IInlet, IOutlet 14 | { 15 | 16 | 17 | 18 | #if UNITY_EDITOR 19 | [UnityEditor.InitializeOnLoadMethod] 20 | static void EnlistInMenu() => MapMagic.Nodes.GUI.CreateRightClick.generatorTypes.Add(typeof(_DISPLAY_MARK1)); 21 | #endif 22 | 23 | // [Val("Hardness")] public float myvalue = 0.0f; 24 | 25 | public override void Generate(TileData data, StopToken stop) 26 | { 27 | if (stop != null && stop.stop) return; 28 | MatrixWorld src = data.ReadInletProduct(this); 29 | if (src == null) return; 30 | MatrixWorld clamp = new MatrixWorld(src); 31 | 32 | clamp.Clamp01(); 33 | 34 | data.StoreProduct(this, clamp); 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /Assets/_Scripts/_DISPLAY_MARK1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f36c58f24c4b8c640a23050f5d0f4efe 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/_Monobehaviours.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cce6a6fb0053c28488df940343fddf09 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/_Scripts/_Monobehaviours/ActivateChildrenOnEnableAfterTime.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class ActivateChildrenOnEnableAfterTime : MonoBehaviour 6 | { 7 | 8 | public float delay = 5; 9 | 10 | public void EnableChildren() { 11 | 12 | foreach (Transform child in transform) 13 | { 14 | child.gameObject.SetActive(true); 15 | } 16 | 17 | } 18 | 19 | void OnEnable() 20 | { 21 | Invoke("EnableChildren", delay); 22 | 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/_Scripts/_Monobehaviours/ActivateChildrenOnEnableAfterTime.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8bf9f205db63d2f4cb0c3d8e3d3ae235 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/_Monobehaviours/AlignNodesToTerrainOnEnable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 759cf0723560d4548a523298aac61862 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/_Monobehaviours/AlignOnEnable.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class AlignOnEnable : MonoBehaviour 6 | { 7 | public int attempts = 0; 8 | private int MaxAttempts = 20; 9 | 10 | void OnEnable() 11 | { 12 | TryToFloor(); 13 | } 14 | 15 | private void TryToFloor() 16 | { 17 | float[] testArr = new float[] { 500, 500 }; 18 | 19 | int testcount = 0; 20 | foreach (Transform child in transform) 21 | { 22 | // this is what gives us an exception. How to move them more cleverly? 23 | 24 | child.localPosition = new Vector3(child.position.x, GetTerrainPos(child.position.x, child.position.z).y, child.position.z); 25 | testArr[testcount] = child.position.y; 26 | testcount += 1; 27 | } 28 | 29 | 30 | if (testArr[0] == 0 && testArr[1] == 0) 31 | { 32 | if (attempts < MaxAttempts) 33 | { 34 | attempts += 1; 35 | Invoke(nameof(TryToFloor), 1); 36 | return; 37 | } 38 | else 39 | { 40 | 41 | Debug.LogFormat("Failed to floor splines {0} on countout", gameObject.name); 42 | return; 43 | } 44 | } 45 | } 46 | 47 | static Vector3 GetTerrainPos(float x, float y) 48 | { 49 | 50 | //Create origin for raycast that is above the terrain. I chose 500. 51 | Vector3 origin = new Vector3(x, 500f, y); 52 | 53 | 54 | // TODO : OPTIONAL MASK SELECTION 55 | LayerMask mask = LayerMask.GetMask("Default"); 56 | 57 | Ray ray = new Ray(origin, Vector3.down); 58 | 59 | Physics.Raycast(ray, out RaycastHit hit, 501f, mask); 60 | 61 | // Debug.Log("Terrain location found at " + hit.point); 62 | return hit.point; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Assets/_Scripts/_Monobehaviours/AlignOnEnable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4361984a64c0b4b49afcb5e0857464b1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/_Monobehaviours/LerpToGround.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class LerpToGround : MonoBehaviour 6 | { 7 | private Vector3 positionToMoveTo; 8 | public float time = 2f; 9 | 10 | 11 | void OnEnable() 12 | { 13 | 14 | 15 | Vector3 positionToMoveTo = GetTerrainPos(transform.position.x, transform.position.z) + new Vector3(0, -1f, 0); 16 | 17 | 18 | if (positionToMoveTo.y > 0) 19 | { 20 | StartCoroutine(LerpPosition(positionToMoveTo, time)); 21 | } 22 | 23 | 24 | 25 | 26 | } 27 | 28 | 29 | static Vector3 GetTerrainPos(float x, float y) // The actual terrain. Ignoring Objects. 30 | { 31 | 32 | //Create object to store raycast data 33 | 34 | //Create origin for raycast that is above the terrain. I chose 500. 35 | Vector3 origin = new Vector3(x, 500f, y); 36 | 37 | //Send the raycast. 38 | // Physics.Raycast(origin, Vector3.down, out RaycastHit hit, 501f); 39 | 40 | 41 | // TODO : MASK SELECTION 42 | LayerMask mask = LayerMask.GetMask("Default"); 43 | 44 | Ray ray = new Ray(origin, Vector3.down); 45 | 46 | 47 | Physics.Raycast(ray, out RaycastHit hit, 501f, mask); 48 | 49 | 50 | // Debug.Log("Terrain location found at " + hit.point); 51 | return hit.point; 52 | 53 | } 54 | 55 | IEnumerator LerpPosition(Vector3 targetPosition, float duration) 56 | { 57 | float time = 0; 58 | Vector3 startPosition = transform.position; 59 | 60 | while (time < duration) 61 | { 62 | transform.position = Vector3.Lerp(startPosition, targetPosition, time / duration); 63 | time += Time.deltaTime; 64 | yield return null; 65 | } 66 | transform.position = targetPosition; 67 | } 68 | } -------------------------------------------------------------------------------- /Assets/_Scripts/_Monobehaviours/LerpToGround.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8edcca8848567b241ab7b042ceae5bf7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/_Monobehaviours/LerpToGroundAfterDelay.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class LerpToGroundAfterDelay : MonoBehaviour 6 | { 7 | private Vector3 positionToMoveTo; 8 | public float lerptime = 2f; 9 | public float delaytime = 2f; 10 | 11 | void OnEnable() 12 | { 13 | Invoke("DoLerping", delaytime); 14 | } 15 | 16 | private void DoLerping() 17 | { 18 | 19 | Vector3 positionToMoveTo = GetTerrainPos(transform.position.x, transform.position.z) + new Vector3(0, -1f, 0); 20 | 21 | if (positionToMoveTo.y > 0) 22 | { 23 | StartCoroutine(LerpPosition(positionToMoveTo, lerptime)); 24 | } 25 | } 26 | 27 | static Vector3 GetTerrainPos(float x, float y) // The actual terrain. Ignoring Objects. 28 | { 29 | 30 | //Create origin for raycast that is above the terrain. I chose 500. 31 | Vector3 origin = new Vector3(x, 500f, y); 32 | 33 | 34 | //TODO : GLOBAL MASK SELECTION 35 | LayerMask mask = LayerMask.GetMask("Default"); 36 | 37 | Ray ray = new Ray(origin, Vector3.down); 38 | 39 | 40 | Physics.Raycast(ray, out RaycastHit hit, 501f, mask); 41 | 42 | 43 | // Debug.Log("Terrain location found at " + hit.point); 44 | return hit.point; 45 | 46 | } 47 | 48 | IEnumerator LerpPosition(Vector3 targetPosition, float duration) 49 | { 50 | float time = 0; 51 | Vector3 startPosition = transform.position; 52 | 53 | while (time < duration) 54 | { 55 | transform.position = Vector3.Lerp(startPosition, targetPosition, time / duration); 56 | time += Time.deltaTime; 57 | yield return null; 58 | } 59 | transform.position = targetPosition; 60 | } 61 | } -------------------------------------------------------------------------------- /Assets/_Scripts/_Monobehaviours/LerpToGroundAfterDelay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c919eb71e882c643ba74d9f6b08813e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/_Monobehaviours/RotateTowardsThingOnEnable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cdef516ea4152eb44b2c958059896685 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/_Scripts/_Monobehaviours/SpawnAndWriteSigns.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class SpawnAndWriteSigns : MonoBehaviour 6 | { 7 | 8 | public GameObject Sign; 9 | 10 | 11 | 12 | /// 13 | /// Pass the 14 | /// 15 | /// string the put in the text 16 | /// Vector3 to put the sign 17 | /// pass at a mimnimum Quaternion.identity 18 | public void WriteAndMove(string what, Vector3 where, Quaternion how, GameObject who) 19 | { 20 | // Instantiate at position (0, 0, 0) and zero rotation. 21 | var go = Instantiate(Sign, where, how, who.transform); 22 | // go.transform.localScale = new Vector3(1, 1, 1); 23 | go.transform.localScale = new Vector3(.4f, .4f, .4f); 24 | TMPro.TextMeshProUGUI ui = go.GetComponentInChildren(); 25 | // go.transform.position = who.transform.position; 26 | // go.transform.rotation = who.transform.rotation; 27 | // go.transform.localPosition = Vector3.zero; 28 | try 29 | { 30 | ui.text = what; 31 | } 32 | catch 33 | { 34 | 35 | return; 36 | } 37 | 38 | } 39 | 40 | 41 | 42 | void OnEnable() 43 | { 44 | SignCommands.Instance = this; 45 | 46 | } 47 | } 48 | 49 | public static class SignCommands 50 | { 51 | 52 | public static SpawnAndWriteSigns Instance; 53 | 54 | public static void WriteAndMove(string what, Vector3 where, Quaternion how, GameObject who = null) 55 | { 56 | if (null != who && what != string.Empty && where != null && how != null) 57 | { 58 | try 59 | { 60 | // Debug.LogFormat(who, "setting up {0} at {1} with a {2} rot.", what, where, how); 61 | Instance.WriteAndMove(what, where, how, who); 62 | } 63 | catch (System.Exception ex) 64 | { 65 | 66 | Debug.LogFormat(who, "setting up {0} at {1} with a {2} rot. failed", what, where, how, ex.Message); 67 | } 68 | 69 | } 70 | 71 | 72 | } 73 | } -------------------------------------------------------------------------------- /Assets/_Scripts/_Monobehaviours/SpawnAndWriteSigns.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1d84213f2c7d0e4c9ef6e8a48f889a6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ads": "2.0.8", 4 | "com.unity.analytics": "2.0.16", 5 | "com.unity.package-manager-ui": "1.9.9", 6 | "com.unity.purchasing": "2.0.1", 7 | "com.unity.textmeshpro": "1.2.1", 8 | "com.unity.modules.ai": "1.0.0", 9 | "com.unity.modules.animation": "1.0.0", 10 | "com.unity.modules.assetbundle": "1.0.0", 11 | "com.unity.modules.audio": "1.0.0", 12 | "com.unity.modules.cloth": "1.0.0", 13 | "com.unity.modules.director": "1.0.0", 14 | "com.unity.modules.imageconversion": "1.0.0", 15 | "com.unity.modules.imgui": "1.0.0", 16 | "com.unity.modules.jsonserialize": "1.0.0", 17 | "com.unity.modules.particlesystem": "1.0.0", 18 | "com.unity.modules.physics": "1.0.0", 19 | "com.unity.modules.physics2d": "1.0.0", 20 | "com.unity.modules.screencapture": "1.0.0", 21 | "com.unity.modules.terrain": "1.0.0", 22 | "com.unity.modules.terrainphysics": "1.0.0", 23 | "com.unity.modules.tilemap": "1.0.0", 24 | "com.unity.modules.ui": "1.0.0", 25 | "com.unity.modules.uielements": "1.0.0", 26 | "com.unity.modules.umbra": "1.0.0", 27 | "com.unity.modules.unityanalytics": "1.0.0", 28 | "com.unity.modules.unitywebrequest": "1.0.0", 29 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 30 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 31 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 32 | "com.unity.modules.unitywebrequestwww": "1.0.0", 33 | "com.unity.modules.vehicles": "1.0.0", 34 | "com.unity.modules.video": "1.0.0", 35 | "com.unity.modules.vr": "1.0.0", 36 | "com.unity.modules.wind": "1.0.0", 37 | "com.unity.modules.xr": "1.0.0", 38 | "com.unity.entities": "0.0.12-preview.6" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /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 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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: 7 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: 1 23 | m_ClothInterCollisionSettingsToggle: 0 24 | m_ContactPairsMode: 0 25 | m_BroadphaseType: 0 26 | m_WorldBounds: 27 | m_Center: {x: 0, y: 0, z: 0} 28 | m_Extent: {x: 250, y: 250, z: 250} 29 | m_WorldSubdivisions: 8 30 | -------------------------------------------------------------------------------- /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 | - enabled: 1 9 | path: Assets/Scenes/SampleScene.unity 10 | guid: 99c9720ab356a0642a771bea13969a05 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /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: 7 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_SpritePackerMode: 0 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /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: 3 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_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_AutoSyncTransforms: 1 28 | m_AlwaysShowColliders: 0 29 | m_ShowColliderSleep: 1 30 | m_ShowColliderContacts: 0 31 | m_ShowColliderAABB: 0 32 | m_ContactArrowScale: 0.2 33 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 34 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 35 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 36 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 37 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 38 | -------------------------------------------------------------------------------- /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 | m_DefaultList: 7 | - type: 8 | m_NativeTypeID: 108 9 | m_ManagedTypePPtr: {fileID: 0} 10 | m_ManagedTypeFallback: 11 | defaultPresets: 12 | - m_Preset: {fileID: 2655988077585873504, guid: c1cf8506f04ef2c4a88b64b6c4202eea, 13 | type: 2} 14 | - type: 15 | m_NativeTypeID: 1020 16 | m_ManagedTypePPtr: {fileID: 0} 17 | m_ManagedTypeFallback: 18 | defaultPresets: 19 | - m_Preset: {fileID: 2655988077585873504, guid: 0cd792cc87e492d43b4e95b205fc5cc6, 20 | type: 2} 21 | - type: 22 | m_NativeTypeID: 1006 23 | m_ManagedTypePPtr: {fileID: 0} 24 | m_ManagedTypeFallback: 25 | defaultPresets: 26 | - m_Preset: {fileID: 2655988077585873504, guid: 7a99f8aa944efe94cb9bd74562b7d5f9, 27 | type: 2} 28 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2018.1.6f1 2 | -------------------------------------------------------------------------------- /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 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - PostProcessing 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 | -------------------------------------------------------------------------------- /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.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /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 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate 14 | m_Enabled: 0 15 | m_CaptureEditorExceptions: 1 16 | UnityPurchasingSettings: 17 | m_Enabled: 0 18 | m_TestMode: 0 19 | UnityAnalyticsSettings: 20 | m_Enabled: 1 21 | m_InitializeOnStartup: 1 22 | m_TestMode: 0 23 | m_TestEventUrl: 24 | m_TestConfigUrl: 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /TownGenerator.unitypackage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twobob/TownGenerator/29d7a8acd9a0249de3bc8ecb1f4e63943c64e1f6/TownGenerator.unitypackage --------------------------------------------------------------------------------