From 4ffdf964a75bf2e7d95d85f07bd20862a16fcaa9 Mon Sep 17 00:00:00 2001 From: fegor101 Date: Thu, 15 Jan 2026 00:22:22 +0300 Subject: [PATCH] add fields to Hex class --- Assets/scripts/hex/Hex.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/scripts/hex/Hex.cs b/Assets/scripts/hex/Hex.cs index 2c356d6..ba9bc62 100644 --- a/Assets/scripts/hex/Hex.cs +++ b/Assets/scripts/hex/Hex.cs @@ -5,6 +5,7 @@ using UnityEngine; public class Hex : MonoBehaviour { public enum landscapeTypes { water, land, hill, highHill, mountain, uncrosableMountain }; + public enum stateTypes { idle, owned, battle }; public Vector2Int position; public float noiseValue; @@ -12,6 +13,9 @@ public class Hex : MonoBehaviour public int miniMapSeed; public int income; //Модификатор к доходу в еденицу времени от этого гекса + public int ownerID; + public stateTypes state = stateTypes.idle; + //TODO переменная для памати содержимого // Start is called before the first frame update