diff --git a/.idea.igem-quantifly/.idea/workspace.xml b/.idea.igem-quantifly/.idea/workspace.xml index 6e07fd2..969160e 100644 --- a/.idea.igem-quantifly/.idea/workspace.xml +++ b/.idea.igem-quantifly/.idea/workspace.xml @@ -2,10 +2,6 @@ - - - - @@ -26,56 +22,47 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - @@ -141,70 +129,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -213,6 +138,7 @@ + @@ -251,12 +177,12 @@ - + - @@ -268,10 +194,10 @@ - + - + @@ -292,6 +218,28 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index 3d342e3..c093d36 100644 Binary files a/Assets/Scenes/Main.unity and b/Assets/Scenes/Main.unity differ diff --git a/Assets/Scripts/MapGeneration.meta b/Assets/Scripts/MapGeneration.meta new file mode 100644 index 0000000..92aee5b --- /dev/null +++ b/Assets/Scripts/MapGeneration.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 2c52723e47e2e36458f94fd1eb26750e +folderAsset: yes +timeCreated: 1470001199 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/MapGeneration/Cell.cs b/Assets/Scripts/MapGeneration/Cell.cs new file mode 100644 index 0000000..4be8067 --- /dev/null +++ b/Assets/Scripts/MapGeneration/Cell.cs @@ -0,0 +1,25 @@ +using Assets.Scripts.Utils; +using UnityEngine; + +namespace Assets.Scripts.MapGeneration +{ + public class Cell + { + #region Fields + + public TileType Type { get; set; } + public Vector2 Position { get; set; } + + #endregion + + #region Ctors + + public Cell(int x, int y, TileType type) + { + Type = type; + Position = new Vector2(x, y); + } + + #endregion + } +} \ No newline at end of file diff --git a/Assets/Scripts/MapGeneration/Cell.cs.meta b/Assets/Scripts/MapGeneration/Cell.cs.meta new file mode 100644 index 0000000..0e5c84a --- /dev/null +++ b/Assets/Scripts/MapGeneration/Cell.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40375fbc1ac54974e9fa16e397eff04c +timeCreated: 1470002106 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/MapGeneration/CellularAutomaton.cs b/Assets/Scripts/MapGeneration/CellularAutomaton.cs new file mode 100644 index 0000000..0a84635 --- /dev/null +++ b/Assets/Scripts/MapGeneration/CellularAutomaton.cs @@ -0,0 +1,13 @@ +using Assets.Scripts.Utils; + +namespace Assets.Scripts.MapGeneration +{ + public class CellularAutomaton + { + #region Fields + + Map _map; + + #endregion + } +} \ No newline at end of file diff --git a/Assets/Scripts/MapGeneration/CellularAutomaton.cs.meta b/Assets/Scripts/MapGeneration/CellularAutomaton.cs.meta new file mode 100644 index 0000000..a076aa4 --- /dev/null +++ b/Assets/Scripts/MapGeneration/CellularAutomaton.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 812c9a190b66e0844b2ec7a792f22f97 +timeCreated: 1470001215 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Utils/Map.cs b/Assets/Scripts/Utils/Map.cs new file mode 100644 index 0000000..67323c5 --- /dev/null +++ b/Assets/Scripts/Utils/Map.cs @@ -0,0 +1,39 @@ +namespace Assets.Scripts.Utils +{ + public enum TileType + { + Default, + Wall, + Background + } + + public class Map + { + #region Fields + + public uint Columns { get; set; } + public uint Rows { get; set; } + + private TileType[,] _map; + + #endregion + + #region Ctors + + public Map(uint cols, uint rows) + { + Columns = cols; + Rows = rows; + + _map = new TileType[Columns, Rows]; + } + + #endregion + + public TileType this[uint x, uint y] + { + get { return _map[x, y]; } + set { _map[x, y] = value; } + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/Utils/Map.cs.meta b/Assets/Scripts/Utils/Map.cs.meta new file mode 100644 index 0000000..978835f --- /dev/null +++ b/Assets/Scripts/Utils/Map.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 55f31c89beca82248a7057f76f015038 +timeCreated: 1470001225 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: