init
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace VOID.ScriptableObjects.World
|
||||
{
|
||||
[CreateAssetMenu(menuName = "GAME DATA/Świat/AreaConnectionTag")]
|
||||
public class AreaConnectionTag : ScriptableObject
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fa05b96b0c6844328f981a6b7573d3af
|
||||
timeCreated: 1706820031
|
||||
@@ -0,0 +1,62 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
using VOID.Generic.World;
|
||||
|
||||
namespace VOID.ScriptableObjects.World
|
||||
{
|
||||
[Serializable]
|
||||
public class WorldAreaGeneratorSettings
|
||||
{
|
||||
[RequiredListLength(MinLength = 1)]
|
||||
public List<ComplexArea> group;
|
||||
|
||||
[HorizontalGroup("generic")]
|
||||
[LabelWidth(125)]
|
||||
public bool useRotatedVariants = true;
|
||||
|
||||
[HorizontalGroup("generic")]
|
||||
[MinValue(0)]
|
||||
[LabelWidth(75)]
|
||||
public float weight = 1f;
|
||||
|
||||
[HorizontalGroup("limit")]
|
||||
[OnValueChanged(nameof(OnIsLimitedChanged))]
|
||||
[LabelWidth(125)]
|
||||
public bool isLimited;
|
||||
|
||||
[HorizontalGroup("limit")]
|
||||
[MinValue(1)]
|
||||
[EnableIf(nameof(isLimited))]
|
||||
[LabelWidth(75)]
|
||||
public int limit = 9999;
|
||||
|
||||
[HorizontalGroup("distance")]
|
||||
[OnValueChanged(nameof(OnRequireDistanceChanged))]
|
||||
[LabelWidth(125)]
|
||||
public bool requireDistance;
|
||||
|
||||
[HorizontalGroup("distance")]
|
||||
[EnableIf(nameof(requireDistance))]
|
||||
[MinMaxSlider(1, 999, true)]
|
||||
[LabelWidth(75)]
|
||||
public Vector2Int distance = new(1, 999);
|
||||
|
||||
private void OnIsLimitedChanged()
|
||||
{
|
||||
if (!isLimited)
|
||||
{
|
||||
limit = 9999;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnRequireDistanceChanged()
|
||||
{
|
||||
if (!requireDistance)
|
||||
{
|
||||
distance = new Vector2Int(1, 999);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 476f8224578f47718b465606b21d811d
|
||||
timeCreated: 1707226691
|
||||
@@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
using VOID.Generic.World;
|
||||
|
||||
namespace VOID.ScriptableObjects.World
|
||||
{
|
||||
[CreateAssetMenu(menuName = "GAME DATA/Świat/WorldGeneratorSettings")]
|
||||
public class WorldGeneratorSettings : ScriptableObject
|
||||
{
|
||||
[InfoBox(nameof(ComplexArea) + " and its variants to select for <b>STARTING</b> area.")]
|
||||
[RequiredListLength(MinLength = 1)]
|
||||
public List<ComplexArea> startingComplexAreas = new();
|
||||
|
||||
[InfoBox(nameof(ComplexArea) + " and its variants to use for generating process.")]
|
||||
[RequiredListLength(MinLength = 1)]
|
||||
public List<WorldAreaGeneratorSettings> list = new();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 604a9f4289d742db95af798270fa9bf2
|
||||
timeCreated: 1706982922
|
||||
Reference in New Issue
Block a user