add fields to Hex class
This commit is contained in:
@@ -5,6 +5,7 @@ using UnityEngine;
|
|||||||
public class Hex : MonoBehaviour
|
public class Hex : MonoBehaviour
|
||||||
{
|
{
|
||||||
public enum landscapeTypes { water, land, hill, highHill, mountain, uncrosableMountain };
|
public enum landscapeTypes { water, land, hill, highHill, mountain, uncrosableMountain };
|
||||||
|
public enum stateTypes { idle, owned, battle };
|
||||||
|
|
||||||
public Vector2Int position;
|
public Vector2Int position;
|
||||||
public float noiseValue;
|
public float noiseValue;
|
||||||
@@ -12,6 +13,9 @@ public class Hex : MonoBehaviour
|
|||||||
public int miniMapSeed;
|
public int miniMapSeed;
|
||||||
|
|
||||||
public int income; //Ìîäèôèêàòîð ê äîõîäó â åäåíèöó âðåìåíè îò ýòîãî ãåêñà
|
public int income; //Ìîäèôèêàòîð ê äîõîäó â åäåíèöó âðåìåíè îò ýòîãî ãåêñà
|
||||||
|
public int ownerID;
|
||||||
|
public stateTypes state = stateTypes.idle;
|
||||||
|
|
||||||
//TODO ïåðåìåííàÿ äëÿ ïàìàòè ñîäåðæèìîãî
|
//TODO ïåðåìåííàÿ äëÿ ïàìàòè ñîäåðæèìîãî
|
||||||
|
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
|
|||||||
Reference in New Issue
Block a user