A 2D Farming RPG
This is just a simple 2D farming RPG game
Loading...
Searching...
No Matches
SO_GridProperties.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using UnityEngine;
3
4[CreateAssetMenu( fileName = "so_GridProperties", menuName = "Scriptable Objects/Grid Properties" )]
8public class SO_GridProperties : ScriptableObject
9{
12
14 public int m_GridWidth;
15
17 public int m_GridHeight;
18
20 public int m_OriginX;
21 public int m_OriginY;
22
23 [SerializeField]
25 public List<GridProperty> m_GridPropertyList;
26}
SceneName
Describes different scenes.
Definition: Enums.cs:118
This ScriptableObject object asset will contain all the information of each scene.
int m_OriginX
Always describes bottom left corner.
List< GridProperty > m_GridPropertyList
For every grid, we read our tilemap and add to this list.
SceneName m_SceneName
Scene name.
int m_GridWidth
Tile map may vary in sizes. Therefore, this defins the width.
int m_GridHeight
Tile map may vary in sizes. Therefore, this defins the height.