Skip to content

Commit 8dbff1d

Browse files
committed
First
0 parents  commit 8dbff1d

File tree

83 files changed

+3214
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+3214
-0
lines changed

Editor.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/WorldMapGeneratorEditor.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using UnityEditor;
2+
using UnityEngine;
3+
4+
[CustomEditor(typeof(WorldMapGenerator),true)]
5+
public class WorldMapGeneratorEditor : Editor
6+
{
7+
8+
private bool autoUpdate = false;
9+
10+
public override void OnInspectorGUI()
11+
{
12+
EditorGUI.BeginChangeCheck();
13+
base.OnInspectorGUI();
14+
if (EditorGUI.EndChangeCheck() && autoUpdate )
15+
{
16+
((WorldMapGenerator)target).GenerateMap();
17+
}
18+
19+
autoUpdate = EditorGUILayout.Toggle("Auto Update", autoUpdate);
20+
21+
if (GUILayout.Button("Generate"))
22+
{
23+
((WorldMapGenerator)target).GenerateMap();
24+
}
25+
}
26+
}

Editor/WorldMapGeneratorEditor.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "name": "com.gameframe.procgen.Editor", "references": [ "com.gameframe.procgen" ], "optionalUnityReferences": [], "includePlatforms": [ "Editor" ], "excludePlatforms": [] }

Editor/com.gameframe.procgen.Editor.asmdef.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Cory Leach
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

LICENSE.md.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<h1 align="center">Gameframe.Procgen 👋</h1>
2+
<p>
3+
<img alt="Version" src="https://img.shields.io/badge/version-0.0.1-blue.svg?cacheSeconds=2592000" />
4+
<a href="https://twitter.com/Cory Leach">
5+
<img alt="Twitter: coryleach" src="https://img.shields.io/twitter/follow/coryleach.svg?style=social" target="_blank" />
6+
</a>
7+
</p>
8+
9+
Library of utilitys for procedural generation
10+
11+
## Quick Package Install
12+
13+
#### Using UnityPackageManager (for Unity 2019.3 or later)
14+
Open the package manager window (menu: Window > Package Manager)<br/>
15+
Select "Add package from git URL...", fill in the pop-up with the following link:<br/>
16+
https://github.com/coryleach/UnityProcgen.git#0.0.1<br/>
17+
18+
#### Using UnityPackageManager (for Unity 2019.1 or later)
19+
20+
Find the manifest.json file in the Packages folder of your project and edit it to look like this:
21+
```js
22+
{
23+
"dependencies": {
24+
"com.gameframe.procgen": "https://github.com/coryleach/UnityProcgen.git#0.0.1",
25+
...
26+
},
27+
}
28+
```
29+
30+
<!-- DOC-START --><!-- DOC-END -->
31+
32+
## Author
33+
34+
👤 **Cory Leach**
35+
36+
* Twitter: [@coryleach](https://twitter.com/coryleach)
37+
* Github: [@coryleach](https://github.com/coryleach)
38+
39+
40+
## Show your support
41+
42+
Give a ⭐️ if this project helped you!
43+
44+
***
45+
_This README was generated with ❤️ by [Gameframe.Packages](https://github.com/coryleach/unitypackages)_

README.md.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)