From 034ed30da10c2117e9c2507ed1fef3cab43ee79c Mon Sep 17 00:00:00 2001
From: miepzerino <o.skotnik@gmail.com>
Date: Wed, 02 Apr 2025 08:56:56 +0000
Subject: [PATCH] #36 load all items into itemDatabase on startup

---
 Assets/Scripts/Prefab/Drilling/Generateable.cs |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/Assets/Scripts/Prefab/Drilling/Generateable.cs b/Assets/Scripts/Prefab/Drilling/Generateable.cs
new file mode 100644
index 0000000..64190ea
--- /dev/null
+++ b/Assets/Scripts/Prefab/Drilling/Generateable.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+[Serializable]
+public class Generateable : MonoBehaviour
+{
+    public bool isGenerateable = true;
+    //public string nameKey;
+    /// <summary>
+    /// The lower the numer the higher the amount of ores that will spawn
+    /// Higher number means less ore
+    /// </summary>
+    [Tooltip("The lower the numer the higher the amount of ores that will spawn. Higher number means less ore.")]
+    [Range(1, 100000)]
+    public int weight;
+    /// <summary>
+    /// The lower the number the more dense the ore will spawn (big clusters
+    /// Higher number means little clusters (more spread)
+    /// </summary>
+    [Tooltip("The lower the number the more dense the ore will spawn (big clusters. Higher number means little clusters (more spread).")]
+    [Range(10, 100000)]
+    public int clusterWeight;
+    public int minClusterSize;
+    public CustomRuleTile tile;
+    public int maxSpawnHeight;
+    public int minSpawnHeight;
+}

--
Gitblit v1.9.3