added encounter system

This commit is contained in:
Sebastian Bularca
2026-04-19 12:46:44 +02:00
parent c1b5d0e9e0
commit 8861bdc5eb
94 changed files with 2581 additions and 13 deletions

View File

@@ -52,14 +52,14 @@ namespace Jovian.ZoneSystem.Editor {
}
}
[MenuItem("Window/Zone System/Settings")]
[MenuItem("Jovian/Zone System/Settings")]
private static void SelectOrCreateSettings() {
ZoneEditorSettings settings = FindOrCreateSettings();
Selection.activeObject = settings;
EditorGUIUtility.PingObject(settings);
}
[MenuItem("Window/Zone System/Documentation")]
[MenuItem("Jovian/Zone System/Documentation")]
private static void OpenDocumentation() {
// Find the Documentation~ folder relative to this package
string[] guids = AssetDatabase.FindAssets("t:Script ZoneEditorSettings");

View File

@@ -72,7 +72,7 @@ namespace Jovian.ZoneSystem.Editor {
}
}
[MenuItem("Window/Zone System/Zone Editor")]
[MenuItem("Jovian/Zone System/Zone Editor")]
public static void Open() {
GetWindow<ZoneEditorWindow>("Zone Editor");
}

View File

@@ -18,7 +18,7 @@ Packages/com.jovian.zonesystem/
│ ├── ShapeFactory.cs ← Default shape generation (square, circle, polygon)
│ └── ZoneExporter.cs ← Serialization to JSON
├── Editor/
│ ├── ZoneEditorWindow.cs ← Main editor window (Window → Zone System → Zone Editor)
│ ├── ZoneEditorWindow.cs ← Main editor window (Jovian → Zone System → Zone Editor)
│ ├── ZoneEditorSettings.cs ← Configurable settings: folder path, role colors
│ ├── ZoneInstanceEditor.cs ← Custom inspector + scene handles for shape editing
│ └── ZoneDataEditor.cs ← Role-aware ZoneData inspector
@@ -30,7 +30,7 @@ Packages/com.jovian.zonesystem/
1. Add the package to your project (local package in `Packages/`).
2. Create a **ZonesObjectHolder** GameObject and set **Map Plane** to match your map (e.g. `XZ`).
3. Open **Window → Zone System → Zone Editor**.
3. Open **Jovian → Zone System → Zone Editor**.
4. Click **Create New Zone**, set a name and shape, then click **Create & Edit**.
5. Edit all zone data fields in the editor, then click **Save Zone**.
6. Use scene handles to adjust the polygon shape.
@@ -51,9 +51,9 @@ Packages/com.jovian.zonesystem/
| Menu Path | Description |
|-----------|-------------|
| Window → Zone System → Zone Editor | Main editor window |
| Window → Zone System → Settings | Select or create ZoneEditorSettings asset |
| Window → Zone System → Documentation | Open HTML documentation |
| Jovian → Zone System → Zone Editor | Main editor window |
| Jovian → Zone System → Settings | Select or create ZoneEditorSettings asset |
| Jovian → Zone System → Documentation | Open HTML documentation |
## Runtime API
@@ -75,4 +75,4 @@ List<ZoneData> zones = api.GetOverlappingZones(partyWorldPosition);
## Documentation
Full documentation is available at `Documentation~/index.html`. Open it via **Window → Zone System → Documentation**.
Full documentation is available at `Documentation~/index.html`. Open it via **Jovian → Zone System → Documentation**.

View File

@@ -11,4 +11,4 @@
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
}